Эх сурвалжийг харах

reactor:对接热点类型小类统计;

zhangchong 1 жил өмнө
parent
commit
91a03308e9

+ 5 - 1
src/views/statistics/order/hotspotSubclass.vue

@@ -40,7 +40,7 @@
 				row-key="hotspotCode"
 				lazy
 				:load="load"
-				:tree-props="{ children: 'children', hasChildren: 'sublevel' }"
+				:tree-props="{ children: 'children', hasChildren: 'hasChild' }"
 				show-summary
 			>
 				<el-table-column prop="hotspotName" label="热点名称" show-overflow-tooltip></el-table-column>
@@ -89,6 +89,10 @@ const queryList = throttle(() => {
   departmentHotSmall(request)
 		.then((res: any) => {
 			state.tableData = res.result ?? [];
+      state.tableData = state.tableData.map((item: any) => {
+        item.children = []
+        return item;
+      });
 			state.loading = false;
 		})
 		.catch(() => {