|
@@ -43,7 +43,9 @@ const xt_user = {
|
43
|
43
|
patients: 20 // 患者数
|
44
|
44
|
},
|
45
|
45
|
|
46
|
|
- org_app_types: [], // 该用户拥有权限的应用的类型集
|
|
46
|
+ scrm_role_exist: false,
|
|
47
|
+ cdm_role_exist: false,
|
|
48
|
+ mall_role_exist: false,
|
47
|
49
|
|
48
|
50
|
// 示例: ['', '',]
|
49
|
51
|
urlfors: []
|
|
@@ -78,7 +80,9 @@ const xt_user = {
|
78
|
80
|
state.subscibe.period_end = cur_info.subscibe.period_end
|
79
|
81
|
state.subscibe.state = cur_info.subscibe.state
|
80
|
82
|
|
81
|
|
- state.org_app_types = cur_info.app_types == null || cur_info.app_types == undefined ? [3] : cur_info.app_types
|
|
83
|
+ state.scrm_role_exist = cur_info.scrm_role_exist
|
|
84
|
+ state.cdm_role_exist = cur_info.cdm_role_exist
|
|
85
|
+ state.mall_role_exist = cur_info.mall_role_exist
|
82
|
86
|
},
|
83
|
87
|
|
84
|
88
|
SET_URLFORS: (state, payload) => {
|
|
@@ -121,7 +125,10 @@ const xt_user = {
|
121
|
125
|
state.subscibe.state = 3
|
122
|
126
|
state.subscibe.patients = 0
|
123
|
127
|
|
124
|
|
- state.org_app_types = []
|
|
128
|
+ state.scrm_role_exist = false
|
|
129
|
+ state.cdm_role_exist = false
|
|
130
|
+ state.mall_role_exist = false
|
|
131
|
+
|
125
|
132
|
state.urlfors = []
|
126
|
133
|
}
|
127
|
134
|
},
|
|
@@ -157,7 +164,9 @@ const xt_user = {
|
157
|
164
|
cur_app_id: infoJSON.current_app_id,
|
158
|
165
|
org: infoJSON.org,
|
159
|
166
|
subscibe: infoJSON.subscibe,
|
160
|
|
- app_types: infoJSON.app_types
|
|
167
|
+ scrm_role_exist: infoJSON.scrm_role_exist,
|
|
168
|
+ cdm_role_exist: infoJSON.cdm_role_exist,
|
|
169
|
+ mall_role_exist: infoJSON.mall_role_exist
|
161
|
170
|
})
|
162
|
171
|
|
163
|
172
|
commit('SET_URLFORS', {
|
|
@@ -168,7 +177,7 @@ const xt_user = {
|
168
|
177
|
verifyToken(token).then(response => {
|
169
|
178
|
if (response.data.state === 1) {
|
170
|
179
|
// alert('验证通过')
|
171
|
|
- console.log('验证通过')
|
|
180
|
+ // console.log('验证通过')
|
172
|
181
|
var data = response.data.data
|
173
|
182
|
this.commit('SET_CURRENT_INFO', {
|
174
|
183
|
user: data.user,
|
|
@@ -176,7 +185,9 @@ const xt_user = {
|
176
|
185
|
cur_app_id: data.current_app_id,
|
177
|
186
|
org: data.org,
|
178
|
187
|
subscibe: data.subscibe,
|
179
|
|
- app_types: data.app_types
|
|
188
|
+ scrm_role_exist: data.scrm_role_exist,
|
|
189
|
+ cdm_role_exist: data.cdm_role_exist,
|
|
190
|
+ mall_role_exist: data.mall_role_exist
|
180
|
191
|
})
|
181
|
192
|
|
182
|
193
|
this.commit('SET_URLFORS', {
|
|
@@ -213,7 +224,9 @@ const xt_user = {
|
213
|
224
|
current_app_id: state.app_id,
|
214
|
225
|
urlfors: state.urlfors,
|
215
|
226
|
subscibe: state.subscibe,
|
216
|
|
- app_types: state.org_app_types
|
|
227
|
+ scrm_role_exist: state.scrm_role_exist,
|
|
228
|
+ cdm_role_exist: state.cdm_role_exist,
|
|
229
|
+ mall_role_exist: state.mall_role_exist
|
217
|
230
|
})
|
218
|
231
|
)
|
219
|
232
|
},
|