Explorar o código

bug fix: 解决了SAI开项申请登记人姓名未加载至评估人下拉列表中的问题

wangggziwen %!s(int64=2) %!d(string=hai) anos
pai
achega
920b014587

+ 1 - 1
master/src/main/resources/mybatis/plant/TStaffmgrMapper.xml

@@ -109,7 +109,7 @@
         select u.user_id, d.id, d.plant_code,d.left_date, d.staffid, d.name, d.photo, d.sex, d.birthday, d.unit, d.team, d.actualpost, d.contact, d.del_flag, d.creater_code, d.createdate, d.updater_code, d.updatedate, d.dept_id, d.remarks, d.education, d.en_ability, d.accident_num, d.mail, d.skill_score, d.p_id , d.special_duty, d.region, s.dept_name from t_staffmgr d
         left join sys_dept s on s.dept_id = d.dept_id
         inner join sys_user u on d.staffid = u.staffid
-        where d.dept_id = 103 and d.team = 18 and d.del_flag = 0
+        where d.unit = 10 and d.team = 18 and d.del_flag = 0
     </select>
 
     <select id="selectTStaffmgrList" parameterType="TStaffmgr" resultMap="TStaffmgrResult">

+ 3 - 6
ui/src/views/approve/approveDetail/sai-apply-detail.vue

@@ -203,7 +203,7 @@
                 placeholder="请选择验证人"
                 style="margin-right: 10px;">
                 <el-option
-                  v-for="dict in inspectorOptions"
+                  v-for="dict in applicantOptions"
                   :key="dict.dictValue"
                   :label="dict.dictLabel"
                   :value="dict.dictValue"
@@ -1092,11 +1092,8 @@ export default {
       });
     },
     /** 加载验证人列表 */
-    listSaiInspectors(applicantDept, applicantTeam) {
-      listSaiInspectors({
-        deptId: applicantDept,
-        team: applicantTeam
-      }).then(response => {
+    listSaiInspectors() {
+      listSaiInspectors().then(response => {
         let staffList = response.data;
         this.inspectorOptions = [];
         for (let i = 0; i < staffList.length; i++) {