imatrix-ui 0.0.15 → 0.1.1-up
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/.vscode/extensions.json +3 -0
- package/README.md +7 -0
- package/components/dynamic-source-select/dynamic-source-select-service.js +106 -0
- package/components/dynamic-source-select/dynamic-source-select.vue +673 -0
- package/components/dynamic-source-select/events.js +77 -0
- package/components/fs-preview/fs-preview.vue +287 -0
- package/components/index.js +26 -0
- package/components/plugins/export-data-new.js +623 -0
- package/components/plugins/export-data.js +431 -0
- package/components/plugins/index.js +15 -0
- package/components/plugins/public-method.js +47 -0
- package/components/rich-editor/index-bak.vue +306 -0
- package/components/rich-editor/index.vue +236 -0
- package/components/rich-editor/langs/zh-Hans.js +438 -0
- package/components/rich-editor/viewer.vue +105 -0
- package/components/super-grid/apis.js +1065 -0
- package/components/super-grid/columns-config.vue +430 -0
- package/components/super-grid/custom-formatter.js +330 -0
- package/components/super-grid/dynamic-input.vue +1706 -0
- package/components/super-grid/eventBus.js +2 -0
- package/components/super-grid/events.js +56 -0
- package/components/super-grid/formValidatorUtil.js +300 -0
- package/components/super-grid/formatter.js +190 -0
- package/components/super-grid/group-column.vue +100 -0
- package/components/super-grid/header-context-menu.vue +82 -0
- package/components/super-grid/index-column.vue +69 -0
- package/components/super-grid/normal-column.vue +1148 -0
- package/components/super-grid/public-methods.js +30 -0
- package/components/super-grid/row-operation.vue +193 -0
- package/components/super-grid/search-button.vue +74 -0
- package/components/super-grid/search-condition-input.vue +73 -0
- package/components/super-grid/search-condition-list.vue +68 -0
- package/components/super-grid/search-form-advancedQuery.vue +820 -0
- package/components/super-grid/search-form-dialog.vue +77 -0
- package/components/super-grid/search-form-item.vue +470 -0
- package/components/super-grid/search-form-number.vue +111 -0
- package/components/super-grid/search-form-open.vue +178 -0
- package/components/super-grid/search-form-ordinarySearch.vue +218 -0
- package/components/super-grid/search-form.vue +756 -0
- package/components/super-grid/search-methods.js +484 -0
- package/components/super-grid/selection-column.vue +46 -0
- package/components/super-grid/store.js +3 -0
- package/components/super-grid/super-grid-service.js +682 -0
- package/components/super-grid/super-grid.vue +2893 -0
- package/components/super-grid/utils.js +851 -0
- package/components/super-grid/view-image-dialog.vue +173 -0
- package/components/utils/gogocodeTransfer.js +59 -0
- package/components/utils/utils.js +180 -0
- package/components/utils/value-set.js +98 -0
- package/components/z-test-utton/index.vue +82 -0
- package/package.json +29 -40
- package/public/index.html +13 -0
- package/public/vite.svg +1 -0
- package/src/api/sso-service.js +172 -19
- package/src/api/tab.js +36 -0
- package/src/api/user-service.js +11 -11
- package/src/assets/401/401.gif +0 -0
- package/src/assets/404/404-cloud.png +0 -0
- package/src/assets/404/404.png +0 -0
- package/src/assets/cloud.png +0 -0
- package/src/directives/permission/index.js +13 -13
- package/src/directives/permission/permission.js +20 -15
- package/src/i18n/i18n.js +16 -0
- package/src/i18n/langs/cn.js +254 -0
- package/src/i18n/langs/en.js +264 -0
- package/src/permission.js +157 -71
- package/src/plugins.js +18 -18
- package/src/router/index.js +96 -69
- package/src/store/getters.js +15 -10
- package/src/store/index.js +19 -19
- package/src/store/modules/app.js +54 -42
- package/src/store/modules/permission.js +137 -73
- package/src/store/modules/tab-content.js +36 -0
- package/src/store/modules/user.js +293 -80
- package/src/styles/display-layout.scss +34 -0
- package/src/styles/element-ui.scss +29 -29
- package/src/styles/index.scss +157 -78
- package/src/styles/mixin.scss +27 -27
- package/src/styles/theme/black/font-style.scss +70 -0
- package/src/styles/theme/black/index.scss +306 -0
- package/src/styles/theme/black/sidebar.scss +189 -0
- package/src/styles/theme/blue/font-style.scss +46 -0
- package/src/styles/theme/blue/index.scss +172 -0
- package/src/styles/{sidebar.scss → theme/blue/sidebar.scss} +171 -141
- package/src/styles/theme/blue2/font-style.scss +70 -0
- package/src/styles/theme/blue2/index.scss +188 -0
- package/src/styles/theme/blue2/sidebar.scss +201 -0
- package/src/styles/theme/dark-blue/button.scss +9 -0
- package/src/styles/theme/dark-blue/card.scss +62 -0
- package/src/styles/theme/dark-blue/checkbox.scss +10 -0
- package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
- package/src/styles/theme/dark-blue/dialog.scss +21 -0
- package/src/styles/theme/dark-blue/element-variables.scss +7 -0
- package/src/styles/theme/dark-blue/font.scss +71 -0
- package/src/styles/theme/dark-blue/form.scss +51 -0
- package/src/styles/theme/dark-blue/index.scss +269 -0
- package/src/styles/theme/dark-blue/input.scss +15 -0
- package/src/styles/theme/dark-blue/message.scss +8 -0
- package/src/styles/theme/dark-blue/pagination.scss +14 -0
- package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
- package/src/styles/theme/dark-blue/sidebar.scss +266 -0
- package/src/styles/theme/dark-blue/tab.scss +83 -0
- package/src/styles/theme/dark-blue/table.scss +60 -0
- package/src/styles/theme/dark-blue/tree.scss +31 -0
- package/src/styles/theme/dark-blue/var.scss +1028 -0
- package/src/styles/theme/gray/card-style.scss +54 -0
- package/src/styles/theme/gray/font-style.scss +70 -0
- package/src/styles/theme/gray/index.scss +172 -0
- package/src/styles/theme/gray/input-style.scss +19 -0
- package/src/styles/theme/gray/scrollbar-style.scss +32 -0
- package/src/styles/theme/gray/sidebar.scss +231 -0
- package/src/styles/theme/gray/tab-style.scss +81 -0
- package/src/styles/transition.scss +47 -46
- package/src/utils/auth-api.js +159 -0
- package/src/utils/auth.js +61 -15
- package/src/utils/calculator/calculator-factory-wf.js +558 -0
- package/src/utils/calculator/calculator-factory.js +145 -0
- package/src/utils/calculator/calculator-util.js +166 -0
- package/src/utils/common-util.js +305 -0
- package/src/utils/eventBus.js +2 -0
- package/src/utils/iconUtils.js +28 -0
- package/src/utils/index.js +102 -86
- package/src/utils/jump-page-utils.js +814 -0
- package/src/utils/local-storage.js +33 -31
- package/src/utils/menu.js +19 -0
- package/src/utils/permission.js +31 -26
- package/src/utils/permissionAuth.js +90 -0
- package/src/utils/range-selector.js +188 -0
- package/src/utils/request.js +270 -116
- package/src/utils/restful-interface-utils.js +57 -0
- package/src/utils/util.js +698 -0
- package/src/utils/validate.js +34 -33
- package/src/utils/watermark.js +108 -0
- package/src/utils/workflow-util.js +93 -0
- package/src/views/404.vue +248 -228
- package/src/views/dsc-component/Sidebar/Item.vue +84 -0
- package/src/views/dsc-component/Sidebar/Link.vue +38 -0
- package/src/views/dsc-component/Sidebar/SidebarItem.vue +196 -0
- package/src/views/dsc-component/Sidebar/index.vue +220 -0
- package/src/views/dsc-component/tabs/tab-content.vue +199 -0
- package/src/views/error-page/401.vue +106 -91
- package/src/views/error-page/404.vue +248 -228
- package/src/views/layout/EmptyLayout.vue +3 -0
- package/src/views/layout/Layout.vue +81 -68
- package/src/views/layout/NewLayout.vue +18 -0
- package/src/views/layout/components/AppMain.vue +39 -29
- package/src/views/layout/components/Breadcrumb/index.vue +156 -0
- package/src/views/layout/components/Menubar/Item.vue +57 -0
- package/src/views/layout/components/Menubar/Link.vue +38 -0
- package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
- package/src/views/layout/components/Menubar/index.vue +210 -0
- package/src/views/layout/components/Sidebar/Item.vue +53 -29
- package/src/views/layout/components/Sidebar/Link.vue +38 -39
- package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -100
- package/src/views/layout/components/Sidebar/index.vue +141 -48
- package/src/views/layout/components/iframe-page.vue +38 -0
- package/src/views/layout/components/index.js +4 -3
- package/src/views/layout/components/tabs/tab-content.vue +207 -0
- package/src/views/layout/mixin/ResizeHandler.js +41 -41
- package/src/views/layout/tab-content-iframe-index.vue +38 -0
- package/src/views/layout/tab-content-index.vue +93 -0
- package/src/views/login/authredirect.vue +10 -10
- package/src/views/login/index.vue +296 -203
- package/src/views/login/update-password.vue +243 -0
- package/src/views/redirect/index.vue +14 -12
- package/src/views/wf-history/tache-subprocess-history.vue +45 -0
- package/vite.config.js +31 -0
- package/lib/super-ui.css +0 -1
- package/lib/super-ui.umd.min.js +0 -2
- package/src/styles/variables.scss +0 -4
- package/src/views/layout/components/Navbar.vue +0 -92
|
@@ -1,203 +1,296 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="login-container">
|
|
3
|
-
<el-form
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
<span class="
|
|
26
|
-
<svg-icon icon-class="
|
|
27
|
-
</span>
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
.
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="login-container">
|
|
3
|
+
<el-form
|
|
4
|
+
ref="loginForm"
|
|
5
|
+
:model="loginForm"
|
|
6
|
+
:rules="loginRules"
|
|
7
|
+
class="login-form"
|
|
8
|
+
auto-complete="on"
|
|
9
|
+
label-position="left"
|
|
10
|
+
>
|
|
11
|
+
<h3 class="title">***管理系统</h3>
|
|
12
|
+
<el-form-item prop="username">
|
|
13
|
+
<span class="svg-container">
|
|
14
|
+
<svg-icon icon-class="user" />
|
|
15
|
+
</span>
|
|
16
|
+
<el-input
|
|
17
|
+
v-model="loginForm.username"
|
|
18
|
+
name="username"
|
|
19
|
+
type="text"
|
|
20
|
+
auto-complete="on"
|
|
21
|
+
placeholder="username"
|
|
22
|
+
/>
|
|
23
|
+
</el-form-item>
|
|
24
|
+
<el-form-item prop="password">
|
|
25
|
+
<span class="svg-container">
|
|
26
|
+
<svg-icon icon-class="password" />
|
|
27
|
+
</span>
|
|
28
|
+
<el-input
|
|
29
|
+
v-model="loginForm.password"
|
|
30
|
+
:type="pwdType"
|
|
31
|
+
name="password"
|
|
32
|
+
auto-complete="on"
|
|
33
|
+
placeholder="password"
|
|
34
|
+
@keyup.enter="handleLogin"
|
|
35
|
+
/>
|
|
36
|
+
<span class="show-pwd" @click="showPwd">
|
|
37
|
+
<svg-icon icon-class="eye" />
|
|
38
|
+
</span>
|
|
39
|
+
</el-form-item>
|
|
40
|
+
<el-form-item>
|
|
41
|
+
<el-button
|
|
42
|
+
:loading="loading"
|
|
43
|
+
type="primary"
|
|
44
|
+
style="width: 100%"
|
|
45
|
+
@click.prevent="handleLogin"
|
|
46
|
+
>
|
|
47
|
+
Sign in
|
|
48
|
+
</el-button>
|
|
49
|
+
</el-form-item>
|
|
50
|
+
<div class="tips">
|
|
51
|
+
<span style="margin-right: 20px"> ***公司 </span>
|
|
52
|
+
</div>
|
|
53
|
+
</el-form>
|
|
54
|
+
</div>
|
|
55
|
+
</template>
|
|
56
|
+
|
|
57
|
+
<script>
|
|
58
|
+
import { ElMessage as Message } from 'element-plus'
|
|
59
|
+
export default {
|
|
60
|
+
name: 'Login',
|
|
61
|
+
data() {
|
|
62
|
+
const checkValidCode = (rule, value, callback) => {
|
|
63
|
+
// console.log('value=', value, 'this.validCode=', this.validCode)
|
|
64
|
+
if (!value) {
|
|
65
|
+
callback(new Error('请输入验证码'))
|
|
66
|
+
} else if (value.toUpperCase() !== this.validCode.toUpperCase()) {
|
|
67
|
+
// this.refreshCode = Math.random()
|
|
68
|
+
callback(new Error('验证码不正确'))
|
|
69
|
+
} else {
|
|
70
|
+
callback()
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
loginForm: {
|
|
75
|
+
username: '',
|
|
76
|
+
password: '',
|
|
77
|
+
validCode: '',
|
|
78
|
+
},
|
|
79
|
+
loginRules: {
|
|
80
|
+
username: [
|
|
81
|
+
{ required: true, trigger: 'blur', message: '请输入用户名' },
|
|
82
|
+
],
|
|
83
|
+
password: [{ required: true, trigger: 'blur', message: '请输入密码' }],
|
|
84
|
+
validCode: [
|
|
85
|
+
{ required: true, trigger: 'blur', validator: checkValidCode },
|
|
86
|
+
],
|
|
87
|
+
},
|
|
88
|
+
loading: false,
|
|
89
|
+
pwdType: 'password',
|
|
90
|
+
redirect: undefined,
|
|
91
|
+
validCodeVisible: false,
|
|
92
|
+
// 刷新验证码
|
|
93
|
+
refreshCode: 0,
|
|
94
|
+
validCode: '',
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
watch: {
|
|
98
|
+
$route: {
|
|
99
|
+
deep: true,
|
|
100
|
+
|
|
101
|
+
handler: function (route) {
|
|
102
|
+
this.redirect = route.query && route.query.redirect
|
|
103
|
+
// console.log('login--redirect', this.redirect)
|
|
104
|
+
const errorCode = route.query && route.query.errorCode
|
|
105
|
+
if (errorCode === 'sso.1021') {
|
|
106
|
+
// 表示超过失败登录次数,需要显示验证码
|
|
107
|
+
this.validCodeVisible = true
|
|
108
|
+
this.loginForm.validCode = ''
|
|
109
|
+
this.refreshCode = Math.random()
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
|
|
113
|
+
immediate: true,
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
created: function () {
|
|
117
|
+
// 子系统是嵌套在iframe中的,所以需要把整个页面都显示为登录页面,而不要只在iframe中显示登录页面
|
|
118
|
+
window.top.location.href = process.env.BASE_URL + '#/login'
|
|
119
|
+
},
|
|
120
|
+
methods: {
|
|
121
|
+
showPwd() {
|
|
122
|
+
if (this.pwdType === 'password') {
|
|
123
|
+
this.pwdType = ''
|
|
124
|
+
} else {
|
|
125
|
+
this.pwdType = 'password'
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
login() {
|
|
129
|
+
// return new Promise((resolve, reject) => {
|
|
130
|
+
this.$store
|
|
131
|
+
.dispatch('login', this.loginForm)
|
|
132
|
+
.then(() => {
|
|
133
|
+
this.loading = false
|
|
134
|
+
this.$router.push({ path: this.redirect || '/' })
|
|
135
|
+
// resolve()
|
|
136
|
+
})
|
|
137
|
+
.catch((error) => {
|
|
138
|
+
this.loading = false
|
|
139
|
+
if (error.response.status === 401) {
|
|
140
|
+
// console.log('error.response login==', error.response)
|
|
141
|
+
const errorData = error.response.data
|
|
142
|
+
|
|
143
|
+
if (errorData.code === 'sso.1021') {
|
|
144
|
+
// 表示超过失败登录次数,需要显示验证码
|
|
145
|
+
this.validCodeVisible = true
|
|
146
|
+
Message({
|
|
147
|
+
message: errorData.message,
|
|
148
|
+
showClose: true,
|
|
149
|
+
type: 'error',
|
|
150
|
+
duration: 5 * 1000,
|
|
151
|
+
})
|
|
152
|
+
} else {
|
|
153
|
+
// 表示超过失败登录次数,需要锁定用户,显示提示信息
|
|
154
|
+
this.validCodeVisible = false
|
|
155
|
+
Message({
|
|
156
|
+
message: errorData.message,
|
|
157
|
+
showClose: true,
|
|
158
|
+
type: 'error',
|
|
159
|
+
duration: 5 * 1000,
|
|
160
|
+
})
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
// reject(error)
|
|
164
|
+
})
|
|
165
|
+
// })
|
|
166
|
+
},
|
|
167
|
+
handleLogin() {
|
|
168
|
+
if (!this.validCodeVisible) {
|
|
169
|
+
this.validCode = 'aaaa'
|
|
170
|
+
}
|
|
171
|
+
this.$refs.loginForm.validate((valid) => {
|
|
172
|
+
if (valid) {
|
|
173
|
+
this.loading = true
|
|
174
|
+
this.$store
|
|
175
|
+
.dispatch('isPasswordExpired', this.loginForm)
|
|
176
|
+
.then((message) => {
|
|
177
|
+
if (
|
|
178
|
+
typeof message !== 'undefined' &&
|
|
179
|
+
message !== null &&
|
|
180
|
+
message !== false
|
|
181
|
+
) {
|
|
182
|
+
// 表示密码已过期,需要重置密码
|
|
183
|
+
this.$router.push({
|
|
184
|
+
path:
|
|
185
|
+
'/update-password?errorMessage=' +
|
|
186
|
+
message +
|
|
187
|
+
'&username=' +
|
|
188
|
+
this.loginForm.username +
|
|
189
|
+
'&redirect=' +
|
|
190
|
+
(this.redirect || '/'),
|
|
191
|
+
})
|
|
192
|
+
} else {
|
|
193
|
+
this.login()
|
|
194
|
+
}
|
|
195
|
+
})
|
|
196
|
+
.catch((error) => {
|
|
197
|
+
this.loading = false
|
|
198
|
+
console.log('error isPasswordExpired', error)
|
|
199
|
+
})
|
|
200
|
+
} else {
|
|
201
|
+
// console.log('error submit!!')
|
|
202
|
+
return false
|
|
203
|
+
}
|
|
204
|
+
})
|
|
205
|
+
},
|
|
206
|
+
},
|
|
207
|
+
}
|
|
208
|
+
</script>
|
|
209
|
+
|
|
210
|
+
<style lang="scss" rel="stylesheet/scss">
|
|
211
|
+
$bg: #2d3a4b;
|
|
212
|
+
$light_gray: #eee;
|
|
213
|
+
|
|
214
|
+
/* reset element-ui css */
|
|
215
|
+
.login-container {
|
|
216
|
+
.el-input {
|
|
217
|
+
display: inline-block;
|
|
218
|
+
height: 47px;
|
|
219
|
+
width: 85%;
|
|
220
|
+
input {
|
|
221
|
+
background: transparent;
|
|
222
|
+
border: 0px;
|
|
223
|
+
-webkit-appearance: none;
|
|
224
|
+
border-radius: 0px;
|
|
225
|
+
padding: 12px 5px 12px 15px;
|
|
226
|
+
color: $light_gray;
|
|
227
|
+
height: 47px;
|
|
228
|
+
&:-webkit-autofill {
|
|
229
|
+
-webkit-box-shadow: 0 0 0px 1000px $bg inset !important;
|
|
230
|
+
-webkit-text-fill-color: #fff !important;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
.el-form-item {
|
|
235
|
+
border: 1px solid rgba(255, 255, 255, 0.1);
|
|
236
|
+
background: rgba(0, 0, 0, 0.1);
|
|
237
|
+
border-radius: 5px;
|
|
238
|
+
color: #454545;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
</style>
|
|
242
|
+
|
|
243
|
+
<style lang="scss" rel="stylesheet/scss" scoped>
|
|
244
|
+
$bg: #2d3a4b;
|
|
245
|
+
$dark_gray: #889aa4;
|
|
246
|
+
$light_gray: #eee;
|
|
247
|
+
.login-container {
|
|
248
|
+
position: fixed;
|
|
249
|
+
height: 100%;
|
|
250
|
+
width: 100%;
|
|
251
|
+
background-color: $bg;
|
|
252
|
+
.login-form {
|
|
253
|
+
position: absolute;
|
|
254
|
+
left: 0;
|
|
255
|
+
right: 0;
|
|
256
|
+
width: 520px;
|
|
257
|
+
max-width: 100%;
|
|
258
|
+
padding: 35px 35px 15px 35px;
|
|
259
|
+
margin: 120px auto;
|
|
260
|
+
}
|
|
261
|
+
.tips {
|
|
262
|
+
font-size: 14px;
|
|
263
|
+
color: #fff;
|
|
264
|
+
margin-bottom: 10px;
|
|
265
|
+
span {
|
|
266
|
+
&:first-of-type {
|
|
267
|
+
margin-right: 16px;
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
.svg-container {
|
|
272
|
+
padding: 6px 5px 6px 15px;
|
|
273
|
+
color: $dark_gray;
|
|
274
|
+
vertical-align: middle;
|
|
275
|
+
width: 30px;
|
|
276
|
+
display: inline-block;
|
|
277
|
+
}
|
|
278
|
+
.title {
|
|
279
|
+
font-size: 26px;
|
|
280
|
+
font-weight: 400;
|
|
281
|
+
color: $light_gray;
|
|
282
|
+
margin: 0px auto 40px auto;
|
|
283
|
+
text-align: center;
|
|
284
|
+
font-weight: bold;
|
|
285
|
+
}
|
|
286
|
+
.show-pwd {
|
|
287
|
+
position: absolute;
|
|
288
|
+
right: 10px;
|
|
289
|
+
top: 7px;
|
|
290
|
+
font-size: 16px;
|
|
291
|
+
color: $dark_gray;
|
|
292
|
+
cursor: pointer;
|
|
293
|
+
user-select: none;
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
</style>
|