|
@@ -149,14 +149,24 @@ export default {
|
149
|
149
|
var list5 = data5.list || [];
|
150
|
150
|
var list6 = data6.list || [];
|
151
|
151
|
var list7 = data7.list || [];
|
152
|
|
- localStorage.setItem("repairMain", JSON.stringify(list1[0]));
|
153
|
|
- localStorage.setItem("incidentWithConsumable", list2[0].valueconfig);
|
154
|
|
- localStorage.setItem("wxIncidentWithCmdb", list3[0].valueconfig);
|
155
|
|
- localStorage.setItem("reqHasCategory", JSON.stringify(list4[0]));
|
156
|
|
- localStorage.setItem("wxBxQuestions", list5[0].valueconfig);
|
157
|
|
- localStorage.setItem("wxGuide", list6[0].valueconfig);
|
158
|
|
- localStorage.setItem("ifRoom", list7[0].valueconfig);
|
159
|
|
- this.roleHandler(null,requester);
|
|
152
|
+ if(list1.length && list2.length && list3.length && list4.length && list5.length && list6.length && list7.length){
|
|
153
|
+ localStorage.setItem("repairMain", JSON.stringify(list1[0]));
|
|
154
|
+ localStorage.setItem("incidentWithConsumable", list2[0].valueconfig);
|
|
155
|
+ localStorage.setItem("wxIncidentWithCmdb", list3[0].valueconfig);
|
|
156
|
+ localStorage.setItem("reqHasCategory", JSON.stringify(list4[0]));
|
|
157
|
+ localStorage.setItem("wxBxQuestions", list5[0].valueconfig);
|
|
158
|
+ localStorage.setItem("wxGuide", list6[0].valueconfig);
|
|
159
|
+ localStorage.setItem("ifRoom", list7[0].valueconfig);
|
|
160
|
+ this.roleHandler(null,requester);
|
|
161
|
+ }else{
|
|
162
|
+ this.$createDialog({
|
|
163
|
+ type: "alert",
|
|
164
|
+ title: "系统配置错误!",
|
|
165
|
+ content: "请稍后再试",
|
|
166
|
+ icon: "cubeic-wrong",
|
|
167
|
+ color: "red"
|
|
168
|
+ }).show();
|
|
169
|
+ }
|
160
|
170
|
}else{
|
161
|
171
|
this.$createDialog({
|
162
|
172
|
type: "alert",
|