Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
I
IT-monitor
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
张伯涛
IT-monitor
Commits
6e3830f6
Commit
6e3830f6
authored
Jan 07, 2021
by
张伯涛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
父字典
parent
b4e5bd27
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
12 deletions
+13
-12
index.vue
src/views/system/dict/index.vue
+13
-12
No files found.
src/views/system/dict/index.vue
View file @
6e3830f6
...
...
@@ -180,16 +180,16 @@
</el-radio>
</el-radio-group>
</el-form-item>
<
!-- <el-form-item label="父字典名称">--
>
<!-- <el-select v-model="form.parentId" style="width: 100%" clearable placeholder="请选择父字典类型" @change="getOptions">--
>
<!-- <el-option-->
<!-- v-for="item in options"-->
<!-- :key="item.businessId"-->
<!-- :label="item.dictName"-->
<!-- :value="item.businessId"-->
<!-- />--
>
<!-- </el-select>--
>
<
!-- </el-form-item>--
>
<
el-form-item
label=
"父字典名称"
>
<el-select
v-model=
"form.parentId"
style=
"width: 100%"
clearable
placeholder=
"请选择父字典类型"
@
change=
"getOptions"
>
<el-option
v-for=
"item in options"
:key=
"item.businessId"
:label=
"item.dictName"
:value=
"item.businessId"
/
>
</el-select
>
<
/el-form-item
>
<!-- <el-form-item v-show="form.parentId">-->
<!-- <el-select v-model="form.dataId" style="width: 100%" clearable placeholder="请选择父字典类型" @visible-change="clearSelected">-->
<!-- <el-option-->
...
...
@@ -357,6 +357,7 @@ export default {
getList
()
{
listType
(
this
.
queryParams
).
then
(
response
=>
{
console
.
log
(
response
)
this
.
options
=
response
.
rows
this
.
typeList
=
response
.
rows
this
.
total
=
response
.
total
this
.
loading
=
false
...
...
@@ -364,12 +365,12 @@ export default {
)
},
// 获取当前父字典数据
getOptions
(
val
)
{
/*
getOptions(val) {
selectDictType(this.options.find(item => { return item.businessId === val }).dictType).then(response => {
this.optionsDict = response.data
})
this.form.dataId = ''
},
},
*/
clearSelected
(
flag
)
{
// flag = true 为下拉框选项展开时的标识
if
(
flag
)
{
...
...
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