From d954baf2f098ac7e939f9642c4c59bb717833d75 Mon Sep 17 00:00:00 2001 From: xuhuajiao <13476289682@163.com> Date: Tue, 16 Jan 2024 10:47:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=AF=B9=E5=BA=94=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=8E=A5=E5=8F=A3=E5=AD=97=E6=AE=B5=E5=A2=9E=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/prearchiveLibrary/module/batchFile.vue | 4 +++- src/views/system/fieldCorresManage/index.vue | 5 +++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/prearchiveLibrary/module/batchFile.vue b/src/views/prearchiveLibrary/module/batchFile.vue index e271285..06abb1f 100644 --- a/src/views/prearchiveLibrary/module/batchFile.vue +++ b/src/views/prearchiveLibrary/module/batchFile.vue @@ -244,7 +244,7 @@ export default { initCategoryFiledList(categoryId) { // 门类字段 this.rightLoading = true - FetchInitCategoryFieldByPid({ categoryId: categoryId, isType: 2 }).then((res) => { + FetchInitCategoryFieldByPid({ categoryId: categoryId, categoryLevel: 3, isType: 2 }).then((res) => { this.allCorrField = res.sort((a, b) => { if (a.isInput !== b.isInput) { return a.isInput ? -1 : 1 @@ -454,6 +454,7 @@ export default { categoryId: null }) this.selectedCategoryName = null + this.selectedCategory = null this.allFieldData = [] this.allCorrField = [] this.isTest = false @@ -536,6 +537,7 @@ export default { categoryId: null }) this.selectedCategoryName = null + this.selectedCategory = null this.allFieldData = [] this.allCorrField = [] this.isTest = false diff --git a/src/views/system/fieldCorresManage/index.vue b/src/views/system/fieldCorresManage/index.vue index 6b29d13..5c20ea9 100644 --- a/src/views/system/fieldCorresManage/index.vue +++ b/src/views/system/fieldCorresManage/index.vue @@ -156,6 +156,7 @@ export default { categoryTree: [], documentTree: [], selectedCategoryName: null, + selectedCategory: null, selectedDocumentName: null, rules: { documentId: [ @@ -197,6 +198,7 @@ export default { }, handleSelectCategory(val) { this.selectedCategoryName = val.cnName + this.selectedCategory = val }, handleSelectDocument(val) { this.selectedDocumentName = val.cnName @@ -255,8 +257,7 @@ export default { this.$refs.corresForm.leftLoading = false }) // 门类字段 - console.log('categoryId', categoryId) - FetchInitCategoryFieldByPid({ categoryId: categoryId, isType: 2 }).then((res) => { + FetchInitCategoryFieldByPid({ categoryId: categoryId, categoryLevel: 3, isType: 2 }).then((res) => { this.$refs.corresForm.targetData = res.sort((a, b) => { if (a.isInput !== b.isInput) { return a.isInput ? -1 : 1