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
aa327827
Commit
aa327827
authored
May 16, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 切换默认商户
parent
e5203fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
change-store.vue
src/components/layout/components/change-store.vue
+6
-5
No files found.
src/components/layout/components/change-store.vue
View file @
aa327827
...
...
@@ -15,8 +15,8 @@
<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
class=
"change-default-store"
command=
"changeDefaultStore"
>
<div
class=
"change-default-store-btn"
>
更改默认商户
</div>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -77,6 +77,10 @@ export default {
});
},
onChangeStore
(
enterpriseId
)
{
if
(
enterpriseId
==
'changeDefaultStore'
)
{
this
.
changeStore
.
show
=
true
;
return
;
}
if
(
enterpriseId
==
this
.
activedStoreId
)
return
;
this
.
$emit
(
'changeStore'
,
true
);
getRequest
(
'/haoban-manage3-web/enterprise-is-over'
,
{
enterpriseId
})
...
...
@@ -97,9 +101,6 @@ export default {
})
.
finally
(()
=>
this
.
$emit
(
'changeStore'
,
false
));
},
onShow
()
{
this
.
changeStore
.
show
=
true
;
},
// onClosed() {},
onSave
()
{
this
.
changeStore
.
loading
=
true
;
...
...
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