forked from github/dataease
Merge pull request #3001 from dataease/pr@dev@fix_log_export
fix(系统管理-日志管理): 导出日志没有带过滤条件
This commit is contained in:
commit
e62730018a
@ -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" });
|
||||
|
Loading…
Reference in New Issue
Block a user