feat():修改了operTime和notice的前端bug

master
zyf972 2025-02-25 00:24:52 +08:00
parent 59c1602b4d
commit bce05b5409
3 changed files with 11 additions and 11 deletions

View File

@ -27,9 +27,9 @@ export function addNotice(data) {
} }
// 修改公告 // 修改公告
export function updateNotice(data) { export function updateNotice(id,data) {
return request({ return request({
url: '/system/notice', url: '/system/notice/' + id,
method: 'PUT', method: 'PUT',
data: data data: data
}) })

View File

@ -261,7 +261,7 @@ function submitForm() {
proxy.$refs["noticeRef"].validate(valid => { proxy.$refs["noticeRef"].validate(valid => {
if (valid) { if (valid) {
if (form.value.noticeId != undefined) { if (form.value.noticeId != undefined) {
updateNotice(form.value).then(response => { updateNotice(form.value.noticeId,form.value).then(response => {
proxy.$modal.msgSuccess("修改成功"); proxy.$modal.msgSuccess("修改成功");
open.value = false; open.value = false;
getList(); getList();

View File

@ -83,7 +83,7 @@
icon="Delete" icon="Delete"
:disabled="multiple" :disabled="multiple"
@click="handleDelete" @click="handleDelete"
v-hasPermi="['monitor:operlog:remove']" v-hasPermi="['system:operlog:remove']"
>删除</el-button> >删除</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -92,7 +92,7 @@
plain plain
icon="Delete" icon="Delete"
@click="handleClean" @click="handleClean"
v-hasPermi="['monitor:operlog:remove']" v-hasPermi="['system:operlog:clean']"
>清空</el-button> >清空</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
@ -101,7 +101,7 @@
plain plain
icon="Download" icon="Download"
@click="handleExport" @click="handleExport"
v-hasPermi="['monitor:operlog:export']" v-hasPermi="['system:operlog:export']"
>导出</el-button> >导出</el-button>
</el-col> </el-col>
<right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar v-model:showSearch="showSearch" @queryTable="getList"></right-toolbar>
@ -123,19 +123,19 @@
<dict-tag :options="sys_common_status" :value="scope.row.status" /> <dict-tag :options="sys_common_status" :value="scope.row.status" />
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作日期" align="center" prop="operTime" width="180" sortable="custom" :sort-orders="['descending', 'ascending']"> <el-table-column label="操作日期" align="center" prop="oper_time" width="180" sortable="custom" :sort-orders="['descending', 'ascending']">
<template #default="scope"> <template #default="scope">
<span>{{ parseTime(scope.row.operTime) }}</span> <span>{{ parseTime(scope.row.operTime) }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="消耗时间" align="center" prop="costTime" width="110" :show-overflow-tooltip="true" sortable="custom" :sort-orders="['descending', 'ascending']"> <el-table-column label="消耗时间" align="center" prop="cost_time" width="110" :show-overflow-tooltip="true" sortable="custom" :sort-orders="['descending', 'ascending']">
<template #default="scope"> <template #default="scope">
<span>{{ scope.row.costTime }}毫秒</span> <span>{{ scope.row.costTime }}毫秒</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template #default="scope"> <template #default="scope">
<el-button link type="primary" icon="View" @click="handleView(scope.row, scope.index)" v-hasPermi="['monitor:operlog:query']"></el-button> <el-button link type="primary" icon="View" @click="handleView(scope.row, scope.index)" v-hasPermi="['system:operlog:query']"></el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -301,7 +301,7 @@ function handleClean() {
/** 导出按钮操作 */ /** 导出按钮操作 */
function handleExport() { function handleExport() {
proxy.download("monitor/operlog/export",{ proxy.download("system/operlog/export",{
...queryParams.value, ...queryParams.value,
}, `config_${new Date().getTime()}.xlsx`); }, `config_${new Date().getTime()}.xlsx`);
} }