修改日志查询

This commit is contained in:
yangjun 2025-08-19 18:02:17 +08:00
parent 7e9713191b
commit c508b61bfe
2 changed files with 2 additions and 59 deletions

View File

@ -23,10 +23,8 @@
<a-col :xl="6" :lg="7" :md="8" :sm="24">
<span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
<a-col :lg="6">
<a-button type="primary" preIcon="ant-design:search-outlined" @click="searchQuery">查询</a-button>
<a-button type="primary" preIcon="ant-design:reload-outlined" @click="searchReset" style="margin-left: 8px">重置</a-button>
</a-col>
</span>
</a-col>
</a-row>
@ -37,10 +35,6 @@
<!--插槽:table标题-->
<template #tableTitle>
</template>
<!--操作栏-->
<template #action="{ record }">
<TableAction :actions="getTableAction(record)" :dropDownActions="getDropDownAction(record)"/>
</template>
<template v-slot:bodyCell="{ column, record, index, text }">
</template>
</BasicTable>
@ -84,15 +78,6 @@
return Object.assign(params, queryParam);
},
},
exportConfig: {
name: "api请求日志",
url: getExportUrl,
params: queryParam,
},
importConfig: {
url: getImportUrl,
success: handleSuccess
},
});
const [registerTable, { reload, collapseAll, updateTableDataRecord, findTableDataRecord, getDataSource }, { rowSelection, selectedRowKeys }] = tableContext;
const labelCol = reactive({
@ -106,18 +91,7 @@
sm: 16,
});
//
const superQueryConfig = reactive(superQuerySchema);
/**
* 高级查询事件
*/
function handleSuperQuery(params) {
Object.keys(params).map((k) => {
queryParam[k] = params[k];
});
searchQuery();
}
/**
* 新增事件
@ -164,43 +138,12 @@
(selectedRowKeys.value = []) && reload();
}
/**
* 操作栏
*/
function getTableAction(record) {
return [
{
label: '编辑',
onClick: handleEdit.bind(null, record),
auth: 'ApiRequestLog:nu_iot_tq_api_request_log:edit'
},
];
}
/**
* 下拉操作栏
*/
function getDropDownAction(record) {
return [
{
label: '详情',
onClick: handleDetail.bind(null, record),
}, {
label: '删除',
popConfirm: {
title: '是否确认删除',
confirm: handleDelete.bind(null, record),
placement: 'topLeft',
},
auth: 'ApiRequestLog:nu_iot_tq_api_request_log:delete'
}
]
}
/**
* 查询
*/
function searchQuery() {
console.log('searchQuery',queryParam);
reload();
}

View File

@ -11,7 +11,7 @@
<ApiRequestLogList ref="ApiRequestLogListModal43"></ApiRequestLogList>
</a-tab-pane>
<a-tab-pane key="53" tab="关阀" force-render>
<ApiRequestLogList ref="ApiRequestLogListModal43"></ApiRequestLogList>
<ApiRequestLogList ref="ApiRequestLogListModal53"></ApiRequestLogList>
</a-tab-pane>
</a-tabs>
</div>