用户信息调起关闭

dev
wyy 2 years ago
parent 7e8d4176e2
commit b15f627c5b

@ -27,9 +27,9 @@ export default {
created() {
const { bus } = WujieVue2;
bus.$on('openUserInfo', (event) => {
console.log(event, 3333);
if (event.status === 'open') {
if (event.status) {
this.asyncOpenUserInfo();
bus.$emit('changeUserModal', true)
}
})
},
@ -41,8 +41,8 @@ export default {
// 4. visible = true
// 5. isSelfSuppput
// 6. visible false
async asyncOpenUserInfo() {
this.$refs.userInfoModal.visible = true;
asyncOpenUserInfo() {
this.$refs.userInfoModal.showDrawer();
}
}
}

@ -35,7 +35,7 @@ instance.defaults.withCredentials = true;
instance.interceptors.request.use(
config => {
// 基础请求参数
const tokenInfo = vm.getSession('CX_CoopTokenInfo'),
const tokenInfo = vm.getSession('CX_Common_UserInfo'),
base = {},
postData = {...base, ...config.data };
tokenInfo.access_token && (config.headers[`Authorization`] = `Bearer:${tokenInfo.access_token}`);

@ -109,6 +109,7 @@ import AdditionalInformation from "./components/additionalInformation";
import PersonnelCategoryList from "./components/personnelCategory/personnelCategoryList";
import TrainingIntention from "./components/trainingIntention";
import EntrepreneurialIntention from "./components/entrepreneurialIntention";
import WujieVue2 from "wujie-vue2";
export default {
components: {
AddModal,
@ -130,7 +131,7 @@ export default {
data() {
return {
visible: false,
isSelfSupport: this.getSession('CX_CoopTokenInfo').isSelfSupport, // //01
isSelfSupport: this.getSession('CX_Common_UserInfo').isSelfSupport, // //01
recordList: null,
isRecordEmpty: false,
basicInfo: null,
@ -315,6 +316,8 @@ export default {
this.visible = true;
},
onClose() {
const { bus } = WujieVue2
bus.$emit('changeUserModal', false)
this.visible = false;
this.isModalSwitch = false;
},

Loading…
Cancel
Save