@@ -56,7 +56,7 @@ export default {
loading: false,
formData: {
- leave: 'CCSB',
+ leave: 'SL',
leave2: null,
leave3: null,
code: null
@@ -213,13 +213,22 @@ export default {
/* 表格数据源 */
datasource({ page, where, limit }) {
let URL = this.isLedger ? getAssetList : getMaterialList
- return URL({
- ...where,
- pageNum: page,
- size: limit,
- categoryLevelId: this.isCategory ? this.categoryLevelId : null,
- });
+ if (this.isCategory) {
+ return URL({
+ ...where,
+ pageNum: page,
+ size: limit,
+ categoryLevelId: this.categoryLevelId
+ });
+ } else {
+ }
+
},
handleNodeClick(data) {
this.isCategory = true