有限空间作业
parent
b2d15258cb
commit
aa264a4c5c
|
@ -42,8 +42,8 @@ export default {
|
||||||
modelShow: true,
|
modelShow: true,
|
||||||
type: '',
|
type: '',
|
||||||
CORP_ID: '',
|
CORP_ID: '',
|
||||||
treeData:[],
|
treeData: [],
|
||||||
treeSelectData:[]
|
treeSelectData: []
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad(query) {
|
onLoad(query) {
|
||||||
|
@ -68,10 +68,14 @@ export default {
|
||||||
let resData = await getDepartmentTree({TYPE: this.type, CORP_ID})
|
let resData = await getDepartmentTree({TYPE: this.type, CORP_ID})
|
||||||
this.treeData = resData.tree.tree
|
this.treeData = resData.tree.tree
|
||||||
},
|
},
|
||||||
fnTreeChange(event){
|
fnTreeChange(event) {
|
||||||
this.treeSelectData = event
|
this.treeSelectData = event
|
||||||
},
|
},
|
||||||
fnTreeConfirm(){
|
fnTreeConfirm() {
|
||||||
|
if (this.treeSelectData.length === 0) {
|
||||||
|
uni.$u.toast('请选择部门')
|
||||||
|
return
|
||||||
|
}
|
||||||
this.getOpenerEventChannel().emit("confirm", {
|
this.getOpenerEventChannel().emit("confirm", {
|
||||||
DEPARTMENT_NAME: this.treeSelectData[0].DEPARTMENT_NAME,
|
DEPARTMENT_NAME: this.treeSelectData[0].DEPARTMENT_NAME,
|
||||||
DEPARTMENT_ID: this.treeSelectData[0].DEPARTMENT_ID,
|
DEPARTMENT_ID: this.treeSelectData[0].DEPARTMENT_ID,
|
||||||
|
|
Loading…
Reference in New Issue