From 87106a877d00e023075b9f1ba30d3d2ed0eaf8d9 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Wed, 25 Oct 2023 17:34:08 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A2=84=E5=BD=92=E6=A1=A3=E5=BA=93/=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/archivesConfig/dict/dictDetail.vue | 6 +- src/views/components/category/PreviewForm.vue | 20 +++--- src/views/prearchiveLibrary/index.vue | 4 +- .../prearchiveLibrary/module/batchFile.vue | 69 ++++++++++++------- src/views/system/dept/index.vue | 2 +- .../fileLibraryManage/fieldManage/index.vue | 2 +- src/views/system/user/index.vue | 2 +- 7 files changed, 64 insertions(+), 41 deletions(-) diff --git a/src/views/archivesConfig/dict/dictDetail.vue b/src/views/archivesConfig/dict/dictDetail.vue index dc135b8..647aa67 100644 --- a/src/views/archivesConfig/dict/dictDetail.vue +++ b/src/views/archivesConfig/dict/dictDetail.vue @@ -2,12 +2,12 @@
- +
diff --git a/src/views/components/category/PreviewForm.vue b/src/views/components/category/PreviewForm.vue index d8204d4..3142f54 100644 --- a/src/views/components/category/PreviewForm.vue +++ b/src/views/components/category/PreviewForm.vue @@ -214,7 +214,7 @@ export default { delete node.childMenus } return { - id: node.dictionaryId, + id: node.dictionaryName, label: node.dictionaryName, children: node.childMenus } @@ -260,13 +260,13 @@ export default { return name } }, - getNode(list, dicName) { + getNode(list, dictionaryName) { let data; (list || []).map(item => { - if (item.dicName === dicName) { + if (item.dictionaryName === dictionaryName) { data = [item] } else { - const child = this.getNode(item.childMenus, dicName) + const child = this.getNode(item.childMenus, dictionaryName) if (child) { data = child } @@ -468,8 +468,11 @@ export default { }, // tree - select selectTree(val) { - this.addOrUpdateForm[this.treeCurrentFiled.fieldName] = val.dicName - // this.treeName = val.dicName + this.addOrUpdateForm[this.treeCurrentFiled.fieldName] = val.dictionaryName + console.log('this.treeCurrentFiled.fieldName', this.treeCurrentFiled.fieldName) + console.log('val', val) + console.log('val.dictionaryName', val.dictionaryName) + // this.treeName = val.dictionaryName // 自动重复字段 - 是否重复 - treeSelect方式 if (this.treeCurrentFiled.isRepeat) { let params @@ -478,14 +481,14 @@ export default { 'categoryId': this.selectedCategory.id, 'archivesId': this.arcId, 'fieldName': this.treeCurrentFiled.fieldName, - 'value': val.dicName + 'value': val.dictionaryName } } else { params = { 'documentId': this.selectedCategory.id, 'archivesId': null, 'fieldName': this.treeCurrentFiled.fieldName, - 'value': val.dicName + 'value': val.dictionaryName } } this.handlerIsRepeat(params, this.treeCurrentFiled) @@ -619,6 +622,7 @@ export default { 'jsonString': JSON.stringify(this.addOrUpdateForm), 'fileJsonString': this.fileJsonString } + console.log('params', params) prearchEdit(params).then(res => { if (res) { this.$message.success(res) diff --git a/src/views/prearchiveLibrary/index.vue b/src/views/prearchiveLibrary/index.vue index 5191dde..7384013 100644 --- a/src/views/prearchiveLibrary/index.vue +++ b/src/views/prearchiveLibrary/index.vue @@ -68,7 +68,7 @@
- + @@ -308,11 +308,13 @@ export default { 'ids': ids } exportFile(this.baseApi + '/api/re-document/download?' + qs.stringify(params, { indices: false })) + this.crud.downloadLoading = false }).catch(() => { }) }, handleBatch() { this.$refs.batchForm.batchVisible = true + this.$refs.batchForm.selectionsArc = this.crud.selections }, handelMerge() { this.mergeVisible = true diff --git a/src/views/prearchiveLibrary/module/batchFile.vue b/src/views/prearchiveLibrary/module/batchFile.vue index 9e635f8..898401f 100644 --- a/src/views/prearchiveLibrary/module/batchFile.vue +++ b/src/views/prearchiveLibrary/module/batchFile.vue @@ -97,7 +97,7 @@ -
+