Browse Source

字段对应设置接口字段增加

master
xuhuajiao 1 year ago
parent
commit
d954baf2f0
  1. 4
      src/views/prearchiveLibrary/module/batchFile.vue
  2. 5
      src/views/system/fieldCorresManage/index.vue

4
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

5
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

Loading…
Cancel
Save