From 09b6dff601939119fdae2cad278d093ad72da678 Mon Sep 17 00:00:00 2001 From: zhaomeijing Date: Thu, 12 May 2022 10:01:56 +0800 Subject: [PATCH] =?UTF-8?q?[add]=20=E6=8E=A5=E5=8F=A3=E5=AF=B9=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/ParameterLibrary/index.vue | 20 +++++++++++++++---- .../ParameterItemCollectionList.vue | 10 +++++++--- 2 files changed, 23 insertions(+), 7 deletions(-) diff --git a/jero-web/src/components/ParameterLibrary/index.vue b/jero-web/src/components/ParameterLibrary/index.vue index 2a06c20a4..8de962466 100644 --- a/jero-web/src/components/ParameterLibrary/index.vue +++ b/jero-web/src/components/ParameterLibrary/index.vue @@ -124,10 +124,16 @@ export default { spinLoading: false, confirmLoading: false, templatetitle: '', - selectedRowKeys: [] + selectedRowKeys: [], + ParameterCollectionRow: {} } }, props: { + authenticationParameterCollection: { + type: Object, + default: {}, + require: true + } }, mounted() { this.loadData() @@ -135,8 +141,14 @@ export default { methods: { loadData() { this.loading = true + let _tt = { + paramsManifestId: this.ParameterCollectionRow.id, + paramsTemplateId: this.ParameterCollectionRow.paramsTemplateId, + paramsTemplatePublishVersion: this.ParameterCollectionRow.paramsTemplatePublishVersion + } let params = { - ...this.form + ...this.form, + ..._tt } getAction(`params/collectManifest/paramsInfoList`, params).then(res => { if (res.success) { @@ -283,8 +295,8 @@ export default { } }, watch: { - templateTitle(val) { - this.templatetitle = val + authenticationParameterCollection(val) { + this.ParameterCollectionRow = val }, selectedRowKeyS(val) { this.selectedRowKeys = val diff --git a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue index 767ef7fca..8f88318b7 100644 --- a/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue +++ b/jero-web/src/views/projectManagement/components/ParameterItemCollectionList.vue @@ -124,7 +124,7 @@ - + @@ -212,7 +212,8 @@ export default { rowId: '', version: 0, itemId: '', - selectedRowKeysValue: [] + selectedRowKeysValue: [], + authenticationParameterCollection: {}, } }, props: { @@ -223,6 +224,8 @@ export default { } }, mounted() { + this.authenticationParameterCollection = JSON.parse(localStorage.getItem('paramsManifest')) + // console.log(JSON.parse(localStorage.getItem('paramsManifest'))) }, methods:{ addselectedRowKeys() { @@ -254,10 +257,11 @@ export default { postDateobj.id = item.id postDate.push(postDateobj) }) + let configDataList = { configDataList: postDate } if(this.selectedRowKeys.length == 0) { this.$message.warning(this.$t('selectLeastOne')) }else { - postAction(this.url.add, postDate).then((res) => { + postAction(this.url.add, configDataList).then((res) => { if (res.success) { this.$message.success(this.$t('OperationSuccessful')) // _this.getlist()