Explorar o código

分析因子接口调整

maxiaoxiao hai 11 meses
pai
achega
7a16f39de9

+ 2 - 2
src/views/complianceAnalysis/components/hgxsc.vue

@@ -80,7 +80,7 @@ export default {
       treedata: [],
       defaultProps: {
         children: "children",
-        label: "ysmc",
+        label: "bsmmc",
       },
       ruleForm: {
         xmmc: "",
@@ -198,7 +198,7 @@ export default {
             Add({ ...this.ruleForm }).then((res) => {
               if (res.success) {
                 this.$emit("updateParent", "nowObj", this.ruleForm);
-                this.$emit("updateParent", "rzBsm", res.data);
+                this.$emit("updateParent", "rzBsm", res.message);
                 this.reset();
               } else {
                 Message.warning(res.message);

+ 5 - 0
src/views/complianceAnalysis/index.vue

@@ -80,6 +80,11 @@ export default {
         this.$refs.lsju.reset();
         this.$refs.lsju.changeForm();
       }
+      if (newValue == "scjg") {
+        this.$nextTick(() => {
+          this.$refs.scjg.initData();
+        });
+      }
     },
   },
 };