From 67ae6c8e23efbbee54bb70ba0cc0eed6699b0be9 Mon Sep 17 00:00:00 2001 From: "zyx.net" Date: Tue, 10 Jan 2023 11:16:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=20=E5=8A=A0=E5=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/CollectionType/index.vue | 24 ++++++++++++------- .../src/components/tableCollection/index.vue | 5 +++- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/jero-web/src/components/CollectionType/index.vue b/jero-web/src/components/CollectionType/index.vue index c230085e5..f447d50a2 100644 --- a/jero-web/src/components/CollectionType/index.vue +++ b/jero-web/src/components/CollectionType/index.vue @@ -735,6 +735,11 @@ default: {}, require: true }, + recordList: { + type: Object, + default: {}, + require: true + }, watermark: { type: String, default: '' @@ -753,6 +758,7 @@ uploadFileChangeDown }, mounted() { + console.log(this.recordList) for (const key in this.detailDate.paramsConfigData){ this.detailDateList = this.detailDate.paramsConfigData[key] } @@ -822,20 +828,22 @@ }) }, addconfig(){ - for (const key in this.detailDate.paramsConfigData){ - console.log(key) - let paramsConfigId = key - } - postAction('params/configData/add', { paramsCollectManifestId: this.$route.query.id , paramsConfigId :paramsConfigId }).then((res) => { + postAction('params/configData/add', { paramsCollectManifestId: this.recordList.id , paramsConfigId :this.detailDate.configId }).then((res) => { if (res.success) { - this.$refs.uploadFile.perentHandleFunc(res.result) + this.$emit('collectionForm') } else { - this.$refs.uploadFile.perentHandleFunc() } }) }, delconfig(){ - + for (const key in this.detailDate.paramsConfigData){ + deleteAction('params/configData/delete', { id :key }).then((res) => { + if (res.success) { + this.$emit('collectionForm') + } else { + } + }) + } }, }, watch: { diff --git a/jero-web/src/components/tableCollection/index.vue b/jero-web/src/components/tableCollection/index.vue index 3c3fa209c..b503f9aee 100644 --- a/jero-web/src/components/tableCollection/index.vue +++ b/jero-web/src/components/tableCollection/index.vue @@ -74,7 +74,7 @@ - + @@ -716,6 +716,9 @@ this.pageNohistory = 1 this.visible = false }, + collectionForm(){ + this.getTableList() + }, getAndUserId(result) { let query = { paramsManifestId: this.$route.query.id,