boss пре 2 недеља
родитељ
комит
33ffe5cfb9
41 измењених фајлова са 115 додато и 182 уклоњено
  1. 16 0
      src/api/qw/sopTemp.js
  2. 1 1
      src/api/store/city.js
  3. 1 4
      src/views/course/userCourseCategory/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/myWelcome.vue
  25. 2 2
      src/views/qw/groupChat/deptGroupIndex.vue
  26. 2 2
      src/views/qw/groupChat/index.vue
  27. 2 2
      src/views/qw/groupChat/myGroupChat.vue
  28. 2 2
      src/views/qw/groupChatTransfer/index.vue
  29. 2 2
      src/views/qw/groupChatTransferLog/index.vue
  30. 2 2
      src/views/qw/groupChatTransferOnJob/index.vue
  31. 2 2
      src/views/qw/groupMsg/customerBaseMsg.vue
  32. 2 2
      src/views/qw/groupMsg/index.vue
  33. 2 2
      src/views/qw/material/index.vue
  34. 2 2
      src/views/qw/sop/aiChatSop.vue
  35. 2 2
      src/views/qw/tagGroup/index.vue
  36. 2 2
      src/views/qw/user/cuDeptIdIndex.vue
  37. 2 2
      src/views/qw/user/myIndex.vue
  38. 2 2
      src/views/qw/welcome/deptWelcomeIndex.vue
  39. 2 2
      src/views/qw/welcome/index.vue
  40. 2 2
      src/views/qw/welcome/myWelcome.vue
  41. 23 103
      vue.config.js

+ 16 - 0
src/api/qw/sopTemp.js

@@ -8,6 +8,22 @@ export function listSopTemp(query) {
     data: query
   })
 }
+// 查询我的sop模板列表
+export function listSopTempMyList(query) {
+  return request({
+    url: '/qw/sopTemp/myList',
+    method: 'get',
+    params: query
+  })
+}
+// 查询部门sop模板列表
+export function listSopTempDeptList(query) {
+  return request({
+    url: '/qw/sopTemp/deptList',
+    method: 'get',
+    params: query
+  })
+}
 // 查询sop模板列表
 export function redList(id) {
   return request({

+ 1 - 1
src/api/store/city.js

@@ -18,7 +18,7 @@ export function getAllList(query) {
 
 export function getCitys() {
   return request({
-    url: '/his/city/getCitys',
+    url: '/store/city/getCitys',
     method: 'get'
   })
 }

+ 1 - 4
src/views/course/userCourseCategory/index.vue

@@ -195,9 +195,6 @@ export default {
       form: {},
       // 表单校验
       rules: {
-        pid: [
-          { required: true, message: "父id不能为空", trigger: "blur" }
-        ],
         cateName: [
           { required: true, message: "分类名称不能为空", trigger: "blur" }
         ],
@@ -248,7 +245,7 @@ export default {
     reset() {
       this.form = {
         cateId: null,
-        pid: null,
+        pid: 0,
         cateName: null,
         sort: null,
         isShow: null,

+ 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">
@@ -1064,7 +1064,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">
@@ -1209,7 +1209,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/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/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();
             }

+ 23 - 103
vue.config.js

@@ -28,6 +28,7 @@ module.exports = {
   // transpileDependencies: true, // 默认情况下 babel-loader 忽略 node_modules 中的所有文件,启用此选项需配置transpileDependencies
   transpileDependencies: [
     /@aws-sdk/,
+    /@aws/,
     /@smithy/,
     /@huaweicloud/,
     /vod-js-sdk-v6/
@@ -39,109 +40,7 @@ module.exports = {
     open: true,
     disableHostCheck: true,
     proxy: {
-      // 为 watch 模块单独设置的代理
-      '/watch-api': {
-        target: 'http://localhost:8004', // adminui watch服务
-        changeOrigin: true,
-        pathRewrite: {
-          '^/watch-api': '' // 将 /watch-api 替换为空
-        }
-      },
-      // 以下路径前缀代理到 fs-admin(8004) - 平台管理端
-      // saasadminui前端API中这些路径只在fs-admin有Controller
-      [process.env.VUE_APP_BASE_API + '/admin']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/api']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/baiduStatistics']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/bd']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/doctorChat']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/easyCall']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/hwcloud']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/proxy']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/sop']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/statistic']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/tenant']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/third']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      [process.env.VUE_APP_BASE_API + '/tool']: {
-        target: 'http://localhost:8004',
-        changeOrigin: true,
-        pathRewrite: {
-          ['^' + process.env.VUE_APP_BASE_API]: ''
-        }
-      },
-      // detail: https://cli.vuejs.org/config/#devserver-proxy
-      // 默认所有其他请求代理到 fs-company(8006) - 租户服务端
+      // adminminUi 是租户管理端,所有请求统一代理到 fs-company(8006)
       [process.env.VUE_APP_BASE_API]: {
         target: `http://localhost:8006`,
         changeOrigin: true,
@@ -157,6 +56,27 @@ module.exports = {
       alias: {
         '@': resolve('src')
       }
+    },
+    externals: {
+      'node:async_hooks': 'commonjs async_hooks',
+      'node:crypto': 'commonjs crypto',
+      'node:fs': 'commonjs fs',
+      'node:fs/promises': 'commonjs fs/promises',
+      'node:http': 'commonjs http',
+      'node:os': 'commonjs os',
+      'node:path': 'commonjs path',
+      'node:process': 'commonjs process',
+      'node:stream': 'commonjs stream',
+      'node:stream/web': 'commonjs stream',
+      'node:buffer': 'commonjs buffer',
+      'node:util': 'commonjs util',
+      'node:url': 'commonjs url',
+      'node:net': 'commonjs net',
+      'node:tls': 'commonjs tls',
+      'node:events': 'commonjs events',
+      'node:https': 'commonjs https',
+      'node:zlib': 'commonjs zlib',
+      'node:child_process': 'commonjs child_process'
     }
   },
   chainWebpack(config) {