Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
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
罗超
confucius
Commits
300672b8
Commit
300672b8
authored
Apr 09, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
a3f0bcc2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
webmenu-form.vue
src/components/system/webmenu-form.vue
+17
-13
No files found.
src/components/system/webmenu-form.vue
View file @
300672b8
...
...
@@ -12,16 +12,17 @@
<q-input
filled
stack-label
maxlength=
"100"
:dense=
"false"
v-model=
"objOption.MenuUrl"
ref=
"MenuUrl"
class=
"col-6 q-pb-lg"
label=
"菜单地址"
/>
<q-select
class=
"col-6 q-pr-lg q-pb-lg"
v-model=
"objOption.MenuLevel"
:options=
"MenuLevelOpts"
emit-value
map-options
label=
"菜单等级"
@
input=
"getFatherData(
objOption.MenuLevel
)"
/>
map-options
label=
"菜单等级"
@
input=
"getFatherData()"
/>
<q-select
class=
"col-6 q-pb-lg"
v-model=
"objOption.ParentId"
option-value=
"Id"
option-label=
"Name"
:options=
"FatherLevelOpts"
emit-value
map-options
label=
"父级Id"
/>
<q-input
filled
stack-label
maxlength=
"
10
0"
:dense=
"false"
v-model=
"objOption.ClassName"
ref=
"ClassName"
<q-input
filled
stack-label
maxlength=
"
5
0"
:dense=
"false"
v-model=
"objOption.ClassName"
ref=
"ClassName"
class=
"col-6 q-pb-lg q-pr-lg"
label=
"样式"
/>
<q-input
filled
stack-label
maxlength=
"
100
"
:dense=
"false"
@
keyup
.
native=
"checkInteger(objOption,'SortNum')"
<q-input
filled
stack-label
maxlength=
"
4
"
:dense=
"false"
@
keyup
.
native=
"checkInteger(objOption,'SortNum')"
v-model=
"objOption.SortNum"
ref=
"SortNum"
class=
"col-6 q-pb-lg"
label=
"排序"
/>
<div
class=
"col-6 q-pb-lg q-pr-lg"
>
<q-uploader
:style=
"
{ backgroundImage: 'url(' + objOption.Icon + ')' }" style="width:auto;height:200px;background-repeat:no-repeat;background-size:cover;" flat
hide-upload-btn max-files="1" label="菜单图标" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
<q-uploader
:style=
"
{ backgroundImage: 'url(' + objOption.Icon + ')' }"
style="width:auto;height:200px;background-repeat:no-repeat;background-size:cover;" flat hide-upload-btn
max-files="1" label="菜单图标" accept=".jpg, image/*" :factory="uploadFile" auto-upload>
</q-uploader>
</div>
</div>
...
...
@@ -97,15 +98,18 @@
//下拉切换父级数据
getFatherData
()
{
this
.
objOption
.
ParentId
=
0
;
this
.
FatherLevelOpts
=
[];
let
msg
=
{
MenuLevel
:
Number
(
this
.
objOption
.
MenuLevel
-
1
)
}
GetWebMenuList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
FatherLevelOpts
=
res
.
Data
;
this
.
FatherLevelOpts
=
[];
var
MenuLevel
=
Number
(
this
.
objOption
.
MenuLevel
-
1
)
if
(
MenuLevel
&&
MenuLevel
>
0
)
{
let
msg
=
{
MenuLevel
:
MenuLevel
}
})
GetWebMenuList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
FatherLevelOpts
=
res
.
Data
;
}
})
}
},
uploadFile
(
files
)
{
UploadSelfFile
(
"course"
,
files
[
0
],
res
=>
{
...
...
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