update dep
This commit is contained in:
@ -3,7 +3,7 @@ import request from '@/utils/request'
|
||||
// 查询操作日志列表
|
||||
export function list(query) {
|
||||
return request({
|
||||
url: '/monitor/useLog/list',
|
||||
url: '/monitor/use-log/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
@ -12,7 +12,7 @@ export function list(query) {
|
||||
// 删除操作日志
|
||||
export function delOperlog(ids) {
|
||||
return request({
|
||||
url: '/monitor/useLog',
|
||||
url: '/monitor/use-log',
|
||||
method: 'delete',
|
||||
data: {
|
||||
ids: ids
|
||||
@ -23,7 +23,7 @@ export function delOperlog(ids) {
|
||||
// 清空操作日志
|
||||
export function cleanOperlog() {
|
||||
return request({
|
||||
url: '/monitor/useLog/clean',
|
||||
url: '/monitor/use-log/clean',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
@ -135,7 +135,7 @@ export const sys_oper_type = [
|
||||
},
|
||||
];
|
||||
|
||||
export const tenantModeDict = [
|
||||
export const tenant_mode_dict = [
|
||||
{
|
||||
label: "字段",
|
||||
value: "1",
|
||||
@ -152,7 +152,7 @@ export const tenantModeDict = [
|
||||
elTagType: "success",
|
||||
},
|
||||
];
|
||||
export const tenantStatusDict = [
|
||||
export const tenant_status_dict = [
|
||||
{
|
||||
label: "正常",
|
||||
value: "1",
|
||||
@ -176,7 +176,7 @@ export const tenantStatusDict = [
|
||||
];
|
||||
|
||||
// 初始化状态
|
||||
export const initStatusDict = [
|
||||
export const init_status_dict = [
|
||||
{
|
||||
label: "否",
|
||||
value: "0",
|
||||
@ -189,7 +189,7 @@ export const initStatusDict = [
|
||||
},
|
||||
];
|
||||
|
||||
export const docFlagDict = [
|
||||
export const doc_flag_dict = [
|
||||
{
|
||||
label: "关",
|
||||
value: "0",
|
||||
@ -202,7 +202,7 @@ export const docFlagDict = [
|
||||
}
|
||||
];
|
||||
|
||||
export const excelFlagDict = [
|
||||
export const excel_flag_dict = [
|
||||
{
|
||||
label: "关",
|
||||
value: "0",
|
||||
|
@ -81,7 +81,7 @@
|
||||
icon="Delete"
|
||||
:disabled="multiple"
|
||||
@click="handleDelete"
|
||||
v-hasPermi="['monitor:useLog:remove']"
|
||||
v-hasPermi="['monitor:use-log:remove']"
|
||||
>删除</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -91,7 +91,7 @@
|
||||
plain
|
||||
icon="Delete"
|
||||
@click="handleClean"
|
||||
v-hasPermi="['monitor:useLog:remove']"
|
||||
v-hasPermi="['monitor:use-log:remove']"
|
||||
>清空</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -101,7 +101,7 @@
|
||||
plain
|
||||
icon="Download"
|
||||
@click="handleExport"
|
||||
v-hasPermi="['monitor:useLog:export']"
|
||||
v-hasPermi="['monitor:use-log:export']"
|
||||
>导出</el-button
|
||||
>
|
||||
</el-col>
|
||||
@ -171,7 +171,7 @@
|
||||
type="text"
|
||||
icon="View"
|
||||
@click="handleView(scope.row, scope.index)"
|
||||
v-hasPermi="['monitor:useLog:query']"
|
||||
v-hasPermi="['monitor:use-log:query']"
|
||||
>详细</el-button
|
||||
>
|
||||
</template>
|
||||
@ -246,7 +246,7 @@
|
||||
</template>
|
||||
|
||||
<script setup name="Operlog">
|
||||
import { list, delOperlog, cleanOperlog } from "@/api/monitor/useLog";
|
||||
import { list, delOperlog, cleanOperlog } from "@/api/monitor/use_log";
|
||||
|
||||
import { sys_oper_type,sys_common_status } from "@/constant/dict";
|
||||
|
||||
@ -355,7 +355,7 @@ function handleClean() {
|
||||
/** 导出按钮操作 */
|
||||
function handleExport() {
|
||||
proxy.download(
|
||||
"monitor/useLog/export",
|
||||
"monitor/use-log/export",
|
||||
{
|
||||
...queryParams.value,
|
||||
},
|
@ -122,17 +122,17 @@
|
||||
<el-table-column align="center" label="用户数量" prop="accountCount" />
|
||||
<el-table-column align="center" label="状态">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :options="tenantStatusDict" :value="row.status" />
|
||||
<dict-tag :options="tenant_status_dict" :value="row.status" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="初始化状态">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :options="initStatusDict" :value="row.initialized" />
|
||||
<dict-tag :options="init_status_dict" :value="row.initialized" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column align="center" label="模式">
|
||||
<template #default="{ row }">
|
||||
<dict-tag :options="tenantModeDict" :value="row.mode" />
|
||||
<dict-tag :options="tenant_mode_dict" :value="row.mode" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
@ -277,7 +277,7 @@
|
||||
<el-form-item class="mode-setting-radio">
|
||||
<el-radio-group v-model="tenantSettingForm.mode">
|
||||
<el-radio
|
||||
v-for="option in tenantModeDict"
|
||||
v-for="option in tenant_mode_dict"
|
||||
:key="option.value"
|
||||
:label="option.value"
|
||||
>{{ option.label }}
|
||||
@ -490,9 +490,9 @@ import { getCurrentInstance, reactive, ref, toRefs } from "vue";
|
||||
import { ElMessage, ElMessageBox } from "element-plus";
|
||||
import {
|
||||
database_type_dict,
|
||||
initStatusDict,
|
||||
tenantModeDict,
|
||||
tenantStatusDict,
|
||||
init_status_dict,
|
||||
tenant_mode_dict,
|
||||
tenant_status_dict,
|
||||
} from "@/constant/dict";
|
||||
import DictTag from "@/components/DictTag/index.vue";
|
||||
import { cloneDeep } from "lodash-es";
|
||||
|
@ -72,10 +72,10 @@
|
||||
<div class="card-content-item">
|
||||
<span class="card-content-item-title">模式:</span>
|
||||
<span class="card-content-item-value">{{
|
||||
tenantModeDict.find(
|
||||
(item) => item.value === tenantInitCheckResult.mode
|
||||
)?.label
|
||||
}}</span>
|
||||
tenant_mode_dict.find(
|
||||
(item) => item.value === tenantInitCheckResult.mode
|
||||
)?.label
|
||||
}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@ -222,7 +222,7 @@
|
||||
import { onMounted, reactive, ref, toRefs, watchEffect } from "vue";
|
||||
import { check, createTables, initData } from "@/api/tenant/init";
|
||||
import { useRoute, useRouter } from "vue-router";
|
||||
import { tenantModeDict } from "@/constant/dict";
|
||||
import { tenant_mode_dict } from "@/constant/dict";
|
||||
import { Refresh } from "@element-plus/icons-vue";
|
||||
|
||||
const route = useRoute();
|
||||
|
@ -127,7 +127,7 @@
|
||||
<template #default="{row}">
|
||||
<dict-tag
|
||||
:value="row.docFlag"
|
||||
:options="docFlagDict"
|
||||
:options="doc_flag_dict"
|
||||
></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -139,7 +139,7 @@
|
||||
<template #default="{row}">
|
||||
<dict-tag
|
||||
:value="row.excelFlag"
|
||||
:options="excelFlagDict"
|
||||
:options="excel_flag_dict"
|
||||
></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@ -246,7 +246,7 @@ import {ElMessageBox} from "element-plus";
|
||||
import {ref} from "vue";
|
||||
import useSettingsStore from "@/store/modules/settings";
|
||||
import DictTag from "@/components/DictTag/index.vue";
|
||||
import {docFlagDict, excelFlagDict} from "@/constant/dict";
|
||||
import {doc_flag_dict, excel_flag_dict} from "@/constant/dict";
|
||||
|
||||
const route = useRoute();
|
||||
const {proxy} = getCurrentInstance();
|
||||
|
Reference in New Issue
Block a user