2019-12-09 15:35:57 +08:00
|
|
|
/**
|
|
|
|
* 实训状态数据
|
|
|
|
*/
|
|
|
|
const order = {
|
|
|
|
namespaced: true,
|
|
|
|
state: {
|
|
|
|
orderList: [] // 选中的商品列表,
|
|
|
|
},
|
|
|
|
getters: {
|
2020-10-27 16:51:57 +08:00
|
|
|
// orderList: (state)=>{
|
|
|
|
// return state.orderList;
|
|
|
|
// }
|
2019-12-09 15:35:57 +08:00
|
|
|
},
|
|
|
|
mutations: {
|
|
|
|
setOrderList: (state, orderList) => {
|
|
|
|
state.orderList = orderList;
|
|
|
|
}
|
|
|
|
},
|
|
|
|
actions: {
|
|
|
|
/**
|
|
|
|
* 设置选中的商品列表
|
|
|
|
*/
|
|
|
|
setOrderList: ({ commit }, orderList) => {
|
|
|
|
commit('setOrderList', orderList);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
export default order;
|