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