移风店大屏前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
1.9 KiB

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