代码提交
This commit is contained in:
parent
537031d381
commit
b032611088
|
|
@ -49,7 +49,7 @@ function getMajorSelected() {
|
|||
let params = {
|
||||
encryptedData: encryptCBC(JSON.stringify(obj))
|
||||
}
|
||||
ajaxRequest(url, "POST", params, true, function () {
|
||||
ajaxRequest(url, "POST", params, false, function () {
|
||||
}, function (result) {
|
||||
if (result.code === 200) {
|
||||
setSelectValue(result.data, 'professionName');
|
||||
|
|
@ -67,7 +67,6 @@ function setSelectValue(data) {
|
|||
$.each(data, function (index, item) {
|
||||
let optionValue = item.dictValue + ',' + item.dictName;
|
||||
html += '<option value="' + optionValue + '">' + item.dictName + '</option>';
|
||||
// html += '<option value="' + item.dictValue + ',' + item.dictName + '">' + item.dictName + '</option>';
|
||||
})
|
||||
$('#professionName').empty().append(html);
|
||||
layui.form.render();
|
||||
|
|
@ -150,7 +149,6 @@ function setFormData(data) {
|
|||
$('#professionName').val(optionValue); // 使用 jQuery 的 .val() 方法设置选中值
|
||||
form.render('select');
|
||||
}
|
||||
// layui.form.render();
|
||||
}
|
||||
|
||||
// 关闭页面
|
||||
|
|
|
|||
Loading…
Reference in New Issue