mutations.js
693 Bytes
var type = require('./mutation-types');
// 设置当前在线用户
exports[type.SET_ONLINE_USER] = function (state, user) {
state.user.userId = user.userId;
state.user.userName = user.userName;
state.user.token = user.token;
state.user.source = user.source;
state.user.userType = user.userType;
state.user.curUser=user.curUser;
state.user.curMenuRole = user.curMenuRole;
state.user.showMenu = user.showMenu;
};
exports[type.SET_AREA] = function (state, area) {
state.area = area;
};
exports[type.SET_PROCESS] = function (state,show_process) {
state.show_process = show_process;
};
exports[type.BILL_TYPE] = function (state,billType) {
state.$billType = billType;
};