diff --git a/src/option/reportforms/PackageStartTimePageReport.js b/src/option/reportforms/PackageStartTimePageReport.js index d6ae17c6..f9d5ff71 100644 --- a/src/option/reportforms/PackageStartTimePageReport.js +++ b/src/option/reportforms/PackageStartTimePageReport.js @@ -119,7 +119,7 @@ export const columnList = [ }, { prop: 'avgTime', - label: '平均发运时效', + label: '平均发运时效(小时)', type: 1, values: '', width: '150', diff --git a/src/option/reportforms/PackageTransferTimePageReport.js b/src/option/reportforms/PackageTransferTimePageReport.js index ba7f4a09..4eb82c03 100644 --- a/src/option/reportforms/PackageTransferTimePageReport.js +++ b/src/option/reportforms/PackageTransferTimePageReport.js @@ -142,7 +142,7 @@ export const columnList = [ }, { prop: 'avgTime', - label: '平均中转时效', + label: '平均中转时效(小时)', type: 1, values: '', width: '150', diff --git a/src/utils/exportData.js b/src/utils/exportData.js index 6ebf6135..f9f1fd30 100644 --- a/src/utils/exportData.js +++ b/src/utils/exportData.js @@ -7,7 +7,7 @@ export function exportExcel(columnList = [], listData = [], name = 'excel') { const headers = []; - const blackArr = ['序号', '复选框', '操作']; + const blackArr = ['序号', '复选框', '操作', '全选']; const data = []; diff --git a/src/views/basicdata/brand/ThreePartyMallManagement.vue b/src/views/basicdata/brand/ThreePartyMallManagement.vue index 2f6577c9..dda8b15a 100644 --- a/src/views/basicdata/brand/ThreePartyMallManagement.vue +++ b/src/views/basicdata/brand/ThreePartyMallManagement.vue @@ -21,6 +21,7 @@
+ @@ -134,6 +135,7 @@ import { downloadXls, handleClearTableQuery } from '@/utils/util'; import { useStore } from 'vuex'; import { getDictionaryBiz } from '@/api/system/dict'; import dayjs from 'dayjs'; +import { exportExcel } from '@/utils/exportData'; const $router = useRouter(); //跳转 const $useStore = useStore(); //权限 const $route = useRoute(); //获取地址栏参数 @@ -406,7 +408,7 @@ const handleSubmit = async () => { } }; // 删除 -const ViewDelete = (row) => { +const ViewDelete = row => { ElMessageBox.confirm('是否确认删除数据?', '提示', { confirmButtonText: '确定', cancelButtonText: '取消', @@ -423,6 +425,11 @@ const ViewDelete = (row) => { }) .catch(() => {}); }; + +/** 导出表格 */ +const handleExportData = () => { + exportExcel(details.columnList, details.data, '三方商场 - ' + new Date().getTime()); +};