From 31a2a1e82c6d1a80b62ef65bcfba46e084e372aa Mon Sep 17 00:00:00 2001
From: jiangping <jp@doumee.com>
Date: 星期三, 31 一月 2024 09:37:05 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
company/src/components/base/BaseOpera.vue | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/company/src/components/base/BaseOpera.vue b/company/src/components/base/BaseOpera.vue
index 70681bd..5d64137 100644
--- a/company/src/components/base/BaseOpera.vue
+++ b/company/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)
--
Gitblit v1.9.3