用户信息调起关闭

dev
wyy 2 years ago
parent 7e8d4176e2
commit b15f627c5b

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

@ -35,7 +35,7 @@ instance.defaults.withCredentials = true;
instance.interceptors.request.use( instance.interceptors.request.use(
config => { config => {
// 基础请求参数 // 基础请求参数
const tokenInfo = vm.getSession('CX_CoopTokenInfo'), const tokenInfo = vm.getSession('CX_Common_UserInfo'),
base = {}, base = {},
postData = {...base, ...config.data }; postData = {...base, ...config.data };
tokenInfo.access_token && (config.headers[`Authorization`] = `Bearer:${tokenInfo.access_token}`); 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 PersonnelCategoryList from "./components/personnelCategory/personnelCategoryList";
import TrainingIntention from "./components/trainingIntention"; import TrainingIntention from "./components/trainingIntention";
import EntrepreneurialIntention from "./components/entrepreneurialIntention"; import EntrepreneurialIntention from "./components/entrepreneurialIntention";
import WujieVue2 from "wujie-vue2";
export default { export default {
components: { components: {
AddModal, AddModal,
@ -130,7 +131,7 @@ export default {
data() { data() {
return { return {
visible: false, visible: false,
isSelfSupport: this.getSession('CX_CoopTokenInfo').isSelfSupport, // //01 isSelfSupport: this.getSession('CX_Common_UserInfo').isSelfSupport, // //01
recordList: null, recordList: null,
isRecordEmpty: false, isRecordEmpty: false,
basicInfo: null, basicInfo: null,
@ -315,6 +316,8 @@ export default {
this.visible = true; this.visible = true;
}, },
onClose() { onClose() {
const { bus } = WujieVue2
bus.$emit('changeUserModal', false)
this.visible = false; this.visible = false;
this.isModalSwitch = false; this.isModalSwitch = false;
}, },

Loading…
Cancel
Save