boss пре 2 недеља
родитељ
комит
c10eab9d6e
44 измењених фајлова са 149 додато и 87 уклоњено
  1. 27 0
      src/api/crm/customer.js
  2. 39 4
      src/api/fastGpt/fastgptPushTokenTotal.js
  3. 1 1
      src/views/fastGpt/fastGptPushTokenTotal/index.vue
  4. 2 2
      src/views/qw/aiSop/aiSop.vue
  5. 2 2
      src/views/qw/appContactWay/contactWay.vue
  6. 2 2
      src/views/qw/autoTags/dayPartingIndex.vue
  7. 2 2
      src/views/qw/autoTags/groupIndex.vue
  8. 2 2
      src/views/qw/contactWay/index.vue
  9. 2 2
      src/views/qw/externalContact/deptIndex.vue
  10. 2 2
      src/views/qw/externalContact/index.vue
  11. 2 2
      src/views/qw/externalContactLoss/deptLossIndex.vue
  12. 2 2
      src/views/qw/externalContactLoss/index.vue
  13. 2 2
      src/views/qw/externalContactTransfer/companyTransfer.vue
  14. 2 2
      src/views/qw/externalContactTransfer/deptTransferIndex.vue
  15. 2 2
      src/views/qw/externalContactTransfer/index.vue
  16. 2 2
      src/views/qw/externalContactTransfer/index旧.vue
  17. 2 2
      src/views/qw/externalContactTransferLog/deptTransferLogIndex.vue
  18. 2 2
      src/views/qw/externalContactTransferLog/index.vue
  19. 2 2
      src/views/qw/externalContactUnassigned/companyUnassigned.vue
  20. 2 2
      src/views/qw/externalContactUnassigned/deptUnassignedIndex.vue
  21. 2 2
      src/views/qw/externalContactUnassigned/index.vue
  22. 2 2
      src/views/qw/friendWelcome/deptFriendWelcome.vue
  23. 2 2
      src/views/qw/friendWelcome/indexNew.vue
  24. 2 2
      src/views/qw/friendWelcome/myIndexNew.vue
  25. 2 2
      src/views/qw/friendWelcome/myWelcome.vue
  26. 2 2
      src/views/qw/groupChat/deptGroupIndex.vue
  27. 2 2
      src/views/qw/groupChat/index.vue
  28. 2 2
      src/views/qw/groupChat/myGroupChat.vue
  29. 2 2
      src/views/qw/groupChatTransfer/index.vue
  30. 2 2
      src/views/qw/groupChatTransferLog/index.vue
  31. 2 2
      src/views/qw/groupChatTransferOnJob/index.vue
  32. 2 2
      src/views/qw/groupMsg/customerBaseMsg.vue
  33. 2 2
      src/views/qw/groupMsg/index.vue
  34. 2 2
      src/views/qw/material/index.vue
  35. 2 2
      src/views/qw/sop/aiChatSop.vue
  36. 2 2
      src/views/qw/sop/deptSop.vue
  37. 2 2
      src/views/qw/sop/mySop.vue
  38. 2 2
      src/views/qw/sop/sop.vue
  39. 2 2
      src/views/qw/tagGroup/index.vue
  40. 2 2
      src/views/qw/user/cuDeptIdIndex.vue
  41. 2 2
      src/views/qw/user/myIndex.vue
  42. 2 2
      src/views/qw/welcome/deptWelcomeIndex.vue
  43. 2 2
      src/views/qw/welcome/index.vue
  44. 2 2
      src/views/qw/welcome/myWelcome.vue

+ 27 - 0
src/api/crm/customer.js

@@ -196,3 +196,30 @@ export function getMyAssistList(query) {
     params: query
   })
 }
+
+// 分配协作者
+export function assistToUser(data) {
+  return request({
+    url: '/crm/customer/assistToUser',
+    method: 'post',
+    data: data
+  })
+}
+
+// 根据客户ID列表查询协作者信息
+export function selectByCustomerIds(customerIds) {
+  return request({
+    url: '/crm/assist/selectByCustomerIds',
+    method: 'post',
+    data: customerIds
+  })
+}
+
+// 批量协作者操作
+export function allOperation(operations) {
+  return request({
+    url: '/crm/assist/allOperation',
+    method: 'post',
+    data: operations
+  })
+}

+ 39 - 4
src/api/fastGpt/fastgptPushTokenTotal.js

@@ -1,17 +1,52 @@
 import request from '@/utils/request'
 
-export function getFastGptPushTokenTotal(query) {
+// 查询列表
+export function listFastgptFastgptpushtokentotal(query) {
   return request({
-    url: '/qw/qwPushCount/tokenList',
+    url: '/fastGpt/fastGptPushTokenTotal/list',
     method: 'get',
     params: query
   })
 }
 
+// 查询详细
+export function getFastgptFastgptpushtokentotal(id) {
+  return request({
+    url: '/fastGpt/fastGptPushTokenTotal/' + id,
+    method: 'get'
+  })
+}
+
+// 新增
+export function addFastgptFastgptpushtokentotal(data) {
+  return request({
+    url: '/fastGpt/fastGptPushTokenTotal',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改
+export function updateFastgptFastgptpushtokentotal(data) {
+  return request({
+    url: '/fastGpt/fastGptPushTokenTotal',
+    method: 'put',
+    data: data
+  })
+}
+
+// 删除
+export function delFastgptFastgptpushtokentotal(id) {
+  return request({
+    url: '/fastGpt/fastGptPushTokenTotal/' + id,
+    method: 'delete'
+  })
+}
 
-export function getFastGptPushTokenDeptTotal(query) {
+// 导出
+export function exportFastgptFastgptpushtokentotal(query) {
   return request({
-    url: '/qw/qwPushCount/tokenListDept',
+    url: '/fastGpt/fastGptPushTokenTotal/export',
     method: 'get',
     params: query
   })

+ 1 - 1
src/views/fastGpt/fastGptPushTokenTotal/index.vue

@@ -43,7 +43,7 @@
 </template>
 
 <script>
-import { listFastgptFastgptpushtokentotal, getFastgptFastgptpushtokentotal, delFastgptFastgptpushtokentotal, addFastgptFastgptpushtokentotal, updateFastgptFastgptpushtokentotal, exportFastgptFastgptpushtokentotal } from "@/api/fastGpt/fastGptPushTokenTotal";
+import { listFastgptFastgptpushtokentotal, getFastgptFastgptpushtokentotal, delFastgptFastgptpushtokentotal, addFastgptFastgptpushtokentotal, updateFastgptFastgptpushtokentotal, exportFastgptFastgptpushtokentotal } from "@/api/fastGpt/fastgptPushTokenTotal";
 
 export default {
   name: "FastgptFastgptpushtokentotal",

+ 2 - 2
src/views/qw/aiSop/aiSop.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
         <el-form-item label="企微公司" prop="corpId">
@@ -431,7 +431,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           this.refreshData(this.queryParams.corpId);
           this.getList();

+ 2 - 2
src/views/qw/appContactWay/contactWay.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -166,7 +166,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           getQwAllUserList(this.queryParams.corpId).then(response => {
               this.companyUserList = response.data;

+ 2 - 2
src/views/qw/autoTags/dayPartingIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
       <el-form-item label="企微公司" prop="corpId">
@@ -558,7 +558,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if(this.myQwCompanyList!=null){
+      if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
         this.queryParams.corpId=this.myQwCompanyList[0].dictValue
 
         this.afreshData(this.queryParams.corpId);

+ 2 - 2
src/views/qw/autoTags/groupIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-tabs v-model="activeName" style="background-color: #fff;" @tab-click="handleClick" type="card">
 <!--      <el-tab-pane label="关键词打标签" name="1"></el-tab-pane>-->
@@ -367,7 +367,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
 
               this.afreshData(this.queryParams.corpId)

+ 2 - 2
src/views/qw/contactWay/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div >
     <div style="padding: 10px">
       <div style="border-bottom: 1px solid #e6e6e6;background-color: white; display: flex;justify-content: left;padding-top: 20px;">
@@ -883,7 +883,7 @@ export default {
 	  });
     getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           setTimeout(() => {
             this.$refs.contactWayGroup.getDetails(this.queryParams.corpId);

+ 2 - 2
src/views/qw/externalContact/deptIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
       <el-form-item label="企微公司" prop="corpId">
@@ -1156,7 +1156,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if(this.myQwCompanyList!=null){
+      if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
         this.queryParams.corpId=this.myQwCompanyList[0].dictValue
 
         var listTagFrom={corpId:this.queryParams.corpId}

+ 2 - 2
src/views/qw/externalContact/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
       <el-form-item label="企微公司" prop="corpId">
@@ -1296,7 +1296,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
 
               var listTagFrom={corpId:this.queryParams.corpId}

+ 2 - 2
src/views/qw/externalContactLoss/deptLossIndex.vue

@@ -1,4 +1,4 @@
-deptLossIndex<template>
+deptLossIndex<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="80px">
       <el-form-item label="企微公司" prop="corpId">
@@ -273,7 +273,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/externalContactLoss/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="企微员工账号" prop="userId">
@@ -282,7 +282,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/externalContactTransfer/companyTransfer.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
       <el-form-item label="企微公司" prop="corpId">
@@ -374,7 +374,7 @@ export default {
     getQwCompanyList() {
       getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           listTag({corpId:this.queryParams.corpId}).then(response => {
             this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactTransfer/deptTransferIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
 
@@ -357,7 +357,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
               listTag({corpId:this.queryParams.corpId}).then(response => {
                 this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactTransfer/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
 
@@ -381,7 +381,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
               listTag({corpId:this.queryParams.corpId}).then(response => {
                 this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactTransfer/index旧.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
 
@@ -349,7 +349,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
               listTag({corpId:this.queryParams.corpId}).then(response => {
                 this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactTransferLog/deptTransferLogIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -194,7 +194,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/externalContactTransferLog/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -195,7 +195,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/externalContactUnassigned/companyUnassigned.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
       <el-form-item label="企微公司" prop="corpId">
@@ -347,7 +347,7 @@ export default {
     getQwCompanyList() {
       getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           listTag({corpId:this.queryParams.corpId}).then(response => {
             this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactUnassigned/deptUnassignedIndex.vue

@@ -1,4 +1,4 @@
-
+
 <template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
@@ -319,7 +319,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               listTag({corpId:this.queryParams.corpId}).then(response => {
                 this.tagList = response.rows;

+ 2 - 2
src/views/qw/externalContactUnassigned/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="110px">
       <el-form-item label="企微公司" prop="corpId">
@@ -330,7 +330,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               listTag({corpId:this.queryParams.corpId}).then(response => {
                 this.tagList = response.rows;

+ 2 - 2
src/views/qw/friendWelcome/deptFriendWelcome.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="企微公司" prop="corpId">
@@ -670,7 +670,7 @@ export default {
     getMyQwCompanyList().then(response => {
 
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               getQwAllUserList(this.myQwCompanyList[0].dictValue).then(response => {
                 this.companyUserList = response.data;

+ 2 - 2
src/views/qw/friendWelcome/indexNew.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="企微公司" prop="corpId">
@@ -717,7 +717,7 @@ export default {
     getMyQwCompanyList().then(response => {
 
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               getQwAllUserList(this.myQwCompanyList[0].dictValue).then(response => {
                 this.companyUserList = response.data;

+ 2 - 2
src/views/qw/friendWelcome/myIndexNew.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="企微公司" prop="corpId">
@@ -716,7 +716,7 @@ export default {
     getMyQwCompanyList().then(response => {
 
       this.myQwCompanyList = response.data;
-      if (this.myQwCompanyList != null) {
+      if (this.myQwCompanyList != null && this.myQwCompanyList.length > 0) {
         this.queryParams.corpId = this.myQwCompanyList[0].dictValue
         getQwAllUserList(this.myQwCompanyList[0].dictValue).then(response => {
           this.companyUserList = response.data;

+ 2 - 2
src/views/qw/friendWelcome/myWelcome.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="120px">
       <el-form-item label="企微公司" prop="corpId">
@@ -715,7 +715,7 @@ export default {
     getMyQwCompanyList().then(response => {
 
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               getQwAllUserList(this.myQwCompanyList[0].dictValue).then(response => {
                 this.companyUserList = response.data;

+ 2 - 2
src/views/qw/groupChat/deptGroupIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -172,7 +172,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/groupChat/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -171,7 +171,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/groupChat/myGroupChat.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -173,7 +173,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/groupChatTransfer/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -174,7 +174,7 @@ export default {
     getMyQwCompanyList() {
       getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue
           this.getList();
         }

+ 2 - 2
src/views/qw/groupChatTransferLog/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -85,7 +85,7 @@ export default {
     getMyQwCompanyList() {
       getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue
           this.getList();
         }

+ 2 - 2
src/views/qw/groupChatTransferOnJob/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" label-width="90px">
       <el-form-item label="企微公司" prop="corpId">
@@ -175,7 +175,7 @@ export default {
     getMyQwCompanyList() {
       getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue
           this.getList();
         }

+ 2 - 2
src/views/qw/groupMsg/customerBaseMsg.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -554,7 +554,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/groupMsg/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
     <div class="app-container">
       <el-alert
@@ -790,7 +790,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
 
               this.getList();

+ 2 - 2
src/views/qw/material/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
     <div style="padding: 10px">
     <div style="border-bottom: 1px solid #e6e6e6;background-color: white; display: flex;justify-content: left;">
@@ -615,7 +615,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/sop/aiChatSop.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
         <el-form-item label="企微公司" prop="corpId">
@@ -506,7 +506,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
         this.myQwCompanyList = response.data;
-        if(this.myQwCompanyList!=null){
+        if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
           this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
           this.refreshData(this.queryParams.corpId);
           this.getList();

+ 2 - 2
src/views/qw/sop/deptSop.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -1096,7 +1096,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if (this.myQwCompanyList != null) {
+      if (this.myQwCompanyList != null && this.myQwCompanyList.length > 0) {
         this.queryParams.corpId = this.myQwCompanyList[0].dictValue;
         this.refreshData(this.queryParams.corpId);
         this.getList();

+ 2 - 2
src/views/qw/sop/mySop.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -1095,7 +1095,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if (this.myQwCompanyList != null) {
+      if (this.myQwCompanyList != null && this.myQwCompanyList.length > 0) {
         this.queryParams.corpId = this.myQwCompanyList[0].dictValue;
         this.refreshData(this.queryParams.corpId);
         this.getList();

+ 2 - 2
src/views/qw/sop/sop.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -1132,7 +1132,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if (this.myQwCompanyList != null) {
+      if (this.myQwCompanyList != null && this.myQwCompanyList.length > 0) {
         this.queryParams.corpId = this.myQwCompanyList[0].dictValue;
         this.refreshData(this.queryParams.corpId);
         this.getList();

+ 2 - 2
src/views/qw/tagGroup/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
       <el-form-item label="企微公司" prop="corpId">
@@ -236,7 +236,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/user/cuDeptIdIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
 
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
@@ -620,7 +620,7 @@ export default {
 
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if(this.myQwCompanyList!=null){
+      if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
         this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
         // 查询部门下拉树结构
         if(this.queryParams.corpId){

+ 2 - 2
src/views/qw/user/myIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
 
   <div class="app-container">
     <el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="100px">
@@ -744,7 +744,7 @@ export default {
     });
     getMyQwCompanyList().then(response => {
       this.myQwCompanyList = response.data;
-      if(this.myQwCompanyList!=null){
+      if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
         this.queryParams.corpId=this.myQwCompanyList[0].dictValue;
         this.getList();
       }

+ 2 - 2
src/views/qw/welcome/deptWelcomeIndex.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
   <div class="app-container">
     <el-alert
@@ -457,7 +457,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/welcome/index.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
   <div class="app-container">
     <el-alert
@@ -457,7 +457,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }

+ 2 - 2
src/views/qw/welcome/myWelcome.vue

@@ -1,4 +1,4 @@
-<template>
+<template>
   <div>
   <div class="app-container">
     <el-alert
@@ -457,7 +457,7 @@ export default {
   created() {
     getMyQwCompanyList().then(response => {
             this.myQwCompanyList = response.data;
-            if(this.myQwCompanyList!=null){
+            if(this.myQwCompanyList!=null && this.myQwCompanyList.length>0){
               this.queryParams.corpId=this.myQwCompanyList[0].dictValue
               this.getList();
             }