system-clients 3.2.55-1 → 3.2.55-furuike
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/.babelrc +5 -5
- package/.editorconfig +9 -9
- package/.eslintrc.js +16 -16
- package/.gradle/7.4/checksums/checksums.lock +0 -0
- package/.gradle/7.4/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.bin +0 -0
- package/.gradle/7.4/executionHistory/executionHistory.lock +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.bin +0 -0
- package/.gradle/7.4/fileHashes/fileHashes.lock +0 -0
- package/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/.gradle/buildOutputCleanup/cache.properties +1 -1
- package/.gradle/buildOutputCleanup/outputFiles.bin +0 -0
- package/.gradle/file-system.probe +0 -0
- package/CHANGELOG.md +51 -51
- package/README.md +36 -36
- package/SystemClient.iml +8 -8
- package/build/css-loaders.js +34 -34
- package/build/dev-client.js +8 -8
- package/build/example-server.js +80 -80
- package/build/release.sh +28 -28
- package/build/utils.js +71 -71
- package/build/webpack.base.conf.js +85 -85
- package/build/webpack.dev.conf.js +31 -31
- package/build/webpack.example.conf.js +49 -49
- package/build/webpack.prod.conf.js +60 -60
- package/build/webpack.test.conf.js +31 -31
- package/build.gradle +6 -6
- package/config/dev.env.js +6 -6
- package/config/index.js +38 -38
- package/config/prod.env.js +3 -3
- package/config/test.env.js +6 -6
- package/doc/Login.md +7 -7
- package/examples/LoginPage/App.vue +21 -21
- package/examples/LoginPage/index.html +11 -11
- package/examples/LoginPage/main.js +15 -15
- package/examples/ReadCard/App.vue +23 -23
- package/examples/ReadCard/index.html +11 -11
- package/examples/ReadCard/main.js +12 -12
- package/index.html +21 -21
- package/package.json +2 -2
- package/release.bat +5 -5
- package/src/App.vue +24 -24
- package/src/LodopFuncs.js +123 -123
- package/src/assets/binding.svg +1 -1
- package/src/assets/unbind.svg +1 -1
- package/src/assets//345/205/254/345/221/212.svg +1 -1
- package/src/assets//347/207/203/346/260/224/347/274/264/350/264/271.eps +116 -116
- package/src/assets//350/201/224/347/263/273/346/210/221/344/273/254.svg +1 -1
- package/src/components/List.vue +51 -51
- package/src/components/Main.vue +785 -785
- package/src/components/TabButton.vue +201 -201
- package/src/components/Table.js +74 -74
- package/src/components/Tabs.vue +67 -67
- package/src/components/Util.js +343 -343
- package/src/components/addressManage/AddressCascadingMenu.vue +145 -145
- package/src/components/equipment/EquipmentManage.vue +65 -65
- package/src/components/equipment/PcAdd.vue +105 -105
- package/src/components/equipment/PcList.vue +119 -119
- package/src/components/equipment/PcManage.vue +60 -60
- package/src/components/equipment/PhoneAdd.vue +107 -107
- package/src/components/equipment/PhoneList.vue +112 -112
- package/src/components/equipment/PhoneManage.vue +60 -60
- 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/materialManage/materialData.vue +44 -44
- package/src/components/materialManage/materialList.vue +255 -255
- package/src/components/parammanage/ParamManage.vue +42 -42
- package/src/components/parammanage/ParamManages.vue +43 -43
- package/src/components/parammanage/ParamPage.vue +336 -336
- package/src/components/parammanage/ParamPages.vue +222 -222
- package/src/components/parammanage/SinglePage.vue +235 -235
- package/src/components/parammanage/SinglePages.vue +167 -167
- package/src/components/server/AddChangeMsg.vue +66 -66
- package/src/components/server/ChangeDeclare.vue +45 -45
- package/src/components/server/IconTree.vue +26 -26
- package/src/components/server/ImageVieweTest.vue +56 -56
- package/src/components/server/ImageViewer.vue +350 -350
- package/src/components/server/LeftTree.vue +111 -111
- package/src/components/server/LoadData.vue +55 -55
- package/src/components/server/Login.vue +4 -2
- package/src/components/server/LoginPage.vue +235 -235
- package/src/components/server/LoginView.vue +128 -128
- package/src/components/server/Menu.vue +188 -188
- package/src/components/server/ModifyPw.vue +111 -111
- package/src/components/server/PcdBuildingSelect.vue +241 -241
- package/src/components/server/ResSelect.vue +155 -155
- package/src/components/server/ResSelectGroup.vue +198 -198
- package/src/components/server/RightTree.vue +348 -348
- package/src/components/server/RoleSelector.vue +88 -88
- package/src/components/server/TestResSelect.vue +58 -58
- package/src/components/server/TestResSelectGroup.vue +388 -388
- package/src/components/server/TestRightTree.vue +42 -42
- package/src/filiale/chengtou/Login.vue +537 -537
- package/src/filiale/chengtou/system.js +5 -5
- package/src/filiale/dongguan/Login.vue +900 -900
- package/src/filiale/dongguan/Main.vue +715 -715
- package/src/filiale/dongguan/system.js +6 -6
- package/src/filiale/furuike/Login.vue +583 -583
- package/src/filiale/furuike/Main.vue +826 -827
- package/src/filiale/furuike/system.js +7 -7
- package/src/filiale/konggang/Login.vue +470 -470
- package/src/filiale/konggang/system.js +7 -7
- package/src/filiale/qianneng/Main.vue +816 -816
- package/src/filiale/qianneng/ModifyPw.vue +107 -107
- package/src/filiale/qianneng/system.js +8 -8
- package/src/filiale/rizhao/LeftTree.vue +111 -111
- package/src/filiale/rizhao/Login.vue +791 -791
- package/src/filiale/rizhao/Main.vue +611 -611
- package/src/filiale/rizhao/system.js +14 -14
- package/src/filiale/tongchuan/Login.vue +561 -561
- package/src/filiale/tongchuan/system.js +7 -7
- package/src/filiale/wenxi/Login.vue +535 -535
- package/src/filiale/wenxi/Main.vue +785 -785
- package/src/filiale/wenxi/system.js +10 -10
- package/src/filiale/yuchuan/Login.vue +889 -889
- package/src/filiale/yuchuan/Main.vue +773 -773
- package/src/filiale/yuchuan/system.js +10 -10
- package/src/filiale/zhoukou/Main.vue +807 -807
- package/src/filiale/zhoukou/system.js +6 -6
- package/src/index.js +7 -7
- package/src/plugins/EncryptUtil.js +53 -53
- package/src/plugins/GetLoginInfoService.js +70 -82
- package/src/plugins/HeatGetLoginInfoService.js +491 -491
- package/src/plugins/validation.js +15 -15
- package/src/project/ProjectPage.vue +24 -24
- package/src/project/State.js +17 -17
- package/src/stores/AppData.js +38 -38
- package/src/stores/HeatAppData.js +38 -38
- package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
- package/src/styles/less/.csscomb.json +304 -304
- package/src/styles/less/.csslintrc +19 -19
- package/src/styles/less/alerts.less +73 -73
- package/src/styles/less/aofeng/animate.min.css +10 -10
- package/src/styles/less/aofeng/expandcss.less +569 -569
- package/src/styles/less/aofeng/login.less +367 -367
- package/src/styles/less/aofeng/standard.less +2507 -2507
- package/src/styles/less/aofeng/themeOne/BinaryTemplate.less +686 -686
- package/src/styles/less/aofeng/themeOne/loginStyle.less +1586 -1586
- package/src/styles/less/aofeng/themeOne/systemStyle.less +2650 -2650
- package/src/styles/less/aofeng/themeOne.less +17 -17
- package/src/styles/less/aofeng/themeTwo/newStyle1.less +415 -415
- package/src/styles/less/aofeng/themeTwo.less +3 -3
- package/src/styles/less/badges.less +66 -66
- package/src/styles/less/bootstrap.less +66 -66
- package/src/styles/less/breadcrumbs.less +26 -26
- package/src/styles/less/button-groups.less +247 -247
- package/src/styles/less/buttons.less +172 -172
- package/src/styles/less/carousel.less +269 -269
- package/src/styles/less/close.less +34 -34
- package/src/styles/less/code.less +69 -69
- package/src/styles/less/component-animations.less +33 -33
- package/src/styles/less/dropdowns.less +216 -216
- package/src/styles/less/fonts-list.less +25 -25
- package/src/styles/less/forms.less +626 -626
- package/src/styles/less/glyphicons.less +305 -305
- package/src/styles/less/grid.less +84 -84
- package/src/styles/less/input-groups.less +167 -167
- package/src/styles/less/jumbotron.less +52 -52
- package/src/styles/less/labels.less +64 -64
- package/src/styles/less/list-group.less +141 -141
- package/src/styles/less/manageStyle/manageChile.less +180 -180
- package/src/styles/less/manageStyle/manageStyle/manageChile.less +180 -180
- package/src/styles/less/manageStyle/manageStyle/manageStyle.less +1102 -1102
- package/src/styles/less/manageStyle/manageStyle/safeStyle.less +498 -498
- package/src/styles/less/manageStyle/manageStyle.less +1102 -1102
- package/src/styles/less/manageStyle/safeStyle.less +498 -498
- package/src/styles/less/media.less +66 -66
- package/src/styles/less/mixins/alerts.less +14 -14
- package/src/styles/less/mixins/background-variant.less +9 -9
- package/src/styles/less/mixins/border-radius.less +18 -18
- package/src/styles/less/mixins/buttons.less +69 -69
- package/src/styles/less/mixins/center-block.less +7 -7
- package/src/styles/less/mixins/clearfix.less +22 -22
- package/src/styles/less/mixins/forms.less +90 -90
- package/src/styles/less/mixins/gradients.less +59 -59
- package/src/styles/less/mixins/grid-framework.less +92 -92
- package/src/styles/less/mixins/grid.less +122 -122
- package/src/styles/less/mixins/hide-text.less +21 -21
- package/src/styles/less/mixins/image.less +33 -33
- package/src/styles/less/mixins/labels.less +12 -12
- package/src/styles/less/mixins/list-group.less +30 -30
- package/src/styles/less/mixins/nav-divider.less +10 -10
- package/src/styles/less/mixins/nav-vertical-align.less +9 -9
- package/src/styles/less/mixins/opacity.less +8 -8
- package/src/styles/less/mixins/pagination.less +24 -24
- package/src/styles/less/mixins/panels.less +24 -24
- package/src/styles/less/mixins/progress-bar.less +10 -10
- package/src/styles/less/mixins/reset-filter.less +8 -8
- package/src/styles/less/mixins/reset-text.less +18 -18
- package/src/styles/less/mixins/resize.less +6 -6
- package/src/styles/less/mixins/responsive-visibility.less +15 -15
- package/src/styles/less/mixins/size.less +10 -10
- package/src/styles/less/mixins/tab-focus.less +9 -9
- package/src/styles/less/mixins/table-row.less +44 -44
- package/src/styles/less/mixins/text-emphasis.less +9 -9
- package/src/styles/less/mixins/text-overflow.less +8 -8
- package/src/styles/less/mixins/vendor-prefixes.less +227 -227
- package/src/styles/less/mixins.less +40 -40
- package/src/styles/less/modals.less +151 -151
- package/src/styles/less/navbar.less +660 -660
- package/src/styles/less/navs.less +285 -285
- package/src/styles/less/normalize.less +424 -424
- package/src/styles/less/pager.less +76 -76
- package/src/styles/less/pagination.less +89 -89
- package/src/styles/less/panels.less +275 -275
- package/src/styles/less/popovers.less +131 -131
- package/src/styles/less/print.less +101 -101
- package/src/styles/less/progress-bars.less +87 -87
- package/src/styles/less/responsive-embed.less +35 -35
- package/src/styles/less/responsive-utilities.less +194 -194
- package/src/styles/less/scaffolding.less +161 -161
- package/src/styles/less/stand.less +207 -207
- package/src/styles/less/tables.less +312 -312
- package/src/styles/less/theme.less +291 -291
- package/src/styles/less/thumbnails.less +36 -36
- package/src/styles/less/tooltip.less +102 -102
- package/src/styles/less/type.less +316 -316
- package/src/styles/less/utilities.less +55 -55
- package/src/styles/less/variables.less +899 -899
- package/src/styles/less/wells.less +29 -29
- package/src/system.js +113 -117
- package/src/systemphone.js +11 -11
- package/src/util/Daiban.json +12 -12
- package/src/util/LdapHelper.js +75 -75
- package/test/e2e/custom-assertions/elementCount.js +26 -26
- package/test/e2e/nightwatch.conf.js +40 -40
- package/test/e2e/runner.js +30 -30
- package/test/e2e/specs/test.js +14 -14
- package/test/unit/.eslintrc +5 -5
- package/test/unit/index.js +13 -13
- package/test/unit/init.js +10 -10
- package/test/unit/karma.conf.js +49 -49
- package/test/unit/specs/base64.spec.js +5 -5
- package/test/unit/specs/components/parammanage/ParamPage.spec.js +20 -20
- package/test/unit/specs/components/parammanage/SinglePage.spec.js +20 -20
- package/test/unit/specs/components/server/LeftTree/App.vue +18 -18
- package/test/unit/specs/components/server/LeftTree/LeftTree.spec.js +22 -22
- package/test/unit/specs/components/server/LoadData.spec.js +24 -24
- package/test/unit/specs/components/server/Login.spec.js +61 -61
- package/test/unit/specs/components/server/RightTree.spec.js +50 -50
- package/test/unit/specs/plugins/GetLoginInfoService.spec.js +55 -55
- package/test/unit/test.html +76 -76
- package/yarn-error.log +6896 -6896
- package/gradlew +0 -234
- package/gradlew.bat +0 -89
- package/src/components/common/ProgressBase.vue +0 -83
@@ -1,6 +1,6 @@
|
|
1
|
-
// 分公司特殊组件页面注册
|
2
|
-
|
3
|
-
let specialComp = {
|
4
|
-
'home-page': (resolve) => require(['./Main'], resolve)
|
5
|
-
}
|
6
|
-
exports.specialComp = specialComp
|
1
|
+
// 分公司特殊组件页面注册
|
2
|
+
|
3
|
+
let specialComp = {
|
4
|
+
'home-page': (resolve) => require(['./Main'], resolve)
|
5
|
+
}
|
6
|
+
exports.specialComp = specialComp
|
package/src/index.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import system from './system'
|
2
|
-
import systemphone from './systemphone'
|
3
|
-
|
4
|
-
export {
|
5
|
-
system,
|
6
|
-
systemphone
|
7
|
-
}
|
1
|
+
import system from './system'
|
2
|
+
import systemphone from './systemphone'
|
3
|
+
|
4
|
+
export {
|
5
|
+
system,
|
6
|
+
systemphone
|
7
|
+
}
|
@@ -1,53 +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
|
+
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,36 +1,25 @@
|
|
1
1
|
import Vue from 'vue'
|
2
2
|
import {HttpResetClass} from 'vue-client'
|
3
3
|
import cryptJS from './EncryptUtil'
|
4
|
-
|
5
4
|
let loginGen = async function (name, password, cue) {
|
6
5
|
let data = {name: name, password: password}
|
7
|
-
data = '$'
|
6
|
+
data = '$'+cryptJS.RSAEncrypt(JSON.stringify(data))
|
8
7
|
let getLogin = await Vue.resetpost('/rs/logic/getLogin', data, {resolveMsg: null, rejectMsg: null})
|
9
8
|
if (getLogin.data.states === '登录成功') {
|
10
|
-
//获取jwt
|
11
|
-
Vue.$login.jwt = getLogin.data.jwt
|
12
|
-
Vue.$login.jwtNew = getLogin.data.jwtNew
|
13
9
|
// 调用远程登录服务,获取所有有权访问的功能
|
14
10
|
data = {username: name, password: password}
|
15
11
|
data = cryptJS.RSAEncrypt(JSON.stringify(data))
|
16
|
-
|
12
|
+
let resource = await Vue.resetpost(`/rs/user/userLogin/客服系统`, data, {
|
17
13
|
resolveMsg: null,
|
18
14
|
rejectMsg: null
|
19
15
|
})
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
}
|
25
|
-
|
26
|
-
console.log('登陆获取Util', JSON.stringify(resourceResult))
|
27
|
-
|
28
|
-
Vue.$login.f = resourceResult.data.data
|
16
|
+
console.log('登陆获取Util', JSON.stringify(resource.data))
|
17
|
+
Vue.$login.f = resource.data
|
18
|
+
//获取jwt
|
19
|
+
Vue.$login.jwt = getLogin.data.jwt
|
29
20
|
// 把登录用户添加到cookie里
|
30
21
|
Vue.cookie.set('loginId', Vue.$login.f.id)
|
31
22
|
|
32
|
-
console.log("当前登录信息Vue.$login.f", Vue.$login.f)
|
33
|
-
|
34
23
|
try {
|
35
24
|
//获取有权限的功能树
|
36
25
|
let hasRight = await Vue.resetpost(`/rs/search`, {
|
@@ -43,16 +32,18 @@ let loginGen = async function (name, password, cue) {
|
|
43
32
|
})
|
44
33
|
console.log('有权限功能返回数据', JSON.stringify(hasRight.data))
|
45
34
|
//准备替换功能树
|
46
|
-
var fun
|
35
|
+
var fun=[]
|
47
36
|
hasRight.data[0].children[0].children.forEach((item) => {
|
48
|
-
if
|
37
|
+
if(item.name=='客服系统'){
|
49
38
|
item.children.forEach((item1) => {
|
50
39
|
fun.push(item1)
|
51
40
|
})
|
52
41
|
}
|
53
42
|
})
|
54
|
-
Vue.$login.f.functions
|
55
|
-
|
43
|
+
// console.log('替换前', JSON.stringify(Vue.$login.f.functions))
|
44
|
+
// console.log('替换后', JSON.stringify(fun))
|
45
|
+
Vue.$login.f.functions=fun
|
46
|
+
}catch (error) {
|
56
47
|
}
|
57
48
|
if (Vue.$login.f.id !== '11') {
|
58
49
|
try {
|
@@ -66,9 +57,9 @@ let loginGen = async function (name, password, cue) {
|
|
66
57
|
areaTemp.push({label: getAllArea.data[i].name, value: getAllArea.data[i]})
|
67
58
|
}
|
68
59
|
Vue.$login.f.f_allArea = areaTemp
|
69
|
-
}
|
70
|
-
Vue.$login.f.f_allArea =
|
71
|
-
console.log('获取区县',
|
60
|
+
}catch (error) {
|
61
|
+
Vue.$login.f.f_allArea =[]
|
62
|
+
console.log('获取区县',error)
|
72
63
|
}
|
73
64
|
// 获取抄表员
|
74
65
|
try {
|
@@ -81,9 +72,9 @@ let loginGen = async function (name, password, cue) {
|
|
81
72
|
gasman.push(getGasman.data[i])
|
82
73
|
}
|
83
74
|
Vue.$login.f.f_gasman = gasman
|
84
|
-
}
|
75
|
+
}catch (error) {
|
85
76
|
Vue.$login.f.f_gasman = []
|
86
|
-
console.log('抄表员模块',
|
77
|
+
console.log('抄表员模块',error)
|
87
78
|
}
|
88
79
|
// 获取安装人
|
89
80
|
try {
|
@@ -97,9 +88,9 @@ let loginGen = async function (name, password, cue) {
|
|
97
88
|
installman.push(getInstallman.data[i])
|
98
89
|
}
|
99
90
|
Vue.$login.f.f_installman = installman
|
100
|
-
}
|
101
|
-
Vue.$login.f.f_installman =
|
102
|
-
console.log('安装人模块',
|
91
|
+
}catch (error) {
|
92
|
+
Vue.$login.f.f_installman =[]
|
93
|
+
console.log('安装人模块',error)
|
103
94
|
}
|
104
95
|
// 获取换表员
|
105
96
|
// try {
|
@@ -116,22 +107,20 @@ let loginGen = async function (name, password, cue) {
|
|
116
107
|
// Vue.$login.f.f_changemeterman = []
|
117
108
|
// console.log('换表员模块',error)
|
118
109
|
// }
|
119
|
-
|
110
|
+
// 获取资源服务权限
|
120
111
|
try {
|
121
|
-
let getLic = await Vue.resetpost('/rs/search', {
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
Vue.$login.f.lics = arry
|
132
|
-
} catch (error) {
|
112
|
+
let getLic = await Vue.resetpost('/rs/search', {data: {
|
113
|
+
source: 'this.getRights().where(row.getType()==$function$ && row.getPath($name$).indexOf($资源操作$) != -1)',
|
114
|
+
userid: Vue.$login.f.id
|
115
|
+
}}, {resolveMsg: null, rejectMsg: null})
|
116
|
+
let arry=[]
|
117
|
+
getLic.data.forEach((item) => {
|
118
|
+
arry.push(item.name)
|
119
|
+
})
|
120
|
+
Vue.$login.f.lics=arry
|
121
|
+
}catch (error) {
|
133
122
|
Vue.$login.f.f_gasman = []
|
134
|
-
console.log('资源服务权限',
|
123
|
+
console.log('资源服务权限',error)
|
135
124
|
}
|
136
125
|
// // 票据使用人
|
137
126
|
// try {
|
@@ -173,29 +162,26 @@ let loginGen = async function (name, password, cue) {
|
|
173
162
|
let r = viewDetails.data
|
174
163
|
Vue.$login.r = []
|
175
164
|
r.forEach(x => Vue.$login.r.push(x.name))
|
176
|
-
}
|
165
|
+
}catch (error) {
|
177
166
|
Vue.$login.r = []
|
178
|
-
console.log('加载模块失败',
|
167
|
+
console.log('加载模块失败',error)
|
179
168
|
}
|
180
169
|
// 调用登录后处理
|
181
|
-
for
|
170
|
+
for(let proc of Vue.$login.afterLogin) {
|
182
171
|
await proc(Vue.$login.f)
|
183
172
|
}
|
184
173
|
// 定时发送心跳
|
185
|
-
if (cue)
|
186
|
-
setInterval(()
|
174
|
+
if (cue){
|
175
|
+
setInterval(()=> {
|
187
176
|
let http = new HttpResetClass()
|
188
177
|
//暂时不出现不出现异地登录校验
|
189
|
-
http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {
|
190
|
-
|
191
|
-
rejectMsg: null
|
192
|
-
}).then((req) => {
|
193
|
-
if (req.data.forcestate && req.data.forcestate == 1) {
|
178
|
+
http.load('POST', `rs/user/access/${Vue.$login.f.id}`, {}, {resolveMsg: null, rejectMsg: null}).then((req) => {
|
179
|
+
if(req.data.forcestate && req.data.forcestate == 1){
|
194
180
|
Vue.showMessage("您被强制下线!", ['confirm']).then((res) => {
|
195
181
|
location.reload()
|
196
182
|
})
|
197
|
-
}
|
198
|
-
Vue.showMessage(req.data.msg
|
183
|
+
}else if(req.data.status==710){
|
184
|
+
Vue.showMessage(req.data.msg+",您将被强制退出系统", ['confirm']).then((res) => {
|
199
185
|
if (res === 'confirm') {
|
200
186
|
location.reload()
|
201
187
|
}
|
@@ -220,12 +206,14 @@ let GetLoginInfoService = {
|
|
220
206
|
Verification: true,
|
221
207
|
//登录信息展示开关
|
222
208
|
depPrompt: true,
|
223
|
-
install(Vue, options) {
|
209
|
+
install (Vue, options) {
|
224
210
|
// 给vue增添对话框显示方法
|
225
211
|
Vue.$login = Vue.prototype.$login = GetLoginInfoService
|
226
212
|
},
|
227
213
|
|
228
|
-
f: {
|
214
|
+
f: {
|
215
|
+
|
216
|
+
},
|
229
217
|
|
230
218
|
/**
|
231
219
|
* 登录
|
@@ -233,14 +221,14 @@ let GetLoginInfoService = {
|
|
233
221
|
* @param password
|
234
222
|
* @param cue true/false 是/否显示异地登录
|
235
223
|
*/
|
236
|
-
login(name, password, cue) {
|
237
|
-
if (cue === undefined || cue === null || cue === '')
|
224
|
+
login (name, password, cue) {
|
225
|
+
if (cue === undefined || cue === null || cue === ''){
|
238
226
|
cue = true
|
239
227
|
}
|
240
228
|
return loginGen(name, password, cue)
|
241
229
|
},
|
242
230
|
|
243
|
-
convertToIn(val) {
|
231
|
+
convertToIn (val) {
|
244
232
|
let temp = ''
|
245
233
|
if (val instanceof Array) {
|
246
234
|
if (val.length >= 1) {
|
@@ -254,26 +242,26 @@ let GetLoginInfoService = {
|
|
254
242
|
return temp
|
255
243
|
},
|
256
244
|
|
257
|
-
toStandardYearMonth() {
|
245
|
+
toStandardYearMonth () {
|
258
246
|
let dt = new Date()
|
259
247
|
let month = dt.getMonth() + 1
|
260
248
|
return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month)
|
261
249
|
},
|
262
250
|
|
263
|
-
toStandardYearMonth1() {
|
251
|
+
toStandardYearMonth1 () {
|
264
252
|
let dt = new Date()
|
265
253
|
let month = dt.getMonth() + 1
|
266
254
|
return dt.getFullYear() + (month < 10 ? '0' + month : month)
|
267
255
|
},
|
268
256
|
|
269
|
-
toStandardDateString() {
|
257
|
+
toStandardDateString () {
|
270
258
|
let dt = new Date()
|
271
259
|
let month = dt.getMonth() + 1
|
272
260
|
let date = dt.getDate()
|
273
261
|
return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
|
274
262
|
},
|
275
263
|
|
276
|
-
toStartAndEndDateString() {
|
264
|
+
toStartAndEndDateString () {
|
277
265
|
let dt = new Date()
|
278
266
|
let month = dt.getMonth() + 1
|
279
267
|
// let date = dt.getDate()
|
@@ -282,7 +270,7 @@ let GetLoginInfoService = {
|
|
282
270
|
// return dt.getFullYear() + '-' + (month < 10 ? '0' + month : month) + '-' + (date < 10 ? '0' + date : date)
|
283
271
|
},
|
284
272
|
|
285
|
-
toStandardTimeString() {
|
273
|
+
toStandardTimeString () {
|
286
274
|
let dt = new Date()
|
287
275
|
let month = dt.getMonth() + 1
|
288
276
|
let date = dt.getDate()
|
@@ -293,7 +281,7 @@ let GetLoginInfoService = {
|
|
293
281
|
' ' + (hour < 10 ? '0' + hour : hour) + ':' + (min < 10 ? '0' + min : min) + ':' + (sec < 10 ? '0' + sec : sec)
|
294
282
|
},
|
295
283
|
|
296
|
-
guid() {
|
284
|
+
guid () {
|
297
285
|
let buf = new Uint16Array(8)
|
298
286
|
window.crypto.getRandomValues(buf)
|
299
287
|
let S4 = function (num) {
|
@@ -306,7 +294,7 @@ let GetLoginInfoService = {
|
|
306
294
|
return (S4(buf[0]) + S4(buf[1]) + S4(buf[2]) + S4(buf[3]) + S4(buf[4]) + S4(buf[5]) + S4(buf[6]) + S4(buf[7]))
|
307
295
|
},
|
308
296
|
|
309
|
-
choices(role, param, hasBlank = false, blankHint = '请选择') {
|
297
|
+
choices (role, param, hasBlank = false, blankHint = '请选择') {
|
310
298
|
if (role == 'view') {
|
311
299
|
Vue.getParams(param, [null])
|
312
300
|
} else {
|
@@ -325,7 +313,7 @@ let GetLoginInfoService = {
|
|
325
313
|
}
|
326
314
|
},
|
327
315
|
|
328
|
-
required(param) {
|
316
|
+
required (param) {
|
329
317
|
if (typeof param === 'number' && param == 0)
|
330
318
|
return false
|
331
319
|
if (!param)
|
@@ -337,16 +325,16 @@ let GetLoginInfoService = {
|
|
337
325
|
return false
|
338
326
|
},
|
339
327
|
|
340
|
-
isInt(n) {
|
328
|
+
isInt (n) {
|
341
329
|
return !window.isNaN(n) && n % 1 === 0
|
342
330
|
},
|
343
331
|
|
344
|
-
isFloat(n) {
|
332
|
+
isFloat (n) {
|
345
333
|
return !window.isNaN(n)
|
346
334
|
},
|
347
335
|
|
348
336
|
// this will convert all true/false to boolean
|
349
|
-
booleanFilter(paper) {
|
337
|
+
booleanFilter (paper) {
|
350
338
|
for (let key in paper) {
|
351
339
|
if (!paper.hasOwnProperty(key))
|
352
340
|
continue
|
@@ -359,7 +347,7 @@ let GetLoginInfoService = {
|
|
359
347
|
}
|
360
348
|
},
|
361
349
|
// recursively traverse through each path
|
362
|
-
ratifyPics(paper) {
|
350
|
+
ratifyPics (paper) {
|
363
351
|
for (let key in paper) {
|
364
352
|
if (key.endsWith('_path')) {
|
365
353
|
if (!paper[key]) {
|
@@ -374,7 +362,7 @@ let GetLoginInfoService = {
|
|
374
362
|
},
|
375
363
|
|
376
364
|
// load script and other stuff
|
377
|
-
loadscript(type, fileName) {
|
365
|
+
loadscript (type, fileName) {
|
378
366
|
return new Promise((resolve, reject) => {
|
379
367
|
let element
|
380
368
|
if (type == 'css') {
|
@@ -401,11 +389,11 @@ let GetLoginInfoService = {
|
|
401
389
|
})
|
402
390
|
},
|
403
391
|
// 不能选择器中截取掉多余的字符
|
404
|
-
orgName(name) {
|
392
|
+
orgName (name) {
|
405
393
|
return name.substring(10)
|
406
394
|
},
|
407
395
|
|
408
|
-
getNowDate(name) {
|
396
|
+
getNowDate (name) {
|
409
397
|
// 求取当前时间的工具
|
410
398
|
let myweekday = ''
|
411
399
|
let year = ''
|
@@ -420,7 +408,7 @@ let GetLoginInfoService = {
|
|
420
408
|
return year + '年' + mymonth + '月' + myday + '日 ' + week[myweekday]
|
421
409
|
},
|
422
410
|
|
423
|
-
addDate(date, days) {
|
411
|
+
addDate (date, days) {
|
424
412
|
// 求取当前时间的工具
|
425
413
|
let endDate = new Date(date)
|
426
414
|
endDate = endDate.valueOf()
|
@@ -437,7 +425,7 @@ let GetLoginInfoService = {
|
|
437
425
|
},
|
438
426
|
|
439
427
|
// 通过地址栏的参数获取参数内容
|
440
|
-
getUrlParames(param) {
|
428
|
+
getUrlParames (param) {
|
441
429
|
var query = window.location.search
|
442
430
|
var iLen = param.length
|
443
431
|
var iStart = query.indexOf(param)
|
@@ -453,7 +441,7 @@ let GetLoginInfoService = {
|
|
453
441
|
},
|
454
442
|
|
455
443
|
// 从地址栏获取加密的参数
|
456
|
-
getUrlCompileParames(param) {
|
444
|
+
getUrlCompileParames (param) {
|
457
445
|
let code = unescape(window.location.search.slice(1, window.location.search.length))
|
458
446
|
let query = String.fromCharCode(code.charCodeAt(0) - code.length)
|
459
447
|
for (var i = 1; i < code.length; i++) {
|
@@ -473,7 +461,7 @@ let GetLoginInfoService = {
|
|
473
461
|
},
|
474
462
|
|
475
463
|
// 对字符串进行加密
|
476
|
-
compileStr(code) {
|
464
|
+
compileStr (code) {
|
477
465
|
let c = String.fromCharCode(code.charCodeAt(0) + code.length)
|
478
466
|
for (let i = 1; i < code.length; i++) {
|
479
467
|
c += String.fromCharCode(code.charCodeAt(i) + code.charCodeAt(i - 1))
|
@@ -481,7 +469,7 @@ let GetLoginInfoService = {
|
|
481
469
|
return escape(c)
|
482
470
|
},
|
483
471
|
// 字符串进行解密
|
484
|
-
uncompileStr(code) {
|
472
|
+
uncompileStr (code) {
|
485
473
|
code = unescape(code)
|
486
474
|
let c = String.fromCharCode(code.charCodeAt(0) - code.length)
|
487
475
|
for (var i = 1; i < code.length; i++) {
|
@@ -490,7 +478,7 @@ let GetLoginInfoService = {
|
|
490
478
|
return c
|
491
479
|
},
|
492
480
|
|
493
|
-
dateDescripte(date) {
|
481
|
+
dateDescripte (date) {
|
494
482
|
let nowTime = new Date().getTime()
|
495
483
|
let oldTime = new Date(date).getTime()
|
496
484
|
let timeDiff = nowTime - oldTime
|
@@ -523,7 +511,7 @@ let GetLoginInfoService = {
|
|
523
511
|
return des
|
524
512
|
},
|
525
513
|
|
526
|
-
nextMonth20(date) {
|
514
|
+
nextMonth20 (date) {
|
527
515
|
let ds = date.split('-')
|
528
516
|
let nextMonth = ds[1] - 0 + 1
|
529
517
|
return ds[0] + '-' + (nextMonth < 10 ? '0' + nextMonth : nextMonth) + '-20 00:00:00'
|