|
|
@@ -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;
|