ソースを参照

first commit

class
hongxiaolin 5年前
コミット
40ed71783e
17個のファイルの変更468行の追加98行の削除
  1. 5
    2
      .eslintrc.js
  2. 69
    2
      package-lock.json
  3. 2
    0
      package.json
  4. 6
    24
      src/App.vue
  5. 3
    0
      src/assets/css/gobal.css
  6. バイナリ
      src/assets/images/2.png
  7. バイナリ
      src/assets/images/Key.png
  8. バイナリ
      src/assets/images/User.png
  9. バイナリ
      src/assets/images/bg1.png
  10. バイナリ
      src/assets/images/pt1.png
  11. 0
    60
      src/components/HelloWorld.vue
  12. 135
    0
      src/components/Login.vue
  13. 231
    0
      src/components/User.vue
  14. 1
    0
      src/main.js
  15. 5
    0
      src/plugins/element.js
  16. 8
    10
      src/router/index.js
  17. 3
    0
      vue.config.js

+ 5
- 2
.eslintrc.js ファイルの表示

@@ -8,8 +8,11 @@ module.exports = {
8 8
     '@vue/standard'
9 9
   ],
10 10
   rules: {
11
-    'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
12
-    'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off'
11
+    'no-console': 'off',
12
+    'no-debugger': 'off',
13
+    'no-trailing-spaces': 0,
14
+    indent: 0,
15
+    'space-before-function-paren': 0
13 16
   },
14 17
   parserOptions: {
15 18
     parser: 'babel-eslint'

+ 69
- 2
package-lock.json ファイルの表示

@@ -1981,6 +1981,14 @@
1981 1981
       "integrity": "sha1-3TeelPDbgxCwgpH51kwyCXZmF/0=",
1982 1982
       "dev": true
1983 1983
     },
1984
+    "async-validator": {
1985
+      "version": "1.8.5",
1986
+      "resolved": "https://registry.npm.taobao.org/async-validator/download/async-validator-1.8.5.tgz",
1987
+      "integrity": "sha1-3D4I7B/Q3dtn5ghC8CwM0c7G1/A=",
1988
+      "requires": {
1989
+        "babel-runtime": "6.x"
1990
+      }
1991
+    },
1984 1992
     "asynckit": {
1985 1993
       "version": "0.4.0",
1986 1994
       "resolved": "https://registry.npm.taobao.org/asynckit/download/asynckit-0.4.0.tgz",
@@ -2042,6 +2050,11 @@
2042 2050
         "resolve": "^1.12.0"
2043 2051
       }
2044 2052
     },
2053
+    "babel-helper-vue-jsx-merge-props": {
2054
+      "version": "2.0.3",
2055
+      "resolved": "https://registry.npm.taobao.org/babel-helper-vue-jsx-merge-props/download/babel-helper-vue-jsx-merge-props-2.0.3.tgz",
2056
+      "integrity": "sha1-Iq69OzOQIyjlEyk6jkmSs4T58bY="
2057
+    },
2045 2058
     "babel-loader": {
2046 2059
       "version": "8.0.6",
2047 2060
       "resolved": "https://registry.npm.taobao.org/babel-loader/download/babel-loader-8.0.6.tgz",
@@ -2076,6 +2089,27 @@
2076 2089
         "resolve": "^1.4.0"
2077 2090
       }
2078 2091
     },
2092
+    "babel-runtime": {
2093
+      "version": "6.26.0",
2094
+      "resolved": "https://registry.npm.taobao.org/babel-runtime/download/babel-runtime-6.26.0.tgz",
2095
+      "integrity": "sha1-llxwWGaOgrVde/4E/yM3vItWR/4=",
2096
+      "requires": {
2097
+        "core-js": "^2.4.0",
2098
+        "regenerator-runtime": "^0.11.0"
2099
+      },
2100
+      "dependencies": {
2101
+        "core-js": {
2102
+          "version": "2.6.10",
2103
+          "resolved": "https://registry.npm.taobao.org/core-js/download/core-js-2.6.10.tgz",
2104
+          "integrity": "sha1-iluDkfjMcBPacDQRzltYVwYwDX8="
2105
+        },
2106
+        "regenerator-runtime": {
2107
+          "version": "0.11.1",
2108
+          "resolved": "https://registry.npm.taobao.org/regenerator-runtime/download/regenerator-runtime-0.11.1.tgz",
2109
+          "integrity": "sha1-vgWtf5v30i4Fb5cmzuUBf78Z4uk="
2110
+        }
2111
+      }
2112
+    },
2079 2113
     "balanced-match": {
2080 2114
       "version": "1.0.0",
2081 2115
       "resolved": "https://registry.npm.taobao.org/balanced-match/download/balanced-match-1.0.0.tgz",
@@ -3578,8 +3612,7 @@
3578 3612
     "deepmerge": {
3579 3613
       "version": "1.5.2",
3580 3614
       "resolved": "https://registry.npm.taobao.org/deepmerge/download/deepmerge-1.5.2.tgz",
3581
-      "integrity": "sha1-EEmdhohEza1P7ghC34x/bwyVp1M=",
3582
-      "dev": true
3615
+      "integrity": "sha1-EEmdhohEza1P7ghC34x/bwyVp1M="
3583 3616
     },
3584 3617
     "default-gateway": {
3585 3618
       "version": "5.0.4",
@@ -4019,6 +4052,19 @@
4019 4052
       "integrity": "sha1-4oYhwbNsDEVW/ccLT0p/4WoYZuM=",
4020 4053
       "dev": true
4021 4054
     },
4055
+    "element-ui": {
4056
+      "version": "2.12.0",
4057
+      "resolved": "https://registry.npm.taobao.org/element-ui/download/element-ui-2.12.0.tgz",
4058
+      "integrity": "sha1-qJO8Ea5Pfbt+nVQWBvI+ZD8THuQ=",
4059
+      "requires": {
4060
+        "async-validator": "~1.8.1",
4061
+        "babel-helper-vue-jsx-merge-props": "^2.0.0",
4062
+        "deepmerge": "^1.2.0",
4063
+        "normalize-wheel": "^1.0.1",
4064
+        "resize-observer-polyfill": "^1.5.0",
4065
+        "throttle-debounce": "^1.0.1"
4066
+      }
4067
+    },
4022 4068
     "elliptic": {
4023 4069
       "version": "6.5.1",
4024 4070
       "resolved": "https://registry.npm.taobao.org/elliptic/download/elliptic-6.5.1.tgz",
@@ -7605,6 +7651,11 @@
7605 7651
       "integrity": "sha1-suHE3E98bVd0PfczpPWXjRhlBVk=",
7606 7652
       "dev": true
7607 7653
     },
7654
+    "normalize-wheel": {
7655
+      "version": "1.0.1",
7656
+      "resolved": "https://registry.npm.taobao.org/normalize-wheel/download/normalize-wheel-1.0.1.tgz",
7657
+      "integrity": "sha1-rsiGr/2wRQcNhWRH32Ls+GFG7EU="
7658
+    },
7608 7659
     "npm-run-path": {
7609 7660
       "version": "2.0.2",
7610 7661
       "resolved": "https://registry.npm.taobao.org/npm-run-path/download/npm-run-path-2.0.2.tgz?cache=0&sync_timestamp=1571055779038&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fnpm-run-path%2Fdownload%2Fnpm-run-path-2.0.2.tgz",
@@ -9244,6 +9295,11 @@
9244 9295
       "integrity": "sha1-79qpjqdFEyTQkrKyFjpqHXqaIUc=",
9245 9296
       "dev": true
9246 9297
     },
9298
+    "resize-observer-polyfill": {
9299
+      "version": "1.5.1",
9300
+      "resolved": "https://registry.npm.taobao.org/resize-observer-polyfill/download/resize-observer-polyfill-1.5.1.tgz",
9301
+      "integrity": "sha1-DpAg3T0hAkRY1OvSfiPkAmmBBGQ="
9302
+    },
9247 9303
     "resolve": {
9248 9304
       "version": "1.12.0",
9249 9305
       "resolved": "https://registry.npm.taobao.org/resolve/download/resolve-1.12.0.tgz?cache=0&sync_timestamp=1564641434608&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fresolve%2Fdownload%2Fresolve-1.12.0.tgz",
@@ -10365,6 +10421,11 @@
10365 10421
         "neo-async": "^2.6.0"
10366 10422
       }
10367 10423
     },
10424
+    "throttle-debounce": {
10425
+      "version": "1.1.0",
10426
+      "resolved": "https://registry.npm.taobao.org/throttle-debounce/download/throttle-debounce-1.1.0.tgz",
10427
+      "integrity": "sha1-UYU9o3vmihVctugns1FKPEIuic0="
10428
+    },
10368 10429
     "through": {
10369 10430
       "version": "2.3.8",
10370 10431
       "resolved": "https://registry.npm.taobao.org/through/download/through-2.3.8.tgz",
@@ -10890,6 +10951,12 @@
10890 10951
       "resolved": "https://registry.npm.taobao.org/vue/download/vue-2.6.10.tgz",
10891 10952
       "integrity": "sha1-pysaQqTYKnIepDjRtr9V5mGVxjc="
10892 10953
     },
10954
+    "vue-cli-plugin-element": {
10955
+      "version": "1.0.1",
10956
+      "resolved": "https://registry.npm.taobao.org/vue-cli-plugin-element/download/vue-cli-plugin-element-1.0.1.tgz",
10957
+      "integrity": "sha1-NOWPtls2z1mvrxT1AyiOXleLFVQ=",
10958
+      "dev": true
10959
+    },
10893 10960
     "vue-eslint-parser": {
10894 10961
       "version": "5.0.0",
10895 10962
       "resolved": "https://registry.npm.taobao.org/vue-eslint-parser/download/vue-eslint-parser-5.0.0.tgz",

+ 2
- 0
package.json ファイルの表示

@@ -9,6 +9,7 @@
9 9
   },
10 10
   "dependencies": {
11 11
     "core-js": "^3.3.2",
12
+    "element-ui": "^2.4.5",
12 13
     "vue": "^2.6.10",
13 14
     "vue-router": "^3.1.3",
14 15
     "vuex": "^3.0.1"
@@ -23,6 +24,7 @@
23 24
     "babel-eslint": "^10.0.3",
24 25
     "eslint": "^5.16.0",
25 26
     "eslint-plugin-vue": "^5.0.0",
27
+    "vue-cli-plugin-element": "^1.0.1",
26 28
     "vue-template-compiler": "^2.6.10"
27 29
   }
28 30
 }

+ 6
- 24
src/App.vue ファイルの表示

@@ -1,32 +1,14 @@
1 1
 <template>
2 2
   <div id="app">
3
-    <div id="nav">
4
-      <router-link to="/">Home</router-link> |
5
-      <router-link to="/about">About</router-link>
6
-    </div>
7
-    <router-view/>
3
+    <router-view></router-view>
8 4
   </div>
9 5
 </template>
10 6
 
11
-<style>
12
-#app {
13
-  font-family: 'Avenir', Helvetica, Arial, sans-serif;
14
-  -webkit-font-smoothing: antialiased;
15
-  -moz-osx-font-smoothing: grayscale;
16
-  text-align: center;
17
-  color: #2c3e50;
18
-}
19
-
20
-#nav {
21
-  padding: 30px;
7
+<script>
8
+export default {
9
+  name: 'app'
22 10
 }
11
+</script>
23 12
 
24
-#nav a {
25
-  font-weight: bold;
26
-  color: #2c3e50;
27
-}
28
-
29
-#nav a.router-link-exact-active {
30
-  color: #42b983;
31
-}
13
+<style>
32 14
 </style>

+ 3
- 0
src/assets/css/gobal.css ファイルの表示

@@ -0,0 +1,3 @@
1
+a {
2
+    text-decoration: none;;
3
+}

バイナリ
src/assets/images/2.png ファイルの表示


バイナリ
src/assets/images/Key.png ファイルの表示


バイナリ
src/assets/images/User.png ファイルの表示


バイナリ
src/assets/images/bg1.png ファイルの表示


バイナリ
src/assets/images/pt1.png ファイルの表示


+ 0
- 60
src/components/HelloWorld.vue ファイルの表示

@@ -1,60 +0,0 @@
1
-<template>
2
-  <div class="hello">
3
-    <h1>{{ msg }}</h1>
4
-    <p>
5
-      For a guide and recipes on how to configure / customize this project,<br>
6
-      check out the
7
-      <a href="https://cli.vuejs.org" target="_blank" rel="noopener">vue-cli documentation</a>.
8
-    </p>
9
-    <h3>Installed CLI Plugins</h3>
10
-    <ul>
11
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-babel" target="_blank" rel="noopener">babel</a></li>
12
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-router" target="_blank" rel="noopener">router</a></li>
13
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-vuex" target="_blank" rel="noopener">vuex</a></li>
14
-      <li><a href="https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-plugin-eslint" target="_blank" rel="noopener">eslint</a></li>
15
-    </ul>
16
-    <h3>Essential Links</h3>
17
-    <ul>
18
-      <li><a href="https://vuejs.org" target="_blank" rel="noopener">Core Docs</a></li>
19
-      <li><a href="https://forum.vuejs.org" target="_blank" rel="noopener">Forum</a></li>
20
-      <li><a href="https://chat.vuejs.org" target="_blank" rel="noopener">Community Chat</a></li>
21
-      <li><a href="https://twitter.com/vuejs" target="_blank" rel="noopener">Twitter</a></li>
22
-      <li><a href="https://news.vuejs.org" target="_blank" rel="noopener">News</a></li>
23
-    </ul>
24
-    <h3>Ecosystem</h3>
25
-    <ul>
26
-      <li><a href="https://router.vuejs.org" target="_blank" rel="noopener">vue-router</a></li>
27
-      <li><a href="https://vuex.vuejs.org" target="_blank" rel="noopener">vuex</a></li>
28
-      <li><a href="https://github.com/vuejs/vue-devtools#vue-devtools" target="_blank" rel="noopener">vue-devtools</a></li>
29
-      <li><a href="https://vue-loader.vuejs.org" target="_blank" rel="noopener">vue-loader</a></li>
30
-      <li><a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">awesome-vue</a></li>
31
-    </ul>
32
-  </div>
33
-</template>
34
-
35
-<script>
36
-export default {
37
-  name: 'HelloWorld',
38
-  props: {
39
-    msg: String
40
-  }
41
-}
42
-</script>
43
-
44
-<!-- Add "scoped" attribute to limit CSS to this component only -->
45
-<style scoped>
46
-h3 {
47
-  margin: 40px 0 0;
48
-}
49
-ul {
50
-  list-style-type: none;
51
-  padding: 0;
52
-}
53
-li {
54
-  display: inline-block;
55
-  margin: 0 10px;
56
-}
57
-a {
58
-  color: #42b983;
59
-}
60
-</style>

+ 135
- 0
src/components/Login.vue ファイルの表示

@@ -0,0 +1,135 @@
1
+<template>
2
+    <div class="bg">
3
+       <div class="welcome">
4
+           <img src="../assets/images/pt1.png" alt="">
5
+       </div>
6
+       <div class="box1">
7
+           <div class="input1" >用户名</div>
8
+           <div class="input2">密码</div>
9
+           <el-checkbox class="checkbox1">记住密码</el-checkbox>
10
+           <router-link class="login" to="./user">登录</router-link>
11
+            <p>
12
+           <span>还没有账号?<a>立即注册</a></span>
13
+       </p>
14
+       </div>
15
+       
16
+      
17
+    </div>
18
+</template>
19
+<script>
20
+export default {
21
+    data() {
22
+        return {}
23
+    }
24
+   
25
+}
26
+</script>
27
+<style scoped>
28
+a {
29
+    text-decoration: none;
30
+}
31
+.bg {
32
+    /* position: relative;
33
+    margin: 20px auto;
34
+    min-width:1280px;
35
+    background:url(../assets/images/bg1.png) no-repeat; */
36
+     position: fixed;
37
+            top: 0;
38
+            left: 0;
39
+            width: 100%;
40
+            height: 100%;
41
+            min-width: 800px;
42
+            z-index: -10;
43
+            zoom: 1;
44
+            background: url(../assets/images/bg1.png) no-repeat center 0;
45
+            background-color: #fff;
46
+            background-size: cover;
47
+            -webkit-background-size: cover;
48
+            -o-background-size: cover;
49
+             background-position: center 0; 
50
+    
51
+}
52
+.welcome {
53
+    width: 286px;
54
+    height: 30.5px;
55
+    position: absolute;
56
+    top: 203px;
57
+    left: 496px;
58
+}
59
+.box1 {
60
+    position: relative;
61
+    width: 434.5px;
62
+    height: 369px;
63
+    position: absolute;
64
+    top: 261px;
65
+    left: 422px;
66
+    background:url(../assets/images/2.png);
67
+    color: #5D5D5D;
68
+}
69
+.input1,.input2 {
70
+    position: relative;
71
+    box-sizing: border-box;
72
+    width: 368.5px;
73
+    height: 47px;
74
+    background-color: #fff;
75
+    position: absolute;
76
+    left: 33px;
77
+    line-height: 47px;
78
+    padding-left: 54.5px;
79
+    font-size: 15px;
80
+    
81
+}
82
+.input1 {
83
+    top: 54.5px;
84
+}
85
+.input1::before {
86
+    position:absolute;
87
+    top: 12.5px;
88
+    left: 19.5px;
89
+    content: "";
90
+    width: 24.95px;
91
+    height: 22px;
92
+    background:url(../assets/images/User.png);
93
+}
94
+.input2 {
95
+    top: 123px;
96
+}
97
+.input2::before {
98
+     position:absolute;
99
+    top: 12.5px;
100
+    left: 19.5px;
101
+    content: "";
102
+    width: 24.95px;
103
+    height: 22px; 
104
+    background:url(../assets/images/Key.png);
105
+}
106
+.checkbox1 {
107
+    position: absolute;
108
+    top: 200px;
109
+    left: 32.5px;
110
+}
111
+.login {
112
+    position: absolute;
113
+    top: 253px;
114
+    left: 33px;
115
+    display: block;
116
+    width: 369.5px;
117
+    height: 52.5px;
118
+    background-color:#529BFF;
119
+    text-align: center;
120
+    line-height: 52.5px;
121
+    font-size: 20px;
122
+    color: #fff;
123
+
124
+}
125
+.box1 p {
126
+    position: absolute;
127
+    bottom: 20px;
128
+    left: 31px;
129
+    font-size: 14px;
130
+
131
+}
132
+.box1 p a {
133
+    color: rgb(0, 153, 255)
134
+}
135
+</style>

+ 231
- 0
src/components/User.vue ファイルの表示

@@ -0,0 +1,231 @@
1
+<template>
2
+    <div class="box">
3
+        <div class="boxHead">
4
+            <div class="pic">
5
+              
6
+            </div>
7
+            <div class="logo"></div>
8
+            <div class="logoeng"></div>
9
+            <div class="user"></div>
10
+            <span class="name">你好</span>
11
+            <i class="el-icon-caret-bottom"></i>
12
+        </div>
13
+        <div class="boxBody">
14
+    <!-- 左侧菜单栏 -->
15
+    <div class="card1">
16
+        <el-menu
17
+      >
18
+      <el-submenu index="1">
19
+        <template slot="title">
20
+          <i class="el-icon-menu"></i>
21
+          <span class="text">基础信息</span>
22
+        </template>
23
+        <el-menu-item-group>
24
+          <el-menu-item index="1-1">班级管理</el-menu-item>
25
+          <el-menu-item index="1-2">学生管理</el-menu-item>
26
+          <el-menu-item index="1-3">教师管理</el-menu-item>
27
+        </el-menu-item-group>
28
+      </el-submenu>
29
+          </el-menu>
30
+        <el-menu
31
+      >
32
+      <el-submenu >
33
+        <template slot="title">
34
+          <i class="el-icon-receiving"></i>
35
+          <span class="text">试题库</span>
36
+        </template>
37
+      </el-submenu>
38
+          </el-menu>
39
+        <el-menu
40
+      >
41
+      <el-submenu>
42
+        <template slot="title">
43
+          <i class="el-icon-document"></i>
44
+          <span class="text">作业管理</span>
45
+        </template>
46
+       
47
+      </el-submenu>
48
+      <el-submenu >
49
+        <template slot="title">
50
+          <i class="el-icon-s-marketing"></i>
51
+          <span class="text">阶段学情</span>
52
+        </template>
53
+       
54
+      </el-submenu>
55
+          </el-menu>
56
+    </div>
57
+    <!-- 卡片视图 -->
58
+    <el-card class="card2">
59
+    <el-row :gutter="40" >
60
+        <el-col :span="4">
61
+        <el-checkbox label="未毕业" name="type" style="fontSize:7px"></el-checkbox>
62
+        </el-col>
63
+        <el-col :span="4" >
64
+        <el-checkbox label="已毕业" name="type"></el-checkbox>
65
+        </el-col>
66
+         <el-col :span="7">
67
+        <el-select v-model="value" placeholder="所属学科" size="mini" style="padding:0" >
68
+            <el-option >
69
+             </el-option>
70
+        </el-select>
71
+        </el-col>
72
+        <el-col :span="3">
73
+    <el-date-picker
74
+      type="date"
75
+      placeholder="选择日期" size="mini" style="width:60px">
76
+    </el-date-picker>
77
+        </el-col>
78
+        <el-col :span="2">
79
+            <el-button type="primary" size='mini'>搜索</el-button>
80
+        </el-col>
81
+        <!-- <el-col :span="2">
82
+            <el-button type="primary">添加</el-button>
83
+        </el-col> -->
84
+      </el-row>
85
+      <el-row>
86
+          <el-table border stripe style="fontSize:7px">
87
+        <el-table-column
88
+      type="selection"
89
+      width="40px">
90
+    </el-table-column>
91
+        <el-table-column label="序号" prop="" width="47px" ></el-table-column>
92
+        <el-table-column label="班级名称" prop="" width="75px"></el-table-column>
93
+        <el-table-column label="人数" prop="" width="60px"></el-table-column>
94
+        <el-table-column label="主负责人" prop="" width="80px"></el-table-column>
95
+        <el-table-column label="学科" prop="" width="60px"></el-table-column>
96
+        <el-table-column label="教师" prop="" width="50px"></el-table-column>
97
+        <el-table-column label="操作" prop="" width="50px">
98
+            <template>
99
+               
100
+            </template>
101
+        </el-table-column>
102
+          </el-table>
103
+      </el-row>
104
+      <!-- 分页区域-->
105
+       <el-pagination
106
+        background
107
+      :current-page="1"
108
+      :page-sizes="[100, 200, 300, 400]"
109
+      :page-size="1"
110
+      layout=" prev, pager, next,total,jumper"
111
+      :total="3">
112
+    </el-pagination>
113
+    </el-card>
114
+    </div>
115
+    </div>
116
+</template>
117
+<script >
118
+
119
+    
120
+</script>
121
+<style scoped>
122
+.pic {
123
+    position: absolute;
124
+    width: 22px;
125
+    height: 22px;
126
+    top: 7.8px;
127
+    left: 9px;
128
+    background-color: pink;
129
+   
130
+}
131
+.logo {
132
+    position: absolute;
133
+    width: 76px;
134
+    height: 13.5px;
135
+    top: 12.5px;
136
+    left: 43.5px;
137
+    background-color: pink;
138
+}
139
+.logoeng {
140
+   
141
+}
142
+.name {
143
+    position: absolute;
144
+    display: inline-block;
145
+    height: 9px;
146
+    line-height: 9px;
147
+    top: 19px;
148
+    left: 864px;
149
+    font-size: 9px;
150
+    color: #fff;
151
+}
152
+.boxHead i {
153
+    position: absolute;
154
+    top: 15px;
155
+    left: 921.5px;
156
+    color: #fff;
157
+}
158
+.user {
159
+    position: absolute;
160
+    top: 12px;
161
+    left: 835px;
162
+    width: 22px;
163
+    height: 22px;
164
+    border-radius: 50%;
165
+    background-color: pink;
166
+}
167
+.pic img {
168
+    width: 100%;
169
+  
170
+}
171
+.box {
172
+    position: relative;
173
+    background-color: #EEF2F8;
174
+    width: 960px;
175
+    height: 540px;
176
+    margin: 0 auto;
177
+}
178
+.boxHead {
179
+ width:960px;
180
+height:44px;
181
+background:rgba(82,155,255,1);
182
+}
183
+.boxBody {
184
+    margin: 10px auto 0;
185
+    width: 650px;
186
+    height: 441.5px;
187
+    
188
+
189
+}
190
+
191
+.card1 {
192
+    float: left;
193
+   overflow: hidden;
194
+    width: 123px;
195
+    height: 441.5px;
196
+    font-size: 7px;
197
+    background-color: #fff;
198
+    
199
+}
200
+.el-menu-item {
201
+    font-size: 7px;
202
+}
203
+
204
+.card2 {
205
+     float: right;
206
+width:503px;
207
+height:442px;
208
+background:rgba(255,255,255,1);
209
+
210
+}
211
+.el-menu {
212
+    border: none;
213
+    
214
+}
215
+.text {
216
+    font-size: 7px;
217
+}
218
+.card2 {
219
+    width: 503px;
220
+    height: 100%;
221
+}
222
+.el-table-column {
223
+    font-size: 7px!important;
224
+}
225
+.el-table {
226
+    margin-top: 10px;
227
+}
228
+.el-pagination {
229
+    margin-top: 10px;
230
+}
231
+</style>

+ 1
- 0
src/main.js ファイルの表示

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

+ 5
- 0
src/plugins/element.js ファイルの表示

@@ -0,0 +1,5 @@
1
+import Vue from 'vue'
2
+import Element from 'element-ui'
3
+import 'element-ui/lib/theme-chalk/index.css'
4
+
5
+Vue.use(Element)

+ 8
- 10
src/router/index.js ファイルの表示

@@ -1,22 +1,20 @@
1 1
 import Vue from 'vue'
2 2
 import VueRouter from 'vue-router'
3
-import Home from '../views/Home.vue'
3
+
4
+import Login from '../components/Login.vue'
5
+import User from '../components/User.vue'
4 6
 
5 7
 Vue.use(VueRouter)
6 8
 
7 9
 const routes = [
10
+  { path: '/', redirect: '/login' },
8 11
   {
9
-    path: '/',
10
-    name: 'home',
11
-    component: Home
12
+    path: '/login',
13
+    component: Login
12 14
   },
13 15
   {
14
-    path: '/about',
15
-    name: 'about',
16
-    // route level code-splitting
17
-    // this generates a separate chunk (about.[hash].js) for this route
18
-    // which is lazy-loaded when the route is visited.
19
-    component: () => import(/* webpackChunkName: "about" */ '../views/About.vue')
16
+    path: '/user',
17
+    component: User
20 18
   }
21 19
 ]
22 20
 

+ 3
- 0
vue.config.js ファイルの表示

@@ -0,0 +1,3 @@
1
+module.exports = {
2
+  lintOnSave: false
3
+}

読み込み中…
キャンセル
保存