style:优化设置移动端界面 (#6443)
Some checks failed
Build Test / build-linux-binary (push) Failing after -8m50s
Build / SonarCloud (push) Failing after -8m47s
sync2gitee / repo-sync (push) Failing after -8m56s

* style:优化设置移动端界面

* style:设置-安全界面样式

* style:修复设置-备份账号服务器磁盘移动端无法剧中

* style:优化移动端设置界面
This commit is contained in:
see-more 2024-09-11 10:30:46 +08:00 committed by GitHub
parent 0ea142d6db
commit 71c1c5ae83
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 38 additions and 27 deletions

View file

@ -2,31 +2,29 @@
<div>
<LayoutContent :title="$t('commons.button.backup')">
<template #main>
<el-form label-width="130px" :v-key="refresh">
<el-row :gutter="20">
<el-col :span="24">
<div class="flx-justify-between">
<span class="flx-align-center">
<svg-icon class="card-logo" iconName="p-file-folder"></svg-icon>
<span class="card-title">&nbsp;{{ $t('setting.LOCAL') }}</span>
</span>
<div style="float: right">
<el-button round @click="onOpenDialog('edit', 'LOCAL', localData)">
{{ $t('commons.button.edit') }}
</el-button>
</div>
<el-form :v-key="refresh">
<div class="flex flex-col gpa-4">
<div class="flex flex-row justify-between items-center">
<div class="flex gap-1 items-center">
<svg-icon class="card-logo" iconName="p-file-folder"></svg-icon>
<span class="card-title">&nbsp;{{ $t('setting.LOCAL') }}</span>
</div>
<el-divider class="divider" />
<div style="margin-left: 20px">
<el-form-item :label="$t('setting.backupDir')">
{{ localData.varsJson['dir'] }}
</el-form-item>
<el-form-item :label="$t('commons.table.createdAt')">
{{ dateFormat(0, 0, localData.createdAt) }}
</el-form-item>
<div>
<el-button round @click="onOpenDialog('edit', 'LOCAL', localData)">
{{ $t('commons.button.edit') }}
</el-button>
</div>
</el-col>
</el-row>
</div>
<el-divider class="divider" />
<div class="grid gird-cols-2 items-center justify-center">
<el-form-item :label="$t('setting.backupDir')">
{{ localData.varsJson['dir'] }}
</el-form-item>
<el-form-item :label="$t('commons.table.createdAt')">
{{ dateFormat(0, 0, localData.createdAt) }}
</el-form-item>
</div>
</div>
</el-form>
<div class="common-div">

View file

@ -2,7 +2,7 @@
<div v-loading="loading">
<LayoutContent :title="$t('setting.panel')" :divider="true">
<template #main>
<el-form :model="form" label-position="left" label-width="150px">
<el-form :model="form" :label-position="mobile ? 'top' : 'left'" label-width="150px">
<el-row>
<el-col :span="1"><br /></el-col>
<el-col :xs="24" :sm="20" :md="15" :lg="12" :xl="12">
@ -168,7 +168,7 @@
</template>
<script lang="ts" setup>
import { ref, reactive, onMounted } from 'vue';
import { ref, reactive, onMounted, computed } from 'vue';
import { ElForm } from 'element-plus';
import { getSettingInfo, updateSetting, getSystemAvailable } from '@/api/modules/setting';
import { GlobalStore } from '@/store';
@ -194,6 +194,10 @@ const { isProductPro } = storeToRefs(globalStore);
const { switchTheme } = useTheme();
const mobile = computed(() => {
return globalStore.isMobile();
});
const form = reactive({
userName: '',
password: '',

View file

@ -2,7 +2,12 @@
<div>
<LayoutContent v-loading="loading" :title="$t('setting.safe')" :divider="true">
<template #main>
<el-form :model="form" v-loading="loading" label-position="left" label-width="150px">
<el-form
:model="form"
v-loading="loading"
:label-position="mobile ? 'top' : 'left'"
label-width="150px"
>
<el-row>
<el-col :span="1"><br /></el-col>
<el-col :xs="24" :sm="20" :md="15" :lg="12" :xl="12">
@ -178,7 +183,7 @@
</template>
<script lang="ts" setup>
import { ref, reactive, onMounted } from 'vue';
import { ref, reactive, onMounted, computed } from 'vue';
import { ElForm, ElMessageBox } from 'element-plus';
import PortSetting from '@/views/setting/safe/port/index.vue';
import BindSetting from '@/views/setting/safe/bind/index.vue';
@ -209,6 +214,10 @@ const sslInfo = ref<Setting.SSLInfo>();
const domainRef = ref();
const allowIPsRef = ref();
const mobile = computed(() => {
return globalStore.isMobile();
});
const form = reactive({
serverPort: 9999,
ipv6: 'disable',