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