湖南公安
This commit is contained in:
@@ -48,6 +48,9 @@ export default {
|
||||
},
|
||||
nodeKey() {
|
||||
return this.$route.query.nodeKey || "idNumber"
|
||||
},
|
||||
isRequire() {
|
||||
return this.$route.query.isRequire || 1
|
||||
}
|
||||
},
|
||||
onLoad(query) {
|
||||
@@ -86,12 +89,15 @@ export default {
|
||||
checkList.push(item)
|
||||
}
|
||||
})
|
||||
|
||||
uni.navigateBack({
|
||||
success: () => {
|
||||
uni.$emit("pagePicker:dept", checkList)
|
||||
}
|
||||
})
|
||||
if (!checkList.length && this.isRequire == 1) {
|
||||
return this.$u.toast('请先选择部门')
|
||||
} else {
|
||||
uni.navigateBack({
|
||||
success: () => {
|
||||
uni.$emit("pagePicker:dept", checkList)
|
||||
}
|
||||
})
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
@@ -51,7 +51,10 @@ export default {
|
||||
},
|
||||
nodeKey() {
|
||||
return this.$route.query.nodeKey || "idNumber"
|
||||
}
|
||||
},
|
||||
isRequire() {
|
||||
return this.$route.query.isRequire || 1
|
||||
},
|
||||
},
|
||||
onLoad(query) {
|
||||
if (query.selected) {
|
||||
@@ -92,7 +95,7 @@ export default {
|
||||
checkList.push(item)
|
||||
}
|
||||
})
|
||||
if (!checkList.length) {
|
||||
if (!checkList.length && this.isRequire == 1) {
|
||||
return this.$u.toast('请先选择人员')
|
||||
} else {
|
||||
uni.navigateBack({
|
||||
|
||||
Reference in New Issue
Block a user