|
@ -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 |
|
|