refactor: 重构系统参数-显示设置布局

This commit is contained in:
fit2cloud-chenyw
2022-03-22 12:56:42 +08:00
parent 39af270ce2
commit ccba5bdce5
8 changed files with 45 additions and 21 deletions

View File

@@ -1632,7 +1632,8 @@ export default {
themeLight: 'Light',
themeDark: 'Dark',
themeCustom: 'Custom',
openHomePage: 'Show Home Page'
openHomePage: 'Show Home Page',
mobileBG: 'Mobile Login page BG'
},
auth: {
@@ -1888,8 +1889,7 @@ export default {
cmonth: 'This Month',
cquarter: 'This Quarter',
cyear: 'This Year',
openHomePage: 'Show Home Page',
mobileBG: 'Mobile BG'
openHomePage: 'Show Home Page'
},
dynamic_year: {
fix: 'Fixed Year',

View File

@@ -1643,7 +1643,7 @@ export default {
themeCustom: '自定義',
openHomePage: '顯示首頁',
mobileBG: '移動端背景'
mobileBG: '移動端登錄頁背景'
},
auth: {

View File

@@ -1651,7 +1651,7 @@ export default {
themeDark: '深色',
themeCustom: '自定义',
openHomePage: '显示首页',
mobileBG: '移动端背景'
mobileBG: '移动端登录页背景'
},
auth: {

View File

@@ -31,7 +31,16 @@
</el-col>
</el-row>
<el-row>
<el-col>
<el-form-item :label="$t('display.openHomePage')">
<el-checkbox v-model="formInline.openHomePage" true-label="true" false-label="false" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div>
<el-button v-if="showEdit" size="small" @click="edit">{{ $t('commons.edit') }}</el-button>
@@ -103,7 +112,8 @@ export default {
save(formInline) {
const param = [
{ paramKey: 'basic.frontTimeOut', paramValue: this.formInline.frontTimeOut, type: 'text', sort: 1 },
{ paramKey: 'basic.msgTimeOut', paramValue: this.formInline.msgTimeOut, type: 'text', sort: 2 }
{ paramKey: 'basic.msgTimeOut', paramValue: this.formInline.msgTimeOut, type: 'text', sort: 2 },
{ paramKey: 'ui.openHomePage', paramValue: this.formInline.openHomePage, type: 'text', sort: 13 }
]