Commit aa327827 by caoyanzhi

update: 切换默认商户

parent e5203fcf
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment