优化控制台消息推送
This commit is contained in:
@@ -2,6 +2,13 @@ export default {
|
||||
state: {
|
||||
main_order_count:[],
|
||||
repair_count:[],
|
||||
|
||||
home_msg:{
|
||||
briefing:[],
|
||||
workOrder:[],
|
||||
spareParts:[],
|
||||
reachStandard:[]
|
||||
}
|
||||
},
|
||||
mutations: {
|
||||
set_list_count_info(state, list){
|
||||
@@ -10,6 +17,21 @@ export default {
|
||||
set_repair_count(state, list){
|
||||
state.repair_count = list;
|
||||
},
|
||||
set_home_msg(state,key){
|
||||
if(key.data && (key.data.type==21 || key.data.type==24 || key.data.type == 25 || key.data.type == 26))
|
||||
if(key.data.type == 21){
|
||||
state.home_msg.briefing = key;
|
||||
|
||||
}else if(key.data.type == 24){
|
||||
state.home_msg.workOrder = key;
|
||||
|
||||
}else if(key.data.type == 25){
|
||||
state.home_msg.spareParts = key;
|
||||
|
||||
}else if(key.data.type == 26){
|
||||
state.home_msg.reachStandard = key;
|
||||
}
|
||||
}
|
||||
},
|
||||
actions: {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user