system-clients 3.2.1-5 → 3.2.1-6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/components/server/Login.vue +25 -11
package/package.json
CHANGED
@@ -122,19 +122,27 @@
|
|
122
122
|
|
123
123
|
let saveGen = function *(self) {
|
124
124
|
try {
|
125
|
-
|
126
|
-
|
125
|
+
if(self.$login){
|
126
|
+
yield self.$login.login(self.model.ename, self.model.password)
|
127
|
+
}
|
128
|
+
if(self.$appdata){
|
129
|
+
yield self.$appdata.load()
|
127
130
|
|
131
|
+
}
|
128
132
|
if (Vue.$heatCompatibility) {
|
129
133
|
try {
|
130
|
-
|
131
|
-
|
134
|
+
if(self.$loginHeat){
|
135
|
+
yield self.$loginHeat.login(self.model.ename, self.model.password)
|
136
|
+
}
|
137
|
+
if(self.$appdataHeat){
|
138
|
+
yield self.$appdataHeat.load()
|
139
|
+
}
|
132
140
|
} catch (e) {
|
133
141
|
console.log('热力系统登陆失败!')
|
134
142
|
}
|
135
143
|
}
|
136
|
-
|
137
|
-
yield self.$getConfig(self, 'Login')
|
144
|
+
//吴小平
|
145
|
+
// yield self.$getConfig(self, 'Login')
|
138
146
|
console.log('登录配置', self.config)
|
139
147
|
if (self.config.isMac) {
|
140
148
|
// 获取该登录人分公司下的mac配置
|
@@ -167,11 +175,12 @@
|
|
167
175
|
}
|
168
176
|
}
|
169
177
|
// 弱口令验证
|
170
|
-
|
178
|
+
//跳转过来的不进行验证
|
179
|
+
if ((!this.otherLogin) && self.config.weakPassword && !(/^(?:(?=.*[a-zA-Z])(?=.*[0-9])(?=.*[^A-Za-z0-9])).*$/.test(self.model.password))) {
|
171
180
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
172
181
|
self.modifyPwShow = true
|
173
182
|
})
|
174
|
-
} else if (self.config.depPrompt) {
|
183
|
+
} else if ((!this.otherLogin) && self.config.depPrompt) {
|
175
184
|
self.depPromptShow = true
|
176
185
|
} else {
|
177
186
|
self.$goto('home-page', {functions: self.$login.f})
|
@@ -225,15 +234,18 @@
|
|
225
234
|
$('#login-button').click(function (event) {
|
226
235
|
event.preventDefault()
|
227
236
|
$('form').fadeOut(500)
|
228
|
-
})
|
229
|
-
this.createCode()
|
237
|
+
})
|
230
238
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
231
239
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
232
240
|
console.log(subUrl)
|
233
241
|
this.model.ename = window.atob(subUrl[0])
|
234
242
|
this.model.password = window.atob(subUrl[1])
|
235
243
|
console.log('this.model.ename',this.model.ename)
|
244
|
+
this.otherLogin = true
|
236
245
|
this.confirm()
|
246
|
+
}else{
|
247
|
+
//跳转不需要验证码
|
248
|
+
this.createCode()
|
237
249
|
}
|
238
250
|
},
|
239
251
|
data () {
|
@@ -254,6 +266,7 @@
|
|
254
266
|
title: '燃气客服系统',
|
255
267
|
distanceLogin: false
|
256
268
|
},
|
269
|
+
otherLogin:false,
|
257
270
|
login: false,
|
258
271
|
depPromptShow: false,
|
259
272
|
model: {},
|
@@ -305,7 +318,8 @@
|
|
305
318
|
this.login = true
|
306
319
|
// let gen = saveGen(this)
|
307
320
|
// return co(gen)
|
308
|
-
if(this.$login.Verification){
|
321
|
+
if((!this.otherLogin) && this.$login && this.$login.Verification){
|
322
|
+
console.log('跳转过来的不走验证')
|
309
323
|
if(this.picLyanzhengma == '') {
|
310
324
|
this.$showMessage("请输入验证码!").then(()=>{
|
311
325
|
this.login = false
|