فهرست منبع

通讯录联系人删除调整

qymljy 1 سال پیش
والد
کامیت
6e39b9bc15

+ 30 - 118
src/HManagement/addressList/addressBook/detail/index.vue

@@ -6,9 +6,9 @@
       :mainAreaData="mainAreaData"
       :isGroup="false"
       :turnPageId="20220914135203"
-      :ownertable="mainData.groupname == '客户联系人'?'sys_enterprise_contacts':mainData.groupname == '项目联系人'?'sa_project_contacts':'sys_phonebook'"
-      :idname="mainData.groupname == '客户联系人'?'contactsid':mainData.groupname == '项目联系人'?'sa_project_contactsid':'sys_phonebookid'"
-      :ownerid="mainData.groupname == '客户联系人'?mainData.contactsid:mainData.groupname == '项目联系人'?mainData.sa_project_contactsid:$route.query.id"
+      :ownertable="'sys_phonebook'"
+      :idname="'sys_phonebookid'"
+      :ownerid="$route.query.id"
       :tabs="['详细信息','关联客户','关联项目']"
       :pageChange="true"
       @teamList="teamList"
@@ -67,35 +67,6 @@ export default {
   },
   watch:{
     async teamData(val){
-      /*if (this.mainData.groupname == '客户联系人'){
-        this.ownertable = 'sys_enterprise_contacts'
-        this.idname = "contactsid"
-      }else if (this.mainData.groupname == '客户联系人'){
-        this.ownertable = 'sa_project_contacts'
-        this.idname = "sa_project_contactsid"
-      }else {
-        this.ownertable = 'sys_phonebook'
-        this.idname = "sys_phonebookid"
-      }*/
-      if (this.mainData.groupname == '客户联系人'){
-        const agent = await this.$api.requested({
-          "id":20230329122604,
-          "content": {
-            "ownertable":"sys_enterprise_contacts",
-            "ownerid":this.mainData.contactsid
-          }
-        })
-        this.agentData = agent.data
-      }else if (this.mainData.groupname == '项目联系人'){
-        const agent = await this.$api.requested({
-          "id":20230329122604,
-          "content": {
-            "ownertable":"sa_project_contacts",
-            "ownerid":this.mainData.sa_project_contactsid
-          }
-        })
-        this.agentData = agent.data
-      }else {
         const agent = await this.$api.requested({
           "id":20230329122604,
           "content": {
@@ -104,7 +75,6 @@ export default {
           }
         })
         this.agentData = agent.data
-      }
       if (this.mainData.leader.length !== 0){
         if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
 
@@ -149,13 +119,13 @@ export default {
       this.mainData = Object.assign({},this.mainData,res.data)
       console.log(res.data.groupname,'groupname')
       if (res.data.groupname == '客户联系人'){
-        this.$refs.detailsRef.$refs.group.queryGroupNew('sys_enterprise_contacts',res.data.contactsid)
-        this.$refs.detailsRef.$refs.task.listDataNew('sys_enterprise_contacts',res.data.contactsid)
-        this.$refs.detailsRef.$refs.follow.queryLogsNew('sys_enterprise_contacts',res.data.contactsid)
+        this.$refs.detailsRef.$refs.group.queryGroupNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.task.listDataNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.follow.queryLogsNew('sys_phonebook',res.data.sys_phonebookid)
       }else if (res.data.groupname == '项目联系人'){
-        this.$refs.detailsRef.$refs.group.queryGroupNew('sa_project_contacts',res.data.sa_project_contactsid)
-        this.$refs.detailsRef.$refs.task.listDataNew('sa_project_contacts',res.data.sa_project_contactsid)
-        this.$refs.detailsRef.$refs.follow.queryLogsNew('sa_project_contacts',res.data.sa_project_contactsid)
+        this.$refs.detailsRef.$refs.group.queryGroupNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.task.listDataNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.follow.queryLogsNew('sys_phonebook',res.data.sys_phonebookid)
       }else {
         this.$refs.detailsRef.$refs.group.queryGroupNew('sys_phonebook',res.data.sys_phonebookid)
         this.$refs.detailsRef.$refs.task.listDataNew('sys_phonebook',res.data.sys_phonebookid)
@@ -221,86 +191,28 @@ export default {
       this.tagList = res.data.option
     },
     onDel(){
-
-
-      if (this.mainData.groupname === '客户联系人'){
-        this.$confirm('是否确认删除当前客户的联系人?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          closeOnClickModal:false,
-          type: 'warning'
-        }).then(async () => {
-          const res = await this.$api.requested({
-            "id": "20221018145502",
-            "content": {
-              "contactsid":this.mainData.contactsid,
-              "ownerid":this.mainData.sa_customersid,
-              "ownertable":"sa_customers",
-              "sys_enterpriseid":this.mainData.sys_enterpriseid
-            }
-          })
-          this.tool.showMessage(res,()=>{
-            this.$store.dispatch('changeDetailDrawer',false)
-            this.$emit('delSuccess')
-          })
-        }).catch(() => {
-          this.$message({
-            type: 'info',
-            message: '已取消删除'
-          });
-        });
-      }else if (this.mainData.groupname === '项目联系人') {
-        this.$confirm('是否确认删除当前项目的联系人?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          closeOnClickModal:false,
-          type: 'warning'
-        }).then(async () => {
-
-          const  res = await this.$api.requested({
-            "id": "20221111130904",
-            "content": {
-              "ownerid":this.mainData.sa_projectid,
-              "ownertable":"sa_project",
-              "sa_project_contactsids":[this.mainData.sa_project_contactsid]
-            }
-          })
-          this.tool.showMessage(res,()=>{
-            this.$store.dispatch('changeDetailDrawer',false)
-            this.$emit('delSuccess')
-          })
-        }).catch(() => {
-          this.$message({
-            type: 'info',
-            message: '已取消删除'
-          });
-        });
-      }else {
-        this.$confirm('是否确认删除当前联系人?', '提示', {
-          confirmButtonText: '确定',
-          cancelButtonText: '取消',
-          closeOnClickModal:false,
-          type: 'warning'
-        }).then(async () => {
-
-          const  res = await this.$api.requested({
-            "id": "20220831164703",
-            "content": {
-              "sys_phonebookid":this.mainData.sys_phonebookid
-            }
-          })
-          this.tool.showMessage(res,()=>{
-            this.$store.dispatch('changeDetailDrawer',false)
-            this.$emit('delSuccess')
-          })
-        }).catch(() => {
-          this.$message({
-            type: 'info',
-            message: '已取消删除'
-          });
+      this.$confirm('是否确认删除当前联系人?', '提示', {
+        confirmButtonText: '确定',
+        cancelButtonText: '取消',
+        closeOnClickModal:false,
+        type: 'warning'
+      }).then(async () => {
+        const res = await this.$api.requested({
+          "id": "20220831164703",
+          "content": {
+            "sys_phonebookid":this.$route.query.id,
+          }
+        })
+        this.tool.showMessage(res,()=>{
+          this.$store.dispatch('changeDetailDrawer',false)
+          this.$emit('delSuccess')
+        })
+      }).catch(() => {
+        this.$message({
+          type: 'info',
+          message: '已取消删除'
         });
-      }
-
+      });
     },
     // 监听切换数据,上一页,下一页
     pageChange(id,rowindex){

+ 321 - 0
src/HManagement/addressList/addressBook/detail/indexCopy1.vue

@@ -0,0 +1,321 @@
+<template>
+  <basicDetails
+      ref="detailsRef"
+      :titleText="mainData.name"
+      :editData="mainData"
+      :mainAreaData="mainAreaData"
+      :isGroup="false"
+      :turnPageId="20220914135203"
+      :ownertable="mainData.groupname == '客户联系人'?'sys_enterprise_contacts':mainData.groupname == '项目联系人'?'sa_project_contacts':'sys_phonebook'"
+      :idname="mainData.groupname == '客户联系人'?'contactsid':mainData.groupname == '项目联系人'?'sa_project_contactsid':'sys_phonebookid'"
+      :ownerid="mainData.groupname == '客户联系人'?mainData.contactsid:mainData.groupname == '项目联系人'?mainData.sa_project_contactsid:$route.query.id"
+      :tabs="['详细信息','关联客户','关联项目']"
+      :pageChange="true"
+      @teamList="teamList"
+      >
+    <template slot="customOperation">
+      <edit class="inline-16" v-if="tool.checkAuth($route.name,'update')" :data="mainData" :group="group" :tagList="tagList" :disabled="mainData.disabled"  @onEditSuccess="queryMainData();$refs.detailsRef.$refs.tag.queryTag()"></edit>
+      <el-button class="inline-16" v-if="tool.checkAuth($route.name,'delete')"  :type="!mainData.disabled?'':'primary'" size="mini"  @click="onDel" :disabled="!mainData.disabled">删 除</el-button>
+    </template>
+    <div slot="slot0">
+      <detailed :detailData="mainData"></detailed>
+    </div>
+    <div slot="slot1">
+      <customerData :data="mainData"></customerData>
+    </div>
+    <div slot="slot2">
+      <projectData :data="mainData"></projectData>
+    </div>
+  </basicDetails>
+</template>
+
+<script>
+import detailed from '../modules/detailsData'
+import customerData from '../modules/customerData'
+import projectData from '../modules/projectData'
+import basicDetails from '@/components/normal-basic-layout-new/details/index'
+import edit from '../modules/edit'
+import {mapGetters} from "vuex";
+export default {
+  name: "index",
+  components:{detailed,customerData,projectData,edit,basicDetails},
+  data(){
+    return {
+      mainData: {
+        disabled:false,
+      },
+      mainAreaData:'',
+      groupParam:{
+        "id": "20220831164303",
+        "content": {
+          "nocache":true,
+          "where":{
+            "condition":"",
+            "groupname":"",
+            "tag":[]
+          }
+        }
+      },
+      group:[],
+      tagList:[],
+      teamData:[],
+      userInfo:JSON.parse(window.sessionStorage.getItem('active_account')),
+      agentData:[],
+      ownertable:'',
+      idname:''
+    }
+  },
+  watch:{
+    async teamData(val){
+      /*if (this.mainData.groupname == '客户联系人'){
+        this.ownertable = 'sys_enterprise_contacts'
+        this.idname = "contactsid"
+      }else if (this.mainData.groupname == '客户联系人'){
+        this.ownertable = 'sa_project_contacts'
+        this.idname = "sa_project_contactsid"
+      }else {
+        this.ownertable = 'sys_phonebook'
+        this.idname = "sys_phonebookid"
+      }*/
+      if (this.mainData.groupname == '客户联系人'){
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sys_enterprise_contacts",
+            "ownerid":this.mainData.contactsid
+          }
+        })
+        this.agentData = agent.data
+      }else if (this.mainData.groupname == '项目联系人'){
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sa_project_contacts",
+            "ownerid":this.mainData.sa_project_contactsid
+          }
+        })
+        this.agentData = agent.data
+      }else {
+        const agent = await this.$api.requested({
+          "id":20230329122604,
+          "content": {
+            "ownertable":"sys_phonebook",
+            "ownerid":this.$route.query.id
+          }
+        })
+        this.agentData = agent.data
+      }
+      if (this.mainData.leader.length !== 0){
+        if (JSON.parse(window.sessionStorage.getItem('active_account')).userid === this.mainData.leader[0].userid){
+
+          this.mainData.disabled = true
+        }else {
+          let flag = 0
+          for (var i=0;i<val[0].team.length;i++){
+            if (val[0].team[i].userid === JSON.parse(window.sessionStorage.getItem('active_account')).userid){
+              if (val[0].team[i].editable === 1){
+                this.mainData.disabled = true
+                flag =1
+                break
+              }else {
+                flag = 0
+                break
+              }
+            }
+          }
+
+          flag === 0?this.agentData.editable === 0?this.mainData.disabled = false:this.mainData.disabled = true:this.mainData.disabled = true
+          this.$refs.detailsRef.$refs.group.editdataleader = this.agentData.editdataleader
+        }
+        console.log(this.mainData.disabled,'权限结果')
+      }
+    },
+  },
+  methods:{
+    async teamList(val){
+      this.teamData = val
+    },
+    async queryMainData(){
+      const res = await this.$api.requested({
+        "id": "20220914135203",
+        "content": {
+          "sys_phonebookid": this.$route.query.id,
+          /*"sa_project_contactsid": this.$route.query.sa_project_contactsid,*/
+          /*"contactsid":this.$route.query.contactsid*/
+          "groupname":this.$route.query.groupname
+        },
+      })
+      console.log(res.data,'res返回数据')
+      this.mainData = Object.assign({},this.mainData,res.data)
+      console.log(res.data.groupname,'groupname')
+      if (res.data.groupname == '客户联系人'){
+        this.$refs.detailsRef.$refs.group.queryGroupNew('sys_enterprise_contacts',res.data.contactsid)
+        this.$refs.detailsRef.$refs.task.listDataNew('sys_enterprise_contacts',res.data.contactsid)
+        this.$refs.detailsRef.$refs.follow.queryLogsNew('sys_enterprise_contacts',res.data.contactsid)
+      }else if (res.data.groupname == '项目联系人'){
+        this.$refs.detailsRef.$refs.group.queryGroupNew('sa_project_contacts',res.data.sa_project_contactsid)
+        this.$refs.detailsRef.$refs.task.listDataNew('sa_project_contacts',res.data.sa_project_contactsid)
+        this.$refs.detailsRef.$refs.follow.queryLogsNew('sa_project_contacts',res.data.sa_project_contactsid)
+      }else {
+        this.$refs.detailsRef.$refs.group.queryGroupNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.task.listDataNew('sys_phonebook',res.data.sys_phonebookid)
+        this.$refs.detailsRef.$refs.follow.queryLogsNew('sys_phonebook',res.data.sys_phonebookid)
+      }
+      this.changeDataStructure()
+    },
+    changeDataStructure () {
+      this.mainAreaData = [
+        {
+          label:'姓名',
+          value: this.mainData.name
+        },
+        {
+          label:'联系方式',
+          value: this.mainData.phonenumber
+        },
+        {
+          label:'分级',
+          value: this.mainData.grade
+        },
+        {
+          label:'单位',
+          value: this.mainData.company
+        },
+        {
+          label:'部门',
+          value: this.mainData.depname
+        },
+        {
+          label:'职位',
+          value: this.mainData.position
+        },
+        {
+          label:'群组',
+          value: this.mainData.groupname
+        },
+        {
+          label:'负责人',
+          value: this.mainData.leader
+        }
+      ]
+    },
+    async groupList(){
+      const res = await this.$api.requested(this.groupParam)
+      let k = 0
+      for (var i=0;i<res.data.length;i++){
+        if (res.data[i].groupname !== '项目联系人' && res.data[i].groupname !== '客户联系人' ){
+          this.group[k] = res.data[i]
+          k++
+        }
+      }
+      console.log(this.group,'groupList')
+    },
+    async getTagList () {
+      let res = await this.$api.requested({
+        "id": 20220929085401,
+        "content": {
+          "ownertable":"sys_phonebook",
+          "ownerid":102
+        }
+      })
+      this.tagList = res.data.option
+    },
+    onDel(){
+
+
+      if (this.mainData.groupname === '客户联系人'){
+        this.$confirm('是否确认删除当前客户的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+          const res = await this.$api.requested({
+            "id": "20221018145502",
+            "content": {
+              "contactsid":this.mainData.contactsid,
+              "ownerid":this.mainData.sa_customersid,
+              "ownertable":"sa_customers",
+              "sys_enterpriseid":this.mainData.sys_enterpriseid
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }else if (this.mainData.groupname === '项目联系人') {
+        this.$confirm('是否确认删除当前项目的联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const  res = await this.$api.requested({
+            "id": "20221111130904",
+            "content": {
+              "ownerid":this.mainData.sa_projectid,
+              "ownertable":"sa_project",
+              "sa_project_contactsids":[this.mainData.sa_project_contactsid]
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }else {
+        this.$confirm('是否确认删除当前联系人?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          closeOnClickModal:false,
+          type: 'warning'
+        }).then(async () => {
+
+          const  res = await this.$api.requested({
+            "id": "20220831164703",
+            "content": {
+              "sys_phonebookid":this.mainData.sys_phonebookid
+            }
+          })
+          this.tool.showMessage(res,()=>{
+            this.$store.dispatch('changeDetailDrawer',false)
+            this.$emit('delSuccess')
+          })
+        }).catch(() => {
+          this.$message({
+            type: 'info',
+            message: '已取消删除'
+          });
+        });
+      }
+
+    },
+    // 监听切换数据,上一页,下一页
+    pageChange(id,rowindex){
+      this.$router.replace({path:'/phonebookDetail',query:{id:id,contactsid:this.$route.query.contactsid,sa_project_contactsid:this.$route.query.sa_project_contactsid,rowindex:rowindex,portrait:''}})
+      this.queryMainData(id)
+    }
+  },
+  mounted() {
+    this.groupList()
+    this.getTagList()
+    this.queryMainData()
+  }
+}
+</script>
+
+<style scoped>
+
+</style>

+ 2 - 4
src/components/normal-basic-layout-new/details/modules/followUp/followUp.vue

@@ -170,8 +170,8 @@ export default {
         }
       })
       this.logList = res.data
-      console.log(this.logList,'跟进数据')
-      console.log(this.logList.length,'数据')
+     /* console.log(this.logList,'跟进数据')
+      console.log(this.logList.length,'数据')*/
     },
     async queryLogsNew(ownertable,ownerid) {
       this.owneridNew = ownerid
@@ -184,8 +184,6 @@ export default {
         }
       })
       this.logList = res.data
-      console.log(this.logList,'跟进数据')
-      console.log(this.logList.length,'数据')
     },
     async deleteLogs (val) {
       const res = await this.$api.requested({

+ 2 - 1
src/components/normal-basic-layout/details/modules/followUp/addLog.vue

@@ -164,8 +164,9 @@ export default {
       this.dialogFormVisible = false
     },
     onSelect(row){
+      console.log(row,'row1111')
       this.selectTag = row
-      this.form.dataextend.contactsid = row.map(item=>item.contactsid)
+      this.form.dataextend.contactsid = row.map(item=>item.sys_phonebookid)
       this.$refs.form.validateField('dataextend.contactsid')
     },
     closeTag(row){

+ 1 - 1
src/components/normal-basic-layout/details/modules/followUp/editLog.vue

@@ -176,7 +176,7 @@ export default {
     },
     onSelect(row){
       this.selectTag = row
-      this.form.dataextend.contactsid = row.map(item=>item.contactsid)
+      this.form.dataextend.contactsid = row.map(item=>item.sys_phonebookid)
       this.$refs.form.validateField('dataextend.contactsid')
     },
     closeTag(row){

+ 1 - 1
src/template/projectChange/contactsList.vue

@@ -102,7 +102,7 @@ export default {
         this.tagParam.content.sys_systemtagid = '3'
         this.queryTags()
       }else if (this.$route.path === '/customerDetail' || this.$route.path === '/PublicCustomerDetail'){
-        this.param.id = 20221022165503
+        this.param.id = 20240531165504
         this.param.content.sa_customersid = this.$route.query.id
         this.tagParam.content.sys_systemtagid = '16'
         this.queryTags()

+ 144 - 0
src/template/projectChange/contactsListCopy.vue

@@ -0,0 +1,144 @@
+<template>
+  <div>
+    <el-popover
+        placement="top"
+        width="800"
+        trigger="click"
+        v-model="popoverShow"
+       >
+      <span style="margin-right: 10px">标签:</span>
+      <el-select v-model="param.content.where.tag" placeholder="请选择" size="small" clearable  @change="listData(param.content.pageNumber = 1)" class="inline-16">
+        <el-option
+            v-for="item in tagOptions"
+            :key="item.tag"
+            :label="item.tag"
+            :value="item.tag">
+        </el-option>
+      </el-select>
+      <el-input  style="width:200px;" placeholder="搜索" :suffix-icon="param.content.where.condition?param.content.where.condition.length > 0?'':'':'el-icon-search'" v-model="param.content.where.condition" @keyup.native.enter="listData(param.content.pageNumber = 1)" @clear="listData(param.content.pageNumber = 1)" size="small" class="input-with-select inline-16 layout_search__panel" clearable>
+      </el-input>
+      <el-button type="primary" size="small" @click="onSelect">确定</el-button>
+      <tableList ref="table" height="600px"  style="margin-top: 10px" :checkbox="true"   :layout="tablecols" :data="list" :opwidth="200" :custom="true" @selectionChange="selectionChange"
+      >
+        <template v-slot:customcol="scope">
+          <div v-if="scope.column.columnname === 'tag'">
+            <div v-if="scope.column.data.tag_sys.length > 0 || scope.column.data.tag.length > 0">
+              <div v-for="item in scope.column.data.tag_sys" :key="item.index"  style="float: left;margin-left: 5px;margin-bottom: 5px">
+                <el-tag  color="#3874F6" size="mini" type="primary" effect="dark">
+                  <span>{{item}}</span>
+                </el-tag>
+              </div>
+              <div v-for="item in scope.column.data.tag" :key="item.index"  style="float: left;margin-left: 5px;margin-bottom: 5px">
+                <el-tag color="#FA8C16" size="mini" type="warning" effect="dark">
+                  <span>{{item}}</span>
+                </el-tag>
+              </div>
+            </div>
+            <p v-else>--</p>
+          </div>
+          <p v-else>{{scope.column.data[scope.column.columnname]?scope.column.data[scope.column.columnname]:'--'}}</p>
+        </template>
+      </tableList>
+      <el-button slot="reference" style="float: left" @click="onShow" size="small" type="primary" icon="el-icon-plus">添加</el-button>
+    </el-popover>
+  </div>
+</template>
+
+<script>
+import tableList from '@/components/table/index5';
+export default {
+  name: "contactsList",
+  props:["selects","sys_enterpriseid"],
+  components:{tableList},
+  data(){
+    return {
+      popoverShow:false,
+      contactsname:[],
+      select:[],
+      tablecols:[],
+      list:[],
+      tagOptions:[],
+      tag:'',
+      total:0,
+      tagParam:{
+        "id": "20221013104401",
+        "content": {
+          "pageNumber": 1,
+          "pageSize": 999,
+          "sys_systemtagid":'',
+          "nocache":true,
+          "where": {
+            "condition": "",
+          }
+        }
+      },
+      param:{
+        "id": 20221111131004,
+        "content": {
+          "pageNumber": 1,
+          "pageSize": 999,
+          "sa_customersid":'',
+          "sa_projectid":'',
+          "nocache":true,
+          "where": {
+            "condition": "",
+            "tag":'',
+            "workaddress":0
+          }
+        }
+      },
+    }
+  },
+  methods:{
+    onShow(){
+      this.param.content.where.tag = ''
+      this.param.content.where.condtion = ''
+      this.listData()
+    },
+    async listData(){
+      if (this.$route.path === '/projectChangeDetail'){
+        this.param.id = 20221111131004
+        this.param.content.sa_projectid = this.$route.query.id
+        this.tagParam.content.sys_systemtagid = '3'
+        this.queryTags()
+      }else if (this.$route.path === '/customerDetail' || this.$route.path === '/PublicCustomerDetail'){
+        this.param.id = 20221022165503
+        this.param.content.sa_customersid = this.$route.query.id
+        this.tagParam.content.sys_systemtagid = '16'
+        this.queryTags()
+      }
+      const res = await this.$api.requested(this.param)
+      this.list = res.data
+      this.total = res.total
+      this.$nextTick(()=>{
+        for (var i=0;i<this.selects.length;i++){
+          for (var k=0;k<this.list.length;k++){
+            if (this.selects[i] === this.list[k].contactsid){
+              this.$refs.table.$refs.table.toggleRowSelection(this.list[k])
+              break
+            }
+          }
+        }
+      })
+    },
+    selectionChange(row){
+      this.select = row
+    },
+    onSelect(){
+      this.popoverShow = false
+      this.$emit('onSelect',this.select)
+    },
+    async queryTags(){
+      const res = await this.$api.requested(this.tagParam)
+      this.tagOptions = res.data
+      console.log(this.tagOptions,'111tag')
+    }
+  },
+  created() {
+    this.tablecols = this.tool.tabelCol(this.$route.name).followUpObjectTable.tablecols
+  }
+}
+</script>
+
+<style scoped>
+</style>