This commit is contained in:
2023-07-05 17:28:27 +08:00
parent 02b0a378bc
commit 9bf2d3c7f0
2 changed files with 1 additions and 38 deletions

View File

@ -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({

View File

@ -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