update 简化数据字典使用
This commit is contained in:
parent
2f18d0d709
commit
d54ab2733c
@ -23,10 +23,10 @@
|
|||||||
<el-form-item label="状态" prop="status">
|
<el-form-item label="状态" prop="status">
|
||||||
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
|
<el-select v-model="queryParams.status" placeholder="请选择状态" clearable size="small">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="dict in statusOptions"
|
v-for="dict in dict.type.sys_normal_disable"
|
||||||
:key="dict.dictValue"
|
:key="dict.value"
|
||||||
:label="dict.dictLabel"
|
:label="dict.label"
|
||||||
:value="dict.dictValue"
|
:value="dict.value"
|
||||||
/>
|
/>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@ -149,10 +149,10 @@
|
|||||||
<el-form-item label="是否HTTPS">
|
<el-form-item label="是否HTTPS">
|
||||||
<el-radio-group v-model="form.isHttps">
|
<el-radio-group v-model="form.isHttps">
|
||||||
<el-radio
|
<el-radio
|
||||||
v-for="dict in isHttpsOptions"
|
v-for="dict in dict.type.sys_yes_no"
|
||||||
:key="dict.dictValue"
|
:key="dict.value"
|
||||||
:label="dict.dictValue"
|
:label="dict.value"
|
||||||
>{{dict.dictLabel}}</el-radio>
|
>{{dict.label}}</el-radio>
|
||||||
</el-radio-group>
|
</el-radio-group>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="域" prop="region">
|
<el-form-item label="域" prop="region">
|
||||||
@ -183,6 +183,7 @@ import {
|
|||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "OssConfig",
|
name: "OssConfig",
|
||||||
|
dicts: ['sys_yes_no', 'sys_normal_disable'],
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 按钮loading
|
// 按钮loading
|
||||||
@ -275,12 +276,6 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDicts("sys_yes_no").then(response => {
|
|
||||||
this.isHttpsOptions = response.data;
|
|
||||||
});
|
|
||||||
this.getDicts("sys_normal_disable").then(response => {
|
|
||||||
this.statusOptions = response.data;
|
|
||||||
});
|
|
||||||
this.configKeyOptions = this.configKeyDatas;
|
this.configKeyOptions = this.configKeyDatas;
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user