|
|
@@ -9,19 +9,19 @@
|
|
|
<!-- <Icon :size="18" type="md-arrow-dropdown"></Icon>-->
|
|
|
<DropdownMenu slot="list" style="line-height: 0;" class="dropDownCp">
|
|
|
<!--切换公司-->
|
|
|
- <Dropdown placement="left">
|
|
|
- <DropdownItem name="changeCp">
|
|
|
- {{ $t('changeCp') }}
|
|
|
- <Icon type="ios-arrow-forward"></Icon>
|
|
|
- </DropdownItem>
|
|
|
+<!-- <Dropdown placement="left">-->
|
|
|
+<!-- <DropdownItem name="changeCp">-->
|
|
|
+<!-- {{ $t('changeCp') }}-->
|
|
|
+<!-- <Icon type="ios-arrow-forward"></Icon>-->
|
|
|
+<!-- </DropdownItem>-->
|
|
|
|
|
|
- <DropdownMenu slot="list">
|
|
|
- <DropdownItem v-for="(item,index) in joinedCpList" :key="index+'l'" :name="'changeCp_' + item.cpId"
|
|
|
- :selected="item.cpId === $store.state.user.cpId">
|
|
|
- {{ (item.cpId === $store.state.user.cpId ? '●' : '\u00A0\u00A0') + "\u3000" + item.cpName }}
|
|
|
- </DropdownItem>
|
|
|
- </DropdownMenu>
|
|
|
- </Dropdown>
|
|
|
+<!-- <DropdownMenu slot="list">-->
|
|
|
+<!-- <DropdownItem v-for="(item,index) in joinedCpList" :key="index+'l'" :name="'changeCp_' + item.cpId"-->
|
|
|
+<!-- :selected="item.cpId === $store.state.user.cpId">-->
|
|
|
+<!-- {{ (item.cpId === $store.state.user.cpId ? '●' : '\u00A0\u00A0') + "\u3000" + item.cpName }}-->
|
|
|
+<!-- </DropdownItem>-->
|
|
|
+<!-- </DropdownMenu>-->
|
|
|
+<!-- </Dropdown>-->
|
|
|
<Dropdown placement="left">
|
|
|
<DropdownItem name="lang">
|
|
|
{{ $t('languageSetting') }}
|
|
|
@@ -250,7 +250,7 @@ export default {
|
|
|
imageViewerFlag: false,
|
|
|
dkLogo: dk_logo,
|
|
|
personalFlag: false,
|
|
|
- joinedCpList: self.$store.state.user.joinedCpList,// 加入公司
|
|
|
+ // joinedCpList: self.$store.state.user.joinedCpList,// 加入公司
|
|
|
imagePathType: null, /* WXQY AL-OSS */
|
|
|
personalInfo: {},
|
|
|
langList: self.$config.languages, // 语言包
|
|
|
@@ -681,39 +681,39 @@ export default {
|
|
|
location.reload();
|
|
|
}
|
|
|
},
|
|
|
- /**
|
|
|
- * @desc : 切换公司
|
|
|
- * @author : 周兴
|
|
|
- * @date : 2024/3/19 14:18
|
|
|
- */
|
|
|
- async chooseCp(cpId) {
|
|
|
- if (cpId) {
|
|
|
- let item = this.joinedCpList.filter(it=>it.cpId == cpId);
|
|
|
- if(!item || item.length == 0){
|
|
|
- return;
|
|
|
- }
|
|
|
- await this.updateCompany(item[0]);
|
|
|
- // 点击切换公司
|
|
|
- this.changeCp(this.joinedCps).then(res => {
|
|
|
- // 更新token
|
|
|
- this.updateToken(res.data);
|
|
|
- setTimeout(() => {
|
|
|
- // 登录后获取信息
|
|
|
- this.getInfoAfterLogin().then(r => {
|
|
|
- if (r.code == this.$config.SUCCESS_CODE) {
|
|
|
- this.handleAfterLoginInfo(r.data);
|
|
|
- // 关闭所有的窗体
|
|
|
- if (this.dkMain) {
|
|
|
- this.dkMain.handleAllClose();
|
|
|
- }
|
|
|
- // 刷新页面
|
|
|
- location.reload();
|
|
|
- }
|
|
|
- });
|
|
|
- }, 50)
|
|
|
- })
|
|
|
- }
|
|
|
- },
|
|
|
+ // /**
|
|
|
+ // * @desc : 切换公司
|
|
|
+ // * @author : 周兴
|
|
|
+ // * @date : 2024/3/19 14:18
|
|
|
+ // */
|
|
|
+ // async chooseCp(cpId) {
|
|
|
+ // if (cpId) {
|
|
|
+ // let item = this.joinedCpList.filter(it=>it.cpId == cpId);
|
|
|
+ // if(!item || item.length == 0){
|
|
|
+ // return;
|
|
|
+ // }
|
|
|
+ // await this.updateCompany(item[0]);
|
|
|
+ // // 点击切换公司
|
|
|
+ // this.changeCp(this.joinedCps).then(res => {
|
|
|
+ // // 更新token
|
|
|
+ // this.updateToken(res.data);
|
|
|
+ // setTimeout(() => {
|
|
|
+ // // 登录后获取信息
|
|
|
+ // this.getInfoAfterLogin().then(r => {
|
|
|
+ // if (r.code == this.$config.SUCCESS_CODE) {
|
|
|
+ // this.handleAfterLoginInfo(r.data);
|
|
|
+ // // 关闭所有的窗体
|
|
|
+ // if (this.dkMain) {
|
|
|
+ // this.dkMain.handleAllClose();
|
|
|
+ // }
|
|
|
+ // // 刷新页面
|
|
|
+ // location.reload();
|
|
|
+ // }
|
|
|
+ // });
|
|
|
+ // }, 50)
|
|
|
+ // })
|
|
|
+ // }
|
|
|
+ // },
|
|
|
/**
|
|
|
* @desc : 下拉点击
|
|
|
* @author : 洪旭东
|