😎1、系统设置修改后刷新浏览器 2、页面分割布局优化
This commit is contained in:
parent
f215eab6da
commit
ce7407a97a
@ -146,7 +146,7 @@ onMounted(async () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 获取登录配置
|
// 获取登录配置
|
||||||
state.secondVerEnabled = themeConfig.value.secondVer ?? true;
|
state.secondVerEnabled = themeConfig.value.secondVer ?? false;
|
||||||
state.captchaEnabled = themeConfig.value.captcha ?? true;
|
state.captchaEnabled = themeConfig.value.captcha ?? true;
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
|
|||||||
@ -37,14 +37,14 @@
|
|||||||
<el-descriptions-item label="ICP地址">
|
<el-descriptions-item label="ICP地址">
|
||||||
<el-input v-model="state.formData.sysIcpUrl" />
|
<el-input v-model="state.formData.sysIcpUrl" />
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="登录二次验证">
|
<el-descriptions-item label="图形验证码">
|
||||||
<el-radio-group v-model="state.formData.sysSecondVer">
|
<el-radio-group v-model="state.formData.sysCaptcha">
|
||||||
<el-radio :value="true">启用</el-radio>
|
<el-radio :value="true">启用</el-radio>
|
||||||
<el-radio :value="false">禁用</el-radio>
|
<el-radio :value="false">禁用</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-descriptions-item>
|
</el-descriptions-item>
|
||||||
<el-descriptions-item label="图形验证码">
|
<el-descriptions-item label="登录二次验证">
|
||||||
<el-radio-group v-model="state.formData.sysCaptcha">
|
<el-radio-group v-model="state.formData.sysSecondVer">
|
||||||
<el-radio :value="true">启用</el-radio>
|
<el-radio :value="true">启用</el-radio>
|
||||||
<el-radio :value="false">禁用</el-radio>
|
<el-radio :value="false">禁用</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
@ -81,8 +81,8 @@ const state = reactive({
|
|||||||
sysCopyright: '',
|
sysCopyright: '',
|
||||||
sysIcp: '',
|
sysIcp: '',
|
||||||
sysIcpUrl: '',
|
sysIcpUrl: '',
|
||||||
sysSecondVer: undefined,
|
sysSecondVer: false,
|
||||||
sysCaptcha: undefined,
|
sysCaptcha: true,
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -123,8 +123,11 @@ const onSave = async () => {
|
|||||||
|
|
||||||
// 清空 file 变量
|
// 清空 file 变量
|
||||||
state.file = undefined;
|
state.file = undefined;
|
||||||
await loadData();
|
// await loadData();
|
||||||
ElMessage.success('保存成功');
|
ElMessage.success('保存成功');
|
||||||
|
|
||||||
|
// 刷新浏览器
|
||||||
|
window.location.reload();
|
||||||
} finally {
|
} finally {
|
||||||
nextTick(() => {
|
nextTick(() => {
|
||||||
state.isLoading = false;
|
state.isLoading = false;
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sys-org-container">
|
<div class="sys-org-container">
|
||||||
<splitpanes class="default-theme">
|
<splitpanes class="default-theme">
|
||||||
<pane size="15" style="display: flex; flex: 1">
|
<pane size="15" style="display: flex">
|
||||||
<OrgTree ref="orgTreeRef" @node-click="handleNodeChange" />
|
<OrgTree ref="orgTreeRef" @node-click="handleNodeChange" />
|
||||||
</pane>
|
</pane>
|
||||||
<pane size="85">
|
<pane size="85" style="display: flex; flex-direction: column">
|
||||||
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
||||||
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sys-region-container">
|
<div class="sys-region-container">
|
||||||
<splitpanes class="default-theme">
|
<splitpanes class="default-theme">
|
||||||
<pane size="20" style="display: flex; flex: 1">
|
<pane size="20" style="display: flex">
|
||||||
<RegionTree ref="regionTreeRef" @node-click="handleNodeChange" />
|
<RegionTree ref="regionTreeRef" @node-click="handleNodeChange" />
|
||||||
</pane>
|
</pane>
|
||||||
<pane size="80">
|
<pane size="80" style="display: flex; flex-direction: column">
|
||||||
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
||||||
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
|
|||||||
@ -1,10 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="sys-user-container">
|
<div class="sys-user-container">
|
||||||
<splitpanes class="default-theme">
|
<splitpanes class="default-theme">
|
||||||
<pane size="15" style="display: flex; flex: 1">
|
<pane size="15" style="display: flex">
|
||||||
<OrgTree ref="orgTreeRef" @node-click="handleNodeChange" />
|
<OrgTree ref="orgTreeRef" @node-click="handleNodeChange" />
|
||||||
</pane>
|
</pane>
|
||||||
<pane size="85">
|
<pane size="85" style="display: flex; flex-direction: column">
|
||||||
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
<el-card shadow="hover" :body-style="{ padding: '5px 5px 0 5px', display: 'flex', width: '100%', height: '100%', alignItems: 'start' }">
|
||||||
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
<el-form :model="state.queryParams" ref="queryForm" :show-message="false" :inlineMessage="true" label-width="auto" style="flex: 1 1 0%">
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
@ -43,7 +43,7 @@
|
|||||||
</el-row>
|
</el-row>
|
||||||
</el-card>
|
</el-card>
|
||||||
|
|
||||||
<el-card class="full-table" shadow="hover" style="margin-top: 5px">
|
<el-card class="full-table" shadow="hover" style="margin-top: 5px; flex: 1">
|
||||||
<vxe-grid ref="xGrid" class="xGrid-style" v-bind="options" v-on="gridEvents">
|
<vxe-grid ref="xGrid" class="xGrid-style" v-bind="options" v-on="gridEvents">
|
||||||
<template #toolbar_buttons>
|
<template #toolbar_buttons>
|
||||||
<el-button type="primary" icon="ele-Plus" @click="handleAdd" v-auth="'sysUser/add'"> 新增 </el-button>
|
<el-button type="primary" icon="ele-Plus" @click="handleAdd" v-auth="'sysUser/add'"> 新增 </el-button>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user