ZZJ
2022-02-11 d365829b14ca4256d39694b9cdcd43bad0ad8595
src/pages/library/components/addBase.vue
@@ -286,6 +286,7 @@
  },
  methods: {
    onSubmit(formName) {
      debugger
      if (this.form.id) {
        // id不为空,修改底库
        this.$refs[formName].validate(async (valid) => {
@@ -314,6 +315,7 @@
                type: "success",
              });
              this.$emit("refresh");
              this.$emit("closeAdd");
            } else {
              this.$notify({
                title: "失败",
@@ -342,7 +344,6 @@
              enabled: this.form.enabled,
              tableDesc: this.form.tableDesc,
              analyServerId: this.type,
              // isSync: this.form.isSync,
            })
              .then((res) => {
                this.$notify({
@@ -351,6 +352,7 @@
                  type: "success",
                });
                this.$emit("refresh");
                this.$emit("closeAdd");
              })
              .catch((err) => {
                this.$notify({