system-clients 3.2.21 → 3.2.23
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/examples/LoginPage/App.vue +21 -0
- package/examples/LoginPage/index.html +11 -0
- package/examples/LoginPage/main.js +15 -0
- package/package.json +2 -1
- package/src/components/server/LoginPage.vue +44 -15
- package/src/components/server/LoginView.vue +26 -15
- package/src/filiale/chengtou/Login.vue +520 -0
- package/src/filiale/chengtou/system.js +5 -0
- package/src/filiale/dongguan/Main.vue +1 -1
- package/src/styles/fonts/glyphicons-halflings-regular.svg +288 -288
- package/src/styles/less/glyphicons.less +305 -305
- package/src/system.js +2 -1
- package/static/newStyle/chengtou-logo.jpg +0 -0
@@ -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,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.
|
3
|
+
"version": "3.2.23",
|
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": {
|
@@ -1,17 +1,14 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="login-box">
|
3
|
-
<div class="login-title" >
|
3
|
+
<div class="login-title" style="height: 100vh;">
|
4
4
|
<div class="row auto">
|
5
|
-
<div style="
|
6
|
-
<span style="font-size:
|
7
|
-
</div>
|
8
|
-
<div class="login-title-chi" style="white-space: nowrap;">
|
9
|
-
<span style="font-size: 1.2rem;"><b>关于我们</b></span>
|
5
|
+
<div style="margin-top: 6vh;float: right;padding-right: 20vh">
|
6
|
+
<span style="font-size: 1.2rem;color: white;"><b>关于我们</b></span>
|
10
7
|
</div>
|
11
8
|
</div>
|
12
9
|
|
13
10
|
<div class="row auto">
|
14
|
-
<div style="width:
|
11
|
+
<div style="width: 60vh;float: right;margin-top: 18vh;margin-right: 18vh;">
|
15
12
|
|
16
13
|
<div style="color: white;font-size: 2.5rem;text-align: center;">
|
17
14
|
<span>智 慧 燃 气 SaaS 云 平 台</span>
|
@@ -58,7 +55,7 @@
|
|
58
55
|
</div>
|
59
56
|
</div>
|
60
57
|
<div class="pt-1" style="width: 82%;padding-left: .667rem;color: white;font-size: 1rem">
|
61
|
-
<input type="checkbox" name="type"
|
58
|
+
<input type="checkbox" name="type" value="true" v-model="isRememberPassword" id="cb"/> 记住密码
|
62
59
|
</div>
|
63
60
|
</div>
|
64
61
|
|
@@ -79,9 +76,9 @@ export default {
|
|
79
76
|
title: '登录',
|
80
77
|
data () {
|
81
78
|
return {
|
82
|
-
enameImg: '../../../static/guangxi/ename.png',
|
83
|
-
passwordImg: '../../../static/guangxi/password.png',
|
84
|
-
verificationCodeImg: '../../../static/guangxi/verificationCode.png',
|
79
|
+
enameImg: require('../../../static/guangxi/ename.png'),
|
80
|
+
passwordImg: require('../../../static/guangxi/password.png'),
|
81
|
+
verificationCodeImg: require('../../../static/guangxi/verificationCode.png'),
|
85
82
|
enameShow: false,
|
86
83
|
passwordShow: false,
|
87
84
|
verificationCodeShow: false,
|
@@ -91,11 +88,16 @@ export default {
|
|
91
88
|
password: '',
|
92
89
|
verificationCode: ''
|
93
90
|
},
|
91
|
+
isRememberPassword: false,
|
94
92
|
checkCode: ''
|
95
93
|
}
|
96
94
|
},
|
97
95
|
created () {
|
98
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')
|
99
101
|
},
|
100
102
|
methods: {
|
101
103
|
changeImageSrc (key, way) {
|
@@ -147,15 +149,39 @@ export default {
|
|
147
149
|
this.checkCode = code;
|
148
150
|
},
|
149
151
|
confirm () {
|
150
|
-
console.log('点击登录')
|
152
|
+
console.log('点击登录' + JSON.stringify(this.model))
|
151
153
|
if (!this.model.ename) {
|
152
|
-
this.$showMessage("
|
154
|
+
this.$showMessage("请输入登录账号!")
|
155
|
+
return
|
153
156
|
}
|
154
157
|
if (!this.model.password) {
|
155
|
-
this.$showMessage("
|
158
|
+
this.$showMessage("请输入登录密码!")
|
159
|
+
return
|
156
160
|
}
|
157
161
|
if (!this.model.verificationCode) {
|
158
|
-
this.$showMessage("
|
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("登录失败,输入的账号或密码有误!")
|
159
185
|
}
|
160
186
|
}
|
161
187
|
}
|
@@ -179,6 +205,9 @@ export default {
|
|
179
205
|
.color2 {
|
180
206
|
color: #4190f6;
|
181
207
|
}
|
208
|
+
#cb{
|
209
|
+
accent-color: #4190f6;
|
210
|
+
}
|
182
211
|
.btn_login {
|
183
212
|
width: 100%;
|
184
213
|
height: 40px;
|
@@ -1,18 +1,15 @@
|
|
1
1
|
<template>
|
2
2
|
<div class="login-box">
|
3
|
-
<div class="login-title" >
|
3
|
+
<div class="login-title" style="height: 100vh;">
|
4
4
|
|
5
5
|
<div class="row auto">
|
6
|
-
<div style="
|
7
|
-
<span style="font-size:
|
8
|
-
</div>
|
9
|
-
<div class="login-title-chi" style="white-space: nowrap;">
|
10
|
-
<span style="font-size: 1.2rem;"><b>关于我们</b></span>
|
6
|
+
<div style="margin-top: 6vh;float: right;padding-right: 20vh">
|
7
|
+
<span style="font-size: 1.2rem;color: white;"><b>关于我们</b></span>
|
11
8
|
</div>
|
12
9
|
</div>
|
13
10
|
|
14
11
|
<div class="row auto">
|
15
|
-
<div style="margin-top:
|
12
|
+
<div style="margin-top: 8vh;text-align: center">
|
16
13
|
|
17
14
|
<div style="color: white;font-size: 2.5rem;">
|
18
15
|
<span>智 慧 燃 气 SaaS 云 平 台</span>
|
@@ -24,15 +21,18 @@
|
|
24
21
|
|
25
22
|
<div style="margin-top: 3rem;">
|
26
23
|
<span @mouseenter="changeImageSrc(1, 'hover')"
|
27
|
-
@mouseleave="changeImageSrc(1, '')"
|
24
|
+
@mouseleave="changeImageSrc(1, '')"
|
25
|
+
@click.native="confirm('1')">
|
28
26
|
<img :src="gasImg1" width="200">
|
29
27
|
</span>
|
30
28
|
<span @mouseenter="changeImageSrc(2, 'hover')"
|
31
|
-
@mouseleave="changeImageSrc(2, '')"
|
29
|
+
@mouseleave="changeImageSrc(2, '')"
|
30
|
+
@click.native="confirm('2')">
|
32
31
|
<img :src="gasImg2" width="200">
|
33
32
|
</span>
|
34
33
|
<span @mouseenter="changeImageSrc(3, 'hover')"
|
35
|
-
@mouseleave="changeImageSrc(3, '')"
|
34
|
+
@mouseleave="changeImageSrc(3, '')"
|
35
|
+
@click.native="confirm('3')">
|
36
36
|
<img :src="gasImg3" width="200">
|
37
37
|
</span>
|
38
38
|
<span @mouseenter="changeImageSrc(4, 'hover')"
|
@@ -56,11 +56,11 @@ export default {
|
|
56
56
|
title: '登录',
|
57
57
|
data () {
|
58
58
|
return {
|
59
|
-
gasImg1: '../../../static/guangxi/gasProduction.png',
|
60
|
-
gasImg2: '../../../static/guangxi/gasCustomerService.png',
|
61
|
-
gasImg3: '../../../static/guangxi/gasLargeScreen.png',
|
62
|
-
gasImg4: '../../../static/guangxi/gasSupervise.png',
|
63
|
-
gasImg5: '../../../static/guangxi/gasAnalysis.png'
|
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
64
|
}
|
65
65
|
},
|
66
66
|
methods: {
|
@@ -102,6 +102,17 @@ export default {
|
|
102
102
|
}
|
103
103
|
break
|
104
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)
|
105
116
|
}
|
106
117
|
}
|
107
118
|
}
|