From e85e52325d42a0d17bf2f5e73729abce6dee54e2 Mon Sep 17 00:00:00 2001 From: wanglei Date: Tue, 8 Jul 2025 17:03:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A2=AB=E8=80=83=E6=A0=B8=E5=AF=B9=E8=B1=A1?= =?UTF-8?q?=E7=B1=BB=E5=9E=8B=E5=80=BC=20=E9=A1=B5=E9=9D=A2=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ruoyi-ui/src/views/kaohe/pingce/index.vue | 26 +++++++---------------- 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/ruoyi-ui/src/views/kaohe/pingce/index.vue b/ruoyi-ui/src/views/kaohe/pingce/index.vue index a35ce54..00af1f2 100644 --- a/ruoyi-ui/src/views/kaohe/pingce/index.vue +++ b/ruoyi-ui/src/views/kaohe/pingce/index.vue @@ -173,10 +173,10 @@ - {{ dict.label }} + {{ dict.label }} - + 选择职工 @@ -189,7 +189,7 @@ - + 展开/折叠 全选/全不选 父子联动 @@ -607,7 +607,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css"; export default { name: "Pingce", - dicts: ['kh_state', 'sys_user_sex'], + dicts: ['kh_state', 'sys_user_sex', 'bkhdx_type'], components: { Treeselect }, data() { return { @@ -691,16 +691,6 @@ export default { } ] }, - khdxRadios:[ - { - value: '0', - label: '职工', - }, - { - value: '1', - label: '部门', - }, - ], deptExpand: true, deptNodeAll: false, deptOptions: [], @@ -905,7 +895,7 @@ export default { const id = row.id || this.ids getPingce(id).then(response => { this.form = response.data; - if(this.form.bkhdxType==='0'){ + if(this.form.bkhdxType==='1'){ this.form.pcBkhdxs.forEach(item=>{ this.form_bkh_zg.push({ id: item.bkhdxId, @@ -916,7 +906,7 @@ export default { }) } - if(this.form.bkhdxType==='1'){ + if(this.form.bkhdxType==='0'){ let Keys = []; this.form.pcBkhdxs.forEach(item=>{ Keys.push(item.bkhdxId); @@ -936,7 +926,7 @@ export default { if (valid) { let flag = true; // 被考核对象 - 职工 - if(this.form.bkhdxType==='0'){ + if(this.form.bkhdxType==='1'){ if( this.form_bkh_zg && this.form_bkh_zg.length <1 ){ flag = false; this.$alert(`还没有选择被考核对象,请选择被考核对象!`, `提示`, { @@ -954,7 +944,7 @@ export default { } } // 被考核对象 - 部门 - if(this.form.bkhdxType==='1'){ + if(this.form.bkhdxType==='0'){ // 被选中的节点所组成的数组 let xzNodes = this.$refs.dept.getCheckedNodes(); if(xzNodes && xzNodes.length<1){