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){