Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_sys_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_sys_web
Commits
add6a2a2
Commit
add6a2a2
authored
Jul 11, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 56492 字典管理-添加字典数据参数状态功能没有单选选项
parent
18a5a084
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
10 deletions
+16
-10
data.vue
src/views/system/dict/data.vue
+16
-10
No files found.
src/views/system/dict/data.vue
View file @
add6a2a2
...
@@ -157,12 +157,9 @@
...
@@ -157,12 +157,9 @@
<el-input-number
v-model=
"form.dictSort"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
<el-input-number
v-model=
"form.dictSort"
style=
"width: 100%"
controls-position=
"right"
:min=
"0"
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"参数状态"
prop=
"status"
>
<el-form-item
label=
"参数状态"
prop=
"status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio-group
v-model=
"form.flag"
>
<el-radio
<el-radio
v-model=
"form.flag"
:label=
"'1'"
>
启用
</el-radio>
v-for=
"dict in statusOptions.filter(item => { return item.dictValue })"
<el-radio
v-model=
"form.flag"
:label=
"'0'"
>
停用
</el-radio>
:key=
"dict.dictValue"
:label=
"dict.dictValue"
>
{{ dict.dictLabel }}
</el-radio>
</el-radio-group>
</el-radio-group>
</el-form-item>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-form-item
label=
"备注"
prop=
"remarks"
>
...
@@ -234,7 +231,16 @@ export default {
...
@@ -234,7 +231,16 @@ export default {
// 是否显示弹出层
// 是否显示弹出层
open
:
false
,
open
:
false
,
// 状态数据字典
// 状态数据字典
statusOptions
:
[],
statusOptions
:
[
{
dictLabel
:
'启用'
,
dictValue
:
'1'
},
{
dictLabel
:
'停用'
,
dictValue
:
'0'
}
],
// 类型数据字典
// 类型数据字典
typeOptions
:
[],
typeOptions
:
[],
// 查询参数
// 查询参数
...
@@ -268,9 +274,9 @@ export default {
...
@@ -268,9 +274,9 @@ export default {
const
dictId
=
this
.
$route
.
params
&&
this
.
$route
.
params
.
dictId
const
dictId
=
this
.
$route
.
params
&&
this
.
$route
.
params
.
dictId
this
.
getType
(
dictId
)
this
.
getType
(
dictId
)
this
.
getTypeList
()
this
.
getTypeList
()
this
.
getDicts
(
dictCons
[
'NORMAL_DISABLE'
]).
then
(
response
=>
{
//
this.getDicts(dictCons['NORMAL_DISABLE']).then(response => {
this
.
statusOptions
=
response
.
data
//
this.statusOptions = response.data
})
//
})
},
},
methods
:
{
methods
:
{
// 状态
// 状态
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment