heyujie
2022-02-14 439d4b5ff70255d92519e9af9b0438efe3b6f57f
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) => {
@@ -305,7 +306,6 @@
              bwType: this.form.bwType,
              enable: this.form.enable,
              tableDesc: this.form.tableDesc,
              // isSync: this.form.isSync,
            });
            if (res.success === true) {
              this.$notify({
@@ -314,6 +314,7 @@
                type: "success",
              });
              this.$emit("refresh");
              this.$emit("closeAdd");
            } else {
              this.$notify({
                title: "失败",
@@ -342,7 +343,6 @@
              enabled: this.form.enabled,
              tableDesc: this.form.tableDesc,
              analyServerId: this.type,
              // isSync: this.form.isSync,
            })
              .then((res) => {
                this.$notify({
@@ -351,6 +351,7 @@
                  type: "success",
                });
                this.$emit("refresh");
                this.$emit("closeAdd");
              })
              .catch((err) => {
                this.$notify({
@@ -601,12 +602,12 @@
    }
    .el-form-item__error {
      color: #fe6d68;
      padding-top: 3px;
      padding-top: 5px;
      left: 15px;
    }
    .start-time-pick {
      .el-form-item__error {
        top: 36px;
        top: 34px;
        left: 105px;
      }
    }