gaoxiong 1 gadu atpakaļ
vecāks
revīzija
5a233ff224
1 mainītis faili ar 9 papildinājumiem un 4 dzēšanām
  1. 9 4
      src/views/menu/monitoringCall/index.vue

+ 9 - 4
src/views/menu/monitoringCall/index.vue

@@ -338,10 +338,15 @@ export default {
     // 开始调阅事件
     startMonitorHandler(taskId) {
       this.taskId = taskId;
-      getMonitorStart({taskId:taskId},res=>{
-        console.log(res);
-        this.$refs.scandialog.visible = true;
-        this.globalLoading=true;
+      let obj = {taskId:taskId}
+      getMonitorStart(obj).then(res => {
+        let { code, data, msg } = res
+        if (data) {
+          this.$router.push('/consultInfo/' + this.taskId)
+        }else{
+          this.$refs.scandialog.visible = true;
+          this.globalLoading=true;
+        }
       })
 
     },