Browse Source

审批人员部门

dev
0.0 2 years ago
parent
commit
9cf65da6fe
  1. 6
      src/components/jeecgbiz/JSelectDepart.vue
  2. 6
      src/components/jeecgbiz/modal/JSelectDepartModal.vue
  3. 2
      src/views/system/UserList.vue

6
src/components/jeecgbiz/JSelectDepart.vue

@ -10,6 +10,7 @@
ref="innerDepartSelectModal"
:modal-width="modalWidth"
:multi="multi"
:checkStrictly="checkStrictly"
:rootOpened="rootOpened"
:treeOpera="treeOpera"
:depart-id="departIds"
@ -56,6 +57,11 @@
required: false,
default: true
},
checkStrictly:{
type: Boolean,
required: false,
default: true
},
// id
customReturnField: {
type: String,

6
src/components/jeecgbiz/modal/JSelectDepartModal.vue

@ -14,7 +14,7 @@
checkable
class="my-dept-select-tree"
:treeData="treeData"
:checkStrictly="false"
:checkStrictly="checkStrictly"
@check="onCheck"
@select="onSelect"
@expand="onExpand"
@ -40,7 +40,7 @@
import { queryDepartTreeList } from '@/api/api'
export default {
name: 'JSelectDepartModal',
props:['modalWidth','multi','rootOpened','departId'],
props:['modalWidth','multi','rootOpened','departId','checkStrictly'],
data(){
return {
visible:false,
@ -145,7 +145,7 @@
this.checkedKeys = [...arr]
this.checkedRows = (this.checkedKeys.length === 0) ? [] : [info.node.dataRef]
}else{
this.checkedKeys = checkedKeys
if (!this.checkStrictly){this.checkedKeys = checkedKeys}else {this.checkedKeys = checkedKeys.checked}
this.checkedRows = this.getCheckedRows(this.checkedKeys)
}
},

2
src/views/system/UserList.vue

@ -29,7 +29,7 @@
</a-col>
<a-col :md="6" :sm="8">
<a-form-item label="部门">
<j-select-depart v-model="queryParam.departIds" :multi="true" :treeOpera="true" :trigger-change="true" ></j-select-depart>
<j-select-depart v-model="queryParam.departIds" :multi="true" :checkStrictly="false" :treeOpera="true" :trigger-change="true" ></j-select-depart>
</a-form-item>
</a-col>
<!-- <a-row :gutter="24">-->

Loading…
Cancel
Save