Commit a3272823 by yancanhua

fix: 前端UI发版

1 parent 3e4df72a
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<link rel="icon" href="/admin/main/favicon/favicon.ico" type="image/x-icon"> <link rel="icon" href="/admin/main/favicon/favicon.ico" type="image/x-icon">
<meta name="viewport" content="width=device-width,initial-scale=1.0"> <meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>专电优拍</title> <title>专电优拍</title>
<script type="module" crossorigin src="https://aus.test.glsx.com.cn/assets/index-BHIybSda.js"></script> <script type="module" crossorigin src="https://aus.test.glsx.com.cn/assets/index-BdpZoDaF.js"></script>
<link rel="stylesheet" crossorigin href="https://aus.test.glsx.com.cn/assets/index-CAAxcolk.css"> <link rel="stylesheet" crossorigin href="https://aus.test.glsx.com.cn/assets/index-CAAxcolk.css">
</head> </head>
<body> <body>
......
...@@ -252,7 +252,17 @@ export default class PreferencePage extends PaginationComponent<Deposit> { ...@@ -252,7 +252,17 @@ export default class PreferencePage extends PaginationComponent<Deposit> {
} }
PreferenceController.exportPreference(this.axios, paramsData, { responseType: 'blob' }).then(response => { PreferenceController.exportPreference(this.axios, paramsData, { responseType: 'blob' }).then(response => {
message.success('导出任务已创建,请在下载中心查看'); message.success('导出任务已创建,请在下载中心查看');
ExportUtil.downloadExcelFile(response.data, '收车偏好列表'); //获取当前年月日时分秒
const date = new Date();
const year = date.getFullYear();
const month = date.getMonth() + 1;
const monthStr = month < 10 ? '0' + month : month;
const day = date.getDate();
const dayStr = day < 10 ? '0' + day : day;
const hour = date.getHours();
const minute = date.getMinutes();
const minuteStr = minute < 10 ? '0' + minute : minute;
ExportUtil.downloadExcelFile(response.data, '收车偏好列表' + year + monthStr + dayStr + hour + minuteStr);
}).catch(error => { }).catch(error => {
console.error('Error downloading Word file:', error); console.error('Error downloading Word file:', error);
}).finally(() => { }).finally(() => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!