Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
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
黄媛媛
ElectricitySheep
Commits
1bfd58f3
Commit
1bfd58f3
authored
Nov 11, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
71d8727c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
11 deletions
+19
-11
menu.vue
src/components/system/menu.vue
+5
-3
minimenu.vue
src/components/system/minimenu.vue
+5
-3
pluglist.vue
src/components/system/pluglist.vue
+9
-5
No files found.
src/components/system/menu.vue
View file @
1bfd58f3
...
...
@@ -31,7 +31,7 @@
<el-option
label=
"二级"
:key=
"2"
:value=
"2"
></el-option>
<el-option
label=
"三级"
:key=
"3"
:value=
"3"
></el-option>
</el-select>
<button
type=
"button"
class=
"normalBtn"
@
click=
"menuDialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"menu
Title='新增菜单',menu
Dialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"CommonJump('sysmenu',
{})">设置商城菜单
</button>
</div>
<table
class=
"commonTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
...
...
@@ -72,7 +72,7 @@
</el-pagination>
<!-- 新增菜单 -->
<el-dialog
title=
"新增菜单
"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-dialog
:title=
"menuTitle
"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-form
:model=
"addMsg"
:rules=
"menurules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"菜单名称"
prop=
"MenuName"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.MenuName"
></el-input>
...
...
@@ -140,7 +140,8 @@
message
:
'请填写菜单名称。'
,
trigger
:
'blur'
}],
}
},
menuTitle
:
"新增菜单"
,
};
},
created
()
{
...
...
@@ -204,6 +205,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
menuDialog
=
true
;
this
.
menuTitle
=
'修改菜单'
,
this
.
getChildMenuList
(
this
.
addMsg
.
MenuLevel
);
}
else
{
this
.
Info
(
res
.
data
.
message
);
...
...
src/components/system/minimenu.vue
View file @
1bfd58f3
...
...
@@ -33,7 +33,7 @@
<el-option
:key=
"0"
:value=
"0"
label=
"正常"
></el-option>
<el-option
:key=
"1"
:value=
"1"
label=
"禁用"
></el-option>
</el-select>
<button
type=
"button"
class=
"normalBtn"
@
click=
"menuDialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"m
iniTitle='新增小程序菜单',m
enuDialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"CommonJump('setminipage',
{})">设置小程序菜单
</button>
</div>
<table
class=
"commonTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
...
...
@@ -80,7 +80,7 @@
</el-pagination>
<!-- 新增菜单 -->
<el-dialog
title=
"新增菜单
"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-dialog
:title=
"miniTitle
"
:visible
.
sync=
"menuDialog"
width=
"500px"
>
<el-form
:model=
"addMsg"
:rules=
"menurules"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"菜单名称"
prop=
"PageName"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.PageName"
></el-input>
...
...
@@ -149,7 +149,8 @@
message
:
'请填写菜单名称。'
,
trigger
:
'blur'
}],
}
},
miniTitle
:
"新增小程序菜单"
,
};
},
created
()
{
...
...
@@ -222,6 +223,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
menuDialog
=
true
;
this
.
miniTitle
=
"修改小程序菜单"
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
...
...
src/components/system/pluglist.vue
View file @
1bfd58f3
...
...
@@ -24,7 +24,8 @@
<div
class=
"query-box"
>
名称:
<el-input
type=
"text"
style=
"width:234px;"
size=
"small"
v-model=
"msg.PlugName"
clearable
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getPageList()"
@
clear=
"msg.pageIndex=1,getPageList()"
></el-input>
<button
type=
"button"
class=
"normalBtn"
@
click=
"marketingPlugDialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"plugTitle='新增营销插件',marketingPlugDialog=true,resetMsg()"
>
新增
</button>
<button
type=
"button"
class=
"normalBtn"
@
click=
"CommonJump('setmarketingplug',
{})">设置营销插件
</button>
</div>
<table
class=
"commonTable"
border=
"0"
cellspacing=
"0"
cellpadding=
"0"
v-loading=
"loading"
>
...
...
@@ -68,10 +69,10 @@
</el-pagination>
<!-- 新增营销插件 -->
<el-dialog
title=
"营销插件
"
:visible
.
sync=
"marketingPlugDialog"
width=
"500px"
>
<el-dialog
:title=
"plugTitle
"
:visible
.
sync=
"marketingPlugDialog"
width=
"500px"
>
<el-form
:model=
"addMsg"
ref=
"addMsg"
label-width=
"150px"
>
<el-form-item
label=
"插件类型"
>
<el-select
size=
"small"
v-model=
"addMsg.PlugType"
>
<el-select
s
tyle=
"width:234px"
s
ize=
"small"
v-model=
"addMsg.PlugType"
>
<el-option
v-for=
"(item) in PlugTypeList"
:label=
"item.Name"
:key=
"item.Id"
:value=
"item.Id"
>
</el-option>
</el-select>
...
...
@@ -86,7 +87,7 @@
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"50"
v-model=
"addMsg.PlugUrl"
></el-input>
</el-form-item>
<el-form-item
label=
"图片地址"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"255"
v-model=
"addMsg.Icon"
></el-input>
<el-input
type=
"text
area"
rows=
"4
"
style=
"width:234px"
size=
"small"
maxlength=
"255"
v-model=
"addMsg.Icon"
></el-input>
</el-form-item>
<el-form-item
label=
"样式"
prop=
"IconClass"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"100"
v-model=
"addMsg.IconClass"
></el-input>
...
...
@@ -115,7 +116,7 @@
dataList
:
[],
addMsg
:
{
PId
:
0
,
//插件编号
PlugType
:
0
,
//插件类型(1-默认,2-营销工具)
PlugType
:
1
,
//插件类型(1-默认,2-营销工具)
PlugName
:
''
,
//插件名称
PlugSubName
:
''
,
//插件子项名称
PlugUrl
:
''
,
//跳转路径
...
...
@@ -131,6 +132,7 @@
Name
:
"营销工具"
},
],
plugTitle
:
"新增营销插件"
,
};
},
created
()
{
...
...
@@ -154,6 +156,7 @@
//重置参数
resetMsg
()
{
this
.
addMsg
.
PId
=
0
;
this
.
addMsg
.
PlugType
=
1
;
this
.
addMsg
.
PlugName
=
""
;
this
.
addMsg
.
PlugSubName
=
""
;
this
.
addMsg
.
PlugUrl
=
""
;
...
...
@@ -191,6 +194,7 @@
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
=
res
.
data
.
data
;
this
.
marketingPlugDialog
=
true
;
this
.
plugTitle
=
"修改营销插件"
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
...
...
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