12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- import Vue from 'vue'
- import Vuex from 'vuex'
- Vue.use(Vuex)
- export default new Vuex.Store({
- state: {
- editCmd: '',
- legendObj: null,
- graphId: '',
- id: '',
- isPub: 0,
- projectId: 'Pj1101050029',
- categoryId: '',
- equipmentList: []
- },
- mutations: {
-
- SETCHOICELEHEND(state, data) {
- state.editCmd = data;
- },
-
- SETLEGENDOBJ(state, data) {
- state.legendObj = data;
- },
-
- SETPROJECT(state, data) {
- state.graphId = data.graphId;
- state.id = data.id;
-
- },
-
- SETISPUB(state, val) {
- state.isPub = val;
- },
-
- SETCATEGROY(state, val) {
- state.categoryId = val
- },
-
- SETEQUIPLIST(state, val) {
- state.equipmentList.concat(val);
- }
- },
- actions: {
- },
- modules: {
- }
- })
|