system-clients 3.3.2 → 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.
- package/package.info +1 -0
- package/package.json +105 -105
- package/src/LodopFuncs.js +71 -103
- package/src/components/Main.vue +923 -935
- package/src/components/Util.js +15 -0
- package/src/components/equipment/PcAdd.vue +1 -1
- package/src/components/equipment/PcList.vue +3 -3
- package/src/components/equipment/PhoneAdd.vue +1 -1
- package/src/components/equipment/PhoneList.vue +2 -2
- package/src/components/equipment/PosAdd.vue +11 -7
- package/src/components/equipment/PosList.vue +5 -3
- package/src/components/equipment/PosManage.vue +1 -1
- package/src/components/equipment/PosParamAdd.vue +2 -2
- package/src/components/equipment/PosParamList.vue +2 -2
- package/src/components/materialManage/materialList.vue +1 -1
- package/src/components/parammanage/ParamPage.vue +12 -12
- package/src/components/parammanage/ParamPages.vue +2 -2
- package/src/components/parammanage/SinglePage.vue +8 -8
- package/src/components/parammanage/SinglePages.vue +2 -2
- package/src/components/server/AddChangeMsg.vue +1 -1
- package/src/components/server/ChangeDeclare.vue +1 -1
- package/src/components/server/Login.vue +558 -575
- package/src/components/server/ModifyPw.vue +0 -1
- package/src/components/server/PcdBuildingSelect.vue +6 -8
- package/src/components/server/ResSelect.vue +0 -3
- package/src/components/server/ResSelectGroup.vue +1 -1
- package/src/components/server/RoleSelector.vue +2 -3
- package/src/components/server/TestResSelectGroup.vue +1 -1
- package/src/filiale/baole/Login.vue +23 -21
- package/src/filiale/chengtou/Login.vue +23 -21
- package/src/filiale/dongguan/Login.vue +23 -21
- package/src/filiale/dongguan/Main.vue +3 -5
- package/src/filiale/furuike/Login.vue +24 -24
- package/src/filiale/furuike/Main.vue +26 -39
- package/src/filiale/gehua/Main.vue +3 -5
- package/src/filiale/konggang/Login.vue +23 -21
- package/src/filiale/qianneng/Login.vue +23 -21
- package/src/filiale/qianneng/Main.vue +3 -5
- package/src/filiale/qianneng/ModifyPw.vue +0 -1
- package/src/filiale/rizhao/Login.vue +22 -20
- package/src/filiale/rizhao/Main.vue +3 -3
- package/src/filiale/shiquan/Login.vue +23 -21
- package/src/filiale/tianyi/Login.vue +23 -21
- package/src/filiale/tongchuan/Login.vue +23 -21
- package/src/filiale/tongchuan/Main.vue +6 -8
- package/src/filiale/weinan/Main.vue +6 -7
- package/src/filiale/wenxi/Login.vue +23 -21
- package/src/filiale/wenxi/Main.vue +3 -5
- package/src/filiale/wuhai/Main.vue +3 -6
- package/src/filiale/yuchuan/Login.vue +24 -22
- package/src/filiale/yuchuan/Main.vue +3 -5
- package/src/filiale/zhoukou/Main.vue +3 -5
- package/src/plugins/EncryptUtil.js +1 -1
- package/src/plugins/GetLoginInfoService.js +85 -20
- package/src/stores/AppData.js +1 -1
- package/build.gradle +0 -6
- package/src/filiale/ruihua/Login.vue +0 -549
- package/src/filiale/ruihua/system.js +0 -5
|
@@ -62,7 +62,6 @@
|
|
|
62
62
|
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
|
63
63
|
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
|
64
64
|
// Util.f.password = self.deliver.newpassword
|
|
65
|
-
// todo v4
|
|
66
65
|
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
|
|
67
66
|
self.$login.f.password = self.deliver.newpassword
|
|
68
67
|
if (res.data) {
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
self.arrays.pcd=[{label:'全部',value:''}]
|
|
67
67
|
if(self.show.pcdShow){
|
|
68
68
|
let HttpReset = new HttpResetClass()
|
|
69
|
-
var pcd = await HttpReset.load('POST', '
|
|
69
|
+
var pcd = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
|
|
70
70
|
data: {
|
|
71
71
|
items: 'f_pcd',
|
|
72
72
|
tablename: 't_pcd',
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}else if(self.show.streetShow){
|
|
81
81
|
console.log("------------查街道")
|
|
82
82
|
let HttpReset = new HttpResetClass()
|
|
83
|
-
var street = await HttpReset.load('POST', '
|
|
83
|
+
var street = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
|
|
84
84
|
data: {
|
|
85
85
|
items: 'f_street',
|
|
86
86
|
tablename: 't_street',
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
}
|
|
94
94
|
}else if(self.show.areaShow){
|
|
95
95
|
let HttpReset = new HttpResetClass()
|
|
96
|
-
var area = await HttpReset.load('POST', '
|
|
96
|
+
var area = await HttpReset.load('POST', 'rs/sql/singleTable_OrderBy', {
|
|
97
97
|
data: {
|
|
98
98
|
items: 'f_residential_area',
|
|
99
99
|
tablename: 't_area',
|
|
@@ -155,8 +155,7 @@
|
|
|
155
155
|
async pcdChange(){
|
|
156
156
|
this.arrays.street=[{label:'全部',value:''}]
|
|
157
157
|
var condition = `f_filialeid = '${this.$login.f.orgid}' and f_street is not null group by f_street`
|
|
158
|
-
|
|
159
|
-
let street = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
|
|
158
|
+
let street = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
160
159
|
data: {
|
|
161
160
|
items: 'f_street',
|
|
162
161
|
tablename: 't_street',
|
|
@@ -172,7 +171,7 @@
|
|
|
172
171
|
async streetChange(){
|
|
173
172
|
this.arrays.area=[{label:'全部',value:''}]
|
|
174
173
|
var condition = `f_street = '${this.model.f_street?this.model.f_street:null}' and f_residential_area is not null group by f_residential_area`
|
|
175
|
-
let area = await this.$resetpost('
|
|
174
|
+
let area = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
176
175
|
data: {
|
|
177
176
|
items: 'f_residential_area',
|
|
178
177
|
tablename: 't_area',
|
|
@@ -193,8 +192,7 @@
|
|
|
193
192
|
}else{
|
|
194
193
|
condition = `f_filialeid = '${this.$login.f.orgid}' and f_building is not null group by f_building`
|
|
195
194
|
}
|
|
196
|
-
|
|
197
|
-
let build = await this.$resetpost('api/af-revenue/sql/singleTable_OrderBy', {
|
|
195
|
+
let build = await this.$resetpost('rs/sql/singleTable_OrderBy', {
|
|
198
196
|
data: {
|
|
199
197
|
items: 'f_building',
|
|
200
198
|
tablename: 't_user_address',
|
|
@@ -80,9 +80,6 @@
|
|
|
80
80
|
//找到跟节点
|
|
81
81
|
ergodicList (val,parentname) {
|
|
82
82
|
if(val.children.length > 0 ){
|
|
83
|
-
if (val.name !== '组织机构' && parentname !== '资源管理'){
|
|
84
|
-
this.resoptions.push({label: parentname === '组织机构' ? val.name : val.name+' - '+parentname, value: val.id})
|
|
85
|
-
}
|
|
86
83
|
parentname=parentname+val.name
|
|
87
84
|
this.treetoList(val,parentname)
|
|
88
85
|
}else {
|
|
@@ -167,7 +167,7 @@ export default {
|
|
|
167
167
|
for (let row of this.$refs.department.resoptions) {
|
|
168
168
|
depids.push(row.value)
|
|
169
169
|
}
|
|
170
|
-
let depid = depids.length ? plugin.convertToIn(depids) :
|
|
170
|
+
let depid = depids.length ? plugin.convertToIn(depids) : ('')
|
|
171
171
|
condition += " and f_depid in " + depid;
|
|
172
172
|
}
|
|
173
173
|
}
|
|
@@ -51,7 +51,6 @@
|
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
ready() {
|
|
54
|
-
// todo v4
|
|
55
54
|
this.$resetpost('/rs/search', {data: {source: this.source, userid: this.$login.f.id}}, {resolveMsg: null, rejectMsg: null})
|
|
56
55
|
.then(res => {
|
|
57
56
|
console.log('res-->' + JSON.stringify(res))
|
|
@@ -66,7 +65,7 @@
|
|
|
66
65
|
this.$dispatch('re-res',obj)
|
|
67
66
|
},
|
|
68
67
|
filterUser(resids) {
|
|
69
|
-
// 处理第一次进入页面值异常问题
|
|
68
|
+
// 处理第一次进入页面值异常问题
|
|
70
69
|
if(resids.length > 0 && typeof resids[0] == "object"){
|
|
71
70
|
resids = resids[0]
|
|
72
71
|
}
|
|
@@ -87,4 +86,4 @@
|
|
|
87
86
|
|
|
88
87
|
<style scoped>
|
|
89
88
|
|
|
90
|
-
</style>
|
|
89
|
+
</style>
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
|
|
43
43
|
<export-excel :data="$parent.$parent.getCondition"
|
|
44
44
|
:field="$parent.$parent.getfield"
|
|
45
|
-
sqlurl="
|
|
45
|
+
sqlurl="rs/logic/exportfile" sql-name="chargeQuery" template-name='收费查询导出'
|
|
46
46
|
:choose-col="true"></export-excel>
|
|
47
47
|
|
|
48
48
|
<print-data :model="$parent.model" :field="$parent.$parent.getfield"
|
|
@@ -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
|
|
|
@@ -175,7 +176,6 @@ let saveGen = function *(self) {
|
|
|
175
176
|
console.log('登录配置', self.config)
|
|
176
177
|
if (self.config.isMac) {
|
|
177
178
|
// 获取该登录人分公司下的mac配置
|
|
178
|
-
// todo v4
|
|
179
179
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
|
180
180
|
resolveMsg: null,
|
|
181
181
|
rejectMsg: null
|
|
@@ -205,12 +205,15 @@ let saveGen = function *(self) {
|
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
console.log(self.$login.depPrompt)
|
|
208
|
-
//
|
|
209
|
-
|
|
210
|
-
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))) {
|
|
211
210
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
212
211
|
self.modifyPwShow = true
|
|
213
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
|
+
})
|
|
214
217
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
215
218
|
self.depPromptShow = true
|
|
216
219
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -236,6 +239,8 @@ let saveGen = function *(self) {
|
|
|
236
239
|
|
|
237
240
|
} catch (ret) {
|
|
238
241
|
console.error('登录失败', ret)
|
|
242
|
+
self.$login.s = null
|
|
243
|
+
self.$login['v3-session-key'] = null
|
|
239
244
|
let msg
|
|
240
245
|
if (ret instanceof Error) {
|
|
241
246
|
msg = ret
|
|
@@ -262,19 +267,19 @@ export default {
|
|
|
262
267
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
263
268
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
264
269
|
this.vTime = this.format(new Date(window.versionTime));
|
|
265
|
-
try{
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
}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){}
|
|
278
283
|
|
|
279
284
|
this.loginother();
|
|
280
285
|
$('#login-button').click(function (event) {
|
|
@@ -283,10 +288,8 @@ export default {
|
|
|
283
288
|
})
|
|
284
289
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
285
290
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
286
|
-
console.log(subUrl)
|
|
287
291
|
this.model.ename = window.atob(subUrl[0])
|
|
288
292
|
this.model.password = window.atob(subUrl[1])
|
|
289
|
-
console.log('this.model.ename',this.model.ename)
|
|
290
293
|
this.otherLogin = true
|
|
291
294
|
this.confirm()
|
|
292
295
|
}else{
|
|
@@ -364,7 +367,7 @@ export default {
|
|
|
364
367
|
} else {
|
|
365
368
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
|
366
369
|
}
|
|
367
|
-
await http.load('POST', '/
|
|
370
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
368
371
|
tablename:'t_order_center',
|
|
369
372
|
condition:condition
|
|
370
373
|
}}, {
|
|
@@ -440,7 +443,6 @@ export default {
|
|
|
440
443
|
if (this.config.distanceLogin) {
|
|
441
444
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
|
442
445
|
let ename = this.$login.getUrlParames('name');
|
|
443
|
-
// todo v4
|
|
444
446
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
|
445
447
|
if(logininfo.data){
|
|
446
448
|
if(logininfo.data.ename && logininfo.data.password){
|
|
@@ -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
|
|
|
@@ -173,7 +174,6 @@ let saveGen = function *(self) {
|
|
|
173
174
|
console.log('登录配置', self.config)
|
|
174
175
|
if (self.config.isMac) {
|
|
175
176
|
// 获取该登录人分公司下的mac配置
|
|
176
|
-
// todo v4
|
|
177
177
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
|
178
178
|
resolveMsg: null,
|
|
179
179
|
rejectMsg: null
|
|
@@ -203,12 +203,15 @@ let saveGen = function *(self) {
|
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
205
|
console.log(self.$login.depPrompt)
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
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))) {
|
|
209
208
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
210
209
|
self.modifyPwShow = true
|
|
211
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
|
+
})
|
|
212
215
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
213
216
|
self.depPromptShow = true
|
|
214
217
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -234,6 +237,8 @@ let saveGen = function *(self) {
|
|
|
234
237
|
|
|
235
238
|
} catch (ret) {
|
|
236
239
|
console.error('登录失败', ret)
|
|
240
|
+
self.$login.s = null
|
|
241
|
+
self.$login['v3-session-key'] = null
|
|
237
242
|
let msg
|
|
238
243
|
if (ret instanceof Error) {
|
|
239
244
|
msg = ret
|
|
@@ -260,19 +265,19 @@ export default {
|
|
|
260
265
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
261
266
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
262
267
|
this.vTime = this.format(new Date(window.versionTime));
|
|
263
|
-
try{
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
}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){}
|
|
276
281
|
|
|
277
282
|
this.loginother();
|
|
278
283
|
$('#login-button').click(function (event) {
|
|
@@ -281,10 +286,8 @@ export default {
|
|
|
281
286
|
})
|
|
282
287
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
283
288
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
284
|
-
console.log(subUrl)
|
|
285
289
|
this.model.ename = window.atob(subUrl[0])
|
|
286
290
|
this.model.password = window.atob(subUrl[1])
|
|
287
|
-
console.log('this.model.ename',this.model.ename)
|
|
288
291
|
this.otherLogin = true
|
|
289
292
|
this.confirm()
|
|
290
293
|
}else{
|
|
@@ -362,7 +365,7 @@ export default {
|
|
|
362
365
|
} else {
|
|
363
366
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
|
364
367
|
}
|
|
365
|
-
await http.load('POST', '/
|
|
368
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
366
369
|
tablename:'t_order_center',
|
|
367
370
|
condition:condition
|
|
368
371
|
}}, {
|
|
@@ -438,7 +441,6 @@ export default {
|
|
|
438
441
|
if (this.config.distanceLogin) {
|
|
439
442
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
|
440
443
|
let ename = this.$login.getUrlParames('name');
|
|
441
|
-
// todo v4
|
|
442
444
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
|
443
445
|
if(logininfo.data){
|
|
444
446
|
if(logininfo.data.ename && logininfo.data.password){
|
|
@@ -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
|
|
|
@@ -179,7 +180,6 @@ let saveGen = function *(self) {
|
|
|
179
180
|
console.log('登录配置', self.config)
|
|
180
181
|
if (self.config.isMac) {
|
|
181
182
|
// 获取该登录人分公司下的mac配置
|
|
182
|
-
// todo v4
|
|
183
183
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
|
184
184
|
resolveMsg: null,
|
|
185
185
|
rejectMsg: null
|
|
@@ -209,12 +209,15 @@ let saveGen = function *(self) {
|
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
console.log(self.$login.depPrompt)
|
|
212
|
-
//
|
|
213
|
-
|
|
214
|
-
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))) {
|
|
215
214
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
216
215
|
self.modifyPwShow = true
|
|
217
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
|
+
})
|
|
218
221
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
219
222
|
self.depPromptShow = true
|
|
220
223
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -240,6 +243,8 @@ let saveGen = function *(self) {
|
|
|
240
243
|
|
|
241
244
|
} catch (ret) {
|
|
242
245
|
console.error('登录失败', ret)
|
|
246
|
+
self.$login.s = null
|
|
247
|
+
self.$login['v3-session-key'] = null
|
|
243
248
|
let msg
|
|
244
249
|
if (ret instanceof Error) {
|
|
245
250
|
msg = ret
|
|
@@ -264,19 +269,19 @@ export default {
|
|
|
264
269
|
title: '登录',
|
|
265
270
|
async ready () {
|
|
266
271
|
this.titleShow = true
|
|
267
|
-
try{
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
}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){}
|
|
280
285
|
|
|
281
286
|
this.loginother();
|
|
282
287
|
$('#login-button').click(function (event) {
|
|
@@ -285,10 +290,8 @@ export default {
|
|
|
285
290
|
})
|
|
286
291
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
287
292
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
288
|
-
console.log(subUrl)
|
|
289
293
|
this.model.ename = window.atob(subUrl[0])
|
|
290
294
|
this.model.password = window.atob(subUrl[1])
|
|
291
|
-
console.log('this.model.ename',this.model.ename)
|
|
292
295
|
this.otherLogin = true
|
|
293
296
|
this.confirm()
|
|
294
297
|
}else{
|
|
@@ -353,7 +356,7 @@ export default {
|
|
|
353
356
|
} else {
|
|
354
357
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
|
355
358
|
}
|
|
356
|
-
await http.load('POST', '/
|
|
359
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
357
360
|
tablename:'t_order_center',
|
|
358
361
|
condition:condition
|
|
359
362
|
}}, {
|
|
@@ -429,7 +432,6 @@ export default {
|
|
|
429
432
|
if (this.config.distanceLogin) {
|
|
430
433
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
|
431
434
|
let ename = this.$login.getUrlParames('name');
|
|
432
|
-
// todo v4
|
|
433
435
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
|
434
436
|
if(logininfo.data){
|
|
435
437
|
if(logininfo.data.ename && logininfo.data.password){
|
|
@@ -97,8 +97,7 @@ let getwartermakr = async function (self) {
|
|
|
97
97
|
tablename: 't_singlevalue',
|
|
98
98
|
condition: " 1=1 and name=\'水印内容\'"
|
|
99
99
|
};
|
|
100
|
-
|
|
101
|
-
let result = await self.$resetpost('api/af-revenue/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
100
|
+
let result = await self.$resetpost('rs/sql/saleSingleTable', {data: param}, {resolveMsg: null, rejectMsg: null});
|
|
102
101
|
if (result && result.data.length > 0) {
|
|
103
102
|
self.showwatermakeflag = true;
|
|
104
103
|
createWaterMark(result.data[0].value);
|
|
@@ -242,7 +241,7 @@ export default {
|
|
|
242
241
|
this.OrderDaiBan = ''
|
|
243
242
|
this.AppDaiBan = ''
|
|
244
243
|
let http = new HttpResetClass()
|
|
245
|
-
await http.load('POST', '/
|
|
244
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
246
245
|
tablename:'t_order_center',
|
|
247
246
|
condition:` (f_orderstate != '预约成功' and f_orgstr ='${this.$login.f.orgid}' and f_orderstate != '预约失败' ) or f_orderstate is null`
|
|
248
247
|
}}, {
|
|
@@ -314,7 +313,7 @@ export default {
|
|
|
314
313
|
}
|
|
315
314
|
},
|
|
316
315
|
openUrl() {
|
|
317
|
-
var url = `
|
|
316
|
+
var url = `https://liuli.aofengcloud.com:31467`
|
|
318
317
|
window.open(url, '_blank')
|
|
319
318
|
},
|
|
320
319
|
hindsetting() {
|
|
@@ -393,7 +392,6 @@ export default {
|
|
|
393
392
|
username: this.$login.f.name,
|
|
394
393
|
usertelephone: this.$login.f.f_user_telephone
|
|
395
394
|
}
|
|
396
|
-
// todo v4
|
|
397
395
|
await this.$resetpost('rs/logic/logOut', data, {resolveMsg: '退出成功', rejectMsg: null})
|
|
398
396
|
window.location.reload()
|
|
399
397
|
}
|
|
@@ -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
|
|
|
@@ -166,7 +167,6 @@ let saveGen = function *(self) {
|
|
|
166
167
|
console.log('登录配置', self.config)
|
|
167
168
|
if (self.config.isMac) {
|
|
168
169
|
// 获取该登录人分公司下的mac配置
|
|
169
|
-
// todo v4
|
|
170
170
|
let getMacs = yield self.$resetpost('rs/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
|
171
171
|
resolveMsg: null,
|
|
172
172
|
rejectMsg: null
|
|
@@ -196,12 +196,15 @@ let saveGen = function *(self) {
|
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
console.log(self.$login.depPrompt)
|
|
199
|
-
//
|
|
200
|
-
|
|
201
|
-
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))) {
|
|
202
201
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
203
202
|
self.modifyPwShow = true
|
|
204
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
|
+
})
|
|
205
208
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
206
209
|
self.depPromptShow = true
|
|
207
210
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -228,6 +231,8 @@ let saveGen = function *(self) {
|
|
|
228
231
|
|
|
229
232
|
} catch (ret) {
|
|
230
233
|
console.error('登录失败', ret)
|
|
234
|
+
self.$login.s = null
|
|
235
|
+
self.$login['v3-session-key'] = null
|
|
231
236
|
let msg
|
|
232
237
|
if (ret instanceof Error) {
|
|
233
238
|
msg = ret
|
|
@@ -264,14 +269,12 @@ export default {
|
|
|
264
269
|
st: obj.ticket,
|
|
265
270
|
serviceKey: this.config.serviceKey
|
|
266
271
|
}
|
|
267
|
-
// todo v4
|
|
268
272
|
this.$resetpost('/sso/logic/serviceValidate', params,{resolveMsg: null, rejectMsg: null}).then((re) => {
|
|
269
273
|
// this.$showMessage("re----" + JSON.stringify(re))
|
|
270
274
|
if (re.data.code === 200) {
|
|
271
275
|
this.showlogin = false
|
|
272
276
|
let condition = `ename = '${re.data.data.userName}'`
|
|
273
|
-
|
|
274
|
-
this.$resetpost('api/af-system/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
277
|
+
this.$resetpost('rs/sql/singleTable', {data: { items: '*', tablename: 't_user', condition: condition}}, {resolveMsg: null, rejectMsg: null}).then((res) => {
|
|
275
278
|
if (res.data && res.data.length > 0) {
|
|
276
279
|
this.model.ename = res.data[0].ename
|
|
277
280
|
this.model.password = res.data[0].password
|
|
@@ -295,19 +298,19 @@ export default {
|
|
|
295
298
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
296
299
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
297
300
|
this.vTime = this.format(new Date(window.versionTime));
|
|
298
|
-
try{
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
}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){}
|
|
311
314
|
|
|
312
315
|
this.loginother();
|
|
313
316
|
$('#login-button').click(function (event) {
|
|
@@ -316,10 +319,8 @@ export default {
|
|
|
316
319
|
})
|
|
317
320
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
318
321
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
319
|
-
console.log(subUrl)
|
|
320
322
|
this.model.ename = window.atob(subUrl[0])
|
|
321
323
|
this.model.password = window.atob(subUrl[1])
|
|
322
|
-
console.log('this.model.ename',this.model.ename)
|
|
323
324
|
this.otherLogin = true
|
|
324
325
|
this.confirm()
|
|
325
326
|
}else{
|
|
@@ -401,7 +402,7 @@ export default {
|
|
|
401
402
|
} else {
|
|
402
403
|
condition =` f_orderstate is null and (f_address in( select f_address from t_user_address where f_slice_area='柠条塔') or f_address like '%柠条塔%') `
|
|
403
404
|
}
|
|
404
|
-
await http.load('POST', '/
|
|
405
|
+
await http.load('POST', '/rs/sql/singleTable', {data: {
|
|
405
406
|
tablename:'t_order_center',
|
|
406
407
|
condition:condition
|
|
407
408
|
}}, {
|
|
@@ -477,7 +478,6 @@ export default {
|
|
|
477
478
|
if (this.config.distanceLogin) {
|
|
478
479
|
if (this.$login && this.$login.getUrlParames('name') ) {
|
|
479
480
|
let ename = this.$login.getUrlParames('name');
|
|
480
|
-
// todo v4
|
|
481
481
|
let logininfo = await this.$resetpost('rs/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
|
482
482
|
if(logininfo.data){
|
|
483
483
|
if(logininfo.data.ename && logininfo.data.password){
|