maxiaoxiao hace 1 año
padre
commit
bf926ea4a2
Se han modificado 1 ficheros con 6 adiciones y 2 borrados
  1. 6 2
      src/views/complianceAnalysis/components/lsjl.vue

+ 6 - 2
src/views/complianceAnalysis/components/lsjl.vue

@@ -92,6 +92,9 @@ export default {
     historyList: {
       type: Array,
     },
+    type: {
+      type: String,
+    },
   },
   data() {
     return {
@@ -112,7 +115,7 @@ export default {
     // this.getData();
     if (this.historyList) {
       this.datalist = this.historyList;
-    }else{
+    } else {
       this.datalist = hgxfx.datalist;
     }
   },
@@ -147,7 +150,8 @@ export default {
       //   if (res.success) {
       // this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
       // this.$emit("updateParent", "scjgObj=JSON.parse(JSON.stringify(res.data))
-      this.$emit("updateParent", "activeTabs", "scjg");
+      let next = this.$props.type == "hgxfx" ? "scjg" : "xzjg";
+      this.$emit("updateParent", "activeTabs", next);
       console.log(555555, item);
       //   }
       // });