Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
cd82abd6
authored
2023-03-22 13:50:45 +0800
by
xiaomiao
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
图标选取功能
1 parent
a3704cbf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
1 deletions
src/views/system/menus/edit-dialog.vue
src/views/system/menus/edit-dialog.vue
View file @
cd82abd
...
...
@@ -9,6 +9,16 @@
<el-input
v-model=
"form.name"
placeholder=
"请输入菜单名称"
/>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"图标:"
label-width=
"54px"
>
<el-input
v-model=
"form.icon"
placeholder=
"请选择图标"
:prefix-icon=
"form.icon"
clearable
@
focus=
"getIconList"
/>
</el-form-item>
</el-col>
</el-row>
<el-row
:gutter=
"24"
>
<el-col
:span=
"12"
>
...
...
@@ -51,12 +61,15 @@
</el-col>
</el-row>
</el-form>
<!-- 图标列表 -->
<IconList
ref=
"iconList"
@
iconName=
"getIconName"
/>
</div>
</dialogBox>
</
template
>
<
script
>
import
{
getParentMenuListAction
}
from
'@/api/authorityManage'
import
IconList
from
'../../../components/IconList'
import
JsonEditor
from
'@/components/JsonEditors'
import
{
validateCode
}
from
'@/utils/validate'
;
import
{
api
,
httpAction
}
from
'@/api/manageApi'
...
...
@@ -64,6 +77,7 @@
name
:
'MenuModal'
,
components
:
{
JsonEditor
,
IconList
,
},
props
:
{
value
:
{
type
:
Boolean
,
default
:
false
},
...
...
@@ -142,6 +156,10 @@
}
})
},
// 选择图标
getIconName
(
data
)
{
this
.
form
.
icon
=
data
;
},
getIconList
()
{
this
.
$refs
.
iconList
.
show
(
true
)
},
...
...
@@ -244,9 +262,12 @@
white-space
:
nowrap
;
b
{
font-size
:
16px
;
font-weight
:
600
;
}
}
.el-dialog__headerbtn
{
right
:
20px
!important
;
top
:
23px
!important
;
}
}
}
</
style
>
...
...
Please
register
or
sign in
to post a comment