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() {
|
export function cleanOperlog() {
|
||||||
return request({
|
return request({
|
||||||
|
@ -75,17 +75,6 @@
|
|||||||
</el-form>
|
</el-form>
|
||||||
|
|
||||||
<el-row :gutter="10" class="mb8">
|
<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-col :span="1.5">
|
||||||
<el-button
|
<el-button
|
||||||
type="danger"
|
type="danger"
|
||||||
@ -250,7 +239,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup name="Operlog">
|
<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";
|
import { sys_oper_type, sys_common_status } from "@/constant/dict";
|
||||||
|
|
||||||
@ -336,21 +325,6 @@ function handleView(row) {
|
|||||||
form.value = 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() {
|
function handleClean() {
|
||||||
proxy.$modal
|
proxy.$modal
|
||||||
|
Reference in New Issue
Block a user