xiaolin.mayu пре 5 година
родитељ
комит
818152d030

+ 124
- 0
package-lock.json Прегледај датотеку

@@ -1895,6 +1895,13 @@
1895 1895
       "integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
1896 1896
       "dev": true
1897 1897
     },
1898
+    "asap": {
1899
+      "version": "2.0.6",
1900
+      "resolved": "https://registry.npm.taobao.org/asap/download/asap-2.0.6.tgz",
1901
+      "integrity": "sha1-5QNHYR1+aQlDIIu9r+vLwvuGbUY=",
1902
+      "dev": true,
1903
+      "optional": true
1904
+    },
1898 1905
     "asn1": {
1899 1906
       "version": "0.2.4",
1900 1907
       "resolved": "https://registry.npm.taobao.org/asn1/download/asn1-0.2.4.tgz",
@@ -2036,6 +2043,48 @@
2036 2043
       "integrity": "sha1-8OAD2cqef1nHpQiUXXsu+aBKVC8=",
2037 2044
       "dev": true
2038 2045
     },
2046
+    "axios": {
2047
+      "version": "0.19.0",
2048
+      "resolved": "https://registry.npm.taobao.org/axios/download/axios-0.19.0.tgz",
2049
+      "integrity": "sha1-jgm/89kSLhM/e4EByPvdAO09Krg=",
2050
+      "dev": true,
2051
+      "requires": {
2052
+        "follow-redirects": "1.5.10",
2053
+        "is-buffer": "^2.0.2"
2054
+      },
2055
+      "dependencies": {
2056
+        "debug": {
2057
+          "version": "3.1.0",
2058
+          "resolved": "https://registry.npm.taobao.org/debug/download/debug-3.1.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fdebug%2Fdownload%2Fdebug-3.1.0.tgz",
2059
+          "integrity": "sha1-W7WgZyYotkFJVmuhaBnmFRjGcmE=",
2060
+          "dev": true,
2061
+          "requires": {
2062
+            "ms": "2.0.0"
2063
+          }
2064
+        },
2065
+        "follow-redirects": {
2066
+          "version": "1.5.10",
2067
+          "resolved": "https://registry.npm.taobao.org/follow-redirects/download/follow-redirects-1.5.10.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Ffollow-redirects%2Fdownload%2Ffollow-redirects-1.5.10.tgz",
2068
+          "integrity": "sha1-e3qfmuov3/NnhqlP9kPtB/T/Xio=",
2069
+          "dev": true,
2070
+          "requires": {
2071
+            "debug": "=3.1.0"
2072
+          }
2073
+        },
2074
+        "is-buffer": {
2075
+          "version": "2.0.4",
2076
+          "resolved": "https://registry.npm.taobao.org/is-buffer/download/is-buffer-2.0.4.tgz",
2077
+          "integrity": "sha1-PlcvI8hBGlz9lVfISeNmXgspBiM=",
2078
+          "dev": true
2079
+        },
2080
+        "ms": {
2081
+          "version": "2.0.0",
2082
+          "resolved": "https://registry.npm.taobao.org/ms/download/ms-2.0.0.tgz",
2083
+          "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=",
2084
+          "dev": true
2085
+        }
2086
+      }
2087
+    },
2039 2088
     "babel-eslint": {
2040 2089
       "version": "10.0.3",
2041 2090
       "resolved": "https://registry.npm.taobao.org/babel-eslint/download/babel-eslint-10.0.3.tgz",
@@ -6229,6 +6278,13 @@
6229 6278
       "integrity": "sha1-dQ49tYYgh7RzfrrIIH/9HvJ7Jfw=",
6230 6279
       "dev": true
6231 6280
     },
6281
+    "image-size": {
6282
+      "version": "0.5.5",
6283
+      "resolved": "https://registry.npm.taobao.org/image-size/download/image-size-0.5.5.tgz?cache=0&sync_timestamp=1569841076205&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fimage-size%2Fdownload%2Fimage-size-0.5.5.tgz",
6284
+      "integrity": "sha1-Cd/Uq50g4p6xw+gLiZA3jfnjy5w=",
6285
+      "dev": true,
6286
+      "optional": true
6287
+    },
6232 6288
     "import-cwd": {
6233 6289
       "version": "2.1.0",
6234 6290
       "resolved": "https://registry.npm.taobao.org/import-cwd/download/import-cwd-2.1.0.tgz",
@@ -6877,6 +6933,64 @@
6877 6933
         "invert-kv": "^2.0.0"
6878 6934
       }
6879 6935
     },
6936
+    "less": {
6937
+      "version": "3.10.3",
6938
+      "resolved": "https://registry.npm.taobao.org/less/download/less-3.10.3.tgz",
6939
+      "integrity": "sha1-QXoJddXu7MUs/0vPo8CdNXgeZ5I=",
6940
+      "dev": true,
6941
+      "requires": {
6942
+        "clone": "^2.1.2",
6943
+        "errno": "^0.1.1",
6944
+        "graceful-fs": "^4.1.2",
6945
+        "image-size": "~0.5.0",
6946
+        "mime": "^1.4.1",
6947
+        "mkdirp": "^0.5.0",
6948
+        "promise": "^7.1.1",
6949
+        "request": "^2.83.0",
6950
+        "source-map": "~0.6.0"
6951
+      },
6952
+      "dependencies": {
6953
+        "clone": {
6954
+          "version": "2.1.2",
6955
+          "resolved": "https://registry.npm.taobao.org/clone/download/clone-2.1.2.tgz",
6956
+          "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=",
6957
+          "dev": true
6958
+        },
6959
+        "mime": {
6960
+          "version": "1.6.0",
6961
+          "resolved": "https://registry.npm.taobao.org/mime/download/mime-1.6.0.tgz",
6962
+          "integrity": "sha1-Ms2eXGRVO9WNGaVor0Uqz/BJgbE=",
6963
+          "dev": true,
6964
+          "optional": true
6965
+        },
6966
+        "source-map": {
6967
+          "version": "0.6.1",
6968
+          "resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
6969
+          "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
6970
+          "dev": true,
6971
+          "optional": true
6972
+        }
6973
+      }
6974
+    },
6975
+    "less-loader": {
6976
+      "version": "5.0.0",
6977
+      "resolved": "https://registry.npm.taobao.org/less-loader/download/less-loader-5.0.0.tgz",
6978
+      "integrity": "sha1-SY3eOmxsT4h0WO6e0/CGoSrRtGY=",
6979
+      "dev": true,
6980
+      "requires": {
6981
+        "clone": "^2.1.1",
6982
+        "loader-utils": "^1.1.0",
6983
+        "pify": "^4.0.1"
6984
+      },
6985
+      "dependencies": {
6986
+        "clone": {
6987
+          "version": "2.1.2",
6988
+          "resolved": "https://registry.npm.taobao.org/clone/download/clone-2.1.2.tgz",
6989
+          "integrity": "sha1-G39Ln1kfHo+DZwQBYANFoCiHQ18=",
6990
+          "dev": true
6991
+        }
6992
+      }
6993
+    },
6880 6994
     "levn": {
6881 6995
       "version": "0.3.0",
6882 6996
       "resolved": "https://registry.npm.taobao.org/levn/download/levn-0.3.0.tgz",
@@ -8801,6 +8915,16 @@
8801 8915
       "integrity": "sha1-foz42PW48jnBvGi+tOt4Vn1XLvg=",
8802 8916
       "dev": true
8803 8917
     },
8918
+    "promise": {
8919
+      "version": "7.3.1",
8920
+      "resolved": "https://registry.npm.taobao.org/promise/download/promise-7.3.1.tgz",
8921
+      "integrity": "sha1-BktyYCsY+Q8pGSuLG8QY/9Hr078=",
8922
+      "dev": true,
8923
+      "optional": true,
8924
+      "requires": {
8925
+        "asap": "~2.0.3"
8926
+      }
8927
+    },
8804 8928
     "promise-inflight": {
8805 8929
       "version": "1.0.1",
8806 8930
       "resolved": "https://registry.npm.taobao.org/promise-inflight/download/promise-inflight-1.0.1.tgz",

+ 3
- 0
package.json Прегледај датотеку

@@ -21,9 +21,12 @@
21 21
     "@vue/cli-plugin-vuex": "^4.0.0",
22 22
     "@vue/cli-service": "^4.0.0",
23 23
     "@vue/eslint-config-standard": "^4.0.0",
24
+    "axios": "^0.19.0",
24 25
     "babel-eslint": "^10.0.3",
25 26
     "eslint": "^5.16.0",
26 27
     "eslint-plugin-vue": "^5.0.0",
28
+    "less": "^3.10.3",
29
+    "less-loader": "^5.0.0",
27 30
     "vue-cli-plugin-element": "^1.0.1",
28 31
     "vue-template-compiler": "^2.6.10"
29 32
   }

+ 53
- 0
src/1.json Прегледај датотеку

@@ -0,0 +1,53 @@
1
+[{
2
+        "id": "1",
3
+        "loginName": "南湖",
4
+        "studentName": "南湖",
5
+        "birth": "1290-2-2",
6
+        "parentName": "南湖恺",
7
+        "num": "234",
8
+        "tel": "456",
9
+        "idNum": "123"
10
+
11
+    },
12
+    {
13
+        "id": "2",
14
+        "loginName": "南湖",
15
+        "studentName": "南湖",
16
+        "birth": "1290-2-2",
17
+        "parentName": "南湖恺",
18
+        "num": "234",
19
+        "tel": "456",
20
+        "idNum": "123"
21
+    },
22
+    {
23
+        "id": "3",
24
+        "loginName": "南湖",
25
+        "studentName": "南湖",
26
+        "birth": "1290-2-2",
27
+        "parentName": "南湖恺",
28
+        "num": "234",
29
+        "tel": "456",
30
+        "idNum": "123"
31
+
32
+    },
33
+    {
34
+        "id": "4",
35
+        "loginName": "南湖",
36
+        "studentName": "南湖",
37
+        "birth": "1290-2-2",
38
+        "parentName": "南湖恺",
39
+        "num": "234",
40
+        "tel": "456",
41
+        "idNum": "123"
42
+    },
43
+    {
44
+        "id": "5",
45
+        "loginName": "南湖",
46
+        "studentName": "南湖",
47
+        "birth": "1290-2-2",
48
+        "parentName": "南湖恺",
49
+        "num": "234",
50
+        "tel": "456",
51
+        "idNum": "123"
52
+    }
53
+]

+ 9
- 1
src/assets/css/gobal.css Прегледај датотеку

@@ -1,6 +1,6 @@
1 1
 a {
2 2
     text-decoration: none;
3
-    ;
3
+    color: #529BFF;
4 4
 }
5 5
 
6 6
 html,
@@ -13,4 +13,12 @@ body {
13 13
 .tabEdit .el-input__inner {
14 14
     border-radius: 0;
15 15
     border: transparent;
16
+}
17
+
18
+.headf .el-icon-arrow-down:before {
19
+    content: ""
20
+}
21
+
22
+.headf .el-menu--horizontal>.el-submenu .el-submenu__title {
23
+    line-height: 53px;
16 24
 }

+ 0
- 1
src/components/Base.vue Прегледај датотеку

@@ -4,7 +4,6 @@
4 4
             <div class="mainTop">
5 5
                <el-checkbox >未结课</el-checkbox>
6 6
                 <span class="check"><el-checkbox >已结课</el-checkbox></span>
7
-                
8 7
                 <el-select placeholder="所属学科">
9 8
                 <el-option > </el-option>
10 9
                 </el-select>

+ 62
- 16
src/components/Home.vue Прегледај датотеку

@@ -2,7 +2,7 @@
2 2
     <div class="all">
3 3
         <!-- 头部区域上-->
4 4
     <div class="head">
5
-        <div class="logo"></div>
5
+        <div class="logo">AI升学测评分析平台</div>
6 6
         <div class="headRight">
7 7
             <i class="ico"></i> |
8 8
             <span class="photo"></span>
@@ -13,25 +13,57 @@
13 13
         <!-- 头部菜单栏 -->
14 14
         <div class="headf">
15 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>
16
+        <el-submenu index="1">
17
+            <template slot="title">
18
+              <i class="el-icon-menu"></i>
19
+              <span>基础信息</span>
20
+            </template>
21
+             <el-menu-item-group>
22
+              <el-menu-item index="1-1" @click='clickStu' >学生管理</el-menu-item>
23
+              <el-menu-item index="1-2" @click='clickTea'>教师管理</el-menu-item>
24
+            </el-menu-item-group>
25
+        </el-submenu>
26
+        <el-submenu index="2">
27
+            <template slot="title">
28
+              <i class="el-icon-menu"></i>
29
+              <span>试题库</span>
30
+            </template>
31
+             <el-menu-item-group>
32
+            
33
+            </el-menu-item-group>
34
+        </el-submenu>
35
+        <el-submenu index="3">
36
+            <template slot="title">
37
+              <i class="el-icon-menu"></i>
38
+              <span>作业管理</span>
39
+            </template>
40
+             <el-menu-item-group>
41
+              
42
+            </el-menu-item-group>
43
+        </el-submenu>
44
+        <el-submenu index="4">
45
+            <template slot="title">
46
+              <i class="el-icon-menu"></i>
47
+              <span>学情报告</span>
48
+            </template>
49
+             <el-menu-item-group>
50
+                 <el-menu-item index="1-2" @click='clickRep'>学情分析</el-menu-item>
51
+            </el-menu-item-group>
52
+        </el-submenu>
20 53
            </el-menu>
21 54
         </div>
22 55
 
23 56
         <!-- 视图体区 -->
57
+        <div class="banxin">
24 58
         <el-card class="con">
25 59
             <router-view></router-view>
26 60
         </el-card>
27
-
28 61
         <div class="footer"><p>copyright@2013-2019 All Right</p></div>
29
-      
62
+        </div>
30 63
     </div>
31 64
 </template>
32 65
 <script>
33 66
 export default {
34
-    
35 67
     data(){
36 68
        return {
37 69
 
@@ -40,6 +72,15 @@ export default {
40 72
     methods:{
41 73
         logout(){
42 74
             this.$router.push('/login')
75
+        },
76
+        clickTea(){
77
+            this.$router.push('/teacher')
78
+        },
79
+        clickStu(){
80
+            this.$router.push('/student')
81
+        },
82
+        clickRep(){
83
+            this.$router.push('/report')
43 84
         }
44 85
     }
45 86
 }
@@ -51,14 +92,17 @@ export default {
51 92
     width: 100%;
52 93
     height: 68px;
53 94
     background-color: #529BFF;
54
-line-height: 68px;
55
-color: #fff;
95
+    line-height: 68px;
96
+    color: #fff;
56 97
 }
57 98
 .logo {
99
+    font-size:16px;
58 100
     float: left;
59
-    width: 300px;
101
+    width: 20%;
102
+    line-height:40px;
103
+    font-weight: 900;
60 104
     height: 40px;
61
-    background-color: pink;
105
+    /* background-color: pink; */
62 106
     margin-left: 10px;
63 107
    margin-top: 15px;
64 108
 }
@@ -90,6 +134,7 @@ font-size: 12px;
90 134
     margin-right: 15px;
91 135
 }
92 136
 .headf {
137
+    overflow: hidden;
93 138
     height: 52px;
94 139
     width: 100%;
95 140
     background-color: #fff;
@@ -112,10 +157,12 @@ font-size: 12px;
112 157
     line-height: 52px;
113 158
 }
114 159
 /* 主体区 */
160
+
115 161
 .con{
116 162
     margin:15px auto 0;
117 163
     width: 1200px;
118
-    height: 100%;
164
+    min-width: 800px;
165
+    height: 410px;
119 166
     background-color: #fff;
120 167
     
121 168
 }
@@ -124,12 +171,11 @@ font-size: 12px;
124 171
 }
125 172
 .footer {
126 173
     color: #B1B9CF;
127
-   position: absolute;
128
-   bottom: -80px;
174
+   position: fixed;
175
+  bottom: 10px;;
129 176
    left: 50%;
130 177
    transform: translateX(-50%)
131 178
 
132
-
133 179
 }
134 180
 
135 181
 

+ 168
- 0
src/components/message/Student.vue Прегледај датотеку

@@ -0,0 +1,168 @@
1
+<template>
2
+    <div>
3
+        <!--头部区域 -->
4
+        <div class="studentTop">
5
+        <el-input size="mini" placeholder="输入学生姓名、登录名、身份证号码进行查询"></el-input>
6
+        <el-button type="primary" size="mini">搜索</el-button>
7
+        <el-button  size="mini">导入</el-button>
8
+        <el-button  size="mini">导出</el-button>
9
+        <el-button type="primary" size="mini" class="addStu">添加</el-button>
10
+        </div>
11
+        <!-- 表格区域 -->
12
+        <div class="stuTab">
13
+             <el-table
14
+    :data="tableData1.slice((currentPage-1)*pagesize,currentPage*pagesize)"
15
+    border
16
+    style="width: 100%"
17
+    :header-cell-style="{background:'#FAFAFA'}">
18
+     <el-table-column
19
+     align="center"
20
+      type="selection"
21
+     >
22
+    </el-table-column>
23
+    <el-table-column
24
+    align="center"
25
+      prop="id"
26
+      label="序号"
27
+      width="">{{id}}
28
+    </el-table-column>
29
+    <el-table-column
30
+    align="center"
31
+      prop="loginName"
32
+      label="登录名"
33
+      width="">{{leader}}
34
+    </el-table-column>
35
+    <el-table-column
36
+    align="center"
37
+      prop="studentName"
38
+      label="学生姓名"
39
+      >
40
+    </el-table-column>
41
+    <el-table-column
42
+    align="center"
43
+      prop="birth"
44
+      label="出生日期"
45
+      width="180">
46
+    </el-table-column>
47
+    <el-table-column
48
+    align="center"
49
+      prop="num"
50
+      label="班级数量">
51
+    </el-table-column>
52
+    <el-table-column
53
+    align="center"
54
+      prop="tel"
55
+      label="手机号">
56
+    </el-table-column>
57
+    <el-table-column
58
+    align="center"
59
+      prop="idNum"
60
+      label="身份证号码">
61
+    </el-table-column>
62
+    <el-table-column
63
+    align="center"
64
+      label="操作"
65
+      width="180">
66
+      <template>
67
+          <router-link class="studentEdit" to="" ><span>查看</span> | 修改 </router-link> |
68
+          <a href="#" class="studentDelet">删除</a>
69
+      </template>
70
+    </el-table-column>
71
+    
72
+     </el-table>
73
+     <!-- 分页功能 -->
74
+     <div class="fenPage">
75
+      <el-pagination
76
+        @size-change="handleSizeChange"
77
+        @current-change="handleCurrentChange"
78
+        :current-page="currentPage"
79
+        :page-sizes="[1,2,3,5]"
80
+        :page-size="pagesize"
81
+        layout="total, sizes, prev, pager, next, jumper"
82
+        :total="total"
83
+      ></el-pagination>
84
+      </div>
85
+     </div>
86
+    </div>
87
+</template>
88
+<script>
89
+//导入数据
90
+const Data=require('../../1.json')
91
+export default {
92
+    data(){
93
+        return {
94
+            currentPage:1,
95
+            pagesize:5,
96
+            tableData1: [
97
+        //  { id: '1',
98
+        //   loginName: '第一期',
99
+        //   studentName: 56,
100
+        //   parentName:'南湖恺',
101
+        //   birth:'数学',
102
+        //   num:'123',
103
+        //   tel:'123',
104
+        //   idNum:'123'}
105
+        ],
106
+       total:6
107
+        }
108
+    },
109
+    created(){
110
+      this.add()
111
+    },
112
+    methods:{
113
+      
114
+    //获取数据
115
+    add(){
116
+      this.tableData1=Data
117
+      this.total=this.tableData1.length
118
+      console.log(this.tableData1)
119
+    },
120
+    
121
+  //监听每页的条数变化
122
+    handleSizeChange(size) {
123
+      this.pagesize = size
124
+     this.add()
125
+    },
126
+    //监听当前页的变化
127
+    handleCurrentChange(currentPage) {
128
+      this.currentPage = currentPage
129
+      this.add()
130
+    },
131
+    }
132
+    
133
+      
134
+}
135
+</script>
136
+<style scoped lang="less">
137
+.studentTop {
138
+    position: relative;
139
+    margin-bottom: 20px;
140
+    .el-input {
141
+    width: 27%;
142
+    margin:0 10px;
143
+    }
144
+    .addStu {
145
+      position: absolute;
146
+      top: 0;
147
+      right: 0;
148
+    
149
+    }
150
+}
151
+.stuTab{
152
+     span {
153
+         color: #529BFF;
154
+     }
155
+     .studentDelet {
156
+         color: #EE443E;
157
+     }
158
+     
159
+}
160
+.fenPage {
161
+  margin-top: 10px;
162
+  display: flex;
163
+  justify-content: flex-end;
164
+}
165
+
166
+
167
+
168
+</style>

+ 124
- 0
src/components/message/Teacher.vue Прегледај датотеку

@@ -0,0 +1,124 @@
1
+<template>
2
+    <div>
3
+        <!--头部区域 -->
4
+        <div class="teacherTop">
5
+         <el-select placeholder="所属学科">
6
+           <el-option > </el-option>
7
+        </el-select>
8
+        <el-input  placeholder="输入名字或登录名查询"></el-input>
9
+        <el-button type="primary" size="mini">搜索</el-button>
10
+        <el-button  size="mini">导入</el-button>
11
+        <el-button  size="mini">导出</el-button>
12
+        <el-button type="primary" size="mini" class="addTea">添加</el-button>
13
+        </div>
14
+        <!-- 表格区域 -->
15
+        <div class="teaTab">
16
+             <el-table
17
+    :data="tableData"
18
+    border
19
+    style="width: 100%"
20
+    :header-cell-style="{background:'#FAFAFA'}">
21
+     <el-table-column
22
+     align="center"
23
+      type="selection"
24
+
25
+     >
26
+    </el-table-column>
27
+    <el-table-column
28
+    align="center"
29
+      prop="id"
30
+      label="序号"
31
+      width="">
32
+    </el-table-column>
33
+    <el-table-column
34
+    align="center"
35
+      prop="loginName"
36
+      label="登录名"
37
+      width="">
38
+    </el-table-column>
39
+    <el-table-column
40
+    align="center"
41
+      prop="teacherName"
42
+      label="教师姓名"
43
+      >
44
+    </el-table-column>
45
+    <el-table-column
46
+    align="center"
47
+      prop="birth"
48
+      label="出生日期"
49
+      width="180">
50
+    </el-table-column>
51
+    <el-table-column
52
+    align="center"
53
+      prop="gender"
54
+      label="性别">
55
+    </el-table-column>
56
+    <el-table-column
57
+    align="center"
58
+      prop="tel"
59
+      label="手机号">
60
+    </el-table-column>
61
+    <el-table-column
62
+    align="center"
63
+      prop="object"
64
+      label="科目">
65
+    </el-table-column>
66
+    <el-table-column
67
+    align="center"
68
+      label="操作"
69
+      width="180">
70
+      <template>
71
+          <router-link class="teacherEdit" to="/read" ><span>查看</span> | 修改 </router-link> |
72
+          <a href="#" class="teacherDelet">删除</a>
73
+      </template>
74
+    </el-table-column>
75
+     </el-table>
76
+     </div>
77
+    </div>
78
+</template>
79
+<script>
80
+export default {
81
+    data(){
82
+        return {
83
+            tableData: [{
84
+          id: '1',
85
+          loginName: '第一期',
86
+          teacherName: 56,
87
+          parentName:'南湖恺',
88
+          birth:'数学',
89
+          gender:'123',
90
+          tel:'123',
91
+          object:'数学'
92
+        }]
93
+        }
94
+    }
95
+}
96
+</script>
97
+<style scoped lang="less">
98
+.teacherTop {
99
+    margin-bottom: 20px;
100
+    .el-select {
101
+        width: 12%;
102
+    };
103
+    .el-input {
104
+    width: 17%;
105
+    margin:0 10px;
106
+    }
107
+    .addTea {
108
+        margin-left:530px; 
109
+    }
110
+}
111
+.teaTab{
112
+    
113
+     span {
114
+         color: #529BFF;
115
+     }
116
+     .teacherDelet {
117
+         color: #EE443E;
118
+     }
119
+     
120
+}
121
+
122
+
123
+
124
+</style>

+ 167
- 0
src/components/report/Person.vue Прегледај датотеку

@@ -0,0 +1,167 @@
1
+<template>
2
+<!-- 个人学习报告页 -->
3
+<!-- 报告头部 -->
4
+<div>
5
+   <div class="personTop">
6
+       <div>
7
+        <span class="photo"></span>
8
+        <span>南华凯</span>
9
+        </div>
10
+        <span class="personBack">返回</span>
11
+   </div>
12
+    <div class="topNav">
13
+        <span class="topCon">
14
+        <a><i class="el-icon-document"></i>
15
+        <span>单次学情</span></a>
16
+        <a><i class="el-icon-document"></i>
17
+        <span>阶段学情</span></a>
18
+        </span>
19
+     </div>
20
+     <!-- 表格区域 -->
21
+     <div class="personMain">
22
+         <el-card>
23
+             
24
+         <div class="reportTop"><a href="#">南华凯个人作业报告</a>
25
+         <sapn class="personRight">
26
+             <el-input v-model="input" placeholder="请输入内容" ></el-input>
27
+             <el-button type="primary" size="mini">搜索</el-button>
28
+             </sapn></div>
29
+<el-table
30
+    :header-cell-style="{background:'#FAFAFA'}"
31
+    :data="tableData"
32
+    border
33
+    style="width: 100%">
34
+    <el-table-column
35
+    align="center"
36
+      prop="id"
37
+      label="序号"
38
+      width="180">
39
+    </el-table-column>
40
+    <el-table-column
41
+    align="center"
42
+      prop="HomeworkName"
43
+      label="作业名称"
44
+      width="280">
45
+    </el-table-column>
46
+    <el-table-column
47
+    align="center"
48
+      prop="object"
49
+      label="科目">
50
+    </el-table-column>
51
+    <el-table-column
52
+    align="center"
53
+      prop="riqi"
54
+      label="作业日期">
55
+    </el-table-column>
56
+    <el-table-column
57
+    align="center"
58
+      label="操作">
59
+      <template><a href="#">查看</a></template>
60
+    </el-table-column>
61
+ </el-table>
62
+ <!-- 分页 -->
63
+ <div class="reportPag">
64
+         <el-button>上一页</el-button>
65
+         <div class="fenye"><span>1</span>/<span>5</span></div>
66
+            <el-button>下一页</el-button>
67
+  </div>
68
+ </el-card>
69
+     </div>
70
+     </div>
71
+</template>
72
+<script>
73
+export default {
74
+    data(){
75
+        return{
76
+            tableData:[{
77
+            id: '1',
78
+          HomeworkName: '201910月第一期',
79
+          object: '数学',
80
+          riqi:'2019-9-9',
81
+          object:'数学'
82
+         
83
+            }]
84
+        }
85
+    }
86
+}
87
+</script>
88
+<style lang="less" scoped>
89
+.personTop {
90
+    display: flex;
91
+    justify-content: space-between;
92
+    height: 60px;
93
+    background-color: #529BFF;
94
+    color: #fff;
95
+    .photo {
96
+    display: inline-block;
97
+    vertical-align: middle;
98
+    width: 42px;
99
+    height: 42px;
100
+    background-color: pink;
101
+    margin: 7px;
102
+    border-radius: 50%;
103
+    }
104
+    .personBack {
105
+       line-height: 60px;
106
+       margin-right: 20px;
107
+    }
108
+}
109
+.topNav {
110
+    display: flex;
111
+    justify-content: center;
112
+    align-items: center;
113
+        height: 50px;
114
+        background-color:#fff;
115
+        line-height: 50px;
116
+        margin: 0 auto;
117
+        a{
118
+            color: #414141;
119
+            margin-left: 70px;
120
+        }
121
+        span {
122
+            padding: 5px;
123
+        }
124
+        // a:hover{
125
+        //     color: #529BFF;
126
+        // }
127
+
128
+    }
129
+    .personMain {
130
+        width: 1200px;
131
+        margin: 10px auto;
132
+    }
133
+
134
+.reportPag {
135
+        position: relative;
136
+       display: flex;
137
+       justify-content: flex-end;
138
+       margin-top: 15px;
139
+      .fenye {
140
+          font-size: 14px;
141
+          position: absolute;
142
+          top: 10px;
143
+          right:105px;
144
+      }
145
+      .el-button {
146
+          margin: 0 15px;
147
+      }
148
+    }
149
+    .reportTop {
150
+        margin-bottom: 20px;
151
+         display: flex;
152
+        justify-content: space-between;
153
+        align-content: center;
154
+         .personRight {
155
+        .el-input {
156
+            width: 60%;
157
+        }
158
+        .el-button {
159
+            margin-left: 20px;
160
+        }
161
+    }
162
+    }
163
+   
164
+
165
+
166
+ 
167
+</style>

+ 126
- 0
src/components/report/Report.vue Прегледај датотеку

@@ -0,0 +1,126 @@
1
+<template>
2
+    <div >
3
+        <div class="reportTop">
4
+         <el-input size="mini" placeholder="输入学生姓名、登录名、身份证号码进行查询"></el-input>
5
+        <el-button type="primary" size="mini" @click="Person">搜索</el-button>
6
+        </div>
7
+<!-- 表格区域 -->
8
+    <div class="reportTab">
9
+          <el-table
10
+    :data="tableData"
11
+    border
12
+    style="width: 100%"
13
+    :header-cell-style="{background:'#FAFAFA'}">
14
+     <el-table-column
15
+     align="center"
16
+      type="selection"
17
+     >
18
+    </el-table-column>
19
+    <el-table-column
20
+    align="center"
21
+      prop="id"
22
+      label="序号"
23
+      width="">
24
+    </el-table-column>
25
+    <el-table-column
26
+    align="center"
27
+      prop="loginName"
28
+      label="登录名"
29
+      width="">
30
+    </el-table-column>
31
+    <el-table-column
32
+    align="center"
33
+      prop="studentName"
34
+      label="学生姓名"
35
+      >
36
+    </el-table-column>
37
+    <el-table-column
38
+    align="center"
39
+      prop="birth"
40
+      label="出生日期"
41
+      width="180">
42
+    </el-table-column>
43
+    
44
+    <el-table-column
45
+    align="center"
46
+      prop="parentTel"
47
+      label="家长手机">
48
+    </el-table-column>
49
+    <el-table-column
50
+    align="center"
51
+      prop="studentTel"
52
+      label="学生手机">
53
+    </el-table-column>
54
+    <el-table-column
55
+    align="center"
56
+      prop="idNum"
57
+      label="身份证号码">
58
+    </el-table-column>
59
+    <el-table-column
60
+    align="center"
61
+      label="操作"
62
+      width="180">
63
+      <template>
64
+          <router-link class="studentEdit" to="" ><span>查看</span> </router-link>
65
+      </template>
66
+    </el-table-column>
67
+     </el-table>
68
+     </div>
69
+     <!-- 分页区域 -->
70
+     <div class="reportPag">
71
+         <el-button>上一页</el-button>
72
+         <div class="fenye"><span>1</span>/<span>5</span></div>
73
+         <el-button>下一页</el-button>
74
+     </div>
75
+    </div>
76
+
77
+</template>
78
+<script>
79
+export default {
80
+    data(){
81
+        return{
82
+            tableData: [{
83
+          id: '1',
84
+          loginName: '第一期',
85
+          studentName: 56,
86
+          birth:'2019-9-9',
87
+          parentTel:'156',
88
+          studentTel:'123',
89
+          idNum:'123',
90
+          
91
+        }]
92
+        }
93
+    },
94
+    methods:{
95
+       Person(){
96
+           this.$router.push('/person')
97
+       }
98
+    }
99
+}
100
+</script>
101
+<style lang="less" scoped>
102
+    .reportTop {
103
+        margin-bottom: 20px;
104
+        .el-input {
105
+            width: 25%;
106
+            margin-right: 20px;
107
+        }
108
+    }
109
+    .reportPag {
110
+        position: relative;
111
+       display: flex;
112
+       justify-content: flex-end;
113
+       margin-top: 15px;
114
+      .fenye {
115
+          font-size: 14px;
116
+          position: absolute;
117
+          top: 10px;
118
+          right:105px;
119
+      }
120
+      .el-button {
121
+          margin: 0 15px;
122
+      }
123
+    }
124
+    
125
+
126
+</style>

+ 7
- 4
src/main.js Прегледај датотеку

@@ -7,8 +7,11 @@ import './assets/css/gobal.css'
7 7
 
8 8
 Vue.config.productionTip = false
9 9
 
10
+import axios from 'axios'
11
+// Vue.prototype.$http = axios
12
+
10 13
 new Vue({
11
-  router,
12
-  store,
13
-  render: h => h(App)
14
-}).$mount('#app')
14
+    router,
15
+    store,
16
+    render: h => h(App)
17
+}).$mount('#app')

+ 19
- 1
src/router/index.js Прегледај датотеку

@@ -7,6 +7,10 @@ import Home from '../components/Home.vue'
7 7
 import Base from '../components/Base.vue'
8 8
 import Read from '../components/message/Read.vue'
9 9
 import editMessage from '../components/message/EditMessage.vue'
10
+import Teacher from '../components/message/Teacher.vue'
11
+import Student from '../components/message/Student.vue'
12
+import Report from '../components/report/Report.vue'
13
+import Person from '../components/report/Person.vue'
10 14
 
11 15
 Vue.use(VueRouter)
12 16
 
@@ -33,8 +37,22 @@ const routes = [
33 37
         }, {
34 38
             path: '/editMessage',
35 39
             component: editMessage
40
+        }, {
41
+            path: '/teacher',
42
+            component: Teacher
43
+        }, {
44
+            path: '/student',
45
+            component: Student
46
+        }, {
47
+            path: '/report',
48
+            component: Report
36 49
         }]
37
-    }
50
+    },
51
+    {
52
+        path: '/person',
53
+        component: Person
54
+    },
55
+
38 56
 ]
39 57
 
40 58
 const router = new VueRouter({

+ 0
- 5
src/views/About.vue Прегледај датотеку

@@ -1,5 +0,0 @@
1
-<template>
2
-  <div class="about">
3
-    <h1>This is an about page</h1>
4
-  </div>
5
-</template>

+ 0
- 18
src/views/Home.vue Прегледај датотеку

@@ -1,18 +0,0 @@
1
-<template>
2
-  <div class="home">
3
-    <img alt="Vue logo" src="../assets/logo.png">
4
-    <HelloWorld msg="Welcome to Your Vue.js App"/>
5
-  </div>
6
-</template>
7
-
8
-<script>
9
-// @ is an alias to /src
10
-import HelloWorld from '@/components/HelloWorld.vue'
11
-
12
-export default {
13
-  name: 'home',
14
-  components: {
15
-    HelloWorld
16
-  }
17
-}
18
-</script>

+ 0
- 0
src/views/demo/1.vue Прегледај датотеку


+ 0
- 0
src/views/demo/index.vue Прегледај датотеку


Loading…
Откажи
Сачувај