...
|
...
|
@@ -229,6 +229,20 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
};
|
|
|
arr.push(obj)
|
|
|
})
|
|
|
//start lsq 保存修改信息中select的值 2022-03-16
|
|
|
var $selects = $("#user_property_html_id").find(".select");
|
|
|
$.each($selects, function (i, e) {
|
|
|
var obj = {
|
|
|
id: $(e).attr("data-id"),
|
|
|
username: $(e).attr("data-username"),
|
|
|
property: $(e).attr("data-property"),
|
|
|
value: $(e).val(),
|
|
|
sort: $(e).attr("data-sort"),
|
|
|
remark: $(e).attr("data-remark")
|
|
|
};
|
|
|
arr.push(obj)
|
|
|
})
|
|
|
//end lsq 2022-03-16
|
|
|
return arr;
|
|
|
}
|
|
|
|
...
|
...
|
@@ -246,8 +260,6 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
// propertyList.push(vl);
|
|
|
// });
|
|
|
propertyList = res.data
|
|
|
console.log("propertyList",propertyList)
|
|
|
|
|
|
}
|
|
|
});
|
|
|
}
|
...
|
...
|
@@ -314,6 +326,21 @@ layui.define(['table', 'form', 'admin', 'layer', 'common', 'sessions', 'xmSelect |
|
|
}
|
|
|
});
|
|
|
});
|
|
|
//start lsq 回显时修改信息中select的值 2022-03-16
|
|
|
var $selects = $("#user_property_html_id").find(".select");
|
|
|
$.each($selects, function (i, e) {
|
|
|
var $that=$(this);
|
|
|
$.each(list, function (index,v) {
|
|
|
if($that.attr('data-property')== v.property){
|
|
|
$that.attr("data-id",v.id);
|
|
|
$that.attr("data-username",v.username);
|
|
|
$that.val(v.value);
|
|
|
$that.attr("data-sort",v.sort);
|
|
|
$that.attr("data-remark",v.remark);
|
|
|
}
|
|
|
});
|
|
|
});
|
|
|
//end lsq 2022-03-16
|
|
|
}
|
|
|
})
|
|
|
}) |
...
|
...
|
|