瀏覽代碼

解决专利挖掘流程弹窗bug

zhuhao 1 年之前
父節點
當前提交
a9baa63cd8

+ 4 - 2
src/views/patentMining/components/details/components/drawer.vue

@@ -38,7 +38,7 @@ export default {
           path: 'FileMessage'
         },
       ],
-      pathObj:{},
+      pathObj:null,
     }
   },
   mounted() {
@@ -47,11 +47,13 @@ export default {
   methods: {
     // 打开
     open(data) {
-      this.pathObj=data
+      this.pathObj=JSON.parse(JSON.stringify(data))
       this.drawer = true
     },
     // 关闭
     handleClose() {
+      this.pathObj = null
+      this.activeName='ExcavateTaskIndex'
       this.drawer = false
     },
   },

+ 3 - 3
src/views/patentMining/components/details/index.vue

@@ -3,7 +3,7 @@
   <div class="height_100">
       <el-container>
         <el-header class="basic_header">
-            <el-tabs v-model="activeName" type="card" @tab-click="handleClick" style="width:100%">
+            <el-tabs v-model="activeName" type="card"  style="width:100%">
               <el-tab-pane v-for="item in menu" :key='item.path' :label="item.label" :name="item.path"></el-tab-pane>
             </el-tabs>
         </el-header>
@@ -42,14 +42,14 @@ export default {
           path:'FileMessage'
         },
       ],
-      pathObj:'',
+      pathObj:null,
     };
   },
   watch: {
     activeName(val) {
       if (val != 'FileMessage' || val != 'ExcavateTaskIndex') {
         this.$nextTick(() => {
-          this.pathObj=''
+          this.pathObj=null
         })
         
       }

+ 7 - 1
src/views/patentMining/components/excavateTask/index.vue

@@ -28,9 +28,15 @@ export default {
       },
     }
   },
+  watch: {
+    pathObj(val) {
+      if (val) {
+        this.obj.search.processId = val.pathId
+      }
+    },
+  },
   computed: {},
   mounted() {
-    
   },
   methods: {
 

+ 10 - 1
src/views/task/components/table.vue

@@ -82,7 +82,8 @@ import createTask from '@/views/patentMining/components/dialog/createTask.vue'
 import handleTask1 from '@/views/patentMining/components/dialog/handleTask1.vue'
 import handleTask2 from '@/views/patentMining/components/dialog/handleTask2.vue'
 export default {
-  mixins: [column,optionsData, taskPatentMining],
+  mixins: [column, optionsData, taskPatentMining],
+  // type区分是从哪里进入
   props: ['type', 'id', 'obj'],
   components: {
     auditRecords,
@@ -130,6 +131,14 @@ export default {
       },
     }
   },
+  watch: {
+    'obj.search': {  
+      handler(newVal, oldVal) {  
+        this.getList() 
+      },  
+      deep: true, // 设置为deep,可以监听到obj.search对象内部属性的变化  
+    },  
+  },
   computed: {
     ...mapGetters(['webSocket', 'userinfo']),
   },