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
822b7c45
Commit
822b7c45
authored
Apr 28, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
68f18fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
26 additions
and
7 deletions
+26
-7
labelBar.vue
src/components/StoreDesign/labelBar.vue
+26
-7
No files found.
src/components/StoreDesign/labelBar.vue
View file @
822b7c45
...
...
@@ -280,7 +280,7 @@
</el-form-item>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowDialog = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"isShowDialog = false
,clearAddmsg()
"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submitForm('addMsg')"
>
提交
</el-button>
</span>
</el-dialog>
...
...
@@ -370,13 +370,14 @@
IsActive
:
false
}
],
isAdd
:
true
,
//是否新加标签
addMsg
:
{
TagId
:
0
,
//标签Id
TenantId
:
0
,
//商户Id
MallBaseId
:
0
,
//小程序Id
TagName
:
''
,
DefaultIcon
:
''
,
//默认图片
CheckedIcon
:
''
,
//激活状态图片
DefaultIcon
:
'
1
'
,
//默认图片
CheckedIcon
:
'
1
'
,
//激活状态图片
DefaultColor
:
'rgb(136, 136, 136)'
,
//默认字体颜色
CheckedColor
:
'rgb(255, 69, 68)'
,
//激活字体颜色
TagLink
:
""
,
//链接地址
...
...
@@ -448,13 +449,26 @@
},
//点击添加图标
addIconList
()
{
this
.
isAdd
=
true
;
this
.
isShowDialog
=
true
;
var
item
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
addMsg
))
this
.
mallMsg
.
BottomTagList
.
push
(
item
);
this
.
EditInfo
(
item
);
this
.
clearAddmsg
();
},
clearAddmsg
()
{
this
.
addMsg
.
TagId
=
0
;
this
.
addMsg
.
TenantId
=
0
;
this
.
addMsg
.
MallBaseId
=
0
;
this
.
addMsg
.
TagName
=
''
;
this
.
addMsg
.
DefaultIcon
=
'1'
;
this
.
addMsg
.
CheckedIcon
=
'1'
;
this
.
addMsg
.
DefaultColor
=
'rgb(136, 136, 136)'
;
this
.
addMsg
.
CheckedColor
=
'rgb(255, 69, 68)'
;
this
.
addMsg
.
TagLink
=
''
;
this
.
addMsg
.
TagSort
=
1
;
this
.
addMsg
.
IsActive
=
false
;
},
//点击编辑
EditInfo
(
item
)
{
this
.
isAdd
=
false
;
this
.
addMsg
=
item
;
this
.
isShowDialog
=
true
;
},
...
...
@@ -463,7 +477,12 @@
//提交创建、修改表单
this
.
$refs
[
addMsg
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
isShowDialog
=
false
;
if
(
this
.
isAdd
)
{
this
.
mallMsg
.
BottomTagList
.
push
(
JSON
.
parse
(
JSON
.
stringify
(
this
.
addMsg
)));
this
.
clearAddmsg
();
}
this
.
isShowDialog
=
false
;
}
else
{
return
false
;
}
...
...
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