|
@@ -116,31 +116,6 @@ export default {
|
116
|
116
|
});
|
117
|
117
|
}
|
118
|
118
|
},
|
119
|
|
- // 假登录
|
120
|
|
- login2() {
|
121
|
|
- var that = this;
|
122
|
|
- this.$http
|
123
|
|
- .post("service/auth/loginEncrypt", {
|
124
|
|
- // username: "DingDanDan",
|
125
|
|
- username: "admin",
|
126
|
|
- password: "20200326"
|
127
|
|
- })
|
128
|
|
- .then(function(res) {
|
129
|
|
- that.loading = false;
|
130
|
|
- if (res.data && res.data.state == 200) {
|
131
|
|
- localStorage.setItem(
|
132
|
|
- "loginUser",
|
133
|
|
- JSON.stringify(res.data.data.user)
|
134
|
|
- );
|
135
|
|
- localStorage.setItem("menu", JSON.stringify(res.data.data.menu));
|
136
|
|
- localStorage.setItem(
|
137
|
|
- "login_requester",
|
138
|
|
- JSON.stringify(res.data.data.requester)
|
139
|
|
- );
|
140
|
|
- that.getConfig(res.data.data.user,res.data.data.requester);
|
141
|
|
- }
|
142
|
|
- });
|
143
|
|
- },
|
144
|
119
|
// 获取版本配置(报修主题:报修人/报修科室)
|
145
|
120
|
// 获取配置
|
146
|
121
|
getConfig(user,requester) {
|