system-clients 3.2.1-31 → 3.2.1-32
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 +14 -9
- package/src/components/server/ModifyPw.vue +111 -107
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +4 -9
- package/src/system.js +109 -109
package/package.json
CHANGED
@@ -320,10 +320,15 @@ export default {
|
|
320
320
|
methods: {
|
321
321
|
async getDaiBan(){
|
322
322
|
let http = new HttpResetClass()
|
323
|
+
let condition = ''
|
324
|
+
if(this.$login.f.deps!=='柠条塔'){
|
325
|
+
condition = ` f_orderstate != '预约成功' and ( f_orderstate != '预约失败' or f_orderstate is null ) `
|
326
|
+
} else {
|
327
|
+
condition =` f_orderstate != '预约成功' and f_depname ='${this.$login.f.deps}' and ( f_orderstate != '预约失败' or f_orderstate is null ) `
|
328
|
+
}
|
323
329
|
await http.load('POST', '/rs/sql/singleTable', {data: {
|
324
330
|
tablename:'t_order_center',
|
325
|
-
condition
|
326
|
-
|
331
|
+
condition:condition
|
327
332
|
}}, {
|
328
333
|
resolveMsg: null,
|
329
334
|
rejectMsg: null
|
@@ -351,14 +356,14 @@ export default {
|
|
351
356
|
}).then((res) => {
|
352
357
|
let AppDaiBan = {}
|
353
358
|
res.data.forEach(item=>{
|
354
|
-
|
355
|
-
|
356
|
-
})
|
357
|
-
this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
|
358
|
-
if (res.data.length> 0){
|
359
|
-
this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
|
360
|
-
}
|
359
|
+
AppDaiBan[item.defname] = AppDaiBan[item.defname] || []
|
360
|
+
AppDaiBan[item.defname].push(item)
|
361
361
|
})
|
362
|
+
this.AppDaiBan = `您有${res.data.length}条需要处理的报建待办业务!`
|
363
|
+
if (res.data.length> 0){
|
364
|
+
this.AppDaiBan += `其中 ${Object.keys(AppDaiBan).map(key=>`${key}:${AppDaiBan[key].length}条`).join(', ')}`
|
365
|
+
}
|
366
|
+
})
|
362
367
|
|
363
368
|
},
|
364
369
|
async loginother(){
|
@@ -1,107 +1,111 @@
|
|
1
|
-
<template>
|
2
|
-
<div>
|
3
|
-
<validator name="v">
|
4
|
-
<modal :show.sync="show" v-ref:modal backdrop="false">
|
5
|
-
<header slot="modal-header" class="modal-header">
|
6
|
-
<button type="button" class="close" @click="rest"><span>×</span></button>
|
7
|
-
<h4 class="modal-title">修改密码</h4>
|
8
|
-
</header>
|
9
|
-
<article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
|
10
|
-
<div class="has-feedback form-group"
|
11
|
-
:class="{'has-warning':$v.password.required,'has-error': $v.password.required,
|
12
|
-
'has-success':!$v.password.required}">
|
13
|
-
<label for="password" class="col-sm-4 col-sm-offset-1 control-label">原始密码: </label>
|
14
|
-
<div class="col-sm-4">
|
15
|
-
<input type="password" v-model="deliver.password" class="form-control" id="password" v-validate:password="{ required: true}">
|
16
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.password.required"></span>
|
17
|
-
<span v-if="$v.password.required">不能为空</span>
|
18
|
-
</div>
|
19
|
-
</div>
|
20
|
-
<div class="has-feedback form-group"
|
21
|
-
:class="{'has-warning':$v.newpassword.required,'has-error':($v.newpassword.numbersAndLetter8to16 || $v.newpassword.minlength)&& !$v.newpassword.required && !$v.newpassword.chinesePassword,
|
22
|
-
'has-success': !$v.newpassword.required && !$v.newpassword.numbersAndLetter8to16&&!$v.newpassword.minlength && !$v.newpassword.chinesePassword}">
|
23
|
-
<label for="newpassword" class="col-sm-4 col-sm-offset-1 control-label">新的密码: </label>
|
24
|
-
<div class="col-sm-4">
|
25
|
-
<input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true, numbersAndLetter8to16: true, minlength: 6,chinesePassword: true}'>
|
26
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !$v.newpassword.minlength && !($v.newpassword.numbersAndLetter8to16 && !($v.newpassword.required)) && !($v.newpassword.chinesePassword) "></span>
|
27
|
-
<span v-if="$v.newpassword.required">不能为空</span>
|
28
|
-
<span v-if="($v.newpassword.numbersAndLetter8to16||$v.newpassword.minlength) && !($v.newpassword.required&&$v.newpassword.minlength)">密码必须是8~16位数字与字母组合</span>
|
29
|
-
<span v-if="$v.newpassword.chinesePassword">密码不能包含中文</span>
|
30
|
-
</div>
|
31
|
-
</div>
|
32
|
-
<div class="has-feedback form-group"
|
33
|
-
:class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
|
34
|
-
'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
|
35
|
-
<label for="affirmpassword" class="col-sm-4 col-sm-offset-1 control-label">确认密码: </label>
|
36
|
-
<div class="col-sm-4">
|
37
|
-
<input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.newpassword }">
|
38
|
-
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
|
39
|
-
<span v-if="$v.affirmpassword.required">不能为空</span>
|
40
|
-
<span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
|
41
|
-
</div>
|
42
|
-
</div>
|
43
|
-
</article>
|
44
|
-
|
45
|
-
<footer slot="modal-footer" class="modal-footer">
|
46
|
-
<button type="button" class="btn btn-success" @click='confirm' :disabled="!$v.valid">确认</button>
|
47
|
-
<button type="button" class="btn btn-default" @click='rest'>取消</button>
|
48
|
-
</footer>
|
49
|
-
</modal>
|
50
|
-
</validator>
|
51
|
-
</div>
|
52
|
-
|
53
|
-
|
54
|
-
</template>
|
55
|
-
<script>
|
56
|
-
import co from 'co'
|
57
|
-
import validator from '../../plugins/validation';
|
58
|
-
|
59
|
-
let saveGen = function * (self) {
|
60
|
-
self.deliver.ename = self.functions.ename
|
61
|
-
// let res = yield self.$post('rs/user/entity', {data: self.deliver})
|
62
|
-
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
63
|
-
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
64
|
-
// Util.f.password = self.deliver.newpassword
|
65
|
-
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver })
|
66
|
-
self.$login.f.password = self.deliver.newpassword
|
67
|
-
|
68
|
-
|
69
|
-
self
|
70
|
-
self.deliver.
|
71
|
-
self.
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
}
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
1
|
+
<template>
|
2
|
+
<div>
|
3
|
+
<validator name="v">
|
4
|
+
<modal :show.sync="show" v-ref:modal backdrop="false">
|
5
|
+
<header slot="modal-header" class="modal-header">
|
6
|
+
<button type="button" class="close" @click="rest"><span>×</span></button>
|
7
|
+
<h4 class="modal-title">修改密码</h4>
|
8
|
+
</header>
|
9
|
+
<article slot="modal-body" class="modal-body modifystyle auto form-horizontal">
|
10
|
+
<div class="has-feedback form-group"
|
11
|
+
:class="{'has-warning':$v.password.required,'has-error': $v.password.required,
|
12
|
+
'has-success':!$v.password.required}">
|
13
|
+
<label for="password" class="col-sm-4 col-sm-offset-1 control-label">原始密码: </label>
|
14
|
+
<div class="col-sm-4">
|
15
|
+
<input type="password" v-model="deliver.password" class="form-control" id="password" v-validate:password="{ required: true}">
|
16
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.password.required"></span>
|
17
|
+
<span v-if="$v.password.required">不能为空</span>
|
18
|
+
</div>
|
19
|
+
</div>
|
20
|
+
<div class="has-feedback form-group"
|
21
|
+
:class="{'has-warning':$v.newpassword.required,'has-error':($v.newpassword.numbersAndLetter8to16 || $v.newpassword.minlength)&& !$v.newpassword.required && !$v.newpassword.chinesePassword,
|
22
|
+
'has-success': !$v.newpassword.required && !$v.newpassword.numbersAndLetter8to16&&!$v.newpassword.minlength && !$v.newpassword.chinesePassword}">
|
23
|
+
<label for="newpassword" class="col-sm-4 col-sm-offset-1 control-label">新的密码: </label>
|
24
|
+
<div class="col-sm-4">
|
25
|
+
<input type="password" v-model="deliver.newpassword" class="form-control" id="newpassword" v-validate:newpassword='{required:true, numbersAndLetter8to16: true, minlength: 6,chinesePassword: true}'>
|
26
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.newpassword.required && !$v.newpassword.minlength && !($v.newpassword.numbersAndLetter8to16 && !($v.newpassword.required)) && !($v.newpassword.chinesePassword) "></span>
|
27
|
+
<span v-if="$v.newpassword.required">不能为空</span>
|
28
|
+
<span v-if="($v.newpassword.numbersAndLetter8to16||$v.newpassword.minlength) && !($v.newpassword.required&&$v.newpassword.minlength)">密码必须是8~16位数字与字母组合</span>
|
29
|
+
<span v-if="$v.newpassword.chinesePassword">密码不能包含中文</span>
|
30
|
+
</div>
|
31
|
+
</div>
|
32
|
+
<div class="has-feedback form-group"
|
33
|
+
:class="{'has-warning':$v.affirmpassword.required,'has-error':$v.affirmpassword.equalValid && !($v.affirmpassword.required),
|
34
|
+
'has-success': !$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))}">
|
35
|
+
<label for="affirmpassword" class="col-sm-4 col-sm-offset-1 control-label">确认密码: </label>
|
36
|
+
<div class="col-sm-4">
|
37
|
+
<input type="password" v-model="deliver.affirmpassword" class="form-control" id="affirmpassword" v-validate:affirmpassword="{ required: true, equalValid: deliver.newpassword }">
|
38
|
+
<span class="glyphicon glyphicon-ok form-control-feedback" v-if="!$v.affirmpassword.required && !($v.affirmpassword.equalValid && !($v.affirmpassword.required))"></span>
|
39
|
+
<span v-if="$v.affirmpassword.required">不能为空</span>
|
40
|
+
<span v-if="$v.affirmpassword.equalValid && !($v.affirmpassword.required)">两次密码不一致 !!</span>
|
41
|
+
</div>
|
42
|
+
</div>
|
43
|
+
</article>
|
44
|
+
|
45
|
+
<footer slot="modal-footer" class="modal-footer">
|
46
|
+
<button type="button" class="btn btn-success" @click='confirm' :disabled="!$v.valid">确认</button>
|
47
|
+
<button type="button" class="btn btn-default" @click='rest'>取消</button>
|
48
|
+
</footer>
|
49
|
+
</modal>
|
50
|
+
</validator>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
|
54
|
+
</template>
|
55
|
+
<script>
|
56
|
+
import co from 'co'
|
57
|
+
import validator from '../../plugins/validation';
|
58
|
+
|
59
|
+
let saveGen = function * (self) {
|
60
|
+
self.deliver.ename = self.functions.ename
|
61
|
+
// let res = yield self.$post('rs/user/entity', {data: self.deliver})
|
62
|
+
// let res = yield self.$post('rs/db/modifypassword', {data: self.deliver})
|
63
|
+
// let res = yield self.$resetpost('/rs/db/modifypwd', {data: self.deliver})
|
64
|
+
// Util.f.password = self.deliver.newpassword
|
65
|
+
let res = yield self.$resetpost('/rs/user/modifypwd', {data: self.deliver }, {resolveMsg: null,rejectMsg: null})
|
66
|
+
self.$login.f.password = self.deliver.newpassword
|
67
|
+
console.log(res.data)
|
68
|
+
if (res.data == true) {
|
69
|
+
self.$showAlert('修改成功!', 'success', 2000)
|
70
|
+
self.deliver.password = ''
|
71
|
+
self.deliver.newpassword = ''
|
72
|
+
self.deliver.affirmpassword = ''
|
73
|
+
self.show = false
|
74
|
+
} else {
|
75
|
+
self.$showMessage(res.data)
|
76
|
+
}
|
77
|
+
}
|
78
|
+
export default {
|
79
|
+
title: '系统管理-密码修改',
|
80
|
+
data () {
|
81
|
+
return {
|
82
|
+
deliver: {
|
83
|
+
password: '',
|
84
|
+
newpassword: '',
|
85
|
+
affirmpassword: ''
|
86
|
+
},
|
87
|
+
functions: this.$login.f
|
88
|
+
}
|
89
|
+
},
|
90
|
+
props: ['show'],
|
91
|
+
methods: {
|
92
|
+
confirm () {
|
93
|
+
let gen = saveGen(this)
|
94
|
+
co(gen)
|
95
|
+
},
|
96
|
+
rest () {
|
97
|
+
this.show = false
|
98
|
+
this.deliver = {password: '', newpassword: '', affirmpassword: ''}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
</script>
|
103
|
+
<style>
|
104
|
+
/*修改密码body界面样式*/
|
105
|
+
.modifystyle {
|
106
|
+
background: #FCFEEE;
|
107
|
+
}
|
108
|
+
.modifystyle span{
|
109
|
+
color: red;
|
110
|
+
}
|
111
|
+
</style>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
import AesEncryptJS from "crypto-js"
|
2
|
+
import RsaEncryptJS from 'jsencrypt'
|
3
|
+
|
4
|
+
export default {
|
5
|
+
/**
|
6
|
+
* AES加密
|
7
|
+
* @param word
|
8
|
+
* @returns {*}
|
9
|
+
*/
|
10
|
+
AESEncrypt(word, encryKey){
|
11
|
+
var key = AesEncryptJS.enc.Utf8.parse(encryKey);
|
12
|
+
var srcs = AesEncryptJS.enc.Utf8.parse(word);
|
13
|
+
var encrypted = AesEncryptJS.AES.encrypt(srcs, key, {mode:AesEncryptJS.mode.ECB,padding: AesEncryptJS.pad.Pkcs7});
|
14
|
+
return encrypted.toString();
|
15
|
+
},
|
16
|
+
/**
|
17
|
+
* AES解密
|
18
|
+
* @param word
|
19
|
+
* @returns {*}
|
20
|
+
*/
|
21
|
+
AESDecrypt(word, encryKey){
|
22
|
+
var key = AesEncryptJS.enc.Utf8.parse(encryKey);
|
23
|
+
var decrypt = AesEncryptJS.AES.decrypt(word, key, {mode:AesEncryptJS.mode.ECB,padding: AesEncryptJS.pad.Pkcs7});
|
24
|
+
var ret = AesEncryptJS.enc.Utf8.stringify(decrypt).toString();
|
25
|
+
try{
|
26
|
+
return JSON.parse(ret) ;
|
27
|
+
}catch (e){
|
28
|
+
return ret
|
29
|
+
}
|
30
|
+
},
|
31
|
+
/**
|
32
|
+
* RSA加密
|
33
|
+
* @param word
|
34
|
+
* @returns {*}
|
35
|
+
*/
|
36
|
+
RSAEncrypt(word){
|
37
|
+
let encrypt = new RsaEncryptJS();
|
38
|
+
encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
|
39
|
+
let resdata = encrypt.encrypt(word);
|
40
|
+
return resdata.toString();
|
41
|
+
},
|
42
|
+
/**
|
43
|
+
* RSA解密
|
44
|
+
* @param word
|
45
|
+
* @returns {*}
|
46
|
+
*/
|
47
|
+
RSADecrypt(word){
|
48
|
+
let encrypt = new RsaEncryptJS();
|
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
|
+
let resdata = encrypt.decrypt(word);
|
51
|
+
return JSON.parse(resdata.toString()) ;
|
52
|
+
},
|
53
|
+
}
|
@@ -1,19 +1,14 @@
|
|
1
1
|
import Vue from 'vue'
|
2
|
-
import JSEncrypt from 'jsencrypt'
|
3
2
|
import {HttpResetClass} from 'vue-client'
|
4
|
-
|
3
|
+
import cryptJS from './EncryptUtil'
|
5
4
|
let loginGen = async function (name, password) {
|
6
5
|
let data = {name: name, password: password}
|
7
|
-
|
8
|
-
let
|
9
|
-
encrypt.setPublicKey('MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCqPvovSfXcwBbW8cKMCgwqNpsYuzF8RPAPFb7LGsnVo44JhM/xxzDyzoYtdfNmtbIuKVi9PzIsyp6rg+09gbuI6UGwBZ5DWBDBMqv5MPdOF5dCQkB2Bbr5yPfURPENypUz+pBFBg41d+BC+rwRiXELwKy7Y9caD/MtJyHydj8OUwIDAQAB');
|
10
|
-
console.log(data)
|
11
|
-
|
12
|
-
let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null}, 'RSA')
|
6
|
+
data = '$'+cryptJS.RSAEncrypt(JSON.stringify(data))
|
7
|
+
let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
|
13
8
|
if (getLogin.data.states === '登录成功') {
|
14
9
|
// 调用远程登录服务,获取所有有权访问的功能
|
15
10
|
data = {username: name, password: password}
|
16
|
-
data =
|
11
|
+
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
17
12
|
let resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
|
18
13
|
resolveMsg: null,
|
19
14
|
rejectMsg: null
|
package/src/system.js
CHANGED
@@ -1,109 +1,109 @@
|
|
1
|
-
import Vue from 'vue'
|
2
|
-
import GetLoginInfoService from './plugins/GetLoginInfoService'
|
3
|
-
import GetAppDataService from './stores/AppData'
|
4
|
-
// 热力
|
5
|
-
import HeatGetLoginInfoService from './plugins/HeatGetLoginInfoService'
|
6
|
-
import HeatGetAppDataService from './stores/HeatAppData'
|
7
|
-
// 热力登陆控制
|
8
|
-
Vue.$heatCompatibility = Vue.prototype.$heatCompatibility = false
|
9
|
-
|
10
|
-
// /** **************************登录与主界面相关******************************/
|
11
|
-
|
12
|
-
import login from './components/server/Login'
|
13
|
-
import changeDeclare from './components/server/ChangeDeclare'
|
14
|
-
import addChangemsg from './components/server/AddChangeMsg'
|
15
|
-
import homePage from './components/Main'
|
16
|
-
import leftTree from './components/server/LeftTree'
|
17
|
-
import iconTree from './components/server/IconTree'
|
18
|
-
import modifyPw from './components/server/ModifyPw'
|
19
|
-
import LoadData from './components/server/LoadData'
|
20
|
-
import RightTree from './components/server/RightTree'
|
21
|
-
import TestRightTree from './components/server/TestRightTree'
|
22
|
-
//资源选择
|
23
|
-
import ResSelect from './components/server/ResSelect'
|
24
|
-
import ResSelectGroup from './components/server/ResSelectGroup'
|
25
|
-
|
26
|
-
//资源选择测试
|
27
|
-
import TestResSelect from './components/server/TestResSelect'
|
28
|
-
import RoleSelector from "./components/server/RoleSelector";
|
29
|
-
|
30
|
-
// BAinformation备案信息展示(空不展示, 传入什么展示什么,可以传标签)
|
31
|
-
export default function (val,filiale, {showLogin = false, show_daiBan = false, BAinformation = null} = {}) {
|
32
|
-
console.log(val,filiale,showLogin)
|
33
|
-
//验证码开关赋值
|
34
|
-
if(val!=null){
|
35
|
-
GetLoginInfoService.Verification=val
|
36
|
-
}
|
37
|
-
//登录提示赋值
|
38
|
-
GetLoginInfoService.depPrompt=showLogin
|
39
|
-
//展示待办赋值
|
40
|
-
GetLoginInfoService.showDaiBan=show_daiBan
|
41
|
-
// 备案信息复制
|
42
|
-
GetLoginInfoService.BAinformation = BAinformation
|
43
|
-
Vue.use(GetLoginInfoService)
|
44
|
-
Vue.use(GetAppDataService)
|
45
|
-
Vue.use(HeatGetLoginInfoService)
|
46
|
-
Vue.use(HeatGetAppDataService)
|
47
|
-
|
48
|
-
Vue.component('login', login)
|
49
|
-
Vue.component('change-declare', changeDeclare)
|
50
|
-
Vue.component('add-changemsg', addChangemsg)
|
51
|
-
Vue.component('home-page', homePage)
|
52
|
-
Vue.component('left-tree', leftTree)
|
53
|
-
Vue.component('icon-tree', iconTree)
|
54
|
-
Vue.component('modify-pw', modifyPw)
|
55
|
-
Vue.component('load-data', LoadData)
|
56
|
-
Vue.component('right-tree', RightTree)
|
57
|
-
Vue.component('test-right-tree', TestRightTree)
|
58
|
-
Vue.component('role-selector', RoleSelector)
|
59
|
-
//资源选择
|
60
|
-
Vue.component('res-select', ResSelect)
|
61
|
-
Vue.component('res-select-group', ResSelectGroup)
|
62
|
-
//资源选择测试
|
63
|
-
Vue.component('test-res-select', TestResSelect)
|
64
|
-
|
65
|
-
// 参数管理(新)
|
66
|
-
Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
|
67
|
-
// 参数管理
|
68
|
-
Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
|
69
|
-
// 参数管理
|
70
|
-
Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
|
71
|
-
|
72
|
-
// 参数管理(旧)
|
73
|
-
Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
|
74
|
-
// 参数管理
|
75
|
-
Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
|
76
|
-
// 参数管理
|
77
|
-
Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
|
78
|
-
|
79
|
-
// 终端管理
|
80
|
-
Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
|
81
|
-
// pc端控制
|
82
|
-
Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
|
83
|
-
// phone端控制
|
84
|
-
Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
|
85
|
-
// pos端控制
|
86
|
-
Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
|
87
|
-
// pos管理
|
88
|
-
Vue.component('pos-manage-both', (resolve) => { require(['./components/equipment/PosManageBoth'], resolve) })
|
89
|
-
// pos参数管理
|
90
|
-
Vue.component('pos-param-manage', (resolve) => { require(['./components/equipment/PosParamManage'], resolve) })
|
91
|
-
|
92
|
-
// 材料字典
|
93
|
-
Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
|
94
|
-
Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
|
95
|
-
// 图片查看器
|
96
|
-
Vue.component('image-viewer', (resolve) => { require(['./components/server/ImageViewer'], resolve) })
|
97
|
-
// 测试图片查看器
|
98
|
-
Vue.component('image-viewer-test', (resolve) => { require(['./components/server/ImageVieweTest'], resolve) })
|
99
|
-
|
100
|
-
//省市区、街道、小区、楼栋级联查询
|
101
|
-
Vue.component('pcd-building-select', (resolve) => { require(['./components/server/PcdBuildingSelect'], resolve) })
|
102
|
-
|
103
|
-
if (filiale) {
|
104
|
-
let filialeComp = require(`./filiale/${filiale}/system`).specialComp
|
105
|
-
for (let key in filialeComp) {
|
106
|
-
Vue.component(key, filialeComp[key])
|
107
|
-
}
|
108
|
-
}
|
109
|
-
}
|
1
|
+
import Vue from 'vue'
|
2
|
+
import GetLoginInfoService from './plugins/GetLoginInfoService'
|
3
|
+
import GetAppDataService from './stores/AppData'
|
4
|
+
// 热力
|
5
|
+
import HeatGetLoginInfoService from './plugins/HeatGetLoginInfoService'
|
6
|
+
import HeatGetAppDataService from './stores/HeatAppData'
|
7
|
+
// 热力登陆控制
|
8
|
+
Vue.$heatCompatibility = Vue.prototype.$heatCompatibility = false
|
9
|
+
|
10
|
+
// /** **************************登录与主界面相关******************************/
|
11
|
+
|
12
|
+
import login from './components/server/Login'
|
13
|
+
import changeDeclare from './components/server/ChangeDeclare'
|
14
|
+
import addChangemsg from './components/server/AddChangeMsg'
|
15
|
+
import homePage from './components/Main'
|
16
|
+
import leftTree from './components/server/LeftTree'
|
17
|
+
import iconTree from './components/server/IconTree'
|
18
|
+
import modifyPw from './components/server/ModifyPw'
|
19
|
+
import LoadData from './components/server/LoadData'
|
20
|
+
import RightTree from './components/server/RightTree'
|
21
|
+
import TestRightTree from './components/server/TestRightTree'
|
22
|
+
//资源选择
|
23
|
+
import ResSelect from './components/server/ResSelect'
|
24
|
+
import ResSelectGroup from './components/server/ResSelectGroup'
|
25
|
+
|
26
|
+
//资源选择测试
|
27
|
+
import TestResSelect from './components/server/TestResSelect'
|
28
|
+
import RoleSelector from "./components/server/RoleSelector";
|
29
|
+
|
30
|
+
// BAinformation备案信息展示(空不展示, 传入什么展示什么,可以传标签)
|
31
|
+
export default function (val,filiale, {showLogin = false, show_daiBan = false, BAinformation = null} = {}) {
|
32
|
+
console.log(val,filiale,showLogin)
|
33
|
+
//验证码开关赋值
|
34
|
+
if(val!=null){
|
35
|
+
GetLoginInfoService.Verification=val
|
36
|
+
}
|
37
|
+
//登录提示赋值
|
38
|
+
GetLoginInfoService.depPrompt=showLogin
|
39
|
+
//展示待办赋值
|
40
|
+
GetLoginInfoService.showDaiBan=show_daiBan
|
41
|
+
// 备案信息复制
|
42
|
+
GetLoginInfoService.BAinformation = BAinformation
|
43
|
+
Vue.use(GetLoginInfoService)
|
44
|
+
Vue.use(GetAppDataService)
|
45
|
+
Vue.use(HeatGetLoginInfoService)
|
46
|
+
Vue.use(HeatGetAppDataService)
|
47
|
+
|
48
|
+
Vue.component('login', login)
|
49
|
+
Vue.component('change-declare', changeDeclare)
|
50
|
+
Vue.component('add-changemsg', addChangemsg)
|
51
|
+
Vue.component('home-page', homePage)
|
52
|
+
Vue.component('left-tree', leftTree)
|
53
|
+
Vue.component('icon-tree', iconTree)
|
54
|
+
Vue.component('modify-pw', modifyPw)
|
55
|
+
Vue.component('load-data', LoadData)
|
56
|
+
Vue.component('right-tree', RightTree)
|
57
|
+
Vue.component('test-right-tree', TestRightTree)
|
58
|
+
Vue.component('role-selector', RoleSelector)
|
59
|
+
//资源选择
|
60
|
+
Vue.component('res-select', ResSelect)
|
61
|
+
Vue.component('res-select-group', ResSelectGroup)
|
62
|
+
//资源选择测试
|
63
|
+
Vue.component('test-res-select', TestResSelect)
|
64
|
+
|
65
|
+
// 参数管理(新)
|
66
|
+
Vue.component('param-manage', (resolve) => { require(['./components/parammanage/ParamManage'], resolve) })
|
67
|
+
// 参数管理
|
68
|
+
Vue.component('param-page', (resolve) => { require(['./components/parammanage/ParamPage'], resolve) })
|
69
|
+
// 参数管理
|
70
|
+
Vue.component('single-page', (resolve) => { require(['./components/parammanage/SinglePage'], resolve) })
|
71
|
+
|
72
|
+
// 参数管理(旧)
|
73
|
+
Vue.component('param-manages', (resolve) => { require(['./components/parammanage/ParamManages'], resolve) })
|
74
|
+
// 参数管理
|
75
|
+
Vue.component('param-pages', (resolve) => { require(['./components/parammanage/ParamPages'], resolve) })
|
76
|
+
// 参数管理
|
77
|
+
Vue.component('single-pages', (resolve) => { require(['./components/parammanage/SinglePages'], resolve) })
|
78
|
+
|
79
|
+
// 终端管理
|
80
|
+
Vue.component('equipment-manage', (resolve) => { require(['./components/equipment/EquipmentManage'], resolve) })
|
81
|
+
// pc端控制
|
82
|
+
Vue.component('pc-manage', (resolve) => { require(['./components/equipment/PcManage'], resolve) })
|
83
|
+
// phone端控制
|
84
|
+
Vue.component('phone-manage', (resolve) => { require(['./components/equipment/PhoneManage'], resolve) })
|
85
|
+
// pos端控制
|
86
|
+
Vue.component('pos-manage', (resolve) => { require(['./components/equipment/PosManage'], resolve) })
|
87
|
+
// pos管理
|
88
|
+
Vue.component('pos-manage-both', (resolve) => { require(['./components/equipment/PosManageBoth'], resolve) })
|
89
|
+
// pos参数管理
|
90
|
+
Vue.component('pos-param-manage', (resolve) => { require(['./components/equipment/PosParamManage'], resolve) })
|
91
|
+
|
92
|
+
// 材料字典
|
93
|
+
Vue.component('material-data', (resolve) => { require(['./components/materialManage/materialData.vue'], resolve) })
|
94
|
+
Vue.component('material-data-list', (resolve) => { require(['./components/materialManage/materialList.vue'], resolve) })
|
95
|
+
// 图片查看器
|
96
|
+
Vue.component('image-viewer', (resolve) => { require(['./components/server/ImageViewer'], resolve) })
|
97
|
+
// 测试图片查看器
|
98
|
+
Vue.component('image-viewer-test', (resolve) => { require(['./components/server/ImageVieweTest'], resolve) })
|
99
|
+
|
100
|
+
//省市区、街道、小区、楼栋级联查询
|
101
|
+
Vue.component('pcd-building-select', (resolve) => { require(['./components/server/PcdBuildingSelect'], resolve) })
|
102
|
+
|
103
|
+
if (filiale) {
|
104
|
+
let filialeComp = require(`./filiale/${filiale}/system`).specialComp
|
105
|
+
for (let key in filialeComp) {
|
106
|
+
Vue.component(key, filialeComp[key])
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|