| | |
| | | }, |
| | | methods: { |
| | | onSubmit(formName) { |
| | | debugger |
| | | if (this.form.id) { |
| | | // id不为空,修改底库 |
| | | this.$refs[formName].validate(async (valid) => { |
| | |
| | | bwType: this.form.bwType, |
| | | enable: this.form.enable, |
| | | tableDesc: this.form.tableDesc, |
| | | // isSync: this.form.isSync, |
| | | }); |
| | | if (res.success === true) { |
| | | this.$notify({ |
| | |
| | | enabled: this.form.enabled, |
| | | tableDesc: this.form.tableDesc, |
| | | analyServerId: this.type, |
| | | // isSync: this.form.isSync, |
| | | }) |
| | | .then((res) => { |
| | | this.$notify({ |
| | |
| | | type: "success", |
| | | }); |
| | | this.$emit("refresh"); |
| | | this.$emit("closeAdd"); |
| | | }) |
| | | .catch((err) => { |
| | | this.$notify({ |