选择审核人

This commit is contained in:
shijingjing
2023-03-03 16:05:45 +08:00
parent 28687d9a01
commit c2dab52fa1
2 changed files with 13 additions and 6 deletions

View File

@@ -643,11 +643,15 @@ export default {
// 时间 // 时间
this.startTime = uni.getStorageSync('startTime') this.startTime = uni.getStorageSync('startTime')
this.endTime = uni.getStorageSync('endTime') this.endTime = uni.getStorageSync('endTime')
if(this.enableExamine==1) { uni.$on("pagePicker:custom", ()=> {
this.form.examines = uni.setStorageSync('selectDeptUser') this.form.examines = uni.getStorageSync('selectDeptUser').map(e=> {
} return {
...e,
examineUserId: e.id,
examineUserName: e.name
}
})
})
} }
} }
</script> </script>

View File

@@ -38,7 +38,7 @@
<script> <script>
export default { export default {
name: "selectDeptUser", name: "selectDeptUser",
appName: "选择部门/人员", appName: "选择人员",
data() { data() {
return { return {
selected: [], selected: [],
@@ -118,7 +118,10 @@ export default {
if(![this.selected].flat().length) { if(![this.selected].flat().length) {
return this.$u.toast('请选择审核人员') return this.$u.toast('请选择审核人员')
} }
uni.$emit("pagePicker:custom", [this.selected].flat())
uni.setStorageSync('selectDeptUser', [this.selected].flat()) uni.setStorageSync('selectDeptUser', [this.selected].flat())
uni.navigateBack()
}, },
} }
} }