From 563f1f49568434f631a5b31273d9d4fc4b86d4c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E5=90=8C=E6=B5=B7?= <963808678@qq.com> Date: Wed, 29 Nov 2023 09:01:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=AB=E9=80=92=E6=A8=A1=E5=9D=97=20?= =?UTF-8?q?=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MultiTab/MultiTab.vue | 20 +- .../detail/modules/operationArea.vue | 2 +- src/views/main/BookingLedger/list/index.vue | 2 +- src/views/main/ExpressModule/details.vue | 331 ++---------------- src/views/main/ExpressModule/index.vue | 28 +- src/views/main/ExpressMonthlyPay/addForm.vue | 2 +- src/views/main/ExpressMonthlyPay/editForm.vue | 2 +- src/views/main/ExpressTemplate/addForm.vue | 155 ++++---- src/views/main/ExpressTemplate/editForm.vue | 78 ++--- src/views/main/ExpressTemplate/index.vue | 86 ++--- 10 files changed, 187 insertions(+), 519 deletions(-) diff --git a/src/components/MultiTab/MultiTab.vue b/src/components/MultiTab/MultiTab.vue index 30372d6..99b2a3b 100644 --- a/src/components/MultiTab/MultiTab.vue +++ b/src/components/MultiTab/MultiTab.vue @@ -37,7 +37,7 @@ export default { const item = this.pages.find(item => item.path === key) item.meta.customTitle = name this.$forceUpdate() - } catch (e) { } + } catch (e) {} }) this.pages.push(this.$route) this.fullPathList.push(this.$route.fullPath) @@ -48,7 +48,11 @@ export default { onEdit(targetKey, action) { const _that = this if (targetKey.includes('BookingDetail')) { - console.log(Object.keys(this.needSavePages).includes(targetKey), this.needSavePages[targetKey].details, this.needSavePages[targetKey].hbList) + console.log( + Object.keys(this.needSavePages).includes(targetKey), + this.needSavePages[targetKey].details, + this.needSavePages[targetKey].hbList + ) if ( Object.keys(this.needSavePages).includes(targetKey) && (this.needSavePages[targetKey].details || this.needSavePages[targetKey].hbList) @@ -70,9 +74,9 @@ export default { } else { if (!this.inBookingDetailsSave) { this[action](targetKey) - const $data = this.needSavePages - delete $data[targetKey] - this.setNeedSavePages($data) + const $data = this.needSavePages + delete $data[targetKey] + this.setNeedSavePages($data) } } } else { @@ -187,7 +191,7 @@ export default { } }, watch: { - $route: function (newVal) { + $route: function(newVal) { if (!newVal.query.noOpenTab) { this.activeKey = newVal.fullPath if (this.fullPathList.indexOf(newVal.fullPath) < 0) { @@ -220,7 +224,7 @@ export default { return item.fullPath }) }, - 'copyPages': { + copyPages: { immediate: true, deep: true, handler(nD, oD) { @@ -243,7 +247,7 @@ export default { } } }, - activeKey: function (newPathKey) { + activeKey: function(newPathKey) { this.$router.push({ path: newPathKey }) }, pages(newForm, oldForm) { diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue index 435c934..7d7a793 100644 --- a/src/views/main/BookingLedger/detail/modules/operationArea.vue +++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue @@ -70,7 +70,7 @@
- +
diff --git a/src/views/main/BookingLedger/list/index.vue b/src/views/main/BookingLedger/list/index.vue index 6f0608a..b15c7d6 100644 --- a/src/views/main/BookingLedger/list/index.vue +++ b/src/views/main/BookingLedger/list/index.vue @@ -130,7 +130,7 @@
- +