xiaolin.mayu 5 vuotta sitten
vanhempi
commit
b3740fc3d0

+ 14
- 1
src/assets/css/gobal.css Näytä tiedosto

@@ -1,3 +1,16 @@
1 1
 a {
2
-    text-decoration: none;;
2
+    text-decoration: none;
3
+    ;
4
+}
5
+
6
+html,
7
+body {
8
+    padding: 0;
9
+    margin: 0;
10
+    background-color: #EBEDF5;
11
+}
12
+
13
+.tabEdit .el-input__inner {
14
+    border-radius: 0;
15
+    border: transparent;
3 16
 }

+ 115
- 0
src/components/Base.vue Näytä tiedosto

@@ -0,0 +1,115 @@
1
+<template>
2
+<!-- 视图体区 -->
3
+<div>
4
+            <div class="mainTop">
5
+               <el-checkbox >未结课</el-checkbox>
6
+                <span class="check"><el-checkbox >已结课</el-checkbox></span>
7
+                
8
+                <el-select placeholder="所属学科">
9
+                <el-option > </el-option>
10
+                </el-select>
11
+                <span class="data">开班日期:</span ><el-date-picker
12
+              type="date"
13
+              placeholder="选择日期">
14
+                 </el-date-picker>
15
+                 <el-select placeholder="姓名" class="topName">
16
+                <el-option > </el-option>
17
+                </el-select>
18
+                <el-button type="primary" size="
19
+                mini">搜索</el-button>
20
+                <el-button type="primary" size="
21
+                mini" class="add">添加</el-button>
22
+            </div>
23
+            <!-- 表格区域 -->
24
+             <el-table
25
+    :data="tableData"
26
+    border
27
+    style="width: 100%">
28
+     <el-table-column
29
+      type="selection"
30
+     >
31
+    </el-table-column>
32
+    <el-table-column
33
+      prop="id"
34
+      label="序号"
35
+      width="">
36
+    </el-table-column>
37
+    <el-table-column
38
+      prop="class"
39
+      label="班级名称"
40
+      width="180">
41
+    </el-table-column>
42
+    <el-table-column
43
+      prop="num"
44
+      label="人数"
45
+      width="">
46
+    </el-table-column>
47
+    <el-table-column
48
+      prop="leader"
49
+      label="主负责人"
50
+      width="">
51
+    </el-table-column>
52
+    <el-table-column
53
+      prop="object"
54
+      label="学科">
55
+    </el-table-column>
56
+    <el-table-column
57
+      prop="teacher"
58
+      label="教师">
59
+    </el-table-column>
60
+    <el-table-column
61
+      label="操作">
62
+      <template>
63
+          <router-link class="topEdit" to="/read" >编辑/查看</router-link> |
64
+          <a href="#" class="topDelet">删除</a>
65
+      </template>
66
+    </el-table-column>
67
+     </el-table>
68
+    </div>
69
+</template>
70
+<script>
71
+export default {
72
+    data(){
73
+         return{
74
+          tableData: [{
75
+          id: '1',
76
+          class: '201910月第一期',
77
+          num: 56,
78
+          leader:'南湖恺',
79
+          object:'数学',
80
+          teacher:'黄晓静'
81
+
82
+        }
83
+           ]
84
+            }
85
+    }
86
+}
87
+</script>
88
+<style scoped>
89
+.check {
90
+    padding-left: 5px;
91
+    margin-right: 5px;
92
+}
93
+.data {
94
+    margin:0 5px;
95
+    font-size: 14px;
96
+}
97
+.topName {
98
+    margin: 0 5px;
99
+}
100
+.add {
101
+   float: right;
102
+}
103
+.el-table {
104
+    margin-top: 15px;
105
+}
106
+.topEdit{
107
+    color: #666666;
108
+}
109
+.topEdit:hover {
110
+    color: #529BFF
111
+}
112
+.topDelet {
113
+    color:#F5A09D; 
114
+}
115
+</style>

+ 128
- 0
src/components/Home.vue Näytä tiedosto

@@ -0,0 +1,128 @@
1
+<template>
2
+    <div class="all">
3
+        <!-- 头部区域上-->
4
+    <div class="head">
5
+        <div class="logo"></div>
6
+        <div class="headRight">
7
+            <i class="ico"></i> |
8
+            <span class="photo"></span>
9
+            <span class="name">你好</span> |
10
+            <a href="#" class="logout">退出</a>
11
+        </div>
12
+        </div>
13
+        <!-- 头部菜单栏 -->
14
+        <div class="headf">
15
+           <el-menu  mode="horizontal" >
16
+    <el-menu-item index="1"><i class="el-icon-menu"></i>基础信息</el-menu-item>
17
+    <el-menu-item index="2"><i class="el-icon-menu"></i>试题库</el-menu-item>
18
+    <el-menu-item index="3"><i class="el-icon-menu"></i>作业管理</el-menu-item>
19
+    <el-menu-item index="4"><i class="el-icon-menu"></i>学情报告</el-menu-item>
20
+           </el-menu>
21
+        </div>
22
+
23
+        <!-- 视图体区 -->
24
+        <el-card class="con">
25
+            <router-view></router-view>
26
+        </el-card>
27
+
28
+        <div class="footer"><p>copyright@2013-2019 All Right</p></div>
29
+      
30
+    </div>
31
+</template>
32
+<script>
33
+export default {
34
+    
35
+    data(){
36
+       
37
+    }
38
+}
39
+</script>
40
+<style scoped>
41
+
42
+.head {
43
+    overflow: hidden;
44
+    width: 100%;
45
+    height: 68px;
46
+    background-color: #529BFF;
47
+line-height: 68px;
48
+color: #fff;
49
+}
50
+.logo {
51
+    float: left;
52
+    width: 300px;
53
+    height: 40px;
54
+    background-color: pink;
55
+    margin-left: 10px;
56
+   margin-top: 15px;
57
+}
58
+
59
+.headRight {
60
+    float: right;
61
+font-size: 12px;
62
+
63
+}
64
+.ico {
65
+    display: inline-block;
66
+    vertical-align: middle;
67
+    width: 16px;
68
+    height: 16px;
69
+    background-color: pink;
70
+    
71
+}
72
+.photo {
73
+     display: inline-block;
74
+     vertical-align: middle;
75
+    width: 42px;
76
+    height: 42px;
77
+    background-color: pink;
78
+    margin: 0 5px;
79
+    border-radius: 50%;
80
+}
81
+.logout {
82
+    color: #fff;
83
+    margin-right: 15px;
84
+}
85
+.headf {
86
+    height: 52px;
87
+    width: 100%;
88
+    background-color: #fff;
89
+    position: relative;
90
+    z-index: 999;
91
+   
92
+   
93
+}
94
+ .el-menu {
95
+    position: absolute;
96
+    left: 50%;
97
+    top: 0;
98
+    transform: translateX(-50%)
99
+ }    
100
+ .el-menu-item {
101
+     margin-right: 20px!important;
102
+ } 
103
+.el-menu--horizontal>.el-menu-item{
104
+    height: 52px;
105
+    line-height: 52px;
106
+}
107
+/* 主体区 */
108
+.con{
109
+    margin:15px auto 0;
110
+    width: 1200px;
111
+    height: 100%;
112
+    background-color: #fff;
113
+    
114
+}
115
+.all {
116
+ position: relative;
117
+}
118
+.footer {
119
+    color: #B1B9CF;
120
+   position: absolute;
121
+   bottom: -80px;
122
+   left: 50%;
123
+   transform: translateX(-50%)
124
+
125
+
126
+}
127
+
128
+</style>

+ 27
- 12
src/components/Login.vue Näytä tiedosto

@@ -1,17 +1,19 @@
1 1
 <template>
2 2
     <div class="bg">
3
+        <div class="center">
3 4
        <div class="welcome">
4 5
            <img src="../assets/images/pt1.png" alt="">
5 6
        </div>
6 7
        <div class="box1">
7
-           <div class="input1" >用户名</div>
8
-           <div class="input2">密码</div>
8
+           <div class="input1" ><input placeholder="用户名"/></div>
9
+           <div class="input2"><input placeholder="密码"/></div>
9 10
            <el-checkbox class="checkbox1">记住密码</el-checkbox>
10
-           <router-link class="login" to="./user">登录</router-link>
11
+           <router-link class="login" to="./home">登 录</router-link>
11 12
             <p>
12 13
            <span>还没有账号?<a>立即注册</a></span>
13 14
        </p>
14 15
        </div>
16
+       </div>
15 17
        
16 18
       
17 19
     </div>
@@ -20,6 +22,9 @@
20 22
 export default {
21 23
     data() {
22 24
         return {}
25
+    },
26
+    methods:{
27
+        
23 28
     }
24 29
    
25 30
 }
@@ -29,10 +34,6 @@ a {
29 34
     text-decoration: none;
30 35
 }
31 36
 .bg {
32
-    /* position: relative;
33
-    margin: 20px auto;
34
-    min-width:1280px;
35
-    background:url(../assets/images/bg1.png) no-repeat; */
36 37
      position: fixed;
37 38
             top: 0;
38 39
             left: 0;
@@ -49,20 +50,28 @@ a {
49 50
              background-position: center 0; 
50 51
     
51 52
 }
53
+.center {
54
+    width: 434.5px;
55
+    height: 100%;
56
+    position: absolute;
57
+    top: 50%;
58
+    left: 50%;
59
+    transform: translate(-50%,-50%);
60
+}
52 61
 .welcome {
53 62
     width: 286px;
54 63
     height: 30.5px;
55 64
     position: absolute;
56
-    top: 203px;
57
-    left: 496px;
65
+    top: 90px;
66
+    left:60px;
58 67
 }
59 68
 .box1 {
60
-    position: relative;
61 69
     width: 434.5px;
62 70
     height: 369px;
63 71
     position: absolute;
64
-    top: 261px;
65
-    left: 422px;
72
+    top: 50%;
73
+    left: 50%;
74
+    transform: translate(-50%,-50%);
66 75
     background:url(../assets/images/2.png);
67 76
     color: #5D5D5D;
68 77
 }
@@ -132,4 +141,10 @@ a {
132 141
 .box1 p a {
133 142
     color: rgb(0, 153, 255)
134 143
 }
144
+.input2 input,.input1 input {
145
+    width: 100%;
146
+    height: 45px;
147
+    border: none;
148
+    outline: none;
149
+}
135 150
 </style>

+ 1
- 3
src/components/User.vue Näytä tiedosto

@@ -136,9 +136,7 @@
136 136
     left: 43.5px;
137 137
     background-color: pink;
138 138
 }
139
-.logoeng {
140
-   
141
-}
139
+
142 140
 .name {
143 141
     position: absolute;
144 142
     display: inline-block;

+ 270
- 0
src/components/message/EditMessage.vue Näytä tiedosto

@@ -0,0 +1,270 @@
1
+<template>
2
+    <div>
3
+        <!-- 基本信息区 -->
4
+    <div class="readTop">
5
+      <div class="baseMes">基本信息</div>
6
+      <router-link to="/read">
7
+        <span class="back">返回</span>
8
+      </router-link>
9
+    </div>
10
+    <!-- 表格区域-->
11
+    <table style="border-collapse:collapse;" class="tabEdit">
12
+      <tr class="tr">
13
+        <th>班级名称:</th>
14
+        <td colspan="3"><input/></td>
15
+      </tr>
16
+      <tr>
17
+        <th>学科:</th>
18
+        <td style="padding:0">
19
+           <el-select style="width:100% ;height:100%;border-radius:0" size="large" class="se"><el-option></el-option></el-select>
20
+        </td>
21
+        <th>年级:</th>
22
+        <td><input/></td>
23
+      </tr>
24
+      <tr>
25
+        <th>主负责人:</th>
26
+        <td><input/></td>
27
+        <th>副负责人:</th>
28
+        <td><input/></td>
29
+      </tr>
30
+      <tr>
31
+        <th>学科教师:</th>
32
+        <td><input/></td>
33
+        <th>开班日期</th>
34
+       
35
+          <td style="padding:0" class="riqi"><el-date-picker
36
+          style="width:100% ;height:100%;border:none"
37
+    size="large"
38
+      type="date"
39
+      placeholder="">
40
+    </el-date-picker>
41
+        </td>
42
+      </tr>
43
+      <tr>
44
+        <th>状态:</th>
45
+        <td>
46
+            <el-checkbox >已毕业</el-checkbox>
47
+            <el-checkbox >未毕业</el-checkbox>
48
+        </td>
49
+        <th>毕业日期:</th>
50
+          <td style="padding:0" class="riqi"><el-date-picker
51
+          style="width:100% ;height:100%;border:none"
52
+    size="large"
53
+      type="date"
54
+      placeholder="">
55
+    </el-date-picker>
56
+        </td>
57
+      </tr>
58
+    </table>
59
+    <!-- 保存按钮 -->
60
+    <el-button type="primary" size="mini" class="saveBtn">保存</el-button>
61
+
62
+    <!-- 学生信息区域 -->
63
+    <!-- 表格区域-->
64
+    <table style="border-collapse:collapse;">
65
+      <tr class="trmes">
66
+          <th></th>
67
+        <th>班级名称</th>
68
+        <th>序号</th>
69
+        <th>学生姓名</th>
70
+        <th>学号/登录名</th>
71
+        <th>家长姓名</th>
72
+        <th>家长手机</th>
73
+        <th>学生手机</th>
74
+        <th>身份证</th>
75
+        <th>操作</th>
76
+      </tr>
77
+     
78
+    </table>
79
+    <div class="kong"> 尚未添加学生,请尽快添加 <el-button size="mini" type="primary" class="addBtn" @click="addDialog">手动添加</el-button> </div>
80
+    
81
+
82
+    <!-- 添加学生的对话框 -->
83
+   
84
+    <el-dialog
85
+    class="addStu"
86
+  title="添加学生"
87
+  :visible.sync="addDialogVisible"
88
+  width="60%"
89
+ >
90
+  <span>
91
+      <a href="#" class="copy">可从Excel表格中复制粘贴 或 手动输入</a>
92
+      <table style="border-collapse:collapse;" class="addTable">
93
+      <tr class="trmes">
94
+        <th>班级名称</th>
95
+        <th>序号</th>
96
+        <th>学生姓名</th>
97
+        <th>学号/登录名</th>
98
+        <th>家长姓名</th>
99
+        <th>家长手机</th>
100
+      </tr>
101
+      <tr><td><input type="text"></td>
102
+      <td><input type="text"></td>
103
+      <td><input type="text"></td>
104
+      <td><input type="text"></td>
105
+      <td><input type="text"></td>
106
+      <td><input type="text"></td></tr>
107
+      <tr><td><input type="text"></td>
108
+      <td><input type="text"></td>
109
+      <td><input type="text"></td>
110
+      <td><input type="text"></td>
111
+      <td><input type="text"></td>
112
+      <td><input type="text"></td></tr>
113
+      <tr><td><input type="text"></td>
114
+      <td><input type="text"></td>
115
+      <td><input type="text"></td>
116
+      <td><input type="text"></td>
117
+      <td><input type="text"></td>
118
+      <td><input type="text"></td></tr>
119
+      <tr><td><input type="text"></td>
120
+      <td><input type="text"></td>
121
+      <td><input type="text"></td>
122
+      <td><input type="text"></td>
123
+      <td><input type="text"></td>
124
+      <td><input type="text"></td></tr>
125
+      <tr><td><input type="text"></td>
126
+      <td><input type="text"></td>
127
+      <td><input type="text"></td>
128
+      <td><input type="text"></td>
129
+      <td><input type="text"></td>
130
+      <td><input type="text"></td></tr>
131
+      </table>
132
+      <div class="line"></div>
133
+  </span>
134
+  
135
+  <span slot="footer" class="dialog-footer">
136
+    <el-button size="mini" @click="addDialogVisible = false">取 消</el-button>
137
+    <el-button size="mini" type="primary" @click="addDialogVisible = false">添加</el-button>
138
+  </span>
139
+  
140
+</el-dialog>
141
+</div>
142
+
143
+</template>
144
+<script>
145
+export default {
146
+    data(){
147
+       return{
148
+          tableData: [{
149
+          id: '1',
150
+          studentName: '第一期',
151
+          xuehao: 56,
152
+          parentName:'南湖恺',
153
+          parentTel:'数学',
154
+          studentTel:'123',
155
+          idNum:'黄晓静'
156
+        }],
157
+        addDialogVisible:false,
158
+            }
159
+        
160
+            
161
+    },
162
+    methods:{
163
+        // 手动添加学生
164
+    addDialog(){
165
+this.addDialogVisible=true
166
+}
167
+    }
168
+}
169
+</script>
170
+<style scoped>
171
+.readTop{
172
+  position: relative;
173
+  width: 100%;
174
+  height: 40px;
175
+  border-bottom: 1px solid #ccc;
176
+  margin-bottom: 45px;
177
+}
178
+.back {
179
+    position: absolute;
180
+    right:0;
181
+    color: #529bff;
182
+}
183
+
184
+.baseMes {
185
+  position: absolute;
186
+  top: 29px;
187
+  left: 20px;
188
+  background-color: #fff;
189
+  padding: 0 5px;
190
+}
191
+/* 表格区域 */
192
+table {
193
+  font-size: 14px;
194
+  color: #333;
195
+  width: 100%;
196
+  border: 1px solid #ccc;
197
+  margin-top: 30px;
198
+}
199
+th {
200
+  width: 20%;
201
+  border: 1px solid #ccc;
202
+  height: 40px;
203
+  background-color: #FAFAFA;
204
+}
205
+
206
+td {
207
+ padding-left:10px;
208
+  width: 30%;
209
+  border: 1px solid #ccc;
210
+  overflow: hidden;
211
+}
212
+td input {
213
+    width: 100%;
214
+    height: 40px;
215
+    border: none;
216
+    outline: none;
217
+}
218
+.el-date-picker {
219
+    width: 100%;
220
+}
221
+.saveBtn {
222
+    margin:15px 0 10px 545px;
223
+}
224
+.trmes th {
225
+    width:10%;
226
+    
227
+}
228
+.trmes th:nth-child(1){
229
+ width: 7%;
230
+}
231
+.kong {
232
+    width: 100%;
233
+    height: 200px;
234
+    border: none;
235
+    font-size: 14px;
236
+position: relative;
237
+text-align: center;
238
+line-height:200px;
239
+    
240
+}
241
+.addBtn {
242
+    display: block;
243
+    position:absolute;
244
+    left: 50%;
245
+   top: 75%;
246
+   transform: translate(-50%,-50%)
247
+}
248
+.addTable {
249
+    width: 100%;
250
+    margin-top: 10px;
251
+}
252
+.addTable td {
253
+height: 30px;
254
+ width: 10%;
255
+ text-align: center;
256
+}
257
+.copy {
258
+    color: #529BFF;
259
+}
260
+.addStu .el-dialog__body {
261
+    padding-top: 5px;
262
+}
263
+.line {
264
+    width: 100%;
265
+    height: 1px;
266
+    background-color: #ccc;
267
+    margin-top: 30px;
268
+}
269
+
270
+</style>

+ 230
- 0
src/components/message/Read.vue Näytä tiedosto

@@ -0,0 +1,230 @@
1
+<template>
2
+  <div>
3
+    <div class="readTop">
4
+      <div class="baseMes">基本信息</div>
5
+      <router-link to="/base">
6
+        <span class="back">返回</span>
7
+      </router-link>
8
+    </div>
9
+    <!-- 表格区域-->
10
+    <table style="border-collapse:collapse;">
11
+      <tr class="tr">
12
+        <th>班级名称:</th>
13
+        <td colspan="3"></td>
14
+      </tr>
15
+      <tr>
16
+        <th>学科:</th>
17
+        <td>
18
+          <span>数学</span>
19
+        </td>
20
+        <th>年级:</th>
21
+        <td></td>
22
+      </tr>
23
+      <tr>
24
+        <th>主负责人:</th>
25
+        <td>1</td>
26
+        <th>副负责人:</th>
27
+        <td>2</td>
28
+      </tr>
29
+      <tr>
30
+        <th>学科教师:</th>
31
+        <td>1</td>
32
+        <th>开班日期</th>
33
+        <td>
34
+          <span>2019-9-9</span>
35
+        </td>
36
+      </tr>
37
+      <tr>
38
+        <th>状态:</th>
39
+        <td>未毕业</td>
40
+        <th>毕业日期:</th>
41
+        <td>
42
+          <span>2019-9-9</span>
43
+        </td>
44
+      </tr>
45
+      
46
+    </table>
47
+    <!-- 学生信息区域 -->
48
+    
49
+    <div class="readBottom">
50
+      <div class="baseMes">学生信息</div>
51
+      <router-link to="/editMessage">
52
+        <span>编辑</span>
53
+      </router-link>
54
+     <div class="readRight">
55
+   <a href="#" class="daoru">导入</a> |
56
+     <a href="#" class="zhuanban">转班</a> |
57
+     <a href="#" class="del">删除</a>
58
+     </div>
59
+    </div>
60
+    
61
+    <!-- 表格区域 -->
62
+ <el-table
63
+ :header-cell-style="{background:'#eee'}"
64
+    :data="tableData"
65
+    border
66
+    style="width: 100%">
67
+     <el-table-column
68
+      type="selection"
69
+     >
70
+    </el-table-column>
71
+    <el-table-column
72
+      prop="id"
73
+      label="序号"
74
+      width="">
75
+    </el-table-column>
76
+    <el-table-column
77
+      prop="studentName"
78
+      label="学生姓名"
79
+      width="">
80
+    </el-table-column>
81
+    <el-table-column
82
+      prop="xuehao"
83
+      label="学号/登录名"
84
+      width="">
85
+    </el-table-column>
86
+    <el-table-column
87
+      prop="parentName"
88
+      label="家长姓名"
89
+      width="">
90
+    </el-table-column>
91
+    <el-table-column
92
+      prop="parentTel"
93
+      label="家长手机">
94
+    </el-table-column>
95
+    <el-table-column
96
+      prop="studentTel"
97
+      label="学生手机">
98
+    </el-table-column>
99
+    <el-table-column
100
+      prop="idNum"
101
+      label="身份证">
102
+    </el-table-column>
103
+    <el-table-column
104
+      label="操作">
105
+      <template>
106
+          <router-link class="bottomEdit" to="/read" >修改</router-link> 
107
+      </template>
108
+    </el-table-column>
109
+     </el-table>
110
+
111
+     <!--底部加号 -->
112
+     <div class="foot">
113
+         <div class="footIcon"><i class="el-icon-circle-plus"></i></div>
114
+     </div>
115
+  </div>
116
+</template>
117
+
118
+<script>
119
+export default {
120
+  data() {
121
+     return{
122
+          tableData: [{
123
+          id: '1',
124
+          studentName: '第一期',
125
+          xuehao: 56,
126
+          parentName:'南湖恺',
127
+          parentTel:'数学',
128
+          studentTel:'123',
129
+          idNum:'黄晓静'
130
+        }]
131
+            }
132
+  },
133
+           
134
+   methods:{
135
+      
136
+    }
137
+}
138
+</script>
139
+<style scoped>
140
+.message {
141
+    overflow: hidden;
142
+}
143
+.readTop,.readBottom{
144
+  position: relative;
145
+  width: 100%;
146
+  height: 40px;
147
+  border-bottom: 1px solid #ccc;
148
+  margin-bottom: 45px;
149
+}
150
+.back {
151
+    position: absolute;
152
+    right:0;
153
+    color: #529bff;
154
+}
155
+.readBottom span {
156
+ float: right;
157
+color: #529bff;
158
+}
159
+.baseMes {
160
+  position: absolute;
161
+  top: 29px;
162
+  left: 20px;
163
+  background-color: #fff;
164
+  padding: 0 5px;
165
+}
166
+/* 表格区域 */
167
+table {
168
+  font-size: 14px;
169
+  color: #333;
170
+  width: 100%;
171
+  border: 1px solid #ccc;
172
+  margin-top: 30px;
173
+}
174
+th {
175
+  width: 20%;
176
+  border: 1px solid #ccc;
177
+  height: 50px;
178
+  background-color: #FAFAFA;
179
+}
180
+
181
+td {
182
+padding-left:10px;
183
+  width: 30%;
184
+  border: 1px solid #ccc;
185
+}
186
+.readBottom {
187
+    margin-top: 5px;
188
+}
189
+.readBottom span {
190
+line-height: 40px;
191
+}
192
+.readRight {
193
+    color:#C7CEE0;
194
+    position: absolute;
195
+    right: 0;
196
+    top: 55px;
197
+}
198
+.daoru,.zhuanban {
199
+    color: #595959;
200
+    font-size: 14px;
201
+
202
+}
203
+.del {
204
+      font-size: 14px;
205
+    color: #EE443E
206
+}
207
+
208
+.bottomEdit {
209
+    color: #529BFF;
210
+}
211
+.foot {
212
+position: relative;
213
+width: 100%;
214
+height: 20px;
215
+margin-top: 10px;
216
+}
217
+.footIcon {
218
+    font-size: 20xp;
219
+    display: block;
220
+    width: 20px;
221
+    height: 20px;
222
+    position: absolute;
223
+    top: 50%;
224
+    left: 50%;
225
+    transform: translate(-50%,-50%)
226
+} 
227
+.el-icon-circle-plus:before {
228
+    font-size: 22px;
229
+}
230
+</style>

+ 1
- 0
src/main.js Näytä tiedosto

@@ -3,6 +3,7 @@ import App from './App.vue'
3 3
 import router from './router'
4 4
 import store from './store'
5 5
 import './plugins/element.js'
6
+import './assets/css/gobal.css'
6 7
 
7 8
 Vue.config.productionTip = false
8 9
 

+ 30
- 11
src/router/index.js Näytä tiedosto

@@ -3,23 +3,42 @@ import VueRouter from 'vue-router'
3 3
 
4 4
 import Login from '../components/Login.vue'
5 5
 import User from '../components/User.vue'
6
+import Home from '../components/Home.vue'
7
+import Base from '../components/Base.vue'
8
+import Read from '../components/message/Read.vue'
9
+import editMessage from '../components/message/EditMessage.vue'
6 10
 
7 11
 Vue.use(VueRouter)
8 12
 
9 13
 const routes = [
10
-  { path: '/', redirect: '/login' },
11
-  {
12
-    path: '/login',
13
-    component: Login
14
-  },
15
-  {
16
-    path: '/user',
17
-    component: User
18
-  }
14
+    { path: '/', redirect: '/login' },
15
+    {
16
+        path: '/login',
17
+        component: Login
18
+    },
19
+    {
20
+        path: '/user',
21
+        component: User
22
+    },
23
+    {
24
+        path: '/home',
25
+        component: Home,
26
+        redirect: '/base',
27
+        children: [{
28
+            path: '/base',
29
+            component: Base
30
+        }, {
31
+            path: '/read',
32
+            component: Read
33
+        }, {
34
+            path: '/editMessage',
35
+            component: editMessage
36
+        }]
37
+    }
19 38
 ]
20 39
 
21 40
 const router = new VueRouter({
22
-  routes
41
+    routes
23 42
 })
24 43
 
25
-export default router
44
+export default router

Loading…
Peruuta
Tallenna