Kaynağa Gözat

feat:外部联系人-主列表添加按照企业微信主体查询条件;

caoliqin 2 gün önce
ebeveyn
işleme
388aa62c0f
1 değiştirilmiş dosya ile 19 ekleme ve 1 silme
  1. 19 1
      src/views/qw/externalContact/index.vue

+ 19 - 1
src/views/qw/externalContact/index.vue

@@ -21,6 +21,16 @@
           />
         </el-select>
       </el-form-item>
+      <el-form-item label="企微主体" prop="corpId">
+        <el-select v-model="queryParams.corpId" placeholder="企微主体" size="small" clearable>
+          <el-option
+            v-for="corp in corpList"
+            :key="corp.corpId"
+            :label="corp.corpName"
+            :value="corp.corpId"
+          />
+        </el-select>
+      </el-form-item>
       <el-form-item label="企微微信" prop="companyUserName">
         <el-select v-model="queryParams.qwUserId" placeholder="企微微信"  size="small" clearable>
           <el-option
@@ -445,6 +455,7 @@ import {getAllUserlist} from "@/api/company/companyUser";
 import {getQwUserInfo} from "@/api/qw/qwUser";
 import { allListTagGroup} from "@/api/qw/tagGroup";
 import {searchTags,} from "@/api/qw/tag";
+import { allCorp } from "@/api/qw/qwCompany";
 import PaginationMore from '@/components/PaginationMore/index.vue'
 import externalContactInfo from "../externalContact/info";
 
@@ -570,6 +581,8 @@ export default {
         {dictLabel:"未绑定",dictValue:'noBindMini'},
       ],
       qwCompanyList:[],
+      // 企微主体列表
+      corpList: [],
       // 表单参数
       form: {},
       // 表单校验
@@ -613,6 +626,11 @@ export default {
       this.transferStatusOptions = response.data;
     });
 
+    // 企微主体列表
+    allCorp().then(response => {
+      this.corpList = response.data || [];
+    });
+
     //获取企业
     getCompanyList().then(response => {
       this.qwCompanyList = response.data;
@@ -755,7 +773,7 @@ export default {
     /** 重置按钮操作 */
     resetQuery() {
       this.resetForm("queryForm");
-      this.queryParams.corpId= this.qwCompanyList[0].dictValue;
+      this.queryParams.corpId = null;
       this.selectTags=[];
       this.queryParams.qwUserId = null;
       this.queryParams.sTime=null;