system-clients 3.2.1-30 → 3.2.1-33
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/.eslintrc.js +16 -16
- package/.gradle/4.4/fileChanges/last-build.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/4.4/fileHashes/fileHashes.lock +0 -0
- package/SystemClient.iml +1 -8
- package/build/webpack.base.conf.js +85 -85
- package/package.json +1 -1
- package/src/App.vue +24 -24
- package/src/components/Main.vue +771 -771
- package/src/components/TabButton.vue +201 -201
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PosAdd.vue +323 -323
- package/src/components/equipment/PosList.vue +294 -294
- package/src/components/equipment/PosManage.vue +138 -138
- package/src/components/equipment/PosManageBoth.vue +125 -125
- package/src/components/equipment/PosParamAdd.vue +236 -236
- package/src/components/equipment/PosParamList.vue +121 -121
- package/src/components/equipment/PosParamManage.vue +51 -51
- package/src/components/server/Login.vue +840 -835
- package/src/components/server/ModifyPw.vue +6 -2
- package/src/filiale/rizhao/LeftTree.vue +111 -111
- package/src/filiale/rizhao/Login.vue +2 -2
- package/src/filiale/rizhao/Main.vue +606 -606
- package/src/filiale/rizhao/system.js +14 -14
- package/src/plugins/EncryptUtil.js +53 -0
- package/src/plugins/GetLoginInfoService.js +4 -9
- package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
- package/yarn-error.log +128 -128
@@ -1,14 +1,14 @@
|
|
1
|
-
|
2
|
-
// 日照改了样式
|
3
|
-
let specialComp = {
|
4
|
-
'login': (resolve) => {
|
5
|
-
require(['./Login'], resolve)
|
6
|
-
},
|
7
|
-
'home-page': (resolve) => {
|
8
|
-
require(['./Main'], resolve)
|
9
|
-
},
|
10
|
-
'left-tree': (resolve) => {
|
11
|
-
require(['./LeftTree'], resolve)
|
12
|
-
}
|
13
|
-
};
|
14
|
-
exports.specialComp = specialComp
|
1
|
+
|
2
|
+
// 日照改了样式
|
3
|
+
let specialComp = {
|
4
|
+
'login': (resolve) => {
|
5
|
+
require(['./Login'], resolve)
|
6
|
+
},
|
7
|
+
'home-page': (resolve) => {
|
8
|
+
require(['./Main'], resolve)
|
9
|
+
},
|
10
|
+
'left-tree': (resolve) => {
|
11
|
+
require(['./LeftTree'], resolve)
|
12
|
+
}
|
13
|
+
};
|
14
|
+
exports.specialComp = specialComp
|
@@ -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
|