Skip to content

Commit 26a880f

Browse files
author
zhongzhenlong
committed
add mock,未完待续
1 parent d30acce commit 26a880f

File tree

4 files changed

+31
-19
lines changed

4 files changed

+31
-19
lines changed

build/webpack.base.conf.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ module.exports = {
4949
resolve('src'),
5050
resolve('test'),
5151
resolve('/node_modules/.1.4.8@element-ui/src'),
52-
resolve('/node_modules/.1.4.8@element-ui/packages')
52+
resolve('/node_modules/.1.4.8@element-ui/packages'),
53+
resolve('/node_modules/.4.3.0@vuex-router-sync')
5354
]
5455
},
5556
{

src/pages/layout/header.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
<el-dropdown-menu style="padding: 0px">
3434
<div>
3535
<div class="header-pic">
36-
<img :src='userInfo.avatar' class="img-circle" alt="User Image">
36+
<img :src='userInfo.avatar' class="img-circle" alt="User Image" >
3737
<p>{{userInfo.name}}</p>
3838
</div>
3939
<div class="pull-left">
@@ -252,10 +252,14 @@
252252
253253
}
254254
.main-header.closeLogo .navbar{
255-
margin-left: 0px;
255+
margin-left: 44px;
256256
}
257257
258258
.main-header.closeLogo .logo{
259+
width: 44px;
260+
padding: 0 8px;
261+
}
262+
.main-header.closeLogo .logo .logo-lg b{
259263
display: none;
260264
}
261265
.main-header.closeLogo .sidebar-toggle {

src/pages/login.vue

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,19 @@
22
<el-row>
33
<el-col :span="12" :offset="6">
44
<div class="login">
5+
<el-row slot="body" :gutter="0" >
6+
<el-col :span="24" :xs="24" :sm="16" :md="16" :lg="16">
57
<div class="login-form">
68
<div class="card-block">
7-
<h1>Vue-Admin-Login</h1>
9+
<h1>Vue-Admin</h1>
810
<p class="text-muted">任意用户名/密码登录</p>
911
<div class="input-group m-b-1">
1012
<span class="input-group-addon"><i class="fa fa-user"></i></span>
11-
<input type="text" class="form-control" placeholder="Username" v-model="form.username">
13+
<input type="text" class="form-control" placeholder="user name" v-model="form.username">
1214
</div>
1315
<div class="input-group m-b-2">
1416
<span class="input-group-addon"><i class="fa fa-lock"></i></span>
15-
<input type="password" class="form-control" placeholder="Password" v-model="form.password"
17+
<input type="password" class="form-control" placeholder="password" v-model="form.password"
1618
@keyup.enter="login">
1719
</div>
1820
<div class="row">
@@ -27,13 +29,17 @@
2729
</div>
2830
</div>
2931
</div>
32+
</el-col>
33+
<el-col :span="24" :xs="24" :sm="8" :md="8" :lg="8">
3034
<div class="login-register">
3135
<div class="card-block">
3236
<h2>注册</h2>
3337
<p>平台暂时只支持使用公司邮箱注册.</p>
3438
<el-button type="info" class="btn btn-primary active m-t-1"> 马上注册</el-button>
3539
</div>
3640
</div>
41+
</el-col>
42+
</el-row>
3743
</div>
3844
</el-col>
3945
</el-row>
@@ -95,6 +101,7 @@
95101
margin-left: auto !important;
96102
display: table;
97103
table-layout: fixed;
104+
background-color: #20a8d8;
98105
}
99106
100107
.login .el-button {
@@ -107,14 +114,14 @@
107114
108115
.login .login-form {
109116
background-color: #FFFFFF;
110-
display: inline-block;
111-
width: 60%;
112-
display: table-cell;
117+
width: 100%;
118+
height: 100%;
119+
display: block;
113120
114121
}
115122
116123
.login .login-form .card-block {
117-
margin: 35px;
124+
padding: 35px;
118125
}
119126
120127
.login .login-form .card-block p {
@@ -177,18 +184,16 @@
177184
position: relative;
178185
z-index: 2;
179186
float: left;
180-
width: 100%;
181187
margin-bottom: 0;
182188
}
183189
184190
.form-control {
185-
width: 100%;
191+
width: 90%;
186192
padding: .5rem .75rem;
187-
font-size: .875rem;
193+
font-size: 1.5rem;
188194
line-height: 1.75rem;
189195
color: #607d8b;
190-
background-color: #fff;
191-
background-image: none;
196+
background: #fff none;
192197
background-clip: padding-box;
193198
border: 1px solid rgba(0, 0, 0, .15);
194199
transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
@@ -200,15 +205,16 @@
200205
}
201206
202207
.login .login-register {
203-
display: table-cell;
208+
width: 100%;
209+
height: 100%;
210+
display: block;
204211
background-color: #20a8d8;
205-
width: 40%;
206212
color: #fff;
207213
}
208214
209215
.login .login-register .card-block {
210216
text-align: center !important;
211-
margin: 30px;
217+
padding: 30px;
212218
}
213219
214220
.login .login-register .card-block p {

src/pages/sys/user.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424
style="width: 100%"
2525
v-loading="listLoading"
2626
@selection-change="handleSelectionChange">
27+
<!--checkbox 适当加宽,否则IE下面有省略号 https://github.com/ElemeFE/element/issues/1563-->
2728
<el-table-column
2829
prop="id"
2930
type="selection"
30-
width="45">
31+
width="50">
3132
</el-table-column>
3233
<el-table-column
3334
label="照片" width="76">

0 commit comments

Comments
 (0)