Merge pull request #3001 from dataease/pr@dev@fix_log_export

fix(系统管理-日志管理): 导出日志没有带过滤条件
This commit is contained in:
fit2cloud-chenyw 2022-08-30 21:25:38 +08:00 committed by GitHub
commit e62730018a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -170,11 +170,17 @@ export default {
});
},
exportData() {
let condition = this.last_condition;
condition = formatQuickCondition(condition, "key");
const temp = formatCondition(condition);
const param = temp || {};
param["orders"] = formatOrders(this.orderConditions);
const param = {
orders: formatOrders(this.orderConditions),
conditions: [...this.cacheCondition],
};
if (this.nikeName) {
param.conditions.push({
field: `nick_name`,
operator: "like",
value: this.nikeName,
});
}
exportExcel(param).then((res) => {
const blob = new Blob([res], { type: "application/vnd.ms-excel" });