|
@@ -73,14 +73,14 @@
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
<div v-if="scope.row.id && editMessage.id!=scope.row.id">
|
|
|
- {{ scope.row.assoAccountId }}
|
|
|
+ <span v-if="scope.row.accountName">{{ scope.row.accountName + '('+ scope.row.accountUserName +')' }}</span>
|
|
|
</div>
|
|
|
<div v-else>
|
|
|
- <el-select style="width:100%" v-model="scope.row.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(scope.row.userName)"
|
|
|
+ <el-select style="width:100%" v-model="scope.row.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(scope.row.accountName)"
|
|
|
:popper-append-to-body="false" :remote-method="remoteMethodPerson" v-SelectLazyLoading="lazyLoadingPerson" :disabled="currentEditField && currentEditField!='assoAccountId'"
|
|
|
:loading="personnelList.loading">
|
|
|
- <el-option v-for="item in personnelList.data" :key="Number(item.id)" :label="item.name"
|
|
|
- :value="Number(item.id)"></el-option>
|
|
|
+ <el-option v-for="item in personnelList.data" :key="parseInt(item.id)" :label="item.name"
|
|
|
+ :value="parseInt(item.id)"></el-option>
|
|
|
</el-select>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -184,13 +184,16 @@ export default {
|
|
|
},
|
|
|
//编辑
|
|
|
edit(row){
|
|
|
- if(this.model != 'list' ){
|
|
|
- this.$message.warning('已有数据正在编辑,请先保存修改的数据')
|
|
|
- return
|
|
|
- }
|
|
|
- this.currentEditField = null
|
|
|
- this.model = 'edit'
|
|
|
+ if(this.model != 'list' ){
|
|
|
+ this.$message.warning('已有数据正在编辑,请先保存修改的数据')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ this.currentEditField = null
|
|
|
+ if(row.assoAccountId){
|
|
|
+ this.focusPerson(row.accountName)
|
|
|
+ }
|
|
|
this.editMessage = JSON.parse(JSON.stringify(row))
|
|
|
+ this.model = 'edit'
|
|
|
},
|
|
|
//移除配案人员
|
|
|
remove(row){
|
|
@@ -204,6 +207,7 @@ export default {
|
|
|
this.$message.success('移除成功')
|
|
|
this.loading = false
|
|
|
this.getList()
|
|
|
+ this.$emit('isUpdate',true)
|
|
|
this.IPREmailList={
|
|
|
queryParams:{
|
|
|
current:0,
|
|
@@ -225,7 +229,7 @@ export default {
|
|
|
if(this.model == 'add'){
|
|
|
this.tableData.splice(index,1)
|
|
|
}else{
|
|
|
- row = JSON.parse(JSON.stringify(this.editMessage))
|
|
|
+ this.$set(this.tableData,index,JSON.parse(JSON.stringify(this.editMessage)))
|
|
|
this.editMessage = {}
|
|
|
}
|
|
|
this.model = 'list'
|
|
@@ -261,6 +265,7 @@ export default {
|
|
|
if(row.id){
|
|
|
this.editMessage = {}
|
|
|
}
|
|
|
+ this.$emit('isUpdate',true)
|
|
|
}
|
|
|
}).catch(error=>{
|
|
|
this.loading = false
|
|
@@ -311,6 +316,10 @@ export default {
|
|
|
this.$set(row,'email',item.email)
|
|
|
this.$set(row,'iprPersonId',item.id)
|
|
|
this.$set(row,'assoAccountId',item.assoAccountId)
|
|
|
+ this.$set(row,'accountName',item.accountName)
|
|
|
+ if(item.assoAccountId){
|
|
|
+ this.focusPerson(item.accountName)
|
|
|
+ }
|
|
|
this.currentEditField = field
|
|
|
},
|
|
|
handleInput(){
|