system-clients 3.3.2 → 3.3.3
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 +105 -105
- package/src/components/Main.vue +935 -935
- package/src/components/server/Login.vue +575 -575
- package/src/filiale/ruihua/Login.vue +40 -13
- package/static/ruihua/logo.jpg +0 -0
@@ -34,14 +34,15 @@
|
|
34
34
|
<p class="logofooter">(仅浏览器扫描)</p>
|
35
35
|
</div>
|
36
36
|
<!--输入框-->
|
37
|
-
<div class="loginmain">
|
37
|
+
<div class="loginmain" v-show="showlogin">
|
38
38
|
<!-- <img src="../../../static/login_title1.png" alt="图片加载未完成" class="img-responsive" style="margin: 0 auto; padding-top: 150px;" /> -->
|
39
39
|
<div class="loginmain-left">
|
40
|
-
<img class="loginmain-left-img" src="../../../static/
|
40
|
+
<img class="loginmain-left-img" src="../../../static/ruihua/logo.jpg">
|
41
41
|
</div>
|
42
42
|
<div class="loginmain-right">
|
43
43
|
|
44
|
-
<p
|
44
|
+
<p style="white-space: nowrap;font-size: 36px;margin: 0 !important;">瑞华能源集团有限公司</p>
|
45
|
+
<p @click="theme()" style="white-space: nowrap;margin: 0 !important;">{{config.title}}</p>
|
45
46
|
|
46
47
|
<form v-show="!login">
|
47
48
|
<!-- <input type="text" placeholder="用户名" v-model="model.ename" class="usericon">-->
|
@@ -81,6 +82,11 @@
|
|
81
82
|
</div>
|
82
83
|
</div>
|
83
84
|
</div>
|
85
|
+
<div v-show="!showlogin && isSso" class="loginmain-img">
|
86
|
+
<div class="ssoLoadingImg">
|
87
|
+
<img src="../../../static/newStyle/login-do.gif">
|
88
|
+
</div>
|
89
|
+
</div>
|
84
90
|
<div class="login-foot" v-show="false">
|
85
91
|
技术支持:西安奥枫软件有限公司
|
86
92
|
</div>
|
@@ -172,7 +178,6 @@ let saveGen = function *(self) {
|
|
172
178
|
}
|
173
179
|
yield self.$getConfig(self, 'Login')
|
174
180
|
console.log('登录配置', self.config)
|
175
|
-
console.log('!ruihua!','mac验证地址:http://127.0.0.1:8004/loadmac')
|
176
181
|
if (self.config.isMac) {
|
177
182
|
// 获取该登录人分公司下的mac配置
|
178
183
|
let getMacs = yield self.$resetpost('api/af-system/sql/equipmentQuery', {data: {condition: `f_filialeids like '%${self.$login.f.f_orgids}%'`}}, {
|
@@ -183,7 +188,7 @@ let saveGen = function *(self) {
|
|
183
188
|
})
|
184
189
|
console.log('MAC地址信息', getMacs)
|
185
190
|
// 获取本地mac地址
|
186
|
-
let getLocalMac = yield self.$resetget('http://127.0.0.1:
|
191
|
+
let getLocalMac = yield self.$resetget('http://127.0.0.1:8003/loadmac', {
|
187
192
|
resolveMsg: null,
|
188
193
|
rejectMsg: null
|
189
194
|
}).catch(() => {
|
@@ -249,6 +254,11 @@ let saveGen = function *(self) {
|
|
249
254
|
self.model.ename = ''
|
250
255
|
self.model.password = ''
|
251
256
|
self.login = false
|
257
|
+
if (self.isSso) {
|
258
|
+
if (window.parent && window.parent !== window) {
|
259
|
+
window.parent.postMessage('reload', '*')
|
260
|
+
}
|
261
|
+
}
|
252
262
|
$('form').fadeIn(500)
|
253
263
|
}
|
254
264
|
}
|
@@ -263,11 +273,19 @@ export default {
|
|
263
273
|
$('form').fadeOut(500)
|
264
274
|
})
|
265
275
|
if (window.location.search && window.location.search.indexOf('af_key') !== -1&& window.location.search.indexOf('af_n') !== -1) {
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
276
|
+
let url = window.location.search.split('?')[1]
|
277
|
+
let obj = {}
|
278
|
+
for (let params of url.split("&")) {
|
279
|
+
let kv = params.split("=")
|
280
|
+
obj[kv[0]] = kv[1]
|
281
|
+
}
|
282
|
+
console.log('参数', obj)
|
283
|
+
if (window.location.search.indexOf('ticket')) {
|
284
|
+
this.isSso = true
|
285
|
+
this.showlogin = false
|
286
|
+
}
|
287
|
+
this.model.ename = window.atob(obj.af_key)
|
288
|
+
this.model.password = window.atob(obj.af_n)
|
271
289
|
this.otherLogin = true
|
272
290
|
this.confirm()
|
273
291
|
}else{
|
@@ -289,7 +307,7 @@ export default {
|
|
289
307
|
img7: '/images/newStyle/login-do.png',
|
290
308
|
},
|
291
309
|
config: {
|
292
|
-
isMac:
|
310
|
+
isMac: false,
|
293
311
|
depPrompt: false,
|
294
312
|
weakPassword: false,
|
295
313
|
title: '燃气客服系统',
|
@@ -323,7 +341,9 @@ export default {
|
|
323
341
|
//安检待办
|
324
342
|
safecheckDaiBan:[],
|
325
343
|
// 预约待处理
|
326
|
-
OrderDaiBan: ''
|
344
|
+
OrderDaiBan: '',
|
345
|
+
showlogin: true,
|
346
|
+
isSso: false
|
327
347
|
}
|
328
348
|
},
|
329
349
|
methods: {
|
@@ -420,7 +440,7 @@ export default {
|
|
420
440
|
// if (this.$login && this.$login.getUrlParames('name') ) {
|
421
441
|
// let ename = this.$login.getUrlParames('name');
|
422
442
|
// // todo v4
|
423
|
-
// let logininfo = await this.$resetpost('
|
443
|
+
// let logininfo = await this.$resetpost('api/af-revenue/logic/getLoginData',{data:{ename:ename}},{resolveMsg: null, rejectMsg: null});
|
424
444
|
// if(logininfo.data){
|
425
445
|
// if(logininfo.data.ename && logininfo.data.password){
|
426
446
|
// this.model.ename = logininfo.data.ename
|
@@ -546,4 +566,11 @@ export default {
|
|
546
566
|
<style>
|
547
567
|
.my_button_search{width: 100px; height: 25px;position: relative; padding-left:2px;top: 0px;line-height: 25px; background:rgba(0,0,0,0); border-radius: 4px; border:none; font-family: PingFang; font-size: 15px}
|
548
568
|
.my_button_search:hover img{ filter: opacity(0.8);}
|
569
|
+
.loginmain-img{
|
570
|
+
margin: 8% 23% 6% 23%;
|
571
|
+
width: 54%;
|
572
|
+
height: 58%;
|
573
|
+
border-radius: 30px;
|
574
|
+
text-align: center;
|
575
|
+
}
|
549
576
|
</style>
|
Binary file
|