Explorar el Código

ai客服角色

xgb hace 1 semana
padre
commit
0e9d972ffe
Se han modificado 1 ficheros con 7 adiciones y 17 borrados
  1. 7 17
      src/views/chat/chatRole/index.vue

+ 7 - 17
src/views/chat/chatRole/index.vue

@@ -166,15 +166,13 @@
 import { listChatRole, getChatRole, delChatRole, addChatRole, updateChatRole, exportChatRole } from "@/api/chat/chatRole";
 import { getUrl } from "@/api/chat/chatUpload";
 import QRCode from 'qrcodejs2'
-import { getUserProfile } from "@/api/company/companyUser";
 
 export default {
   name: "ChatRole",
   data() {
     return {
-      user:null,
       qrOpen:false,
-      uploadUrl:process.env.VUE_APP_BASE_API+"/chat/upload/uploadFile/",
+      uploadUrl:process.env.VUE_APP_BASE_API+"/common/uploadOSS",
       modeOptions:[],
       typeOptions:[],
       // 遮罩层
@@ -236,14 +234,15 @@ export default {
     this.getDicts("chat_role_mode").then((response) => {
       this.modeOptions = response.data;
     });
-    this.getUser();
     this.getList();
   },
   methods: {
-    getUser() {
-      getUserProfile().then(response => {
-        this.user = response.data;
-        this.uploadUrl=this.uploadUrl+this.user.companyId;
+    getList() {
+      this.loading = true;
+      listChatRole(this.queryParams).then(response => {
+        this.chatRoleList = response.rows;
+        this.total = response.total;
+        this.loading = false;
       });
     },
     handleShowQr(row){
@@ -294,15 +293,6 @@ export default {
       }
       return   isLt1M;
     },
-    /** 查询聊天角色列表 */
-    getList() {
-      this.loading = true;
-      listChatRole(this.queryParams).then(response => {
-        this.chatRoleList = response.rows;
-        this.total = response.total;
-        this.loading = false;
-      });
-    },
     // 取消按钮
     cancel() {
       this.open = false;