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) { initCategoryFiledList(categoryId) {
// //
this.rightLoading = true 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) => { this.allCorrField = res.sort((a, b) => {
if (a.isInput !== b.isInput) { if (a.isInput !== b.isInput) {
return a.isInput ? -1 : 1 return a.isInput ? -1 : 1
@ -454,6 +454,7 @@ export default {
categoryId: null categoryId: null
}) })
this.selectedCategoryName = null this.selectedCategoryName = null
this.selectedCategory = null
this.allFieldData = [] this.allFieldData = []
this.allCorrField = [] this.allCorrField = []
this.isTest = false this.isTest = false
@ -536,6 +537,7 @@ export default {
categoryId: null categoryId: null
}) })
this.selectedCategoryName = null this.selectedCategoryName = null
this.selectedCategory = null
this.allFieldData = [] this.allFieldData = []
this.allCorrField = [] this.allCorrField = []
this.isTest = false this.isTest = false

5
src/views/system/fieldCorresManage/index.vue

@ -156,6 +156,7 @@ export default {
categoryTree: [], categoryTree: [],
documentTree: [], documentTree: [],
selectedCategoryName: null, selectedCategoryName: null,
selectedCategory: null,
selectedDocumentName: null, selectedDocumentName: null,
rules: { rules: {
documentId: [ documentId: [
@ -197,6 +198,7 @@ export default {
}, },
handleSelectCategory(val) { handleSelectCategory(val) {
this.selectedCategoryName = val.cnName this.selectedCategoryName = val.cnName
this.selectedCategory = val
}, },
handleSelectDocument(val) { handleSelectDocument(val) {
this.selectedDocumentName = val.cnName this.selectedDocumentName = val.cnName
@ -255,8 +257,7 @@ export default {
this.$refs.corresForm.leftLoading = false 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) => { this.$refs.corresForm.targetData = res.sort((a, b) => {
if (a.isInput !== b.isInput) { if (a.isInput !== b.isInput) {
return a.isInput ? -1 : 1 return a.isInput ? -1 : 1

Loading…
Cancel
Save