bug fix
This commit is contained in:
@ -1,29 +1,29 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 查询操作日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/use-log/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
url: "/monitor/use-log/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 删除操作日志
|
||||
export function delOperlog(ids) {
|
||||
return request({
|
||||
url: '/monitor/use-log',
|
||||
method: 'delete',
|
||||
url: "/monitor/use-log",
|
||||
method: "delete",
|
||||
data: {
|
||||
ids: ids
|
||||
}
|
||||
})
|
||||
ids: ids,
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() {
|
||||
return request({
|
||||
url: '/monitor/use-log/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
url: "/monitor/use-log/clean",
|
||||
method: "delete",
|
||||
});
|
||||
}
|
||||
|
@ -199,7 +199,7 @@ export const doc_flag_dict = [
|
||||
label: "开",
|
||||
value: "1",
|
||||
elTagType: "success",
|
||||
}
|
||||
},
|
||||
];
|
||||
|
||||
export const excel_flag_dict = [
|
||||
@ -207,11 +207,10 @@ export const excel_flag_dict = [
|
||||
label: "关",
|
||||
value: "0",
|
||||
elTagType: "warning",
|
||||
}
|
||||
,
|
||||
},
|
||||
{
|
||||
label: "开",
|
||||
value: "1",
|
||||
elTagType: "success",
|
||||
}
|
||||
},
|
||||
];
|
@ -248,7 +248,7 @@
|
||||
<script setup name="Operlog">
|
||||
import { list, delOperlog, 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";
|
||||
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
|
@ -107,12 +107,8 @@
|
||||
value-key="menuId"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
|
||||
|
||||
</el-form>
|
||||
</template>
|
||||
|
||||
|
@ -3,7 +3,7 @@
|
||||
<el-dialog
|
||||
title="导入表"
|
||||
v-model="visible"
|
||||
width="800px"
|
||||
width="900px"
|
||||
top="5vh"
|
||||
append-to-body
|
||||
>
|
||||
@ -13,6 +13,7 @@
|
||||
v-model="queryParams.tableName"
|
||||
placeholder="请输入表名称"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
@ -21,6 +22,7 @@
|
||||
v-model="queryParams.tableComment"
|
||||
placeholder="请输入表描述"
|
||||
clearable
|
||||
style="width: 200px"
|
||||
@keyup.enter="handleQuery"
|
||||
/>
|
||||
</el-form-item>
|
||||
|
@ -119,24 +119,13 @@
|
||||
:show-overflow-tooltip="true"
|
||||
/>
|
||||
<!-- docFlag -->
|
||||
<el-table-column
|
||||
label="文档"
|
||||
align="center"
|
||||
prop="docFlag"
|
||||
>
|
||||
<template #default="{row}">
|
||||
<dict-tag
|
||||
:value="row.docFlag"
|
||||
:options="doc_flag_dict"
|
||||
></dict-tag>
|
||||
<el-table-column label="文档" align="center" prop="docFlag">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :value="row.docFlag" :options="doc_flag_dict"></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="导出Excel"
|
||||
align="center"
|
||||
prop="excelFlag"
|
||||
>
|
||||
<template #default="{row}">
|
||||
<el-table-column label="导出Excel" align="center" prop="excelFlag">
|
||||
<template #default="{ row }">
|
||||
<dict-tag
|
||||
:value="row.excelFlag"
|
||||
:options="excel_flag_dict"
|
||||
@ -234,22 +223,22 @@
|
||||
</el-tab-pane>
|
||||
</el-tabs>
|
||||
</el-dialog>
|
||||
<import-table ref="importRef" @ok="handleQuery"/>
|
||||
<import-table ref="importRef" @ok="handleQuery" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup name="Gen" lang="jsx">
|
||||
import {delTable, listTable, previewTable, syncTable} from "@/api/tool/gen";
|
||||
import { delTable, listTable, previewTable, syncTable } from "@/api/tool/gen";
|
||||
import router from "@/router";
|
||||
import importTable from "./importTable";
|
||||
import {ElMessageBox} from "element-plus";
|
||||
import {ref} from "vue";
|
||||
import { ElMessageBox } from "element-plus";
|
||||
import { ref } from "vue";
|
||||
import useSettingsStore from "@/store/modules/settings";
|
||||
import DictTag from "@/components/DictTag/index.vue";
|
||||
import {doc_flag_dict, excel_flag_dict} from "@/constant/dict";
|
||||
import { doc_flag_dict, excel_flag_dict } from "@/constant/dict";
|
||||
|
||||
const route = useRoute();
|
||||
const {proxy} = getCurrentInstance();
|
||||
const { proxy } = getCurrentInstance();
|
||||
|
||||
const tableList = ref([]);
|
||||
const loading = ref(true);
|
||||
@ -276,7 +265,7 @@ const data = reactive({
|
||||
},
|
||||
});
|
||||
|
||||
const {queryParams, preview} = toRefs(data);
|
||||
const { queryParams, preview } = toRefs(data);
|
||||
|
||||
onActivated(() => {
|
||||
const time = route.query.t;
|
||||
@ -346,8 +335,7 @@ function handlesyncTable(row) {
|
||||
.then(() => {
|
||||
proxy.$modal.msgSuccess("同步成功");
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
/** 打开导入表弹窗 */
|
||||
@ -392,7 +380,7 @@ function handleEditTable(row) {
|
||||
const tableId = row.tableId || ids.value[0];
|
||||
router.push({
|
||||
path: "/tool/gen-edit/index/" + tableId,
|
||||
query: {pageNum: queryParams.value.pageNum},
|
||||
query: { pageNum: queryParams.value.pageNum },
|
||||
});
|
||||
}
|
||||
|
||||
@ -408,8 +396,7 @@ function handleDelete(row) {
|
||||
getList();
|
||||
proxy.$modal.msgSuccess("删除成功");
|
||||
})
|
||||
.catch(() => {
|
||||
});
|
||||
.catch(() => {});
|
||||
}
|
||||
|
||||
getList();
|
||||
|
Reference in New Issue
Block a user