bug
This commit is contained in:
		| @@ -115,7 +115,7 @@ | |||||||
|                     :instance="instance" |                     :instance="instance" | ||||||
|                     @pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1"> |                     @pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1"> | ||||||
|                     <div class="userSelcet"> |                     <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> |                       <span v-else>部门</span> | ||||||
|                       <i class="el-icon-arrow-up"  v-if="!search1.deptartId"></i> |                       <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> |                       <i class="el-icon-circle-close" v-if="search1.deptartId" @click.stop="user1 = [], search1.deptartId = '', search1.current = 1, getMemberInfo()"></i> | ||||||
| @@ -213,6 +213,7 @@ | |||||||
|         fileList: [], |         fileList: [], | ||||||
|         info: {}, |         info: {}, | ||||||
|         content: '', |         content: '', | ||||||
|  |         name: '', | ||||||
|         currIndex: 0, |         currIndex: 0, | ||||||
|         colConfigs1: [ |         colConfigs1: [ | ||||||
|           { slot: 'user', label: '员工' }, |           { slot: 'user', label: '员工' }, | ||||||
| @@ -276,8 +277,10 @@ | |||||||
|  |  | ||||||
|       onUserChange (e, search) { |       onUserChange (e, search) { | ||||||
|         if (e.length) { |         if (e.length) { | ||||||
|  |           this.name = e[0].name | ||||||
|           this[search].deptartId = e[0].id |           this[search].deptartId = e[0].id | ||||||
|         } else { |         } else { | ||||||
|  |           this.name = '' | ||||||
|           this[search].deptartId = '' |           this[search].deptartId = '' | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
| @@ -103,7 +103,7 @@ | |||||||
|                     :instance="instance" |                     :instance="instance" | ||||||
|                     @pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1"> |                     @pick="e => onUserChange(e, 'search1')" :multiple="false" v-model="user1"> | ||||||
|                     <div class="userSelcet"> |                     <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> |                       <span v-else>部门</span> | ||||||
|                       <i class="el-icon-arrow-up"  v-if="!search1.deptartId"></i> |                       <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> |                       <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, |         isDisabled: false, | ||||||
|         rejecterId: '', |         rejecterId: '', | ||||||
|         userNames: '', |         userNames: '', | ||||||
|         isLoading: false |         isLoading: false, | ||||||
|  |         name: '' | ||||||
|       } |       } | ||||||
|     }, |     }, | ||||||
|  |  | ||||||
| @@ -257,8 +258,10 @@ | |||||||
|  |  | ||||||
|       onUserChange (e, search) { |       onUserChange (e, search) { | ||||||
|         if (e.length) { |         if (e.length) { | ||||||
|  |           this.name = e[0].name | ||||||
|           this[search].deptartId = e[0].id |           this[search].deptartId = e[0].id | ||||||
|         } else { |         } else { | ||||||
|  |           this.name = '' | ||||||
|           this[search].deptartId = '' |           this[search].deptartId = '' | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user