Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
Overview
Overview
Details
Activity
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
office
haoban-3
Commits
536f7863
Commit
536f7863
authored
May 10, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 菜单框架
parent
e729bc18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
8 deletions
+14
-8
change-store.vue
src/components/layout/components/change-store.vue
+14
-8
No files found.
src/components/layout/components/change-store.vue
View file @
536f7863
...
...
@@ -6,13 +6,15 @@
<i
class=
"iconfont-hb3 iconxiajiantou change-store-icon"
></i>
</span>
<el-dropdown-menu
slot=
"dropdown"
class=
"change-store-popper"
>
<el-dropdown-item
v-for=
"el in storeList"
:key=
"el.enterpriseId"
:class=
"['store-item',
{ actived: el.enterpriseId == activedStoreId }]" :command="el.enterpriseId">
<div>
<div
class=
"store-name"
>
{{
el
.
brandName
}}
</div>
<div
class=
"default-store-tag"
v-if=
"el.enterpriseId == defaultStoreId"
>
默认商户
</div>
</div>
<i
class=
"el-icon-check checked"
v-if=
"el.enterpriseId == activedStoreId"
></i>
</el-dropdown-item>
<div
class=
"store-list"
>
<el-dropdown-item
v-for=
"el in storeList"
:key=
"el.enterpriseId"
:class=
"['store-item',
{ actived: el.enterpriseId == activedStoreId }]" :command="el.enterpriseId">
<div>
<div
class=
"store-name"
>
{{
el
.
brandName
}}
</div>
<div
class=
"default-store-tag"
v-if=
"el.enterpriseId == defaultStoreId"
>
默认商户
</div>
</div>
<i
class=
"el-icon-check checked"
v-if=
"el.enterpriseId == activedStoreId"
></i>
</el-dropdown-item>
</div>
<el-dropdown-item
class=
"change-default-store"
>
<div
class=
"change-default-store-btn"
@
click=
"onShow"
>
更改默认商户
</div>
</el-dropdown-item>
...
...
@@ -66,7 +68,7 @@ export default {
},
methods
:
{
getStoreList
()
{
getRequest
(
'/haoban-manage3-web/wx-enterprise-list'
,
{}).
then
(
resp
=>
{
getRequest
(
'/haoban-manage3-web/wx-enterprise-list'
,
{
filteRight
:
1
}).
then
(
resp
=>
{
const
{
errorCode
,
result
}
=
resp
.
data
||
{};
if
(
errorCode
!=
1
)
{
errorMsg
.
errorMsg
(
resp
.
data
);
...
...
@@ -164,6 +166,10 @@ export default {
.el-dropdown-menu__item
{
padding
:
0
;
}
.store-list
{
max-height
:
350px
;
overflow-y
:
auto
;
}
.store-item
{
display
:
flex
;
justify-content
:
space-between
;
...
...
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