소스 검색

韶音新需求

zhuliu 7 달 전
부모
커밋
ddfdb024b5

+ 51 - 0
src/utils/personLazy.js

@@ -0,0 +1,51 @@
+export default {
+    data() {
+        return {
+            //人员列表懒加载
+            personnelList: {
+                queryParams: {
+                current: 1,
+                size: 10
+                },
+                data: []
+            },
+        }
+    },
+    methods: {
+        /**
+         * 人员
+         */
+        // 人员列表远程搜索
+        remoteMethodPerson(query) {
+            this.personnelList.data = []
+            this.personnelList.queryParams.current = 1
+            this.personnelList.queryParams.name = query
+            this.getPermissionPersonnel(1)
+        },
+        //获取焦点
+        focusPerson(value = ''){
+            if(this.personnelList.data && this.personnelList.data.length){
+            return
+            }
+            this.remoteMethodPerson(value||'')
+        },
+        // 获取所有人员列表懒加载
+        lazyLoadingPerson() {
+            if (this.personnelList.queryParams.current * this.personnelList.queryParams.size >= this.personnelList.queryParams.total) {
+            return false
+            }
+            this.personnelList.queryParams.current += 1
+            this.getPermissionPersonnel()
+        },
+        //获取所有人员列表(修改不要一次性获取,可以使用懒加载加远程搜索 )
+        async getPermissionPersonnel(type) {
+            this.personnelList.loading = true;
+            await this.$api.getPermissionPersonnel(this.personnelList.queryParams).then((response) => {
+            if (response.code == 200) {
+                this.personnelList.loading = false;
+                this.personnelList.data.push(...response.data)
+            }
+            })
+        },
+    },
+}

+ 15 - 2
src/views/report/InvalidResponse/components/IPREmail/IPREmail.vue

@@ -67,6 +67,10 @@ export default {
         addOrEditIPREmailDialog
     },
     props: {
+        type:{
+            type:[String,Number],
+            default:"1"
+        }
     },
     data() {
         return {
@@ -74,6 +78,7 @@ export default {
             queryParams:{
                 current:1,
                 size:10,
+                type:this.type,
                 ...defaultSearchForm,
             },
             total:0,
@@ -84,7 +89,12 @@ export default {
             }
         };
     },
-    watch: {},
+    watch: {
+        type(){
+            this.queryParams.type = this.type
+            this.handleCurrentChange(1)
+        },
+    },
     computed: {
         userinfo(){
             return this.$s.getObj('userinfo')
@@ -136,7 +146,10 @@ export default {
         },
         //添加IPR邮箱
         add(){
-            this.$refs.addOrEditIPREmailDialog.open({},'add')
+            let form = {
+                type:this.type
+            }
+            this.$refs.addOrEditIPREmailDialog.open(form,'add')
         },
         //编辑IPR邮箱
         edit(row){

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

@@ -2,6 +2,9 @@
   <div>
     <el-dialog  :title="title" :visible.sync="showDialog" width="600px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
       <el-form ref="form" :model="form" :rules="rules" label-position="left" label-width="120px">
+        <el-form-item label="报告类型:" prop="reportTypes">
+            <div>{{ getReportTypeNames() }}</div>
+        </el-form-item>
         <el-form-item label="姓名:" prop="name">
             <el-input v-model="form.name" placeholder="请输入姓名"></el-input>
         </el-form-item>
@@ -9,8 +12,13 @@
         <el-form-item label="邮箱:" prop="email">
             <el-input v-model="form.email" placeholder="请输入邮箱"></el-input>
         </el-form-item>
-        <el-form-item label="报告类型:" prop="reportTypes">
-            <div>{{ getReportTypeNames() }}</div>
+        <el-form-item label="关联账号:" prop="assoAccountId">
+          <el-select style="width:100%" v-model="form.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(form.userName)"
+            :popper-append-to-body="false" :remote-method="remoteMethodPerson" v-SelectLazyLoading="lazyLoadingPerson"
+            :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-select>
         </el-form-item>
         <el-form-item label="默认发送邮箱:" prop="ifDefault">
           <el-switch
@@ -21,6 +29,9 @@
               :inactive-value="false">
             </el-switch>
         </el-form-item>
+        <el-form-item label="备注:" prop="remark">
+            <el-input v-model="form.remark" placeholder="请输入备注"></el-input>
+        </el-form-item>
       </el-form>
       <span slot="footer" class="dialog-footer">
           <el-button size="small" @click="handleClose">取 消</el-button>
@@ -38,9 +49,11 @@ const defaultForm={
   ifDefault:false,
   reportTypes:[7],
 }
+import personLazy from '@/utils/personLazy'
 export default {
   components: {},
   props: {},
+  mixins:[personLazy],
   data() {
     return {
       form:{},
@@ -60,6 +73,7 @@ export default {
       showDialog:false,
       model:'add',
       btnLoading:false,
+      
     };
   },
   watch: {},
@@ -92,10 +106,14 @@ export default {
       }
       return names.join('、')
     },
-    open(form={},model='add'){
+    async open(form={},model='add'){
       this.initData(form)
       this.model = model
-      this.title = model=='add'?'添加IPR邮箱':'修改IPR邮箱'
+      let types = {
+        1:'IPR',
+        2:"代理所"
+      }
+      this.title = model=='add'?`添加${types[this.form.type]}邮箱`:`修改${types[this.form.type]}邮箱`
       this.showDialog = true
     },
     //初始化数据
@@ -134,6 +152,7 @@ export default {
           }
       });
     },
+   
   },
 };
 </script>

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

@@ -1,8 +1,12 @@
 <template>
   <div>
-    <el-dialog  title="IPR邮箱" :visible.sync="visible" width="1200px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
-      <div style="height:calc(100vh - 250px)">
-        <IPREmail v-if="visible"></IPREmail>
+    <el-dialog  title="联系邮箱" :visible.sync="visible" width="1200px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
+      <el-tabs v-model="activeName">
+        <el-tab-pane label="IPR邮箱" name="1"></el-tab-pane>
+        <el-tab-pane label="代理所邮箱" name="2"></el-tab-pane>
+      </el-tabs>
+      <div style="height:calc(100vh - 304px)">
+        <IPREmail v-if="visible" :type="activeName"></IPREmail>
       </div>
     </el-dialog>
   </div>
@@ -17,7 +21,8 @@ export default {
   props: {},
   data() {
     return {
-        visible:false
+        visible:false,
+        activeName:'1'
     };
   },
   watch: {},

+ 1 - 1
src/views/report/InvalidResponse/components/dialog/editFlowPath.vue

@@ -48,7 +48,7 @@
                     <el-input v-model="form.decisionKey" autocomplete="off" placeholder="请输入决定要点"></el-input>
                 </el-form-item>
                 <el-form-item label="无效结果" prop="cronIds">
-                  <el-checkbox-group v-model="form.cronIds">
+                  <el-checkbox-group v-model="form.cronIds" class="currentCheckbox">
                       <el-checkbox v-for="item in conclusion" :key="parseInt(item.value)" :label="parseInt(item.value)">{{
                       item.label }}</el-checkbox>
                   </el-checkbox-group>

+ 13 - 1
src/views/report/InvalidResponse/components/table/IPREmail.vue

@@ -47,10 +47,22 @@ const defaultColumnList = [
         }
     },
     {
+        field:'assoAccountId',
+        name:'账号',
+        ifSort:false,
+        width:'150px',
+        type:"string",
+    },
+    {
+        field:'remark',
+        name:'备注',
+        ifSort:false,
+    },
+    {
         field:'createName',
         name:'创建人',
         ifSort:false,
-        width:'150px',
+        width:'100px',
     },
     {
         field:'createTime',

+ 337 - 0
src/views/report/components/dialog/components/handelPersonTable.vue

@@ -0,0 +1,337 @@
+<template>
+    <div>
+        <div class="header">
+          <div class="title">{{title}}</div>
+          <el-button type="primary" size="small" @click="add">添加</el-button>
+        </div>
+        <el-table 
+            ref="table"
+            border
+            :data="tableData"
+            row-key="id"
+            style="width: 100%"
+            v-loading="loading">
+            <el-table-column prop="name" label="姓名" min-width="220">
+                <template slot-scope="scope">
+                    <div>
+                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
+                            {{ scope.row.name }}
+                        </div>
+                        <div v-else>
+                            <el-autocomplete
+                              style="width: 100%;"
+                                class="inline-input"
+                                v-model="scope.row.name"
+                                v-SelectLazyLoading="IPREmailLoad"
+                                :fetch-suggestions="querySearchByName"
+                                placeholder="请输入内容"
+                                @input="handleInput"
+                                @select="(item)=>handleSelect(item,scope.row,'name')"
+                                :disabled="currentEditField && currentEditField!='name'"
+                            >
+                            <template slot-scope="{ item }">
+                                <div style="padding: 5px 0;">
+                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.name }}</div>
+                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.email }}</div>
+                                </div>
+                              </template>
+                            </el-autocomplete>
+                        </div>
+                    </div>
+                </template>
+            </el-table-column>
+            <el-table-column prop="email" label="邮箱" min-width="220">
+                <template slot-scope="scope">
+                    <div>
+                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
+                            {{ scope.row.email }}
+                        </div>
+                        <div v-else>
+                            <el-autocomplete
+                              style="width: 100%;"
+                                class="inline-input"
+                                v-model="scope.row.email"
+                                v-SelectLazyLoading="IPREmailLoad"
+                                :fetch-suggestions="querySearchByEmail"
+                                placeholder="请输入内容"
+                                @input="handleInput"
+                                @select="(item)=>handleSelect(item,scope.row,'email')"
+                                :disabled="currentEditField && currentEditField!='email'"
+                            >
+                              <template slot-scope="{ item }">
+                                <div style="padding: 5px 0;">
+                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.email }}</div>
+                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.name }}</div>
+                                </div>
+                              </template>
+                            </el-autocomplete>
+                        </div>
+                    </div>
+                </template>
+            </el-table-column>
+            <el-table-column prop="email" label="账号" min-width="220">
+                <template slot-scope="scope">
+                    <div>
+                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
+                            {{ scope.row.assoAccountId }}
+                        </div>
+                        <div v-else>
+                            <el-select style="width:100%" v-model="scope.row.assoAccountId" placeholder="请选择账号" filterable remote @focus="focusPerson(scope.row.userName)"
+                                :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-select>
+                        </div>
+                    </div>
+                </template>
+            </el-table-column>
+            <el-table-column label="操作" width="180px">
+                <template slot-scope="scope">
+                    <div>
+                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
+                            <el-button type="text" size="small" @click="edit(scope.row)">修改</el-button>
+                            <el-button type="text" size="small" @click="remove(scope.row)">移除</el-button>
+                        </div>
+                        <div v-else>
+                            <el-button type="text" size="small" @click="save(scope.row)">保存</el-button>
+                            <el-button type="text" size="small" @click="cancel(scope.row,scope.$index)">取消</el-button>
+                        </div>
+                    </div>
+                </template>
+            </el-table-column>
+        </el-table>
+    </div>
+</template>
+
+<script>
+import personLazy from '@/utils/personLazy'
+export default {
+  components: {},
+  mixins:[personLazy],
+  props: {
+    reportId:{
+        type:[Number,String],
+        default:0
+    },
+    title:{
+        type:String,
+        default:'IPR'
+    },
+    type:{
+        type:[Number,String],
+        default:1
+    }
+  },
+  data() {
+    return {
+        model:'list',
+        IPREmailList:{
+            queryParams:{
+                current:0,
+                size:10,
+                total:1,
+                name:null,
+                email:null,
+                type:this.type
+            },
+            data:[]
+        },
+        editMessage:{},
+        tableData:[],
+        loading:false,
+        currentEditField:null
+    };
+  },
+  watch: {},
+  computed: {},
+  created() {},
+  mounted() {
+    this.init()
+  },
+  methods: {
+    init(){
+        this.editMessage = {}
+        this.getList()
+    },
+    getList(){
+      var params = {
+        reportId:this.reportId,
+        type:this.type
+      }
+      this.model = 'list'
+      this.loading = true
+      var api = 'matchCasePersonQuery'
+      this.$api[api](params).then(response=>{
+        if(response.code == 200){
+          this.tableData = response.data
+          this.loading = false
+        }
+      }).catch(error=>{
+          this.tableData = []
+          this.loading = false
+      })
+    },
+    //添加
+    add(){
+
+      if(this.model != 'list' ){
+        this.$message.warning('已有数据正在编辑,请先保存修改的数据')
+        return
+      }
+      this.currentEditField = null
+      this.tableData.push({})
+      this.model = 'add'
+    },
+    //编辑
+    edit(row){
+      if(this.model != 'list' ){
+        this.$message.warning('已有数据正在编辑,请先保存修改的数据')
+        return
+      }
+      this.currentEditField = null
+        this.model = 'edit'
+        this.editMessage = JSON.parse(JSON.stringify(row))
+    },
+    //移除配案人员
+    remove(row){
+      this.$confirm('确认删除选择的数据吗?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+      }).then(() => {
+          this.loading = true
+          this.$api.matchCasePersonDelete([row.id]).then(response => {
+              this.$message.success('移除成功')
+              this.loading = false
+              this.getList()
+              this.IPREmailList={
+                queryParams:{
+                  current:0,
+                  size:10,
+                  total:1,
+                  name:null,
+                  email:null,
+                  type:this.type
+                },
+                data:[]
+              }
+          }).catch(error => {
+              this.loading = false
+          })
+      })
+    },
+    //取消编辑
+    cancel(row,index){
+      if(this.model == 'add'){
+        this.tableData.splice(index,1)
+      }else{
+        row = JSON.parse(JSON.stringify(this.editMessage))
+        this.editMessage = {}
+      }
+      this.model = 'list'
+        
+    },
+    //保存
+    save(row){
+      if(!row.name){
+        this.$message.warning('姓名不能为空')
+        return
+      }
+      if(!row.email){
+        this.$message.warning('邮箱不能为空')
+        return
+      }
+      var regx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\.\-])+\.)+([a-zA-Z0-9]{2,4})+$/
+      if(!regx.test(row.email)){
+        this.$message.warning('邮箱格式不正确')
+        return
+      }
+      var a = '添加'
+      if(row.id){
+        a = '修改'
+      }
+      this.loading = true
+      row.reportId = this.reportId
+      this.$api.matchCasePersonUpdate(row).then(response=>{
+        if(response.code == 200){
+          this.$message.success(a+'成功')
+          this.loading = false
+          this.getList()
+          if(row.id){
+            this.editMessage = {}
+          }
+        }
+      }).catch(error=>{
+        this.loading = false
+      })
+    },
+
+     /**
+    * IPR邮箱
+    */
+    // 懒加载IPR邮箱方法
+    IPREmailLoad() {
+      if (this.IPREmailList.queryParams.current * this.IPREmailList.queryParams.size >= this.IPREmailList.queryParams.total) {
+        return false
+      }
+      this.IPREmailList.queryParams.current++
+      this.getIPREmailList()
+    },
+    // 查询IPR邮箱
+    async getIPREmailList() {
+      let params = {
+        ...this.IPREmailList.queryParams,
+      }
+      await this.$api.iprPersonQuery(params).then(res => {
+        if (res.code == 200) {
+          this.IPREmailList.data.push(...res.data.data)
+          this.IPREmailList.queryParams.total = res.data.total
+          this.IPREmailList.cb(this.IPREmailList.data);
+        }
+      })
+    },
+    //获取下拉建议IPR邮箱数据
+    async querySearchByEmail(queryString, cb) {
+      this.IPREmailList.queryParams.current = 1
+      this.IPREmailList.queryParams.email = queryString
+      this.IPREmailList.data = []
+      this.IPREmailList.cb = cb
+      await this.getIPREmailList()
+    },
+    async querySearchByName(queryString, cb) {
+      this.IPREmailList.queryParams.current = 1
+      this.IPREmailList.queryParams.name = queryString
+      this.IPREmailList.data = []
+      this.IPREmailList.cb = cb
+      await this.getIPREmailList()
+    },
+    handleSelect(item,row,field){
+        this.$set(row,'name',item.name)
+        this.$set(row,'email',item.email)
+        this.$set(row,'iprPersonId',item.id)
+        this.$set(row,'assoAccountId',item.assoAccountId)
+        this.currentEditField = field
+    },
+    handleInput(){
+        if(this.currentEditField){
+            this.currentEditField =null
+        }
+    },
+  },
+};
+</script>
+<style lang="scss" scoped>
+.header{
+  height: 50px;
+  display: flex;
+  align-items: center;
+  justify-content: space-between;
+  .title{
+    font-family: 微软雅黑;
+    color: var(--color1);
+    // font-weight: bold;
+    font-size: 22px;
+  }
+}
+</style>

+ 10 - 254
src/views/report/components/dialog/handlePerson.vue

@@ -1,117 +1,28 @@
 <template>
   <div>
-    <el-dialog  title="配案人员" :visible.sync="visible" width="800px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
+    <el-dialog  title="配案人员" :visible.sync="visible" width="1000px" :close-on-click-modal="false"  :before-close="handleClose" append-to-body>
       <div style="height:calc(100vh - 250px)">
-        <div class="header">
-          <el-button type="primary" size="small" @click="add">添加</el-button>
+        <handelPersonTable :reportId="reportId" title="IPR" :type="1"></handelPersonTable>
+        <div style="margin-top:25px">
+          <handelPersonTable :reportId="reportId" title="代理所" :type="2"></handelPersonTable>
         </div>
-        <el-table 
-            ref="table"
-            border
-            :data="tableData"
-            row-key="id"
-            style="width: 100%"
-            height="calc(100% - 50px)"
-            v-loading="loading">
-            <el-table-column prop="name" label="姓名" min-width="220">
-                <template slot-scope="scope">
-                    <div>
-                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
-                            {{ scope.row.name }}
-                        </div>
-                        <div v-else>
-                            <el-autocomplete
-                              style="width: 100%;"
-                                class="inline-input"
-                                v-model="scope.row.name"
-                                v-SelectLazyLoading="IPREmailLoad"
-                                :fetch-suggestions="querySearchByName"
-                                placeholder="请输入内容"
-                                @select="(item)=>handleSelect(item,scope.row)"
-                            >
-                            <template slot-scope="{ item }">
-                                <div style="padding: 5px 0;">
-                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.name }}</div>
-                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.email }}</div>
-                                </div>
-                              </template>
-                            </el-autocomplete>
-                        </div>
-                    </div>
-                </template>
-            </el-table-column>
-            <el-table-column prop="email" label="邮箱" min-width="220">
-                <template slot-scope="scope">
-                    <div>
-                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
-                            {{ scope.row.email }}
-                        </div>
-                        <div v-else>
-                            <el-autocomplete
-                              style="width: 100%;"
-                                class="inline-input"
-                                v-model="scope.row.email"
-                                v-SelectLazyLoading="IPREmailLoad"
-                                :fetch-suggestions="querySearchByEmail"
-                                placeholder="请输入内容"
-                                @select="(item)=>handleSelect(item,scope.row)"
-                            >
-                              <template slot-scope="{ item }">
-                                <div style="padding: 5px 0;">
-                                  <div style="text-overflow: ellipsis;overflow: hidden;line-height: normal;">{{ item.email }}</div>
-                                  <div style="font-size: 12px;color: #b4b4b4;line-height: normal;">{{ item.name }}</div>
-                                </div>
-                              </template>
-                            </el-autocomplete>
-                        </div>
-                    </div>
-                </template>
-            </el-table-column>
-            <el-table-column label="操作" width="180px">
-                <template slot-scope="scope">
-                    <div>
-                        <div v-if="scope.row.id  && editMessage.id!=scope.row.id">
-                            <el-button type="text" size="small" @click="edit(scope.row)">修改</el-button>
-                            <el-button type="text" size="small" @click="remove(scope.row)">移除</el-button>
-                        </div>
-                        <div v-else>
-                            <el-button type="text" size="small" @click="save(scope.row)">保存</el-button>
-                            <el-button type="text" size="small" @click="cancel(scope.row,scope.$index)">取消</el-button>
-                        </div>
-                    </div>
-                </template>
-            </el-table-column>
-        </el-table>
+        
       </div>
     </el-dialog>
   </div>
 </template>
 
 <script>
-
+import handelPersonTable from './components/handelPersonTable.vue';
 export default {
   components: {
-    
+    handelPersonTable
   },
   props: {},
   data() {
     return {
         visible:false,
-        tableData:[],
-        loading:false,
-        model:'list',
-        IPREmailList:{
-            queryParams:{
-                current:0,
-                size:10,
-                total:1,
-                name:null,
-                email:null
-            },
-            data:[]
-        },
-        editMessage:{},
-        reportId:null
+        reportId:null,
     };
   },
   watch: {},
@@ -121,170 +32,15 @@ export default {
   methods: {
     open(reportId){
       this.reportId =reportId
-      this.editMessage = {}
-      this.getList()
       this.visible = true
     },
-    getList(){
-      var params = {
-        reportId:this.reportId
-      }
-      this.model = 'list'
-      this.loading = true
-      var api = 'matchCasePersonQuery'
-      this.$api[api](params).then(response=>{
-        if(response.code == 200){
-          this.tableData = response.data
-          this.loading = false
-        }
-      }).catch(error=>{
-          this.tableData = []
-          this.loading = false
-      })
-    },
     handleClose(){
         this.visible = false
     },
-    //添加
-    add(){
-      this.tableData.push({})
-      this.model = 'add'
-    },
-    //编辑
-    edit(row){
-      if(this.model != 'list' ){
-        this.$message.warning('已有数据正在编辑,请先保存修改的数据')
-        return
-      }
-        this.model = 'edit'
-        this.editMessage = JSON.parse(JSON.stringify(row))
-    },
-    //移除配案人员
-    remove(row){
-      this.$confirm('确认删除选择的数据吗?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          type: 'warning'
-      }).then(() => {
-          this.loading = true
-          this.$api.matchCasePersonDelete([row.id]).then(response => {
-              this.$message.success('移除成功')
-              this.loading = false
-              this.getList()
-              this.IPREmailList={
-                queryParams:{
-                  current:0,
-                  size:10,
-                  total:1,
-                  name:null,
-                  email:null
-                },
-                data:[]
-              }
-          }).catch(error => {
-              this.loading = false
-          })
-      })
-    },
-    //取消编辑
-    cancel(row,index){
-      if(this.model == 'add'){
-        this.tableData.splice(index,1)
-        return
-      }else{
-        row = JSON.parse(JSON.stringify(this.editMessage))
-        this.editMessage = {}
-      }
-      this.model = 'list'
-        
-    },
-    //保存
-    save(row){
-      if(!row.name){
-        this.$message.warning('姓名不能为空')
-        return
-      }
-      if(!row.email){
-        this.$message.warning('邮箱不能为空')
-        return
-      }
-      var regx = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9_\.\-])+\.)+([a-zA-Z0-9]{2,4})+$/
-      if(!regx.test(row.email)){
-        this.$message.warning('邮箱格式不正确')
-        return
-      }
-      var a = '添加'
-      if(row.id){
-        a = '修改'
-      }
-      this.loading = true
-      row.reportId = this.reportId
-      this.$api.matchCasePersonUpdate(row).then(response=>{
-        if(response.code == 200){
-          this.$message.success(a+'成功')
-          this.loading = false
-          this.getList()
-          if(row.id){
-            this.editMessage = {}
-          }
-        }
-      }).catch(error=>{
-        this.loading = false
-      })
-    },
-
-     /**
-    * IPR邮箱
-    */
-    // 懒加载IPR邮箱方法
-    IPREmailLoad() {
-      if (this.IPREmailList.queryParams.current * this.IPREmailList.queryParams.size >= this.IPREmailList.queryParams.total) {
-        return false
-      }
-      this.IPREmailList.queryParams.current++
-      this.getIPREmailList()
-    },
-    // 查询IPR邮箱
-    async getIPREmailList() {
-      let params = {
-        ...this.IPREmailList.queryParams,
-      }
-      await this.$api.iprPersonQuery(params).then(res => {
-        if (res.code == 200) {
-          this.IPREmailList.data.push(...res.data.data)
-          this.IPREmailList.queryParams.total = res.data.total
-          this.IPREmailList.cb(this.IPREmailList.data);
-        }
-      })
-    },
-    //获取下拉建议IPR邮箱数据
-    async querySearchByEmail(queryString, cb) {
-      this.IPREmailList.queryParams.current = 1
-      this.IPREmailList.queryParams.email = queryString
-      this.IPREmailList.data = []
-      this.IPREmailList.cb = cb
-      await this.getIPREmailList()
-    },
-    async querySearchByName(queryString, cb) {
-      this.IPREmailList.queryParams.current = 1
-      this.IPREmailList.queryParams.name = queryString
-      this.IPREmailList.data = []
-      this.IPREmailList.cb = cb
-      await this.getIPREmailList()
-    },
-    handleSelect(item,row){
-        this.$set(row,'name',item.name)
-        this.$set(row,'email',item.email)
-        this.$set(row,'iprPersonId',item.id)
-    }
+    
   },
 };
 </script>
 <style lang="scss" scoped>
-.header{
-  height: 50px;
-  display: flex;
-  flex-direction: row-reverse;
-  align-items: center;
-}
+
 </style>