zhuliu 7 months ago
parent
commit
4e5d31ce43

+ 4 - 1
src/views/report/InvalidResponse/components/IPREmail/components/dialog/addOrEditIPREmail.vue

@@ -13,7 +13,7 @@
             <el-input v-model="form.email" placeholder="请输入邮箱"></el-input>
         </el-form-item>
         <el-form-item label="关联账号:" prop="assoAccountId">
-          <el-select style="width:100%" v-model="form.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(form.accountName)"
+          <el-select style="width:100%" v-model="form.assoAccountId" placeholder="请选择账号" filterable remote 
             :popper-append-to-body="false" :remote-method="remoteMethodPerson" v-SelectLazyLoading="lazyLoadingPerson"
             :loading="personnelList.loading">
             <el-option v-for="item in personnelList.data" :key="parseInt(item.id)" :label="item.name"
@@ -114,6 +114,9 @@ export default {
         2:"代理所"
       }
       this.title = model=='add'?`添加${types[this.form.type]}邮箱`:`修改${types[this.form.type]}邮箱`
+      if(form.assoAccountId){
+        this.focusPerson(form.accountName)
+      }
       this.showDialog = true
     },
     //初始化数据

+ 4 - 1
src/views/report/components/dialog/components/handelPersonTable.vue

@@ -76,7 +76,7 @@
                             <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.accountName)"
+                            <el-select style="width:100%" v-model="scope.row.assoAccountId" placeholder="请选择账号" filterable remote
                                 :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="parseInt(item.id)" :label="item.name"
@@ -190,6 +190,9 @@ export default {
       }
       this.currentEditField = null
         this.model = 'edit'
+        if(row.assoAccountId){
+            this.focusPerson(row.accountName)
+        }
         this.editMessage = JSON.parse(JSON.stringify(row))
     },
     //移除配案人员