|
@@ -36,6 +36,10 @@
|
|
|
<i class="iconfont huifont-tubiaozhizuomoban-1"></i>
|
|
|
<span>个人信息</span>
|
|
|
</el-dropdown-item>
|
|
|
+ <el-dropdown-item command="share">
|
|
|
+ <i class="iconfont huifont-tubiaozhizuomoban-5"></i>
|
|
|
+ <span>邀请码</span>
|
|
|
+ </el-dropdown-item>
|
|
|
<el-dropdown-item command="changePassword">
|
|
|
<i class="iconfont huifont-tubiaozhizuomoban-4"></i>
|
|
|
<span>修改密码</span>
|
|
@@ -55,10 +59,11 @@
|
|
|
:append-to-body="true">
|
|
|
<user-detail v-if="drawer"></user-detail>
|
|
|
</el-drawer>
|
|
|
- <el-dialog :close-on-click-modal="false" :title="logType === 1?'切换组织':'修改密码'" :visible.sync="visible"
|
|
|
- width="900px" :append-to-body="true">
|
|
|
- <select-organization v-if="visible && logType === 1"></select-organization>
|
|
|
- <change-password v-if="visible && logType === 2"></change-password>
|
|
|
+ <el-dialog :close-on-click-modal="false" :title="logTitle" :visible.sync="visible" width="900px"
|
|
|
+ :append-to-body="true">
|
|
|
+ <select-organization v-if="visible && logTitle === '切换组织'"></select-organization>
|
|
|
+ <change-password v-if="visible && logTitle === '修改密码'"></change-password>
|
|
|
+ <share v-if="visible && logTitle === '分享邀请'"></share>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -75,7 +80,8 @@
|
|
|
} from 'vuex';
|
|
|
const userDetail = () => import('./userDetail');
|
|
|
const changePassword = () => import('./changePassword');
|
|
|
- const selectOrganization = () => import('./selectOrganization');
|
|
|
+ const selectOrganization = () => import('./selectOrganization');
|
|
|
+ const share = () => import('./share');
|
|
|
export default {
|
|
|
data() {
|
|
|
return {
|
|
@@ -85,7 +91,7 @@
|
|
|
drawer: false,
|
|
|
visible: false,
|
|
|
organization: {},
|
|
|
- logType: 1
|
|
|
+ logTitle: '',
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|
|
@@ -115,7 +121,7 @@
|
|
|
this.drawer = true;
|
|
|
break;
|
|
|
case 'changePassword':
|
|
|
- this.logType = 2;
|
|
|
+ this.logTitle = '修改密码';
|
|
|
this.visible = true;
|
|
|
break;
|
|
|
case 'logout':
|
|
@@ -125,7 +131,11 @@
|
|
|
this.$router.push('/work/discount/userCoupon');
|
|
|
break;
|
|
|
case 'changeOrganization':
|
|
|
- this.logType = 1;
|
|
|
+ this.logTitle = '切换组织';
|
|
|
+ this.visible = true;
|
|
|
+ break;
|
|
|
+ case 'share':
|
|
|
+ this.logTitle = '分享邀请';
|
|
|
this.visible = true;
|
|
|
break;
|
|
|
default:
|
|
@@ -160,7 +170,8 @@
|
|
|
components: {
|
|
|
userDetail,
|
|
|
changePassword,
|
|
|
- selectOrganization
|
|
|
+ selectOrganization,
|
|
|
+ share
|
|
|
}
|
|
|
}
|
|
|
</script>
|