Selaa lähdekoodia

修复专家处罚记录不显示问题

udream-cxs 4 vuotta sitten
vanhempi
commit
66ddd4d9c3

+ 2 - 2
src/apps/mobile/components/header/leftside.vue

@@ -218,7 +218,7 @@
           <el-menu-item index="/operation/index" v-if="operation.operation1">用户管理</el-menu-item>
           <el-menu-item index="/operation/rule" v-if="operation.operation2">用户规则设置</el-menu-item>
           <el-menu-item index="/operation/member-fee" v-if="operation.operation3">会费管理</el-menu-item>
-          <el-menu-item index="/operation/fee-approve" v-if="expert.expert4">会费审核</el-menu-item>
+          <el-menu-item index="/operation/fee-approve" v-if="operation.operation4">会费审核</el-menu-item>
           <el-menu-item index="/operation/reward" v-if="operation.operation5">赏金管理</el-menu-item>
           <el-menu-item index="/operation/rebate-rule" v-if="operation.operation6">返利规则管理</el-menu-item>
           <el-menu-item index="/operation/rebate-rule-approve" v-if="operation.operation7">返利规则审核</el-menu-item>
@@ -614,7 +614,7 @@ export default {
               this.expert.expert2=true
             }else if(a.id==314){
               this.expert.expert3=true
-            }else if(a.id==315){
+            }else if(a.id==316){
               this.expert.expert4=true
             }
           }):''

+ 32 - 24
src/apps/mobile/views/dialogue-bank/index.vue

@@ -3,11 +3,7 @@
         <TitleBar></TitleBar>
         <div class="main-container">
             <div class="search-container TableSelectMain">
-                <el-form
-                    class="table-select-main widthAuto"
-                    :model="searchForm"
-                    label-position="left"
-                >
+                <el-form class="table-select-main widthAuto" :model="searchForm" label-position="left">
                     <el-row :gutter="15">
                         <el-col :span="4">
                             <el-form-item>
@@ -48,7 +44,7 @@
                                 <!-- <el-button type="primary" round icon="el-icon-plus">新建</el-button> -->
                                 <el-button type="primary" plain round @click="showBatch(1)">批量显示</el-button>
                                 <el-button type="primary" plain round @click="showBatch(0)">批量屏蔽</el-button>
-                                <!-- <el-button type="primary" plain round>批量删除</el-button> -->
+                                <el-button type="primary" plain round @click="batchDelete">批量删除</el-button>
                             </el-form-item>
                         </el-col>
                     </el-row>
@@ -80,7 +76,7 @@
                         </template>
                     </el-table-column>
                     <el-table-column prop="expression" label="诊单标题" min-width="200px;"></el-table-column>
-                    <el-table-column prop="sessionid" label="会话id" min-width="100px;"></el-table-column>
+                    <!-- <el-table-column prop="sessionid" label="会话id" min-width="100px;"></el-table-column> -->
                     <el-table-column prop="userName" label="发起人" min-width="200px;"></el-table-column>
                     <el-table-column label="发起时间" min-width="120px;" :show-overflow-tooltip="true">
                         <template slot-scope="scope">{{ scope.row.createTime | formatTimePipe }}</template>
@@ -99,13 +95,9 @@
                     </el-table-column>
                     <el-table-column label="操作" min-width="220px;">
                         <template slot-scope="scope">
-                            <el-button
-                                size="mini"
-                                type="primary"
-                                plain
-                                round
-                                @click="chatShow(scope.row.sessionid, scope.row.createTime)"
-                            >详情</el-button>
+                            <el-button size="mini" type="primary" plain round @click="chatShow(scope.row.sessionid, scope.row.createTime)"
+                                >详情</el-button
+                            >
                         </template>
                     </el-table-column>
                 </el-table>
@@ -154,7 +146,7 @@ export default {
             this.queryListData();
         },
         selectionChange(data) {
-            this.ids = data.map(item => {
+            this.ids = data.map((item) => {
                 return item.id;
             });
         },
@@ -176,10 +168,10 @@ export default {
                 obj.endDate = this.time[1];
             }
             queryPage(obj)
-                .then(res => {
+                .then((res) => {
                     console.log(res);
-                    if(res.statusCode == "10"){
-                        this.$router.replace("/login");
+                    if (res.statusCode == '10') {
+                        this.$router.replace('/login');
                     }
                     this.tableData = res.data.records;
                     this.total = res.data.total;
@@ -209,14 +201,14 @@ export default {
         statuzChange(id, statuz) {
             let obj = {
                 ids: [id],
-                status: statuz
+                status: statuz,
             };
             useBath(obj)
                 .then(() => {
                     this.$message.success('操作成功');
                     this.queryListData();
                 })
-                .catch(err => err);
+                .catch((err) => err);
         },
         // 编辑
         editformData(data) {
@@ -225,7 +217,7 @@ export default {
                     this.$message.success('编辑成功');
                     this.queryListData();
                 })
-                .catch(err => err);
+                .catch((err) => err);
         },
         showBatch(status) {
             let obj = {
@@ -238,7 +230,23 @@ export default {
                     this.$message.success('操作成功');
                     this.queryListData();
                 })
-                .catch(err => err);
+                .catch((err) => err);
+        },
+        //批量删除
+        batchDelete() {
+            let param = { ids: this.ids };
+
+            this.$confirm('是否删除?', '提示', {
+                confirmButtonText: '确定',
+                cancelButtonText: '取消',
+                type: 'warning',
+            }).then(() => {
+                removeData(param).then(() => {
+                    this.$message.success('操作成功');
+                    this.queryListData();
+                }).catch((err) => err);;
+            })
+            
         },
     },
     created() {
@@ -248,10 +256,10 @@ export default {
 </script>
 <style lang="stylus" scoped>
 .TableSelectMain .el-date-editor.el-input.el-input--prefix.el-input--suffix.el-date-editor--date {
-    width: 95%;
+  width: 95%;
 }
 
 ::v-deep .el-date-editor .el-range-separator {
-    width: auto;
+  width: auto;
 }
 </style>

+ 3 - 0
src/apps/mobile/views/monitoring-center-bank/chat-room/chat-room.vue

@@ -287,6 +287,9 @@ export default {
             if (msgData && msgData.cmd === 'INITROOM') {
                 let msgs = JSON.parse(msgData.msg);
                 if (msgs && msgs.length > 0) {
+                    for (let index = 0; index < msgs.length; index++) {
+                        msgs[index] = JSON.parse(msgs[index]);
+                    }
                     this.chatList = msgs;
                 }
             } else if (msgData && msgData.cmd === 'CHAT') {