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
198e2e50
Commit
198e2e50
authored
Jun 02, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
028d5c26
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
userCenter.vue
src/components/StoreDesign/userCenter.vue
+19
-3
No files found.
src/components/StoreDesign/userCenter.vue
View file @
198e2e50
...
...
@@ -607,7 +607,7 @@
<div
class=
"LastMenu_Second"
>
{{item.MenuName}}
</div>
<div
class=
"LastMenu_Third"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top-start"
>
<el-button
circle
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
@
click=
"upDateMsg(item,4)"
>
<el-button
circle
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
@
click=
"upDateMsg(item,4)
,comCheckIndex=index
"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
...
...
@@ -636,7 +636,7 @@
<el-form-item
label=
"图标"
>
<div>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"SuggestSize"
placement=
"top-start"
>
<el-button
size=
"small"
>
选择文件
</el-button>
<el-button
size=
"small"
@
click=
"choicImg=true"
>
选择文件
</el-button>
</el-tooltip>
</div>
<div
class=
"UserUpImg"
>
...
...
@@ -658,15 +658,23 @@
<el-button
size=
"small"
type=
"danger"
@
click=
"getMenu()"
>
确 定
</el-button>
</span>
</el-dialog>
<!-- 选择图片文件 -->
<el-dialog
title=
"选择文件"
:visible
.
sync=
"choicImg"
width=
"1240px"
>
<ChooseImg
@
SelectId=
"SelectId"
></ChooseImg>
</el-dialog>
</div>
</template>
<
script
>
import
chooseMenu
from
"../common/chooseMenu.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
draggable
from
"vuedraggable"
export
default
{
data
()
{
return
{
comCheckIndex
:
-
1
,
//图片选择弹窗
choicImg
:
false
,
//是否显示链接弹窗
isShowLink
:
false
,
commonEditTitle
:
''
,
...
...
@@ -765,12 +773,18 @@
},
components
:
{
chooseMenu
,
draggable
draggable
,
ChooseImg
},
created
()
{
this
.
getMenuList
();
},
methods
:
{
//选择图片
SelectId
(
msg
)
{
this
.
modifyMsg
.
image
=
this
.
getIconLink
(
msg
.
url
);
this
.
choicImg
=
false
;
},
getMenu
()
{
//调用子组件方法
var
obj
=
this
.
$refs
.
chooseMenu
.
getChooseMenu
();
...
...
@@ -786,6 +800,8 @@
},
//修改确定
updateInfo
()
{
this
.
postMsg
.
SelfMenuList
[
this
.
comCheckIndex
].
MenuName
=
this
.
modifyMsg
.
name
;
this
.
postMsg
.
SelfMenuList
[
this
.
comCheckIndex
].
MenuIcon
=
this
.
modifyMsg
.
image
;
this
.
isShowDialog
=
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