|
|
@@ -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 {
|
|
|
+ return URL({
|
|
|
+ ...where,
|
|
|
+ pageNum: page,
|
|
|
+ size: limit,
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
handleNodeClick(data) {
|
|
|
this.isCategory = true
|