diff --git a/src/main/resources/static/pages/evaluate/person/EvaluatePersonAdd.html b/src/main/resources/static/pages/evaluate/person/EvaluatePersonAdd.html index 3a1cd59..01774c9 100644 --- a/src/main/resources/static/pages/evaluate/person/EvaluatePersonAdd.html +++ b/src/main/resources/static/pages/evaluate/person/EvaluatePersonAdd.html @@ -34,60 +34,74 @@ -
+
+ -
-
- -
- -
-
-
- -
- - -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
- -
- + +
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+ +
+
+ +
+ +
-
- - + + + +
+ @@ -105,6 +119,48 @@ let alreadyChooseTrees = []; let selectData = []; layui.use(['table', 'form', 'tree'], function () { + + function setSelectValue(list, selectName, code, nameCode) { + let html = ''; + if (list && list.length > 0) { + $.each(list, function (index, item) { + html += + ""; + }); + } + $("#" + selectName) + .empty() + .append(html); + layui.form.render(); + } + + + function getRoleSelect() { + $.ajax({ + type: 'post', + url: ctxPath + '/evaluatePerson/getRoleSelect', + async: false, + success: function (data) { + setSelectValue(data.obj, "personInChargeId", "id", "roleId"); + } + }); + } + function getDeptSelect() { + $.ajax({ + type: 'post', + url: ctxPath + '/evaluatePerson/getDeptSelect', + async: false, + success: function (data) { + setSelectValue(data.obj, "personInChargeId", "id", "deptId"); + } + }); + } layui.use(['form', 'laydate'], function () { var form = layui.form; var laydate = layui.laydate; @@ -339,45 +395,5 @@ }); } - function setSelectValue(list, selectName, code, nameCode) { - let html = ''; - if (list && list.length > 0) { - $.each(list, function (index, item) { - html += - ""; - }); - } - $("#" + selectName) - .empty() - .append(html); - layui.form.render(); - } - - function getRoleSelect() { - $.ajax({ - type: 'post', - url: ctxPath + '/evaluatePerson/getRoleSelect', - async: false, - success: function (data) { - setSelectValue(result.obj, "personInChargeId", "id", "roleId"); - } - }); - } - function getDeptSelect() { - $.ajax({ - type: 'post', - url: ctxPath + '/evaluatePerson/getDeptSelect', - async: false, - success: function (data) { - setSelectValue(result.obj, "personInChargeId", "id", "deptId"); - } - }); - } \ No newline at end of file