|
|
|
export default {
|
|
|
|
state: {
|
|
|
|
yfcj: false, // 种都移风-移风成就
|
|
|
|
garden: false, // 种都移风-产业园
|
|
|
|
talents: false, // 种都移风-专家墙
|
|
|
|
qyjj:false, // 种都移风-企业简介
|
|
|
|
ldgh:false, // 种都移风-领导关怀
|
|
|
|
},
|
|
|
|
mutations: {
|
|
|
|
set_yfcj(state, visible) {
|
|
|
|
state.yfcj = visible
|
|
|
|
},
|
|
|
|
set_garden(state, visible) {
|
|
|
|
state.garden = visible
|
|
|
|
},
|
|
|
|
set_talents(state, visible) {
|
|
|
|
state.talents = visible
|
|
|
|
},
|
|
|
|
set_qyjj(state, visible) {
|
|
|
|
state.qyjj = visible
|
|
|
|
},
|
|
|
|
set_ldgh(state, visible) {
|
|
|
|
state.ldgh = visible
|
|
|
|
},
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
SET_YFCJ(context, visible) {
|
|
|
|
context.commit('set_yfcj', visible)
|
|
|
|
},
|
|
|
|
SET_GARDEN(context, visible) {
|
|
|
|
context.commit('set_garden', visible)
|
|
|
|
},
|
|
|
|
SET_TALENTS(context, visible) {
|
|
|
|
context.commit('set_talents', visible)
|
|
|
|
},
|
|
|
|
SET_QYJJ(context, visible){
|
|
|
|
context.commit('set_qyjj', visible)
|
|
|
|
},
|
|
|
|
SET_LDGH(context, visible){
|
|
|
|
context.commit('set_ldgh', visible)
|
|
|
|
},
|
|
|
|
// 确保当前只能显示最近点击的弹窗
|
|
|
|
showGlobalDialog(context, type) {
|
|
|
|
context.commit('set_yfcj', false)
|
|
|
|
context.commit('set_garden', false)
|
|
|
|
context.commit('set_talents', false)
|
|
|
|
context.commit('set_qyjj', false)
|
|
|
|
context.commit('set_ldgh', false)
|
|
|
|
if (type === 'buildLeaderAttach') {
|
|
|
|
context.commit('set_yfcj', true)
|
|
|
|
} else if (type === 'garden') {
|
|
|
|
context.commit('set_garden', true)
|
|
|
|
} else if (type === 'talents') {
|
|
|
|
context.commit('set_talents', true)
|
|
|
|
}else if (type === 'qyjj') {
|
|
|
|
context.commit('set_qyjj', true)
|
|
|
|
}else if (type === 'ldgh') {
|
|
|
|
context.commit('set_ldgh', true)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
getters: {
|
|
|
|
yfcj: state => state.yfcj,
|
|
|
|
garden: state => state.garden,
|
|
|
|
talents: state => state.talents,
|
|
|
|
qyjj: state => state.qyjj,
|
|
|
|
ldgh: state => state.ldgh
|
|
|
|
}
|
|
|
|
}
|