This commit is contained in:
yanran200730
2023-03-03 16:41:44 +08:00
parent 413219ac7a
commit c87cff02f7
2 changed files with 9 additions and 3 deletions

View File

@@ -103,7 +103,7 @@
:instance="instance"
@pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1">
<div class="userSelcet">
<span style="color: #606266;" v-if="search1.deptartId"><ai-open-data type="departmentName" :openid="search1.deptartId"></ai-open-data></span>
<span style="color: #606266;" v-if="search1.deptartId">{{ name }}</span>
<span v-else>部门</span>
<i class="el-icon-arrow-up" v-if="!search1.deptartId"></i>
<i class="el-icon-circle-close" v-if="search1.deptartId" @click.stop="user1 = [], search1.deptartId = '', search1.current = 1, getMemberInfo()"></i>
@@ -212,7 +212,8 @@
isDisabled: false,
rejecterId: '',
userNames: '',
isLoading: false
isLoading: false,
name: ''
}
},
@@ -257,8 +258,10 @@
onUserChange (e, search) {
if (e.length) {
this.name = e[0].name
this[search].deptartId = e[0].id
} else {
this.name = ''
this[search].deptartId = ''
}