system-clients 3.2.92-temp → 3.2.92-tongchuan
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/Main.vue +3 -39
- package/src/components/Util.js +14 -0
- package/src/components/server/Login.vue +47 -56
- package/src/components/server/ResSelect.vue +0 -3
- package/src/filiale/tongchuan/Login.vue +22 -16
- package/src/filiale/tongchuan/Main.vue +15 -0
- package/src/plugins/EncryptUtil.js +1 -1
- package/src/plugins/GetLoginInfoService.js +10 -3
- package/src/filiale/bayan/PosAdd.vue +0 -369
- package/src/filiale/bayan/PosList.vue +0 -349
- package/src/filiale/bayan/PosManage.vue +0 -138
- package/src/filiale/bayan/system.js +0 -6
package/package.json
CHANGED
package/src/components/Main.vue
CHANGED
|
@@ -160,24 +160,6 @@
|
|
|
160
160
|
</footer>
|
|
161
161
|
</modal>
|
|
162
162
|
|
|
163
|
-
<modal v-show="notReportShow" :show.sync="notReportShow" :backdrop="false">
|
|
164
|
-
<header slot="modal-header" class="text-center">
|
|
165
|
-
<h3>未上报用户提醒</h3>
|
|
166
|
-
</header>
|
|
167
|
-
<article slot="modal-body" class="modal-body">
|
|
168
|
-
<form class="form-horizontal">
|
|
169
|
-
<div class="row">
|
|
170
|
-
<div class="col-sm-12">
|
|
171
|
-
<span style="font-weight:normal">{{ notReportTitle }}</span>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</form>
|
|
175
|
-
</article>
|
|
176
|
-
<footer slot="modal-footer" style="height: 8vh" class="modal-footer">
|
|
177
|
-
<button class="button_search" @click="notReportShow = false">确认</button>
|
|
178
|
-
</footer>
|
|
179
|
-
</modal>
|
|
180
|
-
|
|
181
163
|
<!-- 变更录入 模态框 -->
|
|
182
164
|
<add-changemsg :show="AddChangeMsgShow" v-on:toggle="AddChangeMsgShow = false"></add-changemsg>
|
|
183
165
|
<!-- 修改密码组件 -->
|
|
@@ -273,8 +255,6 @@ let createWaterMark = function (userName) {
|
|
|
273
255
|
// img2: '/images/lefticon/退出系统.png',
|
|
274
256
|
},
|
|
275
257
|
treeOrIcon: false,
|
|
276
|
-
notReportTitle: '',
|
|
277
|
-
notReportShow: false,
|
|
278
258
|
qrCode:false,
|
|
279
259
|
isManger: false,
|
|
280
260
|
show: false,
|
|
@@ -341,7 +321,9 @@ let createWaterMark = function (userName) {
|
|
|
341
321
|
// }
|
|
342
322
|
this.changeShow()
|
|
343
323
|
const istelRemindTimes =this.$appdata.getSingleValue("是否开启工单提醒定时器")
|
|
324
|
+
this.getDaiBan()
|
|
344
325
|
if(istelRemindTimes=='是'){
|
|
326
|
+
this.getOrderList()
|
|
345
327
|
this.getTimesgotoWorkOrderSite()
|
|
346
328
|
}
|
|
347
329
|
const isapplyRemind =this.$appdata.getSingleValue("是否开启提醒")
|
|
@@ -355,28 +337,10 @@ let createWaterMark = function (userName) {
|
|
|
355
337
|
if (this.config.approve) {
|
|
356
338
|
this.getFlowList()
|
|
357
339
|
}
|
|
358
|
-
if (this.config.isGetNotReport) {
|
|
359
|
-
this.getNotReport()
|
|
360
|
-
}
|
|
361
340
|
// 获取卡表动态库到期时间
|
|
362
341
|
this.getExpireDate()
|
|
363
342
|
},
|
|
364
343
|
methods: {
|
|
365
|
-
async getNotReport(){
|
|
366
|
-
this.notReportTitle = ''
|
|
367
|
-
let http = new HttpResetClass()
|
|
368
|
-
await http.load('POST', 'rs/sql/getNotReportUserCount', {}, {
|
|
369
|
-
resolveMsg: null,
|
|
370
|
-
rejectMsg: null
|
|
371
|
-
}).then((res) => {
|
|
372
|
-
if (res.data.length > 0){
|
|
373
|
-
this.notReportTitle = `当前系统物联网表用户有${res.data[0].f_total_web_count}户,超过7天未上报有${res.data[0].f_greater_than_seven_days}户,7天及以内未上报有${res.data[0].f_less_than_orequalto_seven_days}户。如需查询详情,请到物联查询中“失联查询”获取详细信息!`
|
|
374
|
-
}
|
|
375
|
-
}).catch((e)=>{})
|
|
376
|
-
if(this.notReportTitle){
|
|
377
|
-
this.notReportShow = true
|
|
378
|
-
}
|
|
379
|
-
},
|
|
380
344
|
getOrderList(){
|
|
381
345
|
let times = this.config.times * 60 * 1000
|
|
382
346
|
console.log("=定时提示间隔=", times)
|
|
@@ -559,7 +523,7 @@ let createWaterMark = function (userName) {
|
|
|
559
523
|
}
|
|
560
524
|
},
|
|
561
525
|
openUrl() {
|
|
562
|
-
var url = `http://
|
|
526
|
+
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}`
|
|
563
527
|
window.open(url, '_blank')
|
|
564
528
|
},
|
|
565
529
|
hindsetting() {
|
package/src/components/Util.js
CHANGED
|
@@ -76,6 +76,20 @@ export function parse3339String (strDate) {
|
|
|
76
76
|
strDate.substr(11, 2), strDate.substr(14, 2), strDate.substr(17, 2)
|
|
77
77
|
)
|
|
78
78
|
}
|
|
79
|
+
// 判断密码最后修改时间是否超过两个半月(2个月零15天)
|
|
80
|
+
export function isPasswordModificationExpired (lastModificationTime) {
|
|
81
|
+
if (!lastModificationTime) {
|
|
82
|
+
return true
|
|
83
|
+
}
|
|
84
|
+
const lastMod = parse3339String(lastModificationTime)
|
|
85
|
+
if (isNaN(lastMod.getTime())) {
|
|
86
|
+
return true
|
|
87
|
+
}
|
|
88
|
+
const expireDate = new Date(lastMod)
|
|
89
|
+
expireDate.setMonth(expireDate.getMonth() + 2)
|
|
90
|
+
expireDate.setDate(expireDate.getDate() + 15)
|
|
91
|
+
return new Date() > expireDate
|
|
92
|
+
}
|
|
79
93
|
|
|
80
94
|
export function format3339TimeString (dt) {
|
|
81
95
|
let month = dt.getMonth() + 1
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
</button>
|
|
11
11
|
<span v-if="$login.versionTime">构建时间:{{ vTime }}</span>
|
|
12
12
|
<div v-if="titleShow">
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
<img src="../../../static/newStyle/login-info.png"/>
|
|
14
|
+
<span @click="showus=true">关于我们</span>
|
|
15
15
|
</div>
|
|
16
16
|
<!-- <img src="../../../static/newStyle/login-con.png"/>-->
|
|
17
17
|
<!-- <span>联系我们</span>-->
|
|
@@ -99,12 +99,12 @@
|
|
|
99
99
|
<label class="col-sm-5 ">当前登录人:</label>
|
|
100
100
|
<label style="font-weight:normal">{{$login.f.name}}</label>
|
|
101
101
|
</div>
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
102
|
+
<!--<div class="col-sm-12 form-group" v-if="$login.f.number">-->
|
|
103
|
+
<!--<label class="col-sm-5 ">组 织 编 码:</label>-->
|
|
104
|
+
<!--<label style="font-weight:normal">{{$login.f.number}}</label>-->
|
|
105
|
+
<!-- <div class="col-sm-7">
|
|
106
|
+
<span >{{$login.f.number}}</span>
|
|
107
|
+
</div> -->
|
|
108
108
|
<!--</div>-->
|
|
109
109
|
<div class="col-sm-12 form-group">
|
|
110
110
|
<label class="col-sm-5">所在销售点:</label>
|
|
@@ -114,7 +114,7 @@
|
|
|
114
114
|
</div> -->
|
|
115
115
|
</div>
|
|
116
116
|
<div class="col-sm-12 " v-if="AppDaiBan !==''">
|
|
117
|
-
|
|
117
|
+
<label class="col-sm-2">报装待办:</label>
|
|
118
118
|
<span style="font-weight:normal">{{AppDaiBan}}</span>
|
|
119
119
|
</div>
|
|
120
120
|
<div class="col-sm-12 " v-if="OrderDaiBan !==''">
|
|
@@ -143,8 +143,8 @@
|
|
|
143
143
|
<script>
|
|
144
144
|
import co from 'co'
|
|
145
145
|
import $ from 'jquery'
|
|
146
|
-
import Vue from 'vue'
|
|
147
146
|
import {HttpResetClass} from 'vue-client'
|
|
147
|
+
import {isPasswordModificationExpired} from '../Util'
|
|
148
148
|
|
|
149
149
|
let daibanJson = require('../../util/Daiban.json')
|
|
150
150
|
|
|
@@ -158,18 +158,6 @@ let saveGen = function *(self) {
|
|
|
158
158
|
if(self.$appdata){
|
|
159
159
|
yield self.$appdata.load()
|
|
160
160
|
}
|
|
161
|
-
if (Vue.$heatCompatibility) {
|
|
162
|
-
try {
|
|
163
|
-
if(self.$loginHeat){
|
|
164
|
-
yield self.$loginHeat.login(self.model.ename, self.model.password)
|
|
165
|
-
}
|
|
166
|
-
if(self.$appdataHeat){
|
|
167
|
-
yield self.$appdataHeat.load()
|
|
168
|
-
}
|
|
169
|
-
} catch (e) {
|
|
170
|
-
console.log('热力系统登陆失败!')
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
161
|
yield self.$getConfig(self, 'Login')
|
|
174
162
|
console.log('登录配置', self.config)
|
|
175
163
|
if (self.config.isMac) {
|
|
@@ -203,12 +191,15 @@ let saveGen = function *(self) {
|
|
|
203
191
|
}
|
|
204
192
|
}
|
|
205
193
|
console.log(self.$login.depPrompt)
|
|
206
|
-
//
|
|
207
|
-
|
|
208
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
194
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
195
|
+
if ((!self.otherLogin) && !(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?!.*(123|321|abc|cba))[a-zA-Z\d!@#$%^&*()_+-=<>?]{8,16}$/.test(self.model.password))) {
|
|
209
196
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
210
197
|
self.modifyPwShow = true
|
|
211
198
|
})
|
|
199
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
200
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
201
|
+
self.modifyPwShow = true
|
|
202
|
+
})
|
|
212
203
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
213
204
|
self.depPromptShow = true
|
|
214
205
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -229,6 +220,8 @@ let saveGen = function *(self) {
|
|
|
229
220
|
}
|
|
230
221
|
} catch (ret) {
|
|
231
222
|
console.error('登录失败', ret)
|
|
223
|
+
self.$login.s = null
|
|
224
|
+
self.$login['v3-session-key'] = null
|
|
232
225
|
let msg
|
|
233
226
|
if (ret instanceof Error) {
|
|
234
227
|
msg = ret
|
|
@@ -257,19 +250,19 @@ export default {
|
|
|
257
250
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
258
251
|
window.versionTime = window.versionTime ? window.versionTime : new Date().getTime()
|
|
259
252
|
this.vTime = this.format(new Date(window.versionTime));
|
|
260
|
-
try{
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
}catch(e){}
|
|
253
|
+
// try{
|
|
254
|
+
// let http = new HttpResetClass()
|
|
255
|
+
// let res = await http.load('POST', 'rs/sql/singleTable',
|
|
256
|
+
// {data:{
|
|
257
|
+
// tablename: 't_changedeclare',
|
|
258
|
+
// condition: ` f_type ='变更通知' `
|
|
259
|
+
// }
|
|
260
|
+
// }, {resolveMsg: null, rejectMsg: null})
|
|
261
|
+
// if(res.data.length>0){
|
|
262
|
+
// console.log("---------------获取通知",res.data[0].f_change_message)
|
|
263
|
+
// this.notice=res.data[0].f_change_message
|
|
264
|
+
// }
|
|
265
|
+
// }catch(e){}
|
|
273
266
|
|
|
274
267
|
this.loginother();
|
|
275
268
|
$('#login-button').click(function (event) {
|
|
@@ -278,10 +271,8 @@ export default {
|
|
|
278
271
|
})
|
|
279
272
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
|
280
273
|
const subUrl = window.location.search.replace('?af_key=','').split('&af_n=')
|
|
281
|
-
console.log(subUrl)
|
|
282
274
|
this.model.ename = window.atob(subUrl[0])
|
|
283
275
|
this.model.password = window.atob(subUrl[1])
|
|
284
|
-
console.log('this.model.ename',this.model.ename)
|
|
285
276
|
this.otherLogin = true
|
|
286
277
|
this.confirm()
|
|
287
278
|
}else{
|
|
@@ -370,14 +361,14 @@ export default {
|
|
|
370
361
|
}).then((res) => {
|
|
371
362
|
let OrderDaiBan = {}
|
|
372
363
|
res.data.forEach(item=>{
|
|
373
|
-
|
|
374
|
-
|
|
364
|
+
OrderDaiBan[item.f_ordertype] = OrderDaiBan[item.f_ordertype] || []
|
|
365
|
+
OrderDaiBan[item.f_ordertype].push(item)
|
|
366
|
+
})
|
|
367
|
+
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
368
|
+
if (res.data.length> 0){
|
|
369
|
+
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
370
|
+
}
|
|
375
371
|
})
|
|
376
|
-
this.OrderDaiBan = `您有${res.data.length}条需要处理的微信预约业务!`
|
|
377
|
-
if (res.data.length> 0){
|
|
378
|
-
this.OrderDaiBan += `其中 ${Object.keys(OrderDaiBan).map(key=>`${key}:${OrderDaiBan[key].length}条`).join(', ')}`
|
|
379
|
-
}
|
|
380
|
-
})
|
|
381
372
|
let data = {
|
|
382
373
|
condition: '1 = 1',
|
|
383
374
|
data: {
|
|
@@ -391,14 +382,14 @@ export default {
|
|
|
391
382
|
}).then((res) => {
|
|
392
383
|
let AppDaiBan = {}
|
|
393
384
|
res.data.forEach(item=>{
|
|
394
|
-
|
|
395
|
-
|
|
385
|
+
AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
|
|
386
|
+
AppDaiBan[item.defname].push(item)
|
|
387
|
+
})
|
|
388
|
+
this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
|
|
389
|
+
if (res.data.length> 0){
|
|
390
|
+
this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
|
|
391
|
+
}
|
|
396
392
|
})
|
|
397
|
-
this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
|
|
398
|
-
if (res.data.length> 0){
|
|
399
|
-
this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
|
|
400
|
-
}
|
|
401
|
-
})
|
|
402
393
|
|
|
403
394
|
},
|
|
404
395
|
async getDaiBanA(){
|
|
@@ -410,8 +401,8 @@ export default {
|
|
|
410
401
|
for (let daibanItem of daibanJson.daiban) {
|
|
411
402
|
console.log("开始处理待办任务:" + daibanItem.title + "当前任务状态:" + daibanItem.enable?"开启":"关闭" )
|
|
412
403
|
if (daibanItem.enable) { // 控制每一项通知是否开启
|
|
413
|
-
|
|
414
|
-
|
|
404
|
+
let postResult = ''; //提示信息为
|
|
405
|
+
await http.load("POST",daibanItem.url,{data:daibanItem.data},{ resolveMsg: null, rejectMsg: null})
|
|
415
406
|
.then((res)=>{
|
|
416
407
|
let responseData = res.data
|
|
417
408
|
for (let item of responseData) {
|
|
@@ -141,6 +141,7 @@ import co from 'co'
|
|
|
141
141
|
import $ from 'jquery'
|
|
142
142
|
import Vue from 'vue'
|
|
143
143
|
import {HttpResetClass} from 'vue-client'
|
|
144
|
+
import {isPasswordModificationExpired} from '../../components/Util'
|
|
144
145
|
|
|
145
146
|
let daibanJson = require('../../util/Daiban.json')
|
|
146
147
|
|
|
@@ -200,12 +201,15 @@ let saveGen = function *(self) {
|
|
|
200
201
|
}
|
|
201
202
|
}
|
|
202
203
|
console.log(self.$login.depPrompt)
|
|
203
|
-
//
|
|
204
|
-
|
|
205
|
-
if ((!self.otherLogin) && self.config.weakPassword && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
204
|
+
// 弱口令验证(默认开启,跳转过来的不进行验证)
|
|
205
|
+
if ((!self.otherLogin) && !(/^(?![0-9]+$)(?![a-zA-Z]+$)[0-9A-Za-z]{8,16}$/.test(self.model.password))) {
|
|
206
206
|
self.$showMessage('登录系统: 此账户的密码过于简单,请修改密码后重新登陆!!!', ['confirm']).then((res) => {
|
|
207
207
|
self.modifyPwShow = true
|
|
208
208
|
})
|
|
209
|
+
} else if ((!self.otherLogin) && isPasswordModificationExpired(self.$login.f.f_last_modification_time)) {
|
|
210
|
+
self.$showMessage('登录系统: 您的密码已超过两个半月未修改,请修改密码后重新登录!!!', ['confirm']).then((res) => {
|
|
211
|
+
self.modifyPwShow = true
|
|
212
|
+
})
|
|
209
213
|
} else if ((!self.otherLogin) && self.$login.depPrompt) {
|
|
210
214
|
self.depPromptShow = true
|
|
211
215
|
if (self.$login.showDaiBan && self.$login.r.includes('展示预约信息')){
|
|
@@ -231,6 +235,8 @@ let saveGen = function *(self) {
|
|
|
231
235
|
|
|
232
236
|
} catch (ret) {
|
|
233
237
|
console.error('登录失败', ret)
|
|
238
|
+
self.$login.s = null
|
|
239
|
+
self.$login['v3-session-key'] = null
|
|
234
240
|
let msg
|
|
235
241
|
if (ret instanceof Error) {
|
|
236
242
|
msg = ret
|
|
@@ -255,19 +261,19 @@ export default {
|
|
|
255
261
|
title: '登录',
|
|
256
262
|
async ready () {
|
|
257
263
|
this.titleShow = this.$appdata.getSingleValue('关于我们')
|
|
258
|
-
try{
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
}catch(e){}
|
|
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){}
|
|
271
277
|
|
|
272
278
|
this.loginother();
|
|
273
279
|
$('#login-button').click(function (event) {
|
|
@@ -308,6 +308,7 @@ let createWaterMark = function (userName) {
|
|
|
308
308
|
},
|
|
309
309
|
ready() {
|
|
310
310
|
getwartermakr(this);
|
|
311
|
+
this.getTimesgotoWzkfPage()
|
|
311
312
|
let component = this.$login.getUrlCompileParames('component')
|
|
312
313
|
if (component) {
|
|
313
314
|
this.isManger = true
|
|
@@ -479,6 +480,20 @@ let createWaterMark = function (userName) {
|
|
|
479
480
|
this.newTipShow = true
|
|
480
481
|
}
|
|
481
482
|
},
|
|
483
|
+
getTimesgotoWzkfPage(){
|
|
484
|
+
let teltimes = 2*60*1000 // 两分钟
|
|
485
|
+
try {
|
|
486
|
+
this.intervaltx =setInterval(()=>{
|
|
487
|
+
let msg = localStorage.getItem('wzKfMessage')
|
|
488
|
+
if(msg){
|
|
489
|
+
localStorage.removeItem('wzKfMessage')
|
|
490
|
+
this.$showMessage(`你有${msg}条客户消息待处理,请尽快前往文字客服页面进行处理`)
|
|
491
|
+
}
|
|
492
|
+
},teltimes)
|
|
493
|
+
}catch (e) {
|
|
494
|
+
console.log('捕获到异常', e)
|
|
495
|
+
}
|
|
496
|
+
},
|
|
482
497
|
getTimesgotoWorkOrderSite(){
|
|
483
498
|
let teltimes = 2*60*1000 // 两分钟
|
|
484
499
|
try {
|
|
@@ -48,6 +48,6 @@ export default {
|
|
|
48
48
|
let encrypt = new RsaEncryptJS();
|
|
49
49
|
encrypt.setPrivateKey('MIICdwIBADANBgkqhkiG9w0BAQEFAASCAmEwggJdAgEAAoGBAKo++i9J9dzAFtbxwowKDCo2mxi7MXxE8A8VvssaydWjjgmEz/HHMPLOhi1182a1si4pWL0/MizKnquD7T2Bu4jpQbAFnkNYEMEyq/kw904Xl0JCQHYFuvnI99RE8Q3KlTP6kEUGDjV34EL6vBGJcQvArLtj1xoP8y0nIfJ2Pw5TAgMBAAECgYAGGB8IllMwxceLhjf6n1l0IWRH7FuHIUieoZ6k0p6rASHSgWiYNRMxfecbtX8zDAoG0QAWNi7rn40ygpR5gS1fWDAKhmnhKgQIT6wW0VmD4hraaeyP78iy8BLhlvblri2nCPIhDH5+l96v7D47ZZi3ZSOzcj89s1eS/k7/N4peEQJBAPEtGGJY+lBoCxQMhGyzuzDmgcS1Un1ZE2pt+XNCVl2b+T8fxWJH3tRRR8wOY5uvtPiK1HM/IjT0T5qwQeH8Yk0CQQC0tcv3d/bDb7bOe9QzUFDQkUSpTdPWAgMX2OVPxjdq3Sls9oA5+fGNYEy0OgyqTjde0b4iRzlD1O0OhLqPSUMfAkEAh5FIvqezdRU2/PsYSR4yoAdCdLdT+h/jGRVefhqQ/6eYUJJkWp15tTFHQX3pIe9/s6IeT/XyHYAjaxmevxAmlQJBAKSdhvQjf9KAjZKDEsa7vyJ/coCXuQUWSCMNHbcR5aGfXgE4e45UtUoIE1eKGcd6AM6LWhx3rR6xdFDpb9je8BkCQB0SpevGfOQkMk5i8xkEt9eeYP0fi8nv6eOUcK96EXbzs4jV2SAoQJ9oJegPtPROHbhIvVUmNQTbuP10Yjg59+8=');
|
|
50
50
|
let resdata = encrypt.decrypt(word);
|
|
51
|
-
return
|
|
51
|
+
return resdata.toString();
|
|
52
52
|
},
|
|
53
53
|
}
|
|
@@ -10,6 +10,9 @@ let loginGen = async function (name, password, cue) {
|
|
|
10
10
|
//获取jwt
|
|
11
11
|
Vue.$login.jwt = getLogin.data.jwt
|
|
12
12
|
Vue.$login.jwtNew = getLogin.data.jwtNew
|
|
13
|
+
if (getLogin.data.s) {
|
|
14
|
+
Vue.$login['v3-session-key'] = cryptJS.RSADecrypt(getLogin.data.s)
|
|
15
|
+
}
|
|
13
16
|
// 调用远程登录服务,获取所有有权访问的功能
|
|
14
17
|
data = {username: name, password: password}
|
|
15
18
|
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
|
@@ -36,7 +39,7 @@ let loginGen = async function (name, password, cue) {
|
|
|
36
39
|
let hasRight = await Vue.resetpost(`/rs/search`, {
|
|
37
40
|
source: "tool.getFullTree(this.getRights().where(row.getType() == $function$))",
|
|
38
41
|
userid: Vue.$login.f.id
|
|
39
|
-
}, {
|
|
42
|
+
}, {resolveMsg: null, rejectMsg: null})
|
|
40
43
|
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
|
41
44
|
//准备替换功能树
|
|
42
45
|
var fun = []
|
|
@@ -219,7 +222,7 @@ let GetLoginInfoService = {
|
|
|
219
222
|
//构建时间开关
|
|
220
223
|
versionTime: true,
|
|
221
224
|
//
|
|
222
|
-
SinglePageToken
|
|
225
|
+
SinglePageToken: {},
|
|
223
226
|
//登录信息展示开关
|
|
224
227
|
depPrompt: true,
|
|
225
228
|
install(Vue, options) {
|
|
@@ -239,7 +242,11 @@ let GetLoginInfoService = {
|
|
|
239
242
|
if (cue === undefined || cue === null || cue === '') {
|
|
240
243
|
cue = true
|
|
241
244
|
}
|
|
242
|
-
Vue.$login.SinglePageToken = cryptJS.AESEncrypt(JSON.stringify({
|
|
245
|
+
Vue.$login.SinglePageToken = cryptJS.AESEncrypt(JSON.stringify({
|
|
246
|
+
name,
|
|
247
|
+
password,
|
|
248
|
+
now: Date.now()
|
|
249
|
+
}), "3KMKqvgwR8ULbR8Z")
|
|
243
250
|
return loginGen(name, password, cue)
|
|
244
251
|
},
|
|
245
252
|
|