platform/src/components/base/BaseOpera.vue
@@ -14,6 +14,16 @@ } } }, // watch: { // visible() { // console.log(this.visible); // } // }, watch: { $route (to, from) { this.close() } }, methods: { // 配置 config (extParams = {}) { @@ -49,6 +59,9 @@ } }) }, close () { this.visible = false }, // 确认新建/修改 confirm () { if (this.form.id == null || this.form.id === '') { @@ -60,9 +73,12 @@ // 确认新建 __confirmCreate () { this.$refs.form.validate((valid) => { // debugger if (!valid) { return } // console.log(this.form); // debugger // 调用新建接口 this.isWorking = true this.api.create(this.form)