|
@@ -366,6 +366,7 @@
|
|
value: 'ExcelClassifyId',
|
|
value: 'ExcelClassifyId',
|
|
children: 'Children',
|
|
children: 'Children',
|
|
emitPath: false,
|
|
emitPath: false,
|
|
|
|
+ checkStrictly: true,
|
|
}"
|
|
}"
|
|
style="width: 80%"
|
|
style="width: 80%"
|
|
:placeholder="$t('OnlineExcelPage.select_appropriate_category_lable')"
|
|
:placeholder="$t('OnlineExcelPage.select_appropriate_category_lable')"
|
|
@@ -471,11 +472,11 @@ export default {
|
|
return url;
|
|
return url;
|
|
},
|
|
},
|
|
classifyOptions() {
|
|
classifyOptions() {
|
|
- let options = this.treeData.map((_) => ({
|
|
|
|
- ExcelClassifyId: _.ExcelClassifyId,
|
|
|
|
- ExcelClassifyName: _.ExcelClassifyName,
|
|
|
|
- }));
|
|
|
|
- return options;
|
|
|
|
|
|
+ // let options = this.treeData.map((_) => ({
|
|
|
|
+ // ExcelClassifyId: _.ExcelClassifyId,
|
|
|
|
+ // ExcelClassifyName: _.ExcelClassifyName,
|
|
|
|
+ // }));
|
|
|
|
+ return this.balanceClassifyOpts;
|
|
},
|
|
},
|
|
saveOtherFormRule(){
|
|
saveOtherFormRule(){
|
|
return {
|
|
return {
|
|
@@ -618,7 +619,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 获取平衡表分类
|
|
// 获取平衡表分类
|
|
getBalanceClassifyOpts(){
|
|
getBalanceClassifyOpts(){
|
|
- sheetInterface.excelClassifyOne({ Source: 5 }).then(res => {
|
|
|
|
|
|
+ sheetInterface.excelClassifyOne({ Source: this.sourceMap[this.$route.path] }).then(res => {
|
|
if (res.Ret !== 200) return
|
|
if (res.Ret !== 200) return
|
|
|
|
|
|
this.balanceClassifyOpts = res.Data.AllNodes || [];
|
|
this.balanceClassifyOpts = res.Data.AllNodes || [];
|
|
@@ -700,7 +701,7 @@ export default {
|
|
});
|
|
});
|
|
});
|
|
});
|
|
// 更新一下分类把 新增平衡表时要
|
|
// 更新一下分类把 新增平衡表时要
|
|
- if(this.sourceMap[this.$route.path]===5){
|
|
|
|
|
|
+ if([3,5].includes(this.sourceMap[this.$route.path])){
|
|
this.getBalanceClassifyOpts()
|
|
this.getBalanceClassifyOpts()
|
|
}
|
|
}
|
|
},
|
|
},
|