|
@@ -39,7 +39,7 @@
|
|
|
<el-button type="primary" @click="onObserve" v-auth="'snapshot:allOrder:follow'" :disabled="isChecked" :loading="state.loading"
|
|
|
>添加关注<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>
|
|
|
-<!-- <el-button type="primary" @click="onKeynote" v-auth="'snapshot:allOrder:keynote'" :disabled="isChecked" :loading="state.loading"
|
|
|
+ <!-- <el-button type="primary" @click="onKeynote" v-auth="'snapshot:allOrder:keynote'" :disabled="isChecked" :loading="state.loading"
|
|
|
>设置重点<span v-if="checkTable.length">({{ checkTable.length }})</span>
|
|
|
</el-button>-->
|
|
|
</template>
|
|
@@ -190,18 +190,16 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script setup lang="tsx" name="snapshotStatisticsAllOrder">
|
|
|
-import { defineAsyncComponent, onMounted, reactive, ref, onActivated, onBeforeUnmount, computed } from 'vue';
|
|
|
+import { defineAsyncComponent, onMounted, reactive, ref, computed } from 'vue';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
import { ElMessage, ElMessageBox } from 'element-plus';
|
|
|
import { defaultTimeStartEnd, shortcuts } from '@/utils/constants';
|
|
|
-import { exportOrder } from '@/api/business/order';
|
|
|
import { addObserve } from '@/api/query/observe';
|
|
|
import { exportAssignment } from '@/utils/tools';
|
|
|
import Other from '@/utils/other';
|
|
|
-import mittBus from '@/utils/mitt';
|
|
|
import { useThemeConfig } from '@/stores/themeConfig';
|
|
|
import { storeToRefs } from 'pinia';
|
|
|
-import { getSSPAllBaseData, getSSPAllOrder } from '@/api/snapshot/statistics';
|
|
|
+import { getSSPAllBaseData, getSSPAllOrder, getSSPAllOrderExport } from '@/api/snapshot/statistics';
|
|
|
|
|
|
// 引入组件
|
|
|
const OrderDetail = defineAsyncComponent(() => import('@/components/OrderDetail/index.vue')); // 工单详情
|
|
@@ -288,11 +286,15 @@ const gridOptions = reactive<any>({
|
|
|
handleQuery();
|
|
|
},
|
|
|
},
|
|
|
- /* tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],*/
|
|
|
+ tools: [{ toolRender: { name: 'exportCurrent' } }, { toolRender: { name: 'exportAll' } }],
|
|
|
slots: {
|
|
|
buttons: 'toolbar_buttons',
|
|
|
},
|
|
|
},
|
|
|
+ params: {
|
|
|
+ exportMethod: getSSPAllOrderExport,
|
|
|
+ exportParams: requestParams,
|
|
|
+ },
|
|
|
customConfig: {
|
|
|
storage: true,
|
|
|
},
|
|
@@ -348,7 +350,7 @@ const gridOptions = reactive<any>({
|
|
|
slots: { default: 'order_detail' },
|
|
|
},
|
|
|
{ field: 'industryName', title: '行业', width: 100 },
|
|
|
-/* { field: 'industryName', title: '重点', width: 100 },
|
|
|
+ /* { field: 'industryName', title: '重点', width: 100 },
|
|
|
{ field: 'industryName', title: '办理时长(天)', width: 120 },*/
|
|
|
{ field: 'county', title: '区域', width: 150 },
|
|
|
{ field: 'contact', title: '电话', width: 140 },
|
|
@@ -379,10 +381,6 @@ const gridOptions = reactive<any>({
|
|
|
{ field: 'fileOpinion', title: '承办意见', width: 200, visible: false },
|
|
|
],
|
|
|
data: [],
|
|
|
- params: {
|
|
|
- exportMethod: exportOrder,
|
|
|
- exportParams: requestParams,
|
|
|
- },
|
|
|
sortConfig: {
|
|
|
remote: true,
|
|
|
},
|
|
@@ -397,8 +395,8 @@ const getBaseData = async () => {
|
|
|
industryOptions: 'industry',
|
|
|
orderStatusOptions: 'orderStatus',
|
|
|
orderTagOptions: 'orderTags',
|
|
|
- acceptTypeOptions:'acceptType',
|
|
|
- currentStepOptions:'steps'
|
|
|
+ acceptTypeOptions: 'acceptType',
|
|
|
+ currentStepOptions: 'steps',
|
|
|
};
|
|
|
for (const key in mappings) {
|
|
|
state[key] = result?.[mappings[key]] ?? [];
|