system-clients 3.2.19 → 3.2.22

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.
Files changed (38) hide show
  1. package/SystemClient.iml +8 -8
  2. package/examples/LoginPage/App.vue +21 -0
  3. package/examples/LoginPage/index.html +11 -0
  4. package/examples/LoginPage/main.js +15 -0
  5. package/package.json +2 -1
  6. package/src/App.vue +24 -24
  7. package/src/components/server/LoginPage.vue +235 -0
  8. package/src/components/server/LoginView.vue +128 -0
  9. package/src/filiale/dongguan/Login.vue +900 -897
  10. package/src/filiale/dongguan/Main.vue +715 -715
  11. package/src/filiale/dongguan/system.js +6 -6
  12. package/src/styles/fonts/glyphicons-halflings-regular.eot +0 -0
  13. package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -0
  14. package/src/styles/fonts/glyphicons-halflings-regular.ttf +0 -0
  15. package/src/styles/fonts/glyphicons-halflings-regular.woff +0 -0
  16. package/src/styles/fonts/glyphicons-halflings-regular.woff2 +0 -0
  17. package/src/styles/less/bootstrap.less +66 -66
  18. package/src/styles/less/fonts-list.less +25 -25
  19. package/src/styles/less/glyphicons.less +6 -6
  20. package/src/styles/less/stand.less +207 -207
  21. package/src/system.js +4 -0
  22. package/static/guangxi/backgroundImage.png +0 -0
  23. package/static/guangxi/ename.png +0 -0
  24. package/static/guangxi/enameCopy.png +0 -0
  25. package/static/guangxi/gasAnalysis.png +0 -0
  26. package/static/guangxi/gasAnalysis1.png +0 -0
  27. package/static/guangxi/gasCustomerService.png +0 -0
  28. package/static/guangxi/gasCustomerService1.png +0 -0
  29. package/static/guangxi/gasLargeScreen.png +0 -0
  30. package/static/guangxi/gasLargeScreen1.png +0 -0
  31. package/static/guangxi/gasProduction.png +0 -0
  32. package/static/guangxi/gasProduction1.png +0 -0
  33. package/static/guangxi/gasSupervise.png +0 -0
  34. package/static/guangxi/gasSupervise1.png +0 -0
  35. package/static/guangxi/password.png +0 -0
  36. package/static/guangxi/passwordCopy.png +0 -0
  37. package/static/guangxi/verificationCode.png +0 -0
  38. package/static/guangxi/verificationCodeCopy.png +0 -0
package/SystemClient.iml CHANGED
@@ -1,9 +1,9 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
- <component name="NewModuleRootManager" inherit-compiler-output="true">
4
- <exclude-output />
5
- <content url="file://$MODULE_DIR$" />
6
- <orderEntry type="inheritedJdk" />
7
- <orderEntry type="sourceFolder" forTests="false" />
8
- </component>
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module external.linked.project.id="SystemClient" external.linked.project.path="$MODULE_DIR$" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" type="JAVA_MODULE" version="4">
3
+ <component name="NewModuleRootManager" inherit-compiler-output="true">
4
+ <exclude-output />
5
+ <content url="file://$MODULE_DIR$" />
6
+ <orderEntry type="inheritedJdk" />
7
+ <orderEntry type="sourceFolder" forTests="false" />
8
+ </component>
9
9
  </module>
@@ -0,0 +1,21 @@
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <route :comp="{name: 'login-page'}"></route>
6
+ <login-view></login-view>
7
+ </article>
8
+ </div>
9
+ </app-base>
10
+ </template>
11
+
12
+ <script>
13
+
14
+ export default {
15
+ data () {
16
+ return {
17
+
18
+ }
19
+ },
20
+ }
21
+ </script>
@@ -0,0 +1,11 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <title>LoginPage</title>
6
+ </head>
7
+ <body>
8
+ <app></app>
9
+ <script src="./LoginPageApp.js"></script>
10
+ </body>
11
+ </html>
@@ -0,0 +1,15 @@
1
+ import Vue from 'vue'
2
+ import App from './App'
3
+ import all from 'vue-client/src/all'
4
+
5
+ all()
6
+ require('../../src/styles/less/bootstrap.less');
7
+
8
+ Vue.component('login-page', (resolve) => { require(['../../src/components/server/LoginPage'], resolve) })
9
+ Vue.component('login-view', (resolve) => { require(['../../src/components/server/LoginView'], resolve) })
10
+
11
+ /* eslint-disable no-new */
12
+ new Vue({
13
+ el: 'body',
14
+ components: { App }
15
+ })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "system-clients",
3
- "version": "3.2.19",
3
+ "version": "3.2.22",
4
4
  "description": "系统基础框架",
5
5
  "main": "src/index.js",
6
6
  "directories": {
@@ -15,6 +15,7 @@
15
15
  "build": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_ENV=production webpack --progress --hide-modules --config build/webpack.prod.conf.js",
16
16
  "e2e": "node test/e2e/runner.js",
17
17
  "unit": "karma start test/unit/karma.conf.js",
18
+ "makeall": "rimraf dist && mkdirp dist && ncp static dist/static && cross-env NODE_OPTIONS=--max_old_space_size=4096 NODE_ENV=production webpack --progress --hide-modules --config build/webpack.example.conf.js",
18
19
  "release": "npm set registry http://registry.npmjs.org && npm publish && npm set registry http://registry.npm.taobao.org"
19
20
  },
20
21
  "dependencies": {
package/src/App.vue CHANGED
@@ -1,24 +1,24 @@
1
- <template>
2
- <app-base class="bg">
3
- <div class='flex'>
4
- <article>
5
- <!--<route :comp="{name: 'check-model'}"></route>-->
6
- <!--<route :comp="{name: 'vender-management'}"></route>-->
7
- <route :comp="{name: 'login'}"></route>
8
- <!-- <route :comp="{name: 'load-data'}"></route> -->
9
- <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
- <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
- </article>
12
- </div>
13
- </app-base>
14
- </template>
15
-
16
- <script>
17
- // import cardListen from './plugins/CardListen'
18
-
19
- export default {
20
- // ready () {
21
- // cardListen.startListen()
22
- // }
23
- }
24
- </script>
1
+ <template>
2
+ <app-base class="bg">
3
+ <div class='flex'>
4
+ <article>
5
+ <!--<route :comp="{name: 'check-model'}"></route>-->
6
+ <!--<route :comp="{name: 'vender-management'}"></route>-->
7
+ <route :comp="{name: 'login'}"></route>
8
+ <!-- <route :comp="{name: 'load-data'}"></route> -->
9
+ <!-- <route :comp="{name: 'load-params', props: {componentName: 'login'}}"></route> -->
10
+ <!-- <route :comp="{name: 'load-params', props: {dataUrl: ['rs/sql/getMeterBrand','rs/sql/getPriceType','rs/sql/getMeterStyle'], componentName: 'login'}}"></route> -->
11
+ </article>
12
+ </div>
13
+ </app-base>
14
+ </template>
15
+
16
+ <script>
17
+ // import cardListen from './plugins/CardListen'
18
+
19
+ export default {
20
+ // ready () {
21
+ // cardListen.startListen()
22
+ // }
23
+ }
24
+ </script>
@@ -0,0 +1,235 @@
1
+ <template>
2
+ <div class="login-box">
3
+ <div class="login-title" style="height: 100vh;">
4
+ <div class="row auto">
5
+ <div style="margin-top: 6vh;float: right;padding-right: 20vh">
6
+ <span style="font-size: 1.2rem;color: white;"><b>关于我们</b></span>
7
+ </div>
8
+ </div>
9
+
10
+ <div class="row auto">
11
+ <div style="width: 60vh;float: right;margin-top: 18vh;margin-right: 18vh;">
12
+
13
+ <div style="color: white;font-size: 2.5rem;text-align: center;">
14
+ <span>智 慧 燃 气 SaaS 云 平 台</span>
15
+ </div>
16
+
17
+ <div class="pt-1" style="color: white;font-size: 1.2rem;text-align: center;">
18
+ <span>燃气行业数字化解决方案</span>
19
+ </div>
20
+
21
+ <div style="margin-top: 2.7rem;padding-left: 7rem;">
22
+
23
+ <div class="pt-1" style="width: 82%;">
24
+ <div class="login_input">
25
+ <div @mouseenter="changeImageSrc(1, 'hover')"
26
+ @mouseleave="changeImageSrc(1, '')">
27
+ <img :src="enameImg">
28
+ <span :class="enameShow ? 'color2' : 'color1'">|</span>
29
+ <input type="text" placeholder=" 请输入登录账号" v-model="model.ename"/>
30
+ </div>
31
+ </div>
32
+ </div>
33
+
34
+ <div class="pt-1" style="width: 82%;">
35
+ <div class="login_input">
36
+ <div @mouseenter="changeImageSrc(2, 'hover')"
37
+ @mouseleave="changeImageSrc(2, '')">
38
+ <img :src="passwordImg">
39
+ <span :class="passwordShow ? 'color2' : 'color1'">|</span>
40
+ <input type="text" placeholder=" 请输入登录密码" v-model="model.password"/>
41
+ </div>
42
+ </div>
43
+ </div>
44
+
45
+
46
+ <div class="pt-1" style="width: 82%;">
47
+ <div class="login_input">
48
+ <div @mouseenter="changeImageSrc(3, 'hover')"
49
+ @mouseleave="changeImageSrc(3, '')">
50
+ <img :src="verificationCodeImg">
51
+ <span :class="verificationCodeShow ? 'color2' : 'color1'">|</span>
52
+ <input type="text" placeholder=" 请输入验证码" v-model="model.verificationCode"/>
53
+ <span class="color2" style="float: right;padding-right: 2rem;" @click.native="createCode()">{{checkCode}}</span>
54
+ </div>
55
+ </div>
56
+ </div>
57
+ <div class="pt-1" style="width: 82%;padding-left: .667rem;color: white;font-size: 1rem">
58
+ <input type="checkbox" name="type" value="true" v-model="isRememberPassword" id="cb"/>&nbsp;记住密码
59
+ </div>
60
+ </div>
61
+
62
+ <div class="pt-1" style="color: white;font-size: 1.2rem;text-align: center;">
63
+ <button class="btn_login" style="width: 20rem;" @click.native="confirm()">立即登录</button>
64
+ </div>
65
+
66
+ </div>
67
+
68
+ </div>
69
+
70
+ </div>
71
+ </div>
72
+ </template>
73
+
74
+ <script>
75
+ export default {
76
+ title: '登录',
77
+ data () {
78
+ return {
79
+ enameImg: require('../../../static/guangxi/ename.png'),
80
+ passwordImg: require('../../../static/guangxi/password.png'),
81
+ verificationCodeImg: require('../../../static/guangxi/verificationCode.png'),
82
+ enameShow: false,
83
+ passwordShow: false,
84
+ verificationCodeShow: false,
85
+ notice: '',
86
+ model: {
87
+ ename: '',
88
+ password: '',
89
+ verificationCode: ''
90
+ },
91
+ isRememberPassword: false,
92
+ checkCode: ''
93
+ }
94
+ },
95
+ created () {
96
+ this.createCode()
97
+ let storage = window.localStorage
98
+ this.model.ename = storage.getItem('ename')
99
+ this.model.password = storage.getItem('password')
100
+ this.isRememberPassword = storage.getItem('isRememberPassword')
101
+ },
102
+ methods: {
103
+ changeImageSrc (key, way) {
104
+ switch (key) {
105
+ case 1:
106
+ if (way) {
107
+ this.enameShow = true
108
+ this.enameImg = require(`../../../static/guangxi/enameCopy.png`)
109
+ } else if (!this.model.ename){
110
+ this.enameShow = false
111
+ this.enameImg = require(`../../../static/guangxi/ename.png`)
112
+ }
113
+ break
114
+ case 2:
115
+ if (way) {
116
+ this.passwordShow = true
117
+ this.passwordImg = require(`../../../static/guangxi/passwordCopy.png`)
118
+ } else if (!this.model.password){
119
+ this.passwordShow = false
120
+ this.passwordImg = require(`../../../static/guangxi/password.png`)
121
+ }
122
+ break
123
+ case 3:
124
+ if (way) {
125
+ this.verificationCodeShow = true
126
+ this.verificationCodeImg = require(`../../../static/guangxi/verificationCodeCopy.png`)
127
+ } else if (!this.model.verificationCode){
128
+ this.verificationCodeShow = false
129
+ this.verificationCodeImg = require(`../../../static/guangxi/verificationCode.png`)
130
+ }
131
+ break
132
+ }
133
+ },
134
+ createCode(){
135
+ let code = "";
136
+ //验证码的长度
137
+ let codeLength = 4;
138
+ //随机数
139
+ let random = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R',
140
+ 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z');
141
+ //循环操作
142
+ for (let i = 0; i < codeLength; i++) {
143
+ //取得随机数的索引(0~35)
144
+ let index = Math.floor(Math.random() * 36);
145
+ //根据索引取得随机数加到code上
146
+ code += random[index];
147
+ }
148
+ //把code值赋给验证码
149
+ this.checkCode = code;
150
+ },
151
+ confirm () {
152
+ console.log('点击登录' + JSON.stringify(this.model))
153
+ if (!this.model.ename) {
154
+ this.$showMessage("请输入登录账号!")
155
+ return
156
+ }
157
+ if (!this.model.password) {
158
+ this.$showMessage("请输入登录密码!")
159
+ return
160
+ }
161
+ if (!this.model.verificationCode) {
162
+ this.$showMessage("请输入验证码!")
163
+ return
164
+ }
165
+ if (this.model.verificationCode.toUpperCase() !== this.checkCode) {
166
+ this.$showMessage("输入的验证码有误!")
167
+ this.createCode()
168
+ return
169
+ }
170
+ if (this.model.ename === '黄群' && this.model.password === '000000') {
171
+ let storage = window.localStorage
172
+ if (this.isRememberPassword) {
173
+ storage.setItem('ename', this.model.ename)
174
+ storage.setItem('password', this.model.password)
175
+ storage.setItem('isRememberPassword', this.isRememberPassword)
176
+ } else {
177
+ storage.removeItem('ename')
178
+ storage.removeItem('password')
179
+ storage.removeItem('isRememberPassword')
180
+ }
181
+ console.log('555555555555')
182
+ this.$goto('login-view')
183
+ } else{
184
+ this.$showMessage("登录失败,输入的账号或密码有误!")
185
+ }
186
+ }
187
+ }
188
+ }
189
+ </script>
190
+
191
+ <style lang="less" scoped>
192
+ .login-box{
193
+ overflow: hidden;
194
+ background-image: url("../../../static/guangxi/backgroundImage.png");
195
+ background-size:100% 100%;
196
+ background-repeat:no-repeat;
197
+ font-family: PINGFANG-MEDIUM;
198
+ }
199
+ .pt-1 {
200
+ padding-top: 1rem;
201
+ }
202
+ .color1 {
203
+ color: #c9c9c9;
204
+ }
205
+ .color2 {
206
+ color: #4190f6;
207
+ }
208
+ #cb{
209
+ accent-color: #4190f6;
210
+ }
211
+ .btn_login {
212
+ width: 100%;
213
+ height: 40px;
214
+ background-color: #4292f7;
215
+ border-radius: 3rem;
216
+ border:none;
217
+ font-family: PingFang,serif;
218
+ font-size: 16px;
219
+ color: #ffffff;
220
+ }
221
+ .btn_login:hover{background-color: #3171f4;}
222
+ .login_input {
223
+ line-height: 4.3rem;
224
+ box-sizing: border-box;
225
+ border-radius: 0.8rem;
226
+ background: #fff;
227
+ input{
228
+ border: none;
229
+ outline: none;
230
+ }
231
+ input::-webkit-input-placeholder {
232
+ color: #c9c9c9;
233
+ }
234
+ }
235
+ </style>
@@ -0,0 +1,128 @@
1
+ <template>
2
+ <div class="login-box">
3
+ <div class="login-title" style="height: 100vh;">
4
+
5
+ <div class="row auto">
6
+ <div style="margin-top: 6vh;float: right;padding-right: 20vh">
7
+ <span style="font-size: 1.2rem;color: white;"><b>关于我们</b></span>
8
+ </div>
9
+ </div>
10
+
11
+ <div class="row auto">
12
+ <div style="margin-top: 8vh;text-align: center">
13
+
14
+ <div style="color: white;font-size: 2.5rem;">
15
+ <span>智 慧 燃 气 SaaS 云 平 台</span>
16
+ </div>
17
+
18
+ <div class="pt-1" style="color: white;font-size: 1.2rem;">
19
+ <span>燃气行业数字化解决方案</span>
20
+ </div>
21
+
22
+ <div style="margin-top: 3rem;">
23
+ <span @mouseenter="changeImageSrc(1, 'hover')"
24
+ @mouseleave="changeImageSrc(1, '')"
25
+ @click.native="confirm('1')">
26
+ <img :src="gasImg1" width="200">
27
+ </span>
28
+ <span @mouseenter="changeImageSrc(2, 'hover')"
29
+ @mouseleave="changeImageSrc(2, '')"
30
+ @click.native="confirm('2')">
31
+ <img :src="gasImg2" width="200">
32
+ </span>
33
+ <span @mouseenter="changeImageSrc(3, 'hover')"
34
+ @mouseleave="changeImageSrc(3, '')"
35
+ @click.native="confirm('3')">
36
+ <img :src="gasImg3" width="200">
37
+ </span>
38
+ <span @mouseenter="changeImageSrc(4, 'hover')"
39
+ @mouseleave="changeImageSrc(4, '')">
40
+ <img :src="gasImg4" width="200">
41
+ </span>
42
+ <span @mouseenter="changeImageSrc(5, 'hover')"
43
+ @mouseleave="changeImageSrc(5, '')">
44
+ <img :src="gasImg5" width="200">
45
+ </span>
46
+ </div>
47
+ </div>
48
+
49
+ </div>
50
+ </div>
51
+ </div>
52
+ </template>
53
+
54
+ <script>
55
+ export default {
56
+ title: '登录',
57
+ data () {
58
+ return {
59
+ gasImg1: require('../../../static/guangxi/gasProduction.png'),
60
+ gasImg2: require('../../../static/guangxi/gasCustomerService.png'),
61
+ gasImg3: require('../../../static/guangxi/gasLargeScreen.png'),
62
+ gasImg4: require('../../../static/guangxi/gasSupervise.png'),
63
+ gasImg5: require('../../../static/guangxi/gasAnalysis.png')
64
+ }
65
+ },
66
+ methods: {
67
+ changeImageSrc (key, way) {
68
+ switch (key) {
69
+ case 1:
70
+ if (way) {
71
+ this.gasImg1 = require(`../../../static/guangxi/gasProduction1.png`)
72
+ } else {
73
+ this.gasImg1 = require(`../../../static/guangxi/gasProduction.png`)
74
+ }
75
+ break
76
+ case 2:
77
+ if (way) {
78
+ this.gasImg2 = require(`../../../static/guangxi/gasCustomerService1.png`)
79
+ } else {
80
+ this.gasImg2 = require(`../../../static/guangxi/gasCustomerService.png`)
81
+ }
82
+ break
83
+ case 3:
84
+ if (way) {
85
+ this.gasImg3 = require(`../../../static/guangxi/gasLargeScreen1.png`)
86
+ } else {
87
+ this.gasImg3 = require(`../../../static/guangxi/gasLargeScreen.png`)
88
+ }
89
+ break
90
+ case 4:
91
+ if (way) {
92
+ this.gasImg4 = require(`../../../static/guangxi/gasSupervise1.png`)
93
+ } else {
94
+ this.gasImg4 = require(`../../../static/guangxi/gasSupervise.png`)
95
+ }
96
+ break
97
+ case 5:
98
+ if (way) {
99
+ this.gasImg5 = require(`../../../static/guangxi/gasAnalysis1.png`)
100
+ } else {
101
+ this.gasImg5 = require(`../../../static/guangxi/gasAnalysis.png`)
102
+ }
103
+ break
104
+ }
105
+ },
106
+ confirm(val) {
107
+ let url
108
+ if (val === '1') {
109
+ url = 'http://117.34.122.185:9001/login.jsp'
110
+ } else if (val === '2') {
111
+ url = 'http://117.33.181.102:8400/'
112
+ } else if (val === '3') {
113
+ url = 'http://117.34.122.185:8300/#/home'
114
+ }
115
+ window.location.replace(url)
116
+ }
117
+ }
118
+ }
119
+ </script>
120
+
121
+ <style lang="less" scoped>
122
+ .login-box{
123
+ overflow: hidden;
124
+ background-image: url("../../../static/guangxi/backgroundImage.png");
125
+ background-size:100% 100%;
126
+ background-repeat:no-repeat;
127
+ }
128
+ </style>