浏览代码

修改bug

gaoxiong 1 年之前
父节点
当前提交
5a233ff224
共有 1 个文件被更改,包括 9 次插入4 次删除
  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;
+        }
       })
 
     },