|
@@ -1,7 +1,13 @@
|
|
|
import Vue from 'vue'
|
|
|
import Vuex from 'vuex'
|
|
|
-import { login, queryFloor, queryfmapID } from '@/api/login.js'
|
|
|
-import { queryBrand } from '@/api/public.js'
|
|
|
+import {
|
|
|
+ login,
|
|
|
+ queryFloor,
|
|
|
+ queryfmapID
|
|
|
+} from '@/api/login.js'
|
|
|
+import {
|
|
|
+ queryBrand
|
|
|
+} from '@/api/public.js'
|
|
|
import axios from 'axios'
|
|
|
import router from '../router'
|
|
|
|
|
@@ -32,6 +38,7 @@ export default new Vuex.Store({
|
|
|
scpzTable: [], //土建装饰图例展示
|
|
|
legendTable: [], //除土建装饰图例展示
|
|
|
remarksText: '', //备注
|
|
|
+ defaultComment: '',
|
|
|
bunkObj: {}, // 铺位名称
|
|
|
currentFloor: {}, //当前选中的楼层信息
|
|
|
accessLevel: -1, // 权限级别
|
|
@@ -55,6 +62,7 @@ export default new Vuex.Store({
|
|
|
scpzTable: (state) => state.scpzTable,
|
|
|
legendTable: (state) => state.legendTable,
|
|
|
remarksText: (state) => state.remarksText,
|
|
|
+ defaultComment: (state) => state.defaultComment,
|
|
|
bunkObj: (state) => state.bunkObj,
|
|
|
showView: (state) => state.showView,
|
|
|
isGetmap: (state) => state.isGetmap,
|
|
@@ -119,6 +127,9 @@ export default new Vuex.Store({
|
|
|
SETREMARKSTEXT(state, data) {
|
|
|
state.remarksText = data
|
|
|
},
|
|
|
+ SETDEFAULTCOMMENT(state, data) {
|
|
|
+ state.defaultComment = data
|
|
|
+ },
|
|
|
SETBUNKOBJ(state, data) {
|
|
|
state.bunkObj = data
|
|
|
},
|
|
@@ -148,10 +159,12 @@ export default new Vuex.Store({
|
|
|
},
|
|
|
actions: {
|
|
|
// 获取项目列表、userId
|
|
|
- async getUserInfo({ commit }, palyload) {
|
|
|
+ async getUserInfo({
|
|
|
+ commit
|
|
|
+ }, palyload) {
|
|
|
await login({
|
|
|
- returnTree: true,
|
|
|
- })
|
|
|
+ returnTree: true,
|
|
|
+ })
|
|
|
.then((res) => {
|
|
|
// 获取用户当前权限
|
|
|
console.log(res.result)
|
|
@@ -234,4 +247,4 @@ export default new Vuex.Store({
|
|
|
},
|
|
|
},
|
|
|
modules: {},
|
|
|
-})
|
|
|
+})
|