有限空间作业

八项作业
LiuJiaNan 2024-07-04 17:58:10 +08:00
parent b2d15258cb
commit aa264a4c5c
1 changed files with 8 additions and 4 deletions

View File

@ -72,6 +72,10 @@ export default {
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,