system-clients 3.3.3-old → 3.3.3-v3

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.
Files changed (45) hide show
  1. package/package.info +1 -0
  2. package/package.json +105 -105
  3. package/src/components/Main.vue +923 -927
  4. package/src/components/Util.js +15 -0
  5. package/src/components/server/Login.vue +558 -589
  6. package/src/filiale/baole/Login.vue +22 -18
  7. package/src/filiale/chengtou/Login.vue +22 -18
  8. package/src/filiale/dongguan/Login.vue +22 -18
  9. package/src/filiale/dongguan/Main.vue +1 -1
  10. package/src/filiale/furuike/Login.vue +22 -18
  11. package/src/filiale/furuike/Main.vue +1 -1
  12. package/src/filiale/gehua/Main.vue +1 -1
  13. package/src/filiale/konggang/Login.vue +22 -18
  14. package/src/filiale/qianneng/Login.vue +22 -18
  15. package/src/filiale/qianneng/Main.vue +1 -1
  16. package/src/filiale/rizhao/Login.vue +22 -18
  17. package/src/filiale/rizhao/Main.vue +1 -1
  18. package/src/filiale/shiquan/Login.vue +22 -18
  19. package/src/filiale/tianyi/Login.vue +22 -18
  20. package/src/filiale/tongchuan/Login.vue +22 -18
  21. package/src/filiale/tongchuan/Main.vue +1 -1
  22. package/src/filiale/weinan/Main.vue +1 -1
  23. package/src/filiale/wenxi/Login.vue +22 -18
  24. package/src/filiale/wenxi/Main.vue +1 -1
  25. package/src/filiale/wuhai/Main.vue +1 -1
  26. package/src/filiale/yuchuan/Login.vue +22 -18
  27. package/src/filiale/yuchuan/Main.vue +1 -1
  28. package/src/filiale/zhoukou/Main.vue +1 -1
  29. package/src/plugins/EncryptUtil.js +1 -1
  30. package/src/plugins/GetLoginInfoService.js +10 -3
  31. package/.gradle/7.4/checksums/checksums.lock +0 -0
  32. package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
  33. package/.gradle/7.4/dependencies-accessors/gc.properties +0 -0
  34. package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
  35. package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
  36. package/.gradle/7.4/fileChanges/last-build.bin +0 -0
  37. package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
  38. package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
  39. package/.gradle/7.4/gc.properties +0 -0
  40. package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
  41. package/.gradle/buildOutputCleanup/cache.properties +0 -2
  42. package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
  43. package/.gradle/file-system.probe +0 -0
  44. package/.gradle/vcs-1/gc.properties +0 -0
  45. package/build.gradle +0 -6
@@ -145,6 +145,7 @@ import co from 'co'
145
145
  import $ from 'jquery'
146
146
  import Vue from 'vue'
147
147
  import {HttpResetClass} from 'vue-client'
148
+ import {isPasswordModificationExpired} from '../../components/Util'
148
149
 
149
150
  let daibanJson = require('../../util/Daiban.json')
150
151
 
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
204
205
  }
205
206
  }
206
207
  console.log(self.$login.depPrompt)
207
- // 弱口令验证
208
- //跳转过来的不进行验证
209
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
208
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
209
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
210
210
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
211
211
  self.modifyPwShow = true
212
212
  })
213
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
214
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
215
+ self.modifyPwShow = true
216
+ })
213
217
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
214
218
  self.depPromptShow = true
215
219
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -235,6 +239,8 @@ let saveGen = function *(self) {
235
239
 
236
240
  } catch (ret) {
237
241
  console.error('登录失败', ret)
242
+ self.$login.s = null
243
+ self.$login['v3-session-key'] = null
238
244
  let msg
239
245
  if (ret instanceof Error) {
240
246
  msg = ret
@@ -261,19 +267,19 @@ export default {
261
267
  this.titleShow = this.$appdata.getSingleValue('关于我们')
262
268
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
263
269
  this.vTime = this.format(new Date(window.versionTime));
264
- try{
265
- let http = new HttpResetClass()
266
- let res = await http.load('POST', 'rs/sql/singleTable',
267
- {data:{
268
- tablename: 't_changedeclare',
269
- condition: ` f_type ='变更通知' `
270
- }
271
- }, {resolveMsg: null, rejectMsg: null})
272
- if(res.data.length>0){
273
- console.log("---------------获取通知",res.data[0].f_change_message)
274
- this.notice=res.data[0].f_change_message
275
- }
276
- }catch(e){}
270
+ // try{
271
+ // let http = new HttpResetClass()
272
+ // let res = await http.load('POST', 'rs/sql/singleTable',
273
+ // {data:{
274
+ // tablename: 't_changedeclare',
275
+ // condition: ` f_type ='变更通知' `
276
+ // }
277
+ // }, {resolveMsg: null, rejectMsg: null})
278
+ // if(res.data.length>0){
279
+ // console.log("---------------获取通知",res.data[0].f_change_message)
280
+ // this.notice=res.data[0].f_change_message
281
+ // }
282
+ // }catch(e){}
277
283
 
278
284
  this.loginother();
279
285
  $('#login-button').click(function (event) {
@@ -282,10 +288,8 @@ export default {
282
288
  })
283
289
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
284
290
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
285
- console.log(subUrl)
286
291
  this.model.ename = window.atob(subUrl[0])
287
292
  this.model.password = window.atob(subUrl[1])
288
- console.log('this.model.ename',this.model.ename)
289
293
  this.otherLogin = true
290
294
  this.confirm()
291
295
  }else{
@@ -143,6 +143,7 @@ import co from 'co'
143
143
  import $ from 'jquery'
144
144
  import Vue from 'vue'
145
145
  import {HttpResetClass} from 'vue-client'
146
+ import {isPasswordModificationExpired} from '../../components/Util'
146
147
 
147
148
  let daibanJson = require('../../util/Daiban.json')
148
149
 
@@ -202,12 +203,15 @@ let saveGen = function *(self) {
202
203
  }
203
204
  }
204
205
  console.log(self.$login.depPrompt)
205
- // 弱口令验证
206
- //跳转过来的不进行验证
207
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
206
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
207
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
208
208
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
209
209
  self.modifyPwShow = true
210
210
  })
211
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
212
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
213
+ self.modifyPwShow = true
214
+ })
211
215
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
212
216
  self.depPromptShow = true
213
217
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -233,6 +237,8 @@ let saveGen = function *(self) {
233
237
 
234
238
  } catch (ret) {
235
239
  console.error('登录失败', ret)
240
+ self.$login.s = null
241
+ self.$login['v3-session-key'] = null
236
242
  let msg
237
243
  if (ret instanceof Error) {
238
244
  msg = ret
@@ -259,19 +265,19 @@ export default {
259
265
  this.titleShow = this.$appdata.getSingleValue('关于我们')
260
266
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
261
267
  this.vTime = this.format(new Date(window.versionTime));
262
- try{
263
- let http = new HttpResetClass()
264
- let res = await http.load('POST', 'rs/sql/singleTable',
265
- {data:{
266
- tablename: 't_changedeclare',
267
- condition: ` f_type ='变更通知' `
268
- }
269
- }, {resolveMsg: null, rejectMsg: null})
270
- if(res.data.length>0){
271
- console.log("---------------获取通知",res.data[0].f_change_message)
272
- this.notice=res.data[0].f_change_message
273
- }
274
- }catch(e){}
268
+ // try{
269
+ // let http = new HttpResetClass()
270
+ // let res = await http.load('POST', 'rs/sql/singleTable',
271
+ // {data:{
272
+ // tablename: 't_changedeclare',
273
+ // condition: ` f_type ='变更通知' `
274
+ // }
275
+ // }, {resolveMsg: null, rejectMsg: null})
276
+ // if(res.data.length>0){
277
+ // console.log("---------------获取通知",res.data[0].f_change_message)
278
+ // this.notice=res.data[0].f_change_message
279
+ // }
280
+ // }catch(e){}
275
281
 
276
282
  this.loginother();
277
283
  $('#login-button').click(function (event) {
@@ -280,10 +286,8 @@ export default {
280
286
  })
281
287
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
282
288
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
283
- console.log(subUrl)
284
289
  this.model.ename = window.atob(subUrl[0])
285
290
  this.model.password = window.atob(subUrl[1])
286
- console.log('this.model.ename',this.model.ename)
287
291
  this.otherLogin = true
288
292
  this.confirm()
289
293
  }else{
@@ -149,6 +149,7 @@ import co from 'co'
149
149
  import $ from 'jquery'
150
150
  import Vue from 'vue'
151
151
  import {HttpResetClass} from 'vue-client'
152
+ import {isPasswordModificationExpired} from '../../components/Util'
152
153
 
153
154
  let daibanJson = require('../../util/Daiban.json')
154
155
 
@@ -208,12 +209,15 @@ let saveGen = function *(self) {
208
209
  }
209
210
  }
210
211
  console.log(self.$login.depPrompt)
211
- // 弱口令验证
212
- //跳转过来的不进行验证
213
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
212
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
213
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
214
214
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
215
215
  self.modifyPwShow = true
216
216
  })
217
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
218
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
219
+ self.modifyPwShow = true
220
+ })
217
221
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
218
222
  self.depPromptShow = true
219
223
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -239,6 +243,8 @@ let saveGen = function *(self) {
239
243
 
240
244
  } catch (ret) {
241
245
  console.error('登录失败', ret)
246
+ self.$login.s = null
247
+ self.$login['v3-session-key'] = null
242
248
  let msg
243
249
  if (ret instanceof Error) {
244
250
  msg = ret
@@ -263,19 +269,19 @@ export default {
263
269
  title: '登录',
264
270
  async ready () {
265
271
  this.titleShow = true
266
- try{
267
- let http = new HttpResetClass()
268
- let res = await http.load('POST', 'rs/sql/singleTable',
269
- {data:{
270
- tablename: 't_changedeclare',
271
- condition: ` f_type ='变更通知' `
272
- }
273
- }, {resolveMsg: null, rejectMsg: null})
274
- if(res.data.length>0){
275
- console.log("---------------获取通知",res.data[0].f_change_message)
276
- this.notice=res.data[0].f_change_message
277
- }
278
- }catch(e){}
272
+ // try{
273
+ // let http = new HttpResetClass()
274
+ // let res = await http.load('POST', 'rs/sql/singleTable',
275
+ // {data:{
276
+ // tablename: 't_changedeclare',
277
+ // condition: ` f_type ='变更通知' `
278
+ // }
279
+ // }, {resolveMsg: null, rejectMsg: null})
280
+ // if(res.data.length>0){
281
+ // console.log("---------------获取通知",res.data[0].f_change_message)
282
+ // this.notice=res.data[0].f_change_message
283
+ // }
284
+ // }catch(e){}
279
285
 
280
286
  this.loginother();
281
287
  $('#login-button').click(function (event) {
@@ -284,10 +290,8 @@ export default {
284
290
  })
285
291
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
286
292
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
287
- console.log(subUrl)
288
293
  this.model.ename = window.atob(subUrl[0])
289
294
  this.model.password = window.atob(subUrl[1])
290
- console.log('this.model.ename',this.model.ename)
291
295
  this.otherLogin = true
292
296
  this.confirm()
293
297
  }else{
@@ -313,7 +313,7 @@ export default {
313
313
  }
314
314
  },
315
315
  openUrl() {
316
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
316
+ var url = `https://liuli.aofengcloud.com:31467`
317
317
  window.open(url, '_blank')
318
318
  },
319
319
  hindsetting() {
@@ -136,6 +136,7 @@ import co from 'co'
136
136
  import $ from 'jquery'
137
137
  import Vue from 'vue'
138
138
  import {HttpResetClass} from 'vue-client'
139
+ import {isPasswordModificationExpired} from '../../components/Util'
139
140
 
140
141
  let daibanJson = require('../../util/Daiban.json')
141
142
 
@@ -195,12 +196,15 @@ let saveGen = function *(self) {
195
196
  }
196
197
  }
197
198
  console.log(self.$login.depPrompt)
198
- // 弱口令验证
199
- //跳转过来的不进行验证
200
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
199
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
200
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
201
201
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
202
202
  self.modifyPwShow = true
203
203
  })
204
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
205
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
206
+ self.modifyPwShow = true
207
+ })
204
208
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
205
209
  self.depPromptShow = true
206
210
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -227,6 +231,8 @@ let saveGen = function *(self) {
227
231
 
228
232
  } catch (ret) {
229
233
  console.error('登录失败', ret)
234
+ self.$login.s = null
235
+ self.$login['v3-session-key'] = null
230
236
  let msg
231
237
  if (ret instanceof Error) {
232
238
  msg = ret
@@ -292,19 +298,19 @@ export default {
292
298
  this.titleShow = this.$appdata.getSingleValue('关于我们')
293
299
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
294
300
  this.vTime = this.format(new Date(window.versionTime));
295
- try{
296
- let http = new HttpResetClass()
297
- let res = await http.load('POST', 'rs/sql/singleTable',
298
- {data:{
299
- tablename: 't_changedeclare',
300
- condition: ` f_type ='变更通知' `
301
- }
302
- }, {resolveMsg: null, rejectMsg: null})
303
- if(res.data.length>0){
304
- console.log("---------------获取通知",res.data[0].f_change_message)
305
- this.notice=res.data[0].f_change_message
306
- }
307
- }catch(e){}
301
+ // try{
302
+ // let http = new HttpResetClass()
303
+ // let res = await http.load('POST', 'rs/sql/singleTable',
304
+ // {data:{
305
+ // tablename: 't_changedeclare',
306
+ // condition: ` f_type ='变更通知' `
307
+ // }
308
+ // }, {resolveMsg: null, rejectMsg: null})
309
+ // if(res.data.length>0){
310
+ // console.log("---------------获取通知",res.data[0].f_change_message)
311
+ // this.notice=res.data[0].f_change_message
312
+ // }
313
+ // }catch(e){}
308
314
 
309
315
  this.loginother();
310
316
  $('#login-button').click(function (event) {
@@ -313,10 +319,8 @@ export default {
313
319
  })
314
320
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
315
321
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
316
- console.log(subUrl)
317
322
  this.model.ename = window.atob(subUrl[0])
318
323
  this.model.password = window.atob(subUrl[1])
319
- console.log('this.model.ename',this.model.ename)
320
324
  this.otherLogin = true
321
325
  this.confirm()
322
326
  }else{
@@ -425,7 +425,7 @@ export default {
425
425
  }
426
426
  },
427
427
  openUrl() {
428
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
428
+ var url = `https://liuli.aofengcloud.com:31467`
429
429
  window.open(url, '_blank')
430
430
  },
431
431
  hindsetting() {
@@ -363,7 +363,7 @@ export default {
363
363
  }
364
364
  },
365
365
  openUrl() {
366
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
366
+ var url = `https://liuli.aofengcloud.com:31467`
367
367
  window.open(url, '_blank')
368
368
  },
369
369
  hindsetting() {
@@ -134,6 +134,7 @@
134
134
  import $ from 'jquery'
135
135
  import Vue from 'vue'
136
136
  import {HttpResetClass} from 'vue-client'
137
+ import {isPasswordModificationExpired} from '../../components/Util'
137
138
 
138
139
 
139
140
 
@@ -191,12 +192,15 @@
191
192
  }
192
193
  }
193
194
  console.log(self.$login.depPrompt)
194
- // 弱口令验证
195
- //跳转过来的不进行验证
196
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
195
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
196
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
197
197
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
198
198
  self.modifyPwShow = true
199
199
  })
200
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
201
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
202
+ self.modifyPwShow = true
203
+ })
200
204
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
201
205
  self.depPromptShow = true
202
206
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -217,6 +221,8 @@
217
221
 
218
222
  } catch (ret) {
219
223
  console.error('登录失败', ret)
224
+ self.$login.s = null
225
+ self.$login['v3-session-key'] = null
220
226
  let msg
221
227
  if (ret instanceof Error) {
222
228
  msg = ret
@@ -240,19 +246,19 @@
240
246
  export default {
241
247
  title: '登录',
242
248
  async ready () {
243
- try{
244
- let http = new HttpResetClass()
245
- let res = await http.load('POST', 'rs/sql/singleTable',
246
- {data:{
247
- tablename: 't_changedeclare',
248
- condition: ` f_type ='变更通知' `
249
- }
250
- }, {resolveMsg: null, rejectMsg: null})
251
- if(res.data.length>0){
252
- console.log("---------------获取通知",res.data[0].f_change_message)
253
- this.notice=res.data[0].f_change_message
254
- }
255
- }catch(e){}
249
+ // try{
250
+ // let http = new HttpResetClass()
251
+ // let res = await http.load('POST', 'rs/sql/singleTable',
252
+ // {data:{
253
+ // tablename: 't_changedeclare',
254
+ // condition: ` f_type ='变更通知' `
255
+ // }
256
+ // }, {resolveMsg: null, rejectMsg: null})
257
+ // if(res.data.length>0){
258
+ // console.log("---------------获取通知",res.data[0].f_change_message)
259
+ // this.notice=res.data[0].f_change_message
260
+ // }
261
+ // }catch(e){}
256
262
 
257
263
  this.loginother();
258
264
  $('#login-button').click(function (event) {
@@ -261,10 +267,8 @@
261
267
  })
262
268
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
263
269
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
264
- console.log(subUrl)
265
270
  this.model.ename = window.atob(subUrl[0])
266
271
  this.model.password = window.atob(subUrl[1])
267
- console.log('this.model.ename',this.model.ename)
268
272
  this.otherLogin = true
269
273
  this.confirm()
270
274
  }else{
@@ -145,6 +145,7 @@ import co from 'co'
145
145
  import $ from 'jquery'
146
146
  import Vue from 'vue'
147
147
  import {HttpResetClass} from 'vue-client'
148
+ import {isPasswordModificationExpired} from '../../components/Util'
148
149
  import cryptJS from "../../plugins/EncryptUtil";
149
150
 
150
151
  let daibanJson = require('../../util/Daiban.json')
@@ -204,12 +205,15 @@ let saveGen = function *(self) {
204
205
  }
205
206
  }
206
207
  console.log(self.$login.depPrompt)
207
- // 弱口令验证
208
- //跳转过来的不进行验证
209
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
208
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
209
+ if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(.)(\1)+)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
210
210
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
211
211
  self.modifyPwShow = true
212
212
  })
213
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
214
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
215
+ self.modifyPwShow = true
216
+ })
213
217
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
214
218
  self.depPromptShow = true
215
219
  if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
@@ -230,6 +234,8 @@ let saveGen = function *(self) {
230
234
  }
231
235
  } catch (ret) {
232
236
  console.error('登录失败', ret)
237
+ self.$login.s = null
238
+ self.$login['v3-session-key'] = null
233
239
  let msg
234
240
  if (ret instanceof Error) {
235
241
  msg = ret
@@ -258,19 +264,19 @@ export default {
258
264
  this.titleShow = this.$appdata.getSingleValue('关于我们')
259
265
  window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
260
266
  this.vTime = this.format(new Date(window.versionTime));
261
- try{
262
- let http = new HttpResetClass()
263
- let res = await http.load('POST', 'rs/sql/singleTable',
264
- {data:{
265
- tablename: 't_changedeclare',
266
- condition: ` f_type ='变更通知' `
267
- }
268
- }, {resolveMsg: null, rejectMsg: null})
269
- if(res.data.length>0){
270
- console.log("---------------获取通知",res.data[0].f_change_message)
271
- this.notice=res.data[0].f_change_message
272
- }
273
- }catch(e){}
267
+ // try{
268
+ // let http = new HttpResetClass()
269
+ // let res = await http.load('POST', 'rs/sql/singleTable',
270
+ // {data:{
271
+ // tablename: 't_changedeclare',
272
+ // condition: ` f_type ='变更通知' `
273
+ // }
274
+ // }, {resolveMsg: null, rejectMsg: null})
275
+ // if(res.data.length>0){
276
+ // console.log("---------------获取通知",res.data[0].f_change_message)
277
+ // this.notice=res.data[0].f_change_message
278
+ // }
279
+ // }catch(e){}
274
280
 
275
281
  this.loginother();
276
282
  $('#login-button').click(function (event) {
@@ -294,10 +300,8 @@ export default {
294
300
  this.confirm()
295
301
  } else if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
296
302
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
297
- console.log(subUrl)
298
303
  this.model.ename = window.atob(subUrl[0])
299
304
  this.model.password = window.atob(subUrl[1])
300
- console.log('this.model.ename',this.model.ename)
301
305
  this.otherLogin = true
302
306
  this.confirm()
303
307
  }else{
@@ -372,7 +372,7 @@ export default {
372
372
  }
373
373
  },
374
374
  openUrl() {
375
- var url = `http://123.60.214.109:8406/submitTicket?personName=${this.$login.f.name}&orgName=${this.$login.f.orgs}`
375
+ var url = `https://liuli.aofengcloud.com:31467`
376
376
  window.open(url, '_blank')
377
377
  },
378
378
  hindsetting() {
@@ -124,6 +124,7 @@ import co from 'co'
124
124
  import $ from 'jquery'
125
125
  import Vue from 'vue'
126
126
  import {HttpResetClass} from 'vue-client'
127
+ import {isPasswordModificationExpired} from '../../components/Util'
127
128
 
128
129
 
129
130
 
@@ -182,12 +183,15 @@ let saveGen = function *(self) {
182
183
  }
183
184
  }
184
185
  console.log(self.$login.depPrompt)
185
- // 弱口令验证
186
- //跳转过来的不进行验证
187
- if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
186
+ // 弱口令验证(默认开启,跳转过来的不进行验证)
187
+ if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
188
188
  self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
189
189
  self.modifyPwShow = true
190
190
  })
191
+ } else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
192
+ self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
193
+ self.modifyPwShow = true
194
+ })
191
195
  } else if ((!self.otherLogin) && self.$login.depPrompt) {
192
196
  self.depPromptShow = true
193
197
  } else {
@@ -204,6 +208,8 @@ let saveGen = function *(self) {
204
208
 
205
209
  } catch (ret) {
206
210
  console.error('登录失败', ret)
211
+ self.$login.s = null
212
+ self.$login['v3-session-key'] = null
207
213
  let msg
208
214
  if (ret instanceof Error) {
209
215
  msg = ret
@@ -227,19 +233,19 @@ let saveGen = function *(self) {
227
233
  export default {
228
234
  title: '登录',
229
235
  async ready () {
230
- try{
231
- let http = new HttpResetClass()
232
- let res = await http.load('POST', 'rs/sql/singleTable',
233
- {data:{
234
- tablename: 't_changedeclare',
235
- condition: ` f_type ='变更通知' `
236
- }
237
- }, {resolveMsg: null, rejectMsg: null})
238
- if(res.data.length>0){
239
- console.log("---------------获取通知",res.data[0].f_change_message)
240
- this.notice=res.data[0].f_change_message
241
- }
242
- }catch(e){}
236
+ // try{
237
+ // let http = new HttpResetClass()
238
+ // let res = await http.load('POST', 'rs/sql/singleTable',
239
+ // {data:{
240
+ // tablename: 't_changedeclare',
241
+ // condition: ` f_type ='变更通知' `
242
+ // }
243
+ // }, {resolveMsg: null, rejectMsg: null})
244
+ // if(res.data.length>0){
245
+ // console.log("---------------获取通知",res.data[0].f_change_message)
246
+ // this.notice=res.data[0].f_change_message
247
+ // }
248
+ // }catch(e){}
243
249
 
244
250
  this.loginother();
245
251
  $('#login-button').click(function (event) {
@@ -248,10 +254,8 @@ export default {
248
254
  })
249
255
  if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
250
256
  const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
251
- console.log(subUrl)
252
257
  this.model.ename = window.atob(subUrl[0])
253
258
  this.model.password = window.atob(subUrl[1])
254
- console.log('this.model.ename',this.model.ename)
255
259
  this.otherLogin = true
256
260
  this.confirm()
257
261
  }else{
@@ -216,7 +216,7 @@ export default {
216
216
  }
217
217
  },
218
218
  openUrl() {
219
- var url = `http://123.60.214.109:8406/submitTicket?contact=${this.$login.f.name}&orgName=${this.$login.f.orgs}&phone=${this.$login.f.f_user_telephone}`
219
+ var url = `https://liuli.aofengcloud.com:31467`
220
220
  window.open(url, '_blank')
221
221
  },
222
222
  hindsetting() {