diff --git a/src/store/getters.js b/src/store/getters.js index ac48d03..90effe3 100644 --- a/src/store/getters.js +++ b/src/store/getters.js @@ -17,6 +17,7 @@ const getters = { multiTab: state => state.app.multiTab, lang: state => state.i18n.lang, bookingList: state => state.user.bookingList, + bookingGridOptions: state => state.user.bookingGridOptions, needSavePages: state => state.user.needSavePages, hasbookingDetail: state => state.user.hasbookingDetail } diff --git a/src/store/modules/user.js b/src/store/modules/user.js index 9417b38..e25eb79 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -20,7 +20,8 @@ const user = { roles: [], info: {}, notices: [], // 接收的通知公告 - bookingList: {}, // 订舱台账列表 + bookingList: {}, // 订舱台账列表 (全部列表对象) + bookingGridOptions: {}, // 订舱台账列表 needSavePages: {}, // 需要保存的页面 hasbookingDetail: false // 订舱详情是否销毁 }, @@ -76,6 +77,9 @@ const user = { SET_BOOKINGLIST: (state, list) => { state.bookingList = list }, + SET_BOOKINGGRIDOPTIONS: (state, obj) => { + state.bookingGridOptions = obj + }, SET_NEEDSAVEPAGES: (state, list) => { state.needSavePages = list }, @@ -270,6 +274,13 @@ const user = { }) }, + setBookingGridOptions({ commit }, obj) { + return new Promise(resolve => { + commit('SET_BOOKINGGRIDOPTIONS', obj) + resolve() + }) + }, + // 设置需要保存页面 setNeedSavePages({ commit }, obj) { return new Promise(resolve => { diff --git a/src/views/main/BookingLedger/detail/modules/operationArea.vue b/src/views/main/BookingLedger/detail/modules/operationArea.vue index c8f22ae..9c9c8b5 100644 --- a/src/views/main/BookingLedger/detail/modules/operationArea.vue +++ b/src/views/main/BookingLedger/detail/modules/operationArea.vue @@ -397,7 +397,6 @@ has-feedback >