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.
66 lines
1.3 KiB
66 lines
1.3 KiB
import { i18n } from '@/i18n'
|
|
import { useStatistics } from '@/composables/useStatistics'
|
|
export const actions = {
|
|
SET_SHOP_LIST(list) {
|
|
this.shopList = list
|
|
},
|
|
SET_INDEX_LIST(list) {
|
|
this.indexList = list
|
|
},
|
|
SET_MENU_LIST(list) {
|
|
this.menuList = list
|
|
},
|
|
SET_BUILDING_LIST(list) {
|
|
this.buildingList = list
|
|
},
|
|
SET_FACILITY_LIST(list) {
|
|
this.facilityList = list
|
|
},
|
|
SET_LANGUAGE(language) {
|
|
i18n.global.locale = language
|
|
this.language = language
|
|
},
|
|
SET_CONFIG(config) {
|
|
this.config = config
|
|
},
|
|
SET_SHOP(shop) {
|
|
this.shop = shop
|
|
if (shop) useStatistics('shop', { shopCode: shop.shopCode })
|
|
},
|
|
SET_CURRENT_FLOOR(currentFloor) {
|
|
this.currentFloor = currentFloor
|
|
},
|
|
SET_SHOW_SEARCH(flag) {
|
|
this.showSearch = flag
|
|
},
|
|
SET_SHOW_DETAIL(flag) {
|
|
this.showDetail = flag
|
|
},
|
|
SET_ISUSE_FACE(flag) {
|
|
this.isUseFace = flag
|
|
},
|
|
SET_ISUSE_SPEECH(flag) {
|
|
this.isUseSpeech = flag
|
|
},
|
|
SET_MAP_DATA(data) {
|
|
this.mapData = data
|
|
},
|
|
SET_FACILITY(data) {
|
|
this.facility = data
|
|
},
|
|
SET_THEME(data) {
|
|
this.theme = data
|
|
},
|
|
SET_FOOD_INDUSTRY_MAP(data) {
|
|
this.foodIndustryMap = data
|
|
},
|
|
SET_MAP_STATUS(flag) {
|
|
this.mapStatus = flag
|
|
},
|
|
SET_SHOW_MAP(v) {
|
|
this.showMap = v
|
|
},
|
|
SET_PATH(v) {
|
|
this.path = v
|
|
}
|
|
}
|
|
|