|
@@ -29,8 +29,9 @@
|
|
:loading="state.loading"
|
|
:loading="state.loading"
|
|
custom
|
|
custom
|
|
:refresh="{
|
|
:refresh="{
|
|
- queryMethod: handleQuery,
|
|
|
|
- }"
|
|
|
|
|
|
+ queryMethod: handleQuery,
|
|
|
|
+ }"
|
|
|
|
+ :tools="[{ toolRender: { name: 'exportAll' } }]"
|
|
>
|
|
>
|
|
</vxe-toolbar>
|
|
</vxe-toolbar>
|
|
<div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
<div style="overflow: hidden; width: 100%; height: 100%; flex: 1">
|
|
@@ -39,7 +40,7 @@
|
|
:loading="state.loading"
|
|
:loading="state.loading"
|
|
:data="state.tableData"
|
|
:data="state.tableData"
|
|
:column-config="{ resizable: true }"
|
|
:column-config="{ resizable: true }"
|
|
- :row-config="{ isCurrent: true, isHover: true, height: 30,useKey:true }"
|
|
|
|
|
|
+ :row-config="{ isCurrent: true, isHover: true, height: 30, useKey: true }"
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
height="auto"
|
|
height="auto"
|
|
auto-resize
|
|
auto-resize
|
|
@@ -50,8 +51,9 @@
|
|
show-footer
|
|
show-footer
|
|
:footer-method="footerMethod"
|
|
:footer-method="footerMethod"
|
|
:tree-config="treeConfig"
|
|
:tree-config="treeConfig"
|
|
|
|
+ :params="{ exportMethod: statisticsOrderAreaExport, exportParams: requestParams }"
|
|
>
|
|
>
|
|
- <vxe-column field="areaName" title="区域名称" tree-node></vxe-column>
|
|
|
|
|
|
+ <vxe-column field="areaName" title="区域名称" tree-node></vxe-column>
|
|
<vxe-column field="sumCount" title="分类统计"></vxe-column>
|
|
<vxe-column field="sumCount" title="分类统计"></vxe-column>
|
|
</vxe-table>
|
|
</vxe-table>
|
|
</div>
|
|
</div>
|
|
@@ -59,9 +61,9 @@
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
<script setup lang="tsx" name="statisticsOrderSubRegional">
|
|
<script setup lang="tsx" name="statisticsOrderSubRegional">
|
|
-import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
|
|
|
|
+import { defineAsyncComponent, onMounted, reactive, ref } from 'vue';
|
|
import { FormInstance } from 'element-plus';
|
|
import { FormInstance } from 'element-plus';
|
|
-import { statisticsOrderArea } from '@/api/statistics/order';
|
|
|
|
|
|
+import { statisticsOrderArea, statisticsOrderAreaExport } from '@/api/statistics/order';
|
|
import { defaultDate } from '@/utils/constants';
|
|
import { defaultDate } from '@/utils/constants';
|
|
import { callPeriodBase } from '@/api/statistics/call';
|
|
import { callPeriodBase } from '@/api/statistics/call';
|
|
import Other from '@/utils/other';
|
|
import Other from '@/utils/other';
|
|
@@ -138,7 +140,7 @@ const treeConfig = reactive({
|
|
});
|
|
});
|
|
const fetchChildListApi = (row: any) => {
|
|
const fetchChildListApi = (row: any) => {
|
|
return new Promise((resolve) => {
|
|
return new Promise((resolve) => {
|
|
- const request = Other.deepClone(state.queryParams);
|
|
|
|
|
|
+ const request = Other.deepClone(state.queryParams);
|
|
request.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
request.StartTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[0];
|
|
request.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
request.EndTime = state.queryParams.crTime === null ? null : state.queryParams.crTime[1];
|
|
Reflect.deleteProperty(requestParams.value, 'crTime');
|
|
Reflect.deleteProperty(requestParams.value, 'crTime');
|