bug fix
This commit is contained in:
@ -9,17 +9,6 @@ export function list(query) {
|
||||
});
|
||||
}
|
||||
|
||||
// 删除操作日志
|
||||
export function delOperlog(ids) {
|
||||
return request({
|
||||
url: "/monitor/use-log",
|
||||
method: "delete",
|
||||
data: {
|
||||
ids: ids,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() {
|
||||
return request({
|
||||
|
@ -75,17 +75,6 @@
|
||||
</el-form>
|
||||
|
||||
<el-row :gutter="10" class="mb8">
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
plain
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['monitor:use-log:remove']"
|
||||
>删除
|
||||
</el-button>
|
||||
</el-col>
|
||||
<el-col :span="1.5">
|
||||
<el-button
|
||||
type="danger"
|
||||
@ -250,7 +239,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Operlog">
|
||||
import { list, delOperlog, cleanOperlog } from "@/api/monitor/use_log";
|
||||
import { list, cleanOperlog } from "@/api/monitor/use_log";
|
||||
|
||||
import { sys_oper_type, sys_common_status } from "@/constant/dict";
|
||||
|
||||
@ -336,21 +325,6 @@ function handleView(row) {
|
||||
form.value = row;
|
||||
}
|
||||
|
||||
/** 删除按钮操作 */
|
||||
function handleDelete(row) {
|
||||
const deleteIds = row.id || ids.value;
|
||||
proxy.$modal
|
||||
.confirm('是否确认删除日志编号为"' + deleteIds + '"的数据项?')
|
||||
.then(function () {
|
||||
return delOperlog(deleteIds);
|
||||
})
|
||||
.then(() => {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
/** 清空按钮操作 */
|
||||
function handleClean() {
|
||||
proxy.$modal
|
||||
|
Reference in New Issue
Block a user