mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 修改 操作日志导出 适配easyexcel工具
This commit is contained in:
@ -189,6 +189,7 @@
|
||||
|
||||
<script>
|
||||
import { list, delOperlog, cleanOperlog, exportOperlog } from "@/api/monitor/operlog";
|
||||
import { downLoadExcel } from "@/utils/zipdownload";
|
||||
|
||||
export default {
|
||||
name: "Operlog",
|
||||
@ -316,18 +317,7 @@ export default {
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
const queryParams = this.queryParams;
|
||||
this.$confirm('是否确认导出所有操作日志数据项?', "警告", {
|
||||
confirmButtonText: "确定",
|
||||
cancelButtonText: "取消",
|
||||
type: "warning"
|
||||
}).then(() => {
|
||||
this.exportLoading = true;
|
||||
return exportOperlog(queryParams);
|
||||
}).then(response => {
|
||||
this.download(response.msg);
|
||||
this.exportLoading = false;
|
||||
}).catch(() => {});
|
||||
downLoadExcel('/monitor/operlog/export', this.queryParams);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
@ -170,9 +170,7 @@
|
||||
|
||||
<script>
|
||||
import { listOss, delOss } from "@/api/system/oss";
|
||||
import { downLoadOss } from "@/utils/ossdownload";
|
||||
import { updateConfig } from "@/api/system/config";
|
||||
|
||||
import { downLoadOss } from "@/utils/zipdownload";
|
||||
|
||||
export default {
|
||||
name: "Oss",
|
||||
|
Reference in New Issue
Block a user