huangjn 3 gadi atpakaļ
vecāks
revīzija
ac17aeebcc
1 mainītis faili ar 32 papildinājumiem un 39 dzēšanām
  1. 32 39
      src/views/wel/index.vue

+ 32 - 39
src/views/wel/index.vue

@@ -108,7 +108,7 @@
         <div class="mg-b-20">
           <span class="mg-r-20">反馈人员:{{curNew.submitUserName}}</span>
           <span class="mg-r-20">电话:{{curNew.submitPhone}}</span>
-          <span class="mg-r-20">岗位:资料员</span>
+          <span class="mg-r-20">岗位:{{curNew.submitUserRole}}</span>
         </div>
         <div class="mg-b-20">反馈时间:{{curNew.manageTime}}</div>
         <el-carousel trigger="click" height="500px" :autoplay="false" style="text-align:center;">
@@ -155,6 +155,11 @@ import { queryBusinessUserOpinion, queryBusinessUserOpinionAll, queryProjectUser
 export default {
   data () {
     return {
+      setDateRange: {
+        disabledDate: time => {
+          return time.getTime() < Date.now() - 8.64e7
+        }
+      },
       LineData: [],//折线统计图数据
       ColumnData: [],//条形统计图数据
       personAmount: 0,
@@ -174,15 +179,11 @@ export default {
         show: false
       },
       pieObj:null,
-      pfxAmount: 0
+      pfxAmount: 0,
+      cancel: true
     }
   },
   methods: {
-    setDateRange: {
-      disabledDate: time => {
-        return time.getTime() < Date.now() - 8.64e7
-      }
-    },
     operationMethods () {
       this.operation.show = this.curRow.currentLink == 2;
       if (!this.operation.show) {
@@ -217,9 +218,20 @@ export default {
           userOpinionId: this.curRow.userOpinionId
         })
       }
-      /*this.$router.push({
-        path: '/news/news'
-      })*/
+
+      if(this.cancel){
+        this.$confirm('是否前往消息区继续处理?', '提示', {
+          confirmButtonText: '确定',
+          cancelButtonText: '取消',
+          type: 'warning'
+        }).then(() => {
+          this.$router.push({
+            path: '/news/news'
+          });
+        }).catch(() => {
+          this.cancel = false;
+        });
+      }
     },
     async manageUserOperationStatus (da) {//业务人员提交环节操作
       const { data: res } = await manageUserOperationStatus(da)
@@ -231,25 +243,10 @@ export default {
           message: '提交成功!'
         })
         //重新刷新列表
-        if(!da.manageTime){
-          //说明是直接结束,对应列表删除
-          let index1 = -1, index2 = -1;
-          this.collapseData1.forEach((vo,index) => {
-            if(vo.userOpinionId == da.userOpinionId){
-              index1 = index;
-            }
-          });
-          this.collapseData2.forEach((vo,index) => {
-            if(vo.userOpinionId == da.userOpinionId){
-              index2 = index;
-            }
-          });
-          if(index1 > -1){
-            this.collapseData1.splice(index1, 1);
-          }
-          if(index2 > -1){
-            this.collapseData2.splice(index2, 1);
-          }
+        if(this.activeIndex == 2){
+          await this.queryBusinessUserOpinionAll();
+        } else {
+          await  this.queryBusinessUserOpinion();
         }
       }
     },
@@ -278,16 +275,9 @@ export default {
     },
     async handleSelect (key) {
       if (key == 2) {
-        if (this.collapseData2.length <= 0) {
-          await this.queryBusinessUserOpinionAll()
-          this.collapseData = this.collapseData2;
-        } else {
-          this.collapseData = this.collapseData2;
-        }
+        await this.queryBusinessUserOpinionAll();
       } else {
-        if (this.collapseData1.length > 0) {
-          this.collapseData = this.collapseData1;
-        }
+        await this.queryBusinessUserOpinion();
       }
       this.activeIndex = key
     },
@@ -358,7 +348,10 @@ export default {
         legend: {
           position: 'bottom',
         },
-        autoFit:true
+        autoFit:true,
+        scrollbar: {
+          type: 'vertical'
+        }
       });
       line.render();
     },