换人员组件

This commit is contained in:
shijingjing
2022-05-19 17:54:08 +08:00
parent e3f8916911
commit 05faf2db0d

View File

@@ -9,8 +9,11 @@
</div>
<div class="right">
<div style="display: flex" v-if="status == 1">
<input v-model="doUsername" placeholder="请选择转交对象" @click="toSelectUser" disabled style="display: inline-block;"/>
<u-icon name="arrow-right" color="#999" size="28"></u-icon>
<AiPagePicker type="party" @select="handlePartySelect" single :isFourParty="true">
<AiMore v-model="doUsername" placeholder="请选择"/>
</AiPagePicker>
<!-- <input v-model="doUsername" placeholder="请选择转交对象" @click="toSelectUser" disabled style="display: inline-block;"/>
<u-icon name="arrow-right" color="#999" size="28"></u-icon> -->
</div>
<div class="check_box" v-if="status == 2">
<div class="check-item" :class="auditStatus == '1' ? 'check-active' : '' " @click="auditStatus='1'">通过审核<img src="./components/img/check-icon.png" alt=""></div>
@@ -64,23 +67,30 @@ export default {
this.id = o.id
this.showPage = true
uni.$on('goback', (res) => {
this.selectUser = res
if(res.name) {
this.doUsername = res.name
this.wxUserId = res.id
}else{
this.doUsername = res.girdName
this.wxUserId = res.id
}
})
// uni.$on('goback', (res) => {
// this.selectUser = res
// if(res.name) {
// this.doUsername = res.name
// this.wxUserId = res.id
// }else{
// this.doUsername = res.girdName
// this.wxUserId = res.id
// }
// })
})
},
methods: {
// 选择转交对象
toSelectUser() {
uni.navigateTo({ url: './SelectUser' })
// 网格选择转交对象
// toSelectUser() {
// uni.navigateTo({ url: './SelectUser' })
// },
// 人员组件选择转交对象
handlePartySelect(e) {
this.wxUserId = e[0].id
this.doUsername = e[0].name
// this.getUserList()
},
submit() {