| | |
| | | import { getLayers } from '/@/api/layer' |
| | | import { LayerType } from '/@/types/mapLayer' |
| | | import { WaylineFile } from '/@/types/wayline' |
| | | import getter from './getters' |
| | | import { DevicesCmdExecuteInfo } from '/@/types/device-cmd' |
| | | import map from './map' |
| | | import common from '/@/store/common' |
| | | |
| | | const initStateFunc = () => ({ |
| | | Layers: [ |
| | | { |
| | | name: 'default', |
| | | name: '默认', |
| | | id: '', |
| | | is_distributed: true, |
| | | elements: [], |
| | |
| | | type: 1 |
| | | }, |
| | | { |
| | | name: 'share', |
| | | name: '共享', |
| | | id: '', |
| | | is_distributed: true, |
| | | elements: [], |
| | |
| | | } |
| | | if (info.host.job_number !== undefined) { |
| | | dock.work_osd = info.host |
| | | return |
| | | } |
| | | }, |
| | | SET_DRAW_VISIBLE_INFO (state, bool) { |
| | |
| | | state: initStateFunc, |
| | | getters, |
| | | mutations, |
| | | actions |
| | | actions, |
| | | modules: { |
| | | getter, |
| | | map, |
| | | common |
| | | }, |
| | | } |
| | | |
| | | const rootStore = createStore(storeOptions) |