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

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

@@ -3390,6 +3390,26 @@
3390 3390
         "randomfill": "^1.0.3"
3391 3391
       }
3392 3392
     },
3393
+    "css": {
3394
+      "version": "2.2.4",
3395
+      "resolved": "https://registry.npm.taobao.org/css/download/css-2.2.4.tgz",
3396
+      "integrity": "sha1-xkZ1XHOXHyu6amAeLPL9cbEpiSk=",
3397
+      "dev": true,
3398
+      "requires": {
3399
+        "inherits": "^2.0.3",
3400
+        "source-map": "^0.6.1",
3401
+        "source-map-resolve": "^0.5.2",
3402
+        "urix": "^0.1.0"
3403
+      },
3404
+      "dependencies": {
3405
+        "source-map": {
3406
+          "version": "0.6.1",
3407
+          "resolved": "https://registry.npm.taobao.org/source-map/download/source-map-0.6.1.tgz",
3408
+          "integrity": "sha1-dHIq8y6WFOnCh6jQu95IteLxomM=",
3409
+          "dev": true
3410
+        }
3411
+      }
3412
+    },
3393 3413
     "css-color-names": {
3394 3414
       "version": "0.0.4",
3395 3415
       "resolved": "https://registry.npm.taobao.org/css-color-names/download/css-color-names-0.0.4.tgz",
@@ -4083,6 +4103,14 @@
4083 4103
         "safer-buffer": "^2.1.0"
4084 4104
       }
4085 4105
     },
4106
+    "echarts": {
4107
+      "version": "4.4.0",
4108
+      "resolved": "https://registry.npm.taobao.org/echarts/download/echarts-4.4.0.tgz",
4109
+      "integrity": "sha1-1SYFZs7wuY9aALrxtQEOksHCNmE=",
4110
+      "requires": {
4111
+        "zrender": "4.1.1"
4112
+      }
4113
+    },
4086 4114
     "ee-first": {
4087 4115
       "version": "1.1.1",
4088 4116
       "resolved": "https://registry.npm.taobao.org/ee-first/download/ee-first-1.1.1.tgz",
@@ -7001,6 +7029,11 @@
7001 7029
         "type-check": "~0.3.2"
7002 7030
       }
7003 7031
     },
7032
+    "lib-flexible": {
7033
+      "version": "0.3.2",
7034
+      "resolved": "https://registry.npm.taobao.org/lib-flexible/download/lib-flexible-0.3.2.tgz",
7035
+      "integrity": "sha1-BvWnSDIxSi01wSA5vJw8otrqpCY="
7036
+    },
7004 7037
     "lines-and-columns": {
7005 7038
       "version": "1.1.6",
7006 7039
       "resolved": "https://registry.npm.taobao.org/lines-and-columns/download/lines-and-columns-1.1.6.tgz",
@@ -7629,6 +7662,12 @@
7629 7662
         "to-regex": "^3.0.1"
7630 7663
       }
7631 7664
     },
7665
+    "natives": {
7666
+      "version": "1.1.6",
7667
+      "resolved": "https://registry.npm.taobao.org/natives/download/natives-1.1.6.tgz",
7668
+      "integrity": "sha1-pgO0pJirdxc2ErnqGs3sTZgPALs=",
7669
+      "dev": true
7670
+    },
7632 7671
     "natural-compare": {
7633 7672
       "version": "1.4.0",
7634 7673
       "resolved": "https://registry.npm.taobao.org/natural-compare/download/natural-compare-1.4.0.tgz",
@@ -9012,6 +9051,124 @@
9012 9051
       "integrity": "sha1-tYsBCsQMIsVldhbI0sLALHv0eew=",
9013 9052
       "dev": true
9014 9053
     },
9054
+    "px2rem": {
9055
+      "version": "0.5.0",
9056
+      "resolved": "https://registry.npm.taobao.org/px2rem/download/px2rem-0.5.0.tgz",
9057
+      "integrity": "sha1-JLOmz3TRSttO13byB4cdmJPkEOI=",
9058
+      "dev": true,
9059
+      "requires": {
9060
+        "chalk": "~0.5.1",
9061
+        "commander": "~2.6.0",
9062
+        "css": "~2.2.0",
9063
+        "extend": "~3.0.0",
9064
+        "fs-extra": "~0.16.3"
9065
+      },
9066
+      "dependencies": {
9067
+        "ansi-regex": {
9068
+          "version": "0.2.1",
9069
+          "resolved": "https://registry.npm.taobao.org/ansi-regex/download/ansi-regex-0.2.1.tgz",
9070
+          "integrity": "sha1-DY6UaWej2BQ/k+JOKYUl/BsiNfk=",
9071
+          "dev": true
9072
+        },
9073
+        "ansi-styles": {
9074
+          "version": "1.1.0",
9075
+          "resolved": "https://registry.npm.taobao.org/ansi-styles/download/ansi-styles-1.1.0.tgz?cache=0&sync_timestamp=1566431369422&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fansi-styles%2Fdownload%2Fansi-styles-1.1.0.tgz",
9076
+          "integrity": "sha1-6uy/Zs1waIJ2Cy9GkVgrj1XXp94=",
9077
+          "dev": true
9078
+        },
9079
+        "chalk": {
9080
+          "version": "0.5.1",
9081
+          "resolved": "https://registry.npm.taobao.org/chalk/download/chalk-0.5.1.tgz?cache=0&sync_timestamp=1570527275600&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fchalk%2Fdownload%2Fchalk-0.5.1.tgz",
9082
+          "integrity": "sha1-Zjs6ZItotV0EaQ1JFnqoN4WPIXQ=",
9083
+          "dev": true,
9084
+          "requires": {
9085
+            "ansi-styles": "^1.1.0",
9086
+            "escape-string-regexp": "^1.0.0",
9087
+            "has-ansi": "^0.1.0",
9088
+            "strip-ansi": "^0.3.0",
9089
+            "supports-color": "^0.2.0"
9090
+          }
9091
+        },
9092
+        "commander": {
9093
+          "version": "2.6.0",
9094
+          "resolved": "https://registry.npm.taobao.org/commander/download/commander-2.6.0.tgz?cache=0&sync_timestamp=1572603184853&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fcommander%2Fdownload%2Fcommander-2.6.0.tgz",
9095
+          "integrity": "sha1-nfflL7Kgyw+4kFjugMMQQiXzfh0=",
9096
+          "dev": true
9097
+        },
9098
+        "fs-extra": {
9099
+          "version": "0.16.5",
9100
+          "resolved": "https://registry.npm.taobao.org/fs-extra/download/fs-extra-0.16.5.tgz",
9101
+          "integrity": "sha1-GtZh+myGyWCM0bSe/G/Og0k5p1A=",
9102
+          "dev": true,
9103
+          "requires": {
9104
+            "graceful-fs": "^3.0.5",
9105
+            "jsonfile": "^2.0.0",
9106
+            "rimraf": "^2.2.8"
9107
+          }
9108
+        },
9109
+        "graceful-fs": {
9110
+          "version": "3.0.12",
9111
+          "resolved": "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-3.0.12.tgz",
9112
+          "integrity": "sha1-ADSUfOntaV7IqwuFS8kZ6Csf+u8=",
9113
+          "dev": true,
9114
+          "requires": {
9115
+            "natives": "^1.1.3"
9116
+          }
9117
+        },
9118
+        "has-ansi": {
9119
+          "version": "0.1.0",
9120
+          "resolved": "https://registry.npm.taobao.org/has-ansi/download/has-ansi-0.1.0.tgz?cache=0&sync_timestamp=1568144153016&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fhas-ansi%2Fdownload%2Fhas-ansi-0.1.0.tgz",
9121
+          "integrity": "sha1-hPJlqujA5qiKEtcCKJS3VoiUxi4=",
9122
+          "dev": true,
9123
+          "requires": {
9124
+            "ansi-regex": "^0.2.0"
9125
+          }
9126
+        },
9127
+        "jsonfile": {
9128
+          "version": "2.4.0",
9129
+          "resolved": "https://registry.npm.taobao.org/jsonfile/download/jsonfile-2.4.0.tgz",
9130
+          "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=",
9131
+          "dev": true,
9132
+          "requires": {
9133
+            "graceful-fs": "^4.1.6"
9134
+          },
9135
+          "dependencies": {
9136
+            "graceful-fs": {
9137
+              "version": "4.2.3",
9138
+              "resolved": "https://registry.npm.taobao.org/graceful-fs/download/graceful-fs-4.2.3.tgz",
9139
+              "integrity": "sha1-ShL/G2A3bvCYYsIJPt2Qgyi+hCM=",
9140
+              "dev": true,
9141
+              "optional": true
9142
+            }
9143
+          }
9144
+        },
9145
+        "strip-ansi": {
9146
+          "version": "0.3.0",
9147
+          "resolved": "https://registry.npm.taobao.org/strip-ansi/download/strip-ansi-0.3.0.tgz",
9148
+          "integrity": "sha1-JfSOoiynkYfzF0pNuHWTR7sSYiA=",
9149
+          "dev": true,
9150
+          "requires": {
9151
+            "ansi-regex": "^0.2.1"
9152
+          }
9153
+        },
9154
+        "supports-color": {
9155
+          "version": "0.2.0",
9156
+          "resolved": "https://registry.npm.taobao.org/supports-color/download/supports-color-0.2.0.tgz?cache=0&other_urls=https%3A%2F%2Fregistry.npm.taobao.org%2Fsupports-color%2Fdownload%2Fsupports-color-0.2.0.tgz",
9157
+          "integrity": "sha1-2S3iaU6z9nMjlz1649i1W0wiGQo=",
9158
+          "dev": true
9159
+        }
9160
+      }
9161
+    },
9162
+    "px2rem-loader": {
9163
+      "version": "0.1.9",
9164
+      "resolved": "https://registry.npm.taobao.org/px2rem-loader/download/px2rem-loader-0.1.9.tgz",
9165
+      "integrity": "sha1-yPK/i+i5prQ6X2fRSy/r4RYOVqA=",
9166
+      "dev": true,
9167
+      "requires": {
9168
+        "loader-utils": "^1.1.0",
9169
+        "px2rem": "^0.5.0"
9170
+      }
9171
+    },
9015 9172
     "q": {
9016 9173
       "version": "1.5.1",
9017 9174
       "resolved": "https://registry.npm.taobao.org/q/download/q-1.5.1.tgz",
@@ -11792,6 +11949,11 @@
11792 11949
           "dev": true
11793 11950
         }
11794 11951
       }
11952
+    },
11953
+    "zrender": {
11954
+      "version": "4.1.1",
11955
+      "resolved": "https://registry.npm.taobao.org/zrender/download/zrender-4.1.1.tgz",
11956
+      "integrity": "sha1-IB5YpVzxp+lz4dutPBVZbvh3n1Q="
11795 11957
     }
11796 11958
   }
11797 11959
 }

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

@@ -9,7 +9,9 @@
9 9
   },
10 10
   "dependencies": {
11 11
     "core-js": "^3.3.2",
12
+    "echarts": "^4.4.0",
12 13
     "element-ui": "^2.4.5",
14
+    "lib-flexible": "^0.3.2",
13 15
     "vue": "^2.6.10",
14 16
     "vue-router": "^3.1.3",
15 17
     "vuex": "^3.0.1"
@@ -27,6 +29,7 @@
27 29
     "eslint-plugin-vue": "^5.0.0",
28 30
     "less": "^3.10.3",
29 31
     "less-loader": "^5.0.0",
32
+    "px2rem-loader": "^0.1.9",
30 33
     "vue-cli-plugin-element": "^1.0.1",
31 34
     "vue-template-compiler": "^2.6.10"
32 35
   }

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

@@ -8,6 +8,7 @@ body {
8 8
     padding: 0;
9 9
     margin: 0;
10 10
     background-color: #EBEDF5;
11
+    overflow-x: hidden;
11 12
 }
12 13
 
13 14
 .tabEdit .el-input__inner {

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

@@ -26,7 +26,7 @@
26 26
         <el-submenu index="2">
27 27
             <template slot="title">
28 28
               <i class="el-icon-menu"></i>
29
-              <span>试题库</span>
29
+              <span @click='clickPage'>试题库</span>
30 30
             </template>
31 31
              <el-menu-item-group>
32 32
             
@@ -35,10 +35,10 @@
35 35
         <el-submenu index="3">
36 36
             <template slot="title">
37 37
               <i class="el-icon-menu"></i>
38
-              <span>作业管理</span>
38
+              <span @click='clickWork'>作业管理</span>
39 39
             </template>
40 40
              <el-menu-item-group>
41
-              
41
+                
42 42
             </el-menu-item-group>
43 43
         </el-submenu>
44 44
         <el-submenu index="4">
@@ -54,12 +54,12 @@
54 54
         </div>
55 55
 
56 56
         <!-- 视图体区 -->
57
-        <div class="banxin">
57
+       
58 58
         <el-card class="con">
59 59
             <router-view></router-view>
60 60
         </el-card>
61 61
         <div class="footer"><p>copyright@2013-2019 All Right</p></div>
62
-        </div>
62
+       
63 63
     </div>
64 64
 </template>
65 65
 <script>
@@ -81,6 +81,12 @@ export default {
81 81
         },
82 82
         clickRep(){
83 83
             this.$router.push('/report')
84
+        },
85
+        clickWork(){
86
+            this.$router.push('/homework')
87
+        },
88
+        clickPage(){
89
+            this.$router.push('/shiti')
84 90
         }
85 91
     }
86 92
 }
@@ -162,7 +168,7 @@ font-size: 12px;
162 168
     margin:15px auto 0;
163 169
     width: 1200px;
164 170
     min-width: 800px;
165
-    height: 410px;
171
+    height: 100%;
166 172
     background-color: #fff;
167 173
     
168 174
 }
@@ -171,10 +177,11 @@ font-size: 12px;
171 177
 }
172 178
 .footer {
173 179
     color: #B1B9CF;
174
-   position: fixed;
175
-  bottom: 10px;;
180
+   position:fixed ;
181
+  bottom: -8px;;
176 182
    left: 50%;
177
-   transform: translateX(-50%)
183
+   transform: translateX(-50%);
184
+   z-index:-999;
178 185
 
179 186
 }
180 187
 

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

@@ -9,6 +9,8 @@
9 9
            <div class="input2"><input placeholder="密码"/></div>
10 10
            <el-checkbox class="checkbox1">记住密码</el-checkbox>
11 11
            <router-link class="login" to="./home">登 录</router-link>
12
+
13
+
12 14
             <p>
13 15
            <span>还没有账号?<a>立即注册</a></span>
14 16
        </p>

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

@@ -0,0 +1,269 @@
1
+<template>
2
+  <div>
3
+    <common></common>
4
+    <el-card class="con">
5
+    <!-- 上部导航栏 -->
6
+    <el-tabs v-model="activeName" type="card">
7
+      <el-tab-pane>
8
+        <span slot="label">
9
+          <i class="el-icon-date"></i> 学生信息
10
+        </span>
11
+        <!-- 内容上部区域 -->
12
+        <div class="workTop">
13
+          <div class="Topleft">
14
+            <span>2019年10月20日模拟训练测试1</span>
15
+            <span>六年级二班</span>
16
+          </div>
17
+          <div class="Topright">
18
+            <div class="block1"></div>未提交
19
+            <div class="block2"></div>已提交
20
+            <div class="block3"></div>已批阅
21
+          </div>
22
+        </div>
23
+        <!-- 内容表格区域 -->
24
+        <!-- 下方内容区域 -->
25
+        <div class="botTable">
26
+          <el-table :show-header="false" :data="tableData" style="width: 100%">
27
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
28
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
29
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
30
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
31
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
32
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
33
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
34
+            <el-table-column align="center" prop="name" label="姓名" width></el-table-column>
35
+          </el-table>
36
+          <div class="botRight">
37
+            <div>
38
+              共
39
+              <span>40</span>人
40
+            </div>
41
+            <div>
42
+              已提交
43
+              <span>22</span>人
44
+            </div>
45
+            <div>
46
+              已批阅
47
+              <span>2</span>人
48
+            </div>
49
+          </div>
50
+        </div>
51
+
52
+        <div class="undone">
53
+          <a href="javescript:;" @click="unread">还没有批阅完成?</a>
54
+        </div>
55
+      </el-tab-pane>
56
+      <el-tab-pane>
57
+        <span slot="label">
58
+          <i class="el-icon-date"></i> 班级学情
59
+        </span>
60
+       <div class="homeworkline"><div class="scorePage">成绩单</div></div>
61
+   <!-- 班级学情表格 -->
62
+     <div class="">
63
+      <el-table
64
+    :data="tableData2"
65
+    border
66
+    style="width: 100%"
67
+    :header-cell-style="{background:'#FAFAFA'}">
68
+    <el-table-column
69
+    align="center"
70
+      prop="id"
71
+      label="序号"
72
+      width="">
73
+    </el-table-column>
74
+    <el-table-column
75
+    align="center"
76
+      prop="id"
77
+      label="序号"
78
+      width="">
79
+    </el-table-column>
80
+    <el-table-column
81
+    align="center"
82
+      prop="id"
83
+      label="序号"
84
+      width="">
85
+    </el-table-column>
86
+    <el-table-column
87
+    align="center"
88
+      prop="id"
89
+      label="序号"
90
+      width="">
91
+    </el-table-column>
92
+    <el-table-column
93
+    align="center"
94
+      prop="id"
95
+      label="序号"
96
+      width="">
97
+    </el-table-column>
98
+    <el-table-column
99
+    align="center"
100
+      prop="id"
101
+      label="序号"
102
+      width="">
103
+    </el-table-column>
104
+    <el-table-column
105
+    align="center"
106
+      prop="id"
107
+      label="序号"
108
+      width="">
109
+    </el-table-column>
110
+    </el-table>
111
+      </div>
112
+      <div class="homeworkline"><div class="scorePage">题型得分率</div></div>
113
+        <div id="main01" style="width: 600px;height:400px;"></div>
114
+      </el-tab-pane>
115
+
116
+      <el-tab-pane>
117
+        <span slot="label">
118
+          <i class="el-icon-date"></i> 精准推送
119
+        </span>
120
+        精准推送
121
+      </el-tab-pane>
122
+      <el-tab-pane>
123
+        <span slot="label">
124
+          <i class="el-icon-date"></i> 套题分析
125
+        </span>
126
+       套题分析
127
+      </el-tab-pane>
128
+    </el-tabs>
129
+    </el-card>
130
+  </div>
131
+</template>
132
+<script>
133
+import echarts from 'echarts'
134
+export default {
135
+  data() {
136
+    return {
137
+      activeName: "",
138
+      tableData: [
139
+        {
140
+          name: 1
141
+        }
142
+      ],
143
+      tableData2:[]
144
+    };
145
+  },
146
+  methods: {
147
+    unread() {
148
+      this.$router.push("./unread");
149
+    }
150
+  },
151
+  mounted(){
152
+    // 柱形图
153
+var myChart01 = echarts.init(document.getElementById('main01'));
154
+var options01 = {
155
+    legend: {},
156
+    tooltip: {},
157
+    dataset: {
158
+        source: [
159
+            ['product', '平均正确率', '最高正确率'],
160
+            ['选择题', 43.3, 85.8, 93.7],
161
+            ['填空题', 83.1, 73.4, 55.1],
162
+            ['解答题', 86.4, 65.2, 82.5],
163
+            ['计算题', 72.4, 53.9, 39.1],
164
+             ['综合题', 72.4, 53.9, 39.1]
165
+
166
+        ]
167
+    },
168
+    xAxis: {type: 'category'},
169
+    yAxis: {},
170
+    // Declare several bar series, each will be mapped
171
+    // to a column of dataset.source by default.
172
+    series: [
173
+        {type: 'bar'},
174
+        {type: 'bar'},
175
+    ]
176
+};
177
+myChart01.setOption(options01)
178
+  }
179
+};
180
+</script>
181
+<style lang="less" scoped>
182
+.con{
183
+    margin:15px auto 0;
184
+    width: 1200px;
185
+    min-width: 800px;
186
+    height: 100%;
187
+    background-color: #fff;
188
+    
189
+}
190
+.workTop {
191
+  display: flex;
192
+  justify-content: space-between;
193
+  margin-bottom: 10px;
194
+  .Topright {
195
+    width: 210px;
196
+    height: 14px;
197
+  }
198
+  .block1,
199
+  .block2,
200
+  .block3 {
201
+    display: inline-block;
202
+    width: 14px;
203
+    height: 14px;
204
+    background: #ced8e7;
205
+    margin: 0 2px;
206
+  }
207
+  .block2 {
208
+    background-color: #4597ff;
209
+  }
210
+  .block3 {
211
+    background-color: #e58d37;
212
+  }
213
+}
214
+
215
+.botTable {
216
+  position: relative;
217
+  width: 100%;
218
+  height: 205px;
219
+  border: 1px solid #ccc;
220
+  .botRight {
221
+    position: absolute;
222
+    bottom: 15px;
223
+    right: 5px;
224
+    width: 250px;
225
+    height: 20px;
226
+    div {
227
+      margin-left: 10px;
228
+      font-size: 14px;
229
+      float: left;
230
+    }
231
+    span:nth-child(1) {
232
+      color: #ff0000;
233
+    }
234
+    div:nth-child(2) span {
235
+      color: #68a7ff;
236
+    }
237
+    div:nth-child(3) span {
238
+      color: #e58d37;
239
+    }
240
+  }
241
+}
242
+.undone {
243
+  margin: 15px;
244
+  float: right;
245
+  a {
246
+    color: #ff0000;
247
+  }
248
+}
249
+
250
+// 班级学情
251
+.homeworkline {
252
+  font-size: 10px;
253
+    height: 15px;
254
+    width: 100%;
255
+    border-bottom:1px solid #ccc;
256
+    position: relative;
257
+    margin-bottom: 20px;
258
+    .scorePage{
259
+        width: 60px;
260
+        text-align: center;
261
+        height: 18px;
262
+        background-color: #fff;
263
+        padding: 0 5px;
264
+        position: absolute;
265
+        bottom: -8px;
266
+        left: 15px;
267
+    }
268
+}
269
+</style>

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

@@ -0,0 +1,93 @@
1
+<template>
2
+  <div>
3
+    <common></common>
4
+    <el-card class="con">
5
+    <!-- 上部分 -->
6
+    <div class="unreadTop">
7
+      作业时间:
8
+      <el-date-picker v-model="value1" type="date" placeholder="选择日期"></el-date-picker>
9
+      <el-input v-model="input" placeholder="请输入内容"></el-input>
10
+      <el-button type="primary" >搜索</el-button>
11
+    </div>
12
+    <!-- 下部分表格 -->
13
+    <!-- 表格区域 -->
14
+    <div class="unreadTab">
15
+    <el-table
16
+    :data="tableData"
17
+    border
18
+    style="width: 100%"
19
+    :header-cell-style="{background:'#FAFAFA'}">
20
+     <el-table-column
21
+     align="center"
22
+      type="selection"
23
+     >
24
+    </el-table-column>
25
+    <el-table-column
26
+    align="center"
27
+      prop="id"
28
+      label="序号"
29
+      width="">
30
+    </el-table-column>
31
+    <el-table-column
32
+    align="center"
33
+      prop="workName"
34
+      label="作业名字"
35
+      width="">
36
+    </el-table-column>
37
+    <el-table-column
38
+    align="center"
39
+      prop="total"
40
+      label="总人数"
41
+      width="">
42
+    </el-table-column>
43
+    <el-table-column
44
+    align="center"
45
+      prop="submit"
46
+      label="已提交"
47
+      width="">
48
+    </el-table-column>
49
+    <el-table-column
50
+    align="center"
51
+      prop="read"
52
+      label="已批阅"
53
+      width="">
54
+    </el-table-column>
55
+    <el-table-column
56
+    align="center"
57
+      label="操作"
58
+      width="180">
59
+      <template>
60
+          <router-link class="" to="" ><span>批阅</span>|<span>查看</span><span>删除</span> </router-link>
61
+      </template>
62
+    </el-table-column>
63
+    </el-table>
64
+    </div>
65
+    </el-card>
66
+  </div>
67
+</template>
68
+<script>
69
+export default {
70
+  data() {
71
+    return {
72
+      value1: "",
73
+      input:''
74
+    };
75
+  }
76
+};
77
+</script>
78
+<style lang="less" scoped>
79
+.con{
80
+    margin:15px auto 0;
81
+    width: 1200px;
82
+    min-width: 800px;
83
+    height: 100%;
84
+    background-color: #fff;
85
+    
86
+}
87
+.unreadTop{
88
+    .el-input {
89
+        width: 20%;
90
+        margin:0 20px 20px 0;
91
+    }
92
+}
93
+</style>

+ 223
- 148
src/components/message/EditMessage.vue Прегледај датотеку

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

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

@@ -0,0 +1,297 @@
1
+<template>
2
+  <div class="moreInfo">
3
+    <div class="moreTop">
4
+      <a href="#">南华凯个人作业报告</a>
5
+      <div class="moreRight">
6
+        <el-date-picker
7
+          v-model="value1"
8
+          type="monthrange"
9
+          range-separator="至"
10
+          start-placeholder="开始月份"
11
+          end-placeholder="结束月份"
12
+          size="mini"
13
+        ></el-date-picker>
14
+        <el-button type="primary" size="mini">添加</el-button>
15
+      </div>
16
+    </div>
17
+    <div class="Moreline">
18
+      <div class="in">名次变化</div>
19
+    </div>
20
+
21
+    <!-- 折线图  -->
22
+    <div id="main" style="width: 1100px;height:400px;"></div>
23
+    <div class="Moreline">
24
+      <div class="in">题型正确率</div>
25
+    </div>
26
+
27
+    <!-- 柱形图 -->
28
+
29
+    <div id="main1" style="width: 600px;height:400px;"></div>
30
+    <!-- 柱形图右侧表格区域 -->
31
+    <div class="main1Table">
32
+      <!-- 表格区域 -->
33
+      <el-table
34
+        :data="tableData"
35
+        border
36
+        style="width: 100%"
37
+        :header-cell-style="{background:'#FAFAFA'}"
38
+        align="center"
39
+      >
40
+        <el-table-column align="center" prop="tx" label="题型" width="90"></el-table-column>
41
+        <el-table-column align="center" prop="num" label="数量" width></el-table-column>
42
+        <el-table-column align="center" prop="fenbu" label="试题分布" width></el-table-column>
43
+        <el-table-column align="center" prop="total" label="总分值" width></el-table-column>
44
+      </el-table>
45
+    </div>
46
+    <!-- 错误原因分析 -->
47
+    <div class="Moreline">
48
+      <div class="in">知识点正确率</div>
49
+    </div>
50
+    <!-- 横行柱状图区域 -->
51
+     <!-- 右侧图形 -->
52
+    <div id="main2" style="width: 500px;height:300px;"></div>
53
+    <!-- 左侧表格 -->
54
+    <div class="main2Table">
55
+      <!-- 表格区域 -->
56
+      <el-table
57
+        :data="tableData2"
58
+        border
59
+        style="width: 100%"
60
+        :header-cell-style="{background:'#FAFAFA'}"
61
+        align="center"
62
+      >
63
+        <el-table-column align="center" prop="id" label="序号" width="90"></el-table-column>
64
+        <el-table-column align="center" prop="tips" label="知识点" width></el-table-column>
65
+        <el-table-column align="center" prop="much" label="题量" width></el-table-column>
66
+        <el-table-column align="center" prop="fenbu" label="试题分布" width></el-table-column>
67
+        <el-table-column align="center" prop="total" label="总分值" width></el-table-column>
68
+      </el-table>
69
+    </div>
70
+   
71
+
72
+   <!-- 错误原因分析 -->
73
+    <div class="Moreline">
74
+      <div class="in">错误原因分析</div>
75
+    </div>
76
+   <!-- 饼图 -->
77
+    <div id="main3" style="width: 500px;height:300px;"></div>
78
+    
79
+  </div>
80
+</template>
81
+
82
+<script>
83
+import echarts from "echarts";
84
+export default {
85
+  data() {
86
+    return {
87
+      value1: "",
88
+      //关于表格数据
89
+      tableData: [{ total: 6, fenbu: "1.2.3.4", num: "9题", tx: "选择题" }],
90
+    tableData2:[{id:1,tips:'体积变化',much:'5道',fenbu:'1.3.3',total:'90'}]
91
+  }
92
+  },
93
+  mounted() {
94
+    var myChart = echarts.init(document.getElementById("main"));
95
+    var option = {
96
+      left: "auto",
97
+      top: "auto",
98
+      right: "auto",
99
+      bottom: "auto",
100
+      color: ["#529BFF"],
101
+      xAxis: {
102
+        type: "category",
103
+        data: [
104
+          "20191001",
105
+          "2019002",
106
+          "2019003",
107
+          "2019004",
108
+          "2019005",
109
+          "2019006",
110
+          "2019007",
111
+          "2019008",
112
+          "2019009",
113
+          "2019010"
114
+        ]
115
+      },
116
+      yAxis: {
117
+        type: "value"
118
+      },
119
+      series: [
120
+        {
121
+          data: [1, 4, 3, 8, 5, 7, 5, 10, 2, 12],
122
+          type: "line"
123
+        }
124
+      ]
125
+    };
126
+
127
+    myChart.setOption(option);
128
+
129
+    // 柱形图
130
+    var myChart1 = echarts.init(document.getElementById("main1"));
131
+    var options1 = {
132
+        left: "10%",
133
+      color: ["#5665EC", "#EE5356"],
134
+      legend: {},
135
+      tooltip: {},
136
+      dataset: {
137
+        source: [
138
+          ["product", "平均正确率", "最高正确率"],
139
+          ["选择题", 43.3, 85.8, 93.7],
140
+          ["填空题", 83.1, 73.4, 55.1],
141
+          ["解答题", 86.4, 65.2, 82.5],
142
+          ["计算题", 72.4, 53.9, 39.1],
143
+          ["综合题", 72.4, 53.9, 39.1]
144
+        ]
145
+      },
146
+      xAxis: { type: "category" },
147
+      yAxis: {},
148
+      // Declare several bar series, each will be mapped
149
+      // to a column of dataset.source by default.
150
+      series: [{ type: "bar" }, { type: "bar" }],
151
+      grid:{
152
+              x:100,
153
+              y:45}
154
+    };
155
+    myChart1.setOption(options1);
156
+    //横行柱形图
157
+    var myChart2 = echarts.init(document.getElementById("main2"));
158
+
159
+    var options2 = {
160
+    color:'#5DAAFF',
161
+    tooltip: {
162
+        trigger: 'axis',
163
+        axisPointer: {
164
+            type: 'shadow'
165
+        }
166
+    },
167
+    
168
+    grid: {
169
+        top:'2%',
170
+        left: '3%',
171
+        right: '4%',
172
+        bottom: '5%',
173
+        containLabel: true
174
+    },
175
+    xAxis: {
176
+        type: 'value',
177
+        boundaryGap: [0, 0.01]
178
+    },
179
+    yAxis: {
180
+        
181
+        type: 'category',
182
+        data: ['方差','数轴','三视图','平年闰年','正负数','数的读法','体积变化','数的简单结算']
183
+    },
184
+    series: [
185
+        {
186
+            barWidth: 20,
187
+            name: '2011年',
188
+            type: 'bar',
189
+            data: [18203, 23489, 29034, 104970, 131744, 630230,12345,12345],
190
+            itemStyle:{
191
+                emphasis:{
192
+                    barBorderRadius:9
193
+                },
194
+                normal:{
195
+                    barBorderRadius:[0 ,9, 9, 0]
196
+                }
197
+            }
198
+        }
199
+    ]
200
+};
201
+myChart2.setOption(options2);
202
+
203
+//饼图
204
+var myChart3 = echarts.init(document.getElementById("main3"));
205
+var options3 = {
206
+    tooltip : {
207
+        trigger: 'item',
208
+        formatter: "{a} <br/>{b} : {c} ({d}%)"
209
+    },
210
+    legend: {
211
+       icon:'circle',
212
+       itemWidth:5,
213
+       itemHeight:5,
214
+       itemGap:20,
215
+
216
+       
217
+        orient: 'vertical',
218
+        right: 'left',
219
+        data: ['直接访问','邮件营销','联盟广告','视频广告','搜索引擎']
220
+    },
221
+    series : [
222
+        {
223
+            name: '访问来源',
224
+            type: 'pie',
225
+            radius : '55%',
226
+            center: ['50%', '60%'],
227
+            data:[
228
+                {value:335, name:'直接访问'},
229
+                {value:310, name:'邮件营销'},
230
+                {value:234, name:'联盟广告'},
231
+                {value:135, name:'视频广告'},
232
+                {value:1548, name:'搜索引擎'}
233
+            ],
234
+            itemStyle: {
235
+                emphasis: {
236
+                    shadowBlur: 10,
237
+                    shadowOffsetX: 0,
238
+                    shadowColor: 'rgba(0, 0, 0, 0.5)'
239
+                }
240
+            }
241
+        }
242
+    ]
243
+};
244
+myChart3.setOption(options3);
245
+  }
246
+};
247
+</script>
248
+<style lang="less" scoped>
249
+.moreInfo {
250
+  position: relative;
251
+}
252
+.moreTop {
253
+  border-bottom: 1px solid #ccc;
254
+  height: 40px;
255
+  line-height: 30px;
256
+  display: flex;
257
+  justify-content: space-between;
258
+  a {
259
+    font-size: 14px;
260
+  }
261
+  .el-button {
262
+    margin-left: 10px;
263
+  }
264
+}
265
+.Moreline {
266
+  position: relative;
267
+  height: 17px;
268
+  border-bottom: 1px solid #ccc;
269
+  margin-bottom: 10px;
270
+  .in {
271
+    position: absolute;
272
+    left: 13px;
273
+    bottom: -7px;
274
+    background-color: #fff;
275
+    padding: 0 3px;
276
+  }
277
+}
278
+.main1Table {
279
+  width: 500px;
280
+  height: 300px;
281
+  background-color: #fff;
282
+  position: absolute;
283
+  right: 0;
284
+  top: 545px;
285
+}
286
+.main2Table {
287
+   position:absolute;
288
+   left: 0;
289
+   top: 925px;
290
+    width: 500px;
291
+    height: 300px;
292
+   
293
+}
294
+#main2 {
295
+   left: 600px;
296
+}
297
+</style>

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

@@ -0,0 +1,95 @@
1
+<template>
2
+    <div class="personMain">
3
+             
4
+         <div class="reportTop"><a href="#">南华凯个人作业报告</a>
5
+         <sapn class="personRight">
6
+             <el-input v-model="input" placeholder="请输入内容" ></el-input>
7
+             <el-button type="primary" size="mini">搜索</el-button>
8
+             </sapn></div>
9
+<el-table
10
+    :header-cell-style="{background:'#FAFAFA'}"
11
+    :data="tableData"
12
+    border
13
+    style="width: 100%">
14
+    <el-table-column
15
+    align="center"
16
+      prop="id"
17
+      label="序号"
18
+      width="180">
19
+    </el-table-column>
20
+    <el-table-column
21
+    align="center"
22
+      prop="HomeworkName"
23
+      label="作业名称"
24
+      width="280">
25
+    </el-table-column>
26
+    <el-table-column
27
+    align="center"
28
+      prop="object"
29
+      label="科目">
30
+    </el-table-column>
31
+    <el-table-column
32
+    align="center"
33
+      prop="riqi"
34
+      label="作业日期">
35
+    </el-table-column>
36
+    <el-table-column
37
+    align="center"
38
+      label="操作">
39
+      <template><a href="#">查看</a></template>
40
+    </el-table-column>
41
+ </el-table>
42
+ <!-- 分页 -->
43
+ <div class="reportPag">
44
+         <el-button>上一页</el-button>
45
+         <div class="fenye"><span>1</span>/<span>5</span></div>
46
+            <el-button>下一页</el-button>
47
+  </div>
48
+    </div>
49
+</template>
50
+<script>
51
+export default {
52
+    data(){
53
+        return{
54
+             tableData:[{
55
+            id: '1',
56
+          HomeworkName: '201910月第一期',
57
+          object: '数学',
58
+          riqi:'2019-9-9',
59
+          object:'数学'
60
+            }]
61
+        }
62
+    }
63
+}
64
+</script>
65
+<style lang="less" scoped>
66
+    .reportPag {
67
+        position: relative;
68
+       display: flex;
69
+       justify-content: flex-end;
70
+       margin-top: 15px;
71
+      .fenye {
72
+          font-size: 14px;
73
+          position: absolute;
74
+          top: 10px;
75
+          right:136px;
76
+      }
77
+      .el-button {
78
+          margin: 0 30px;
79
+      }
80
+    }
81
+    .reportTop {
82
+        margin-bottom: 20px;
83
+         display: flex;
84
+        justify-content: space-between;
85
+        align-content: center;
86
+         .personRight {
87
+        .el-input {
88
+            width: 60%;
89
+        }
90
+        .el-button {
91
+            margin-left: 20px;
92
+        }
93
+    }
94
+    }
95
+</style>

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

@@ -1,7 +1,7 @@
1 1
 <template>
2 2
 <!-- 个人学习报告页 -->
3 3
 <!-- 报告头部 -->
4
-<div>
4
+<div class="reportPage">
5 5
    <div class="personTop">
6 6
        <div>
7 7
         <span class="photo"></span>
@@ -12,80 +12,44 @@
12 12
     <div class="topNav">
13 13
         <span class="topCon">
14 14
         <a><i class="el-icon-document"></i>
15
-        <span>单次学情</span></a>
15
+        <span @click="oneInfo">单次学情</span></a>
16 16
         <a><i class="el-icon-document"></i>
17
-        <span>阶段学情</span></a>
17
+        <span @click="moreInfo">阶段学情</span></a>
18 18
         </span>
19 19
      </div>
20 20
      <!-- 表格区域 -->
21 21
      <div class="personMain">
22 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>
23
+        <router-view></router-view>
24
+     </el-card>
25
+      <div class="footer"><p>copyright@2013-2019 All Right</p></div>
69 26
      </div>
70 27
      </div>
71 28
 </template>
72 29
 <script>
30
+
73 31
 export default {
74 32
     data(){
75 33
         return{
76
-            tableData:[{
77
-            id: '1',
78
-          HomeworkName: '201910月第一期',
79
-          object: '数学',
80
-          riqi:'2019-9-9',
81
-          object:'数学'
82
-         
83
-            }]
34
+           
35
+        }
36
+    },
37
+    methods:{
38
+        oneInfo(){
39
+            this.$router.push('./oneInfo')
40
+            
41
+        },
42
+        moreInfo(){
43
+            this.$router.push('./moreInfo')
84 44
         }
85 45
     }
86 46
 }
87 47
 </script>
88 48
 <style lang="less" scoped>
49
+.reportPage {
50
+    background-color: #EBEDF5;
51
+}
52
+
89 53
 .personTop {
90 54
     display: flex;
91 55
     justify-content: space-between;
@@ -129,37 +93,16 @@ export default {
129 93
     .personMain {
130 94
         width: 1200px;
131 95
         margin: 10px auto;
96
+      
132 97
     }
133 98
 
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
-    }
99
+.footer {
100
+    color: #B1B9CF;
101
+   position: fixed;
102
+  bottom: -8px;;
103
+   left: 50%;
104
+   transform: translateX(-50%)
105
+}
163 106
    
164 107
 
165 108
 

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

@@ -0,0 +1,5 @@
1
+<template>
2
+    <div>
3
+       <common></common>
4
+    </div>
5
+</template>

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

@@ -5,11 +5,19 @@ import store from './store'
5 5
 import './plugins/element.js'
6 6
 import './assets/css/gobal.css'
7 7
 
8
+import common from './views/demo/Common.vue'
9
+
10
+Vue.component('common', common)
11
+    // import 'lib-flexible'
8 12
 Vue.config.productionTip = false
9 13
 
10 14
 import axios from 'axios'
11 15
 // Vue.prototype.$http = axios
16
+//根路径
17
+// axios.defaults.baseURL = 'http://127.0.0.1:'
12 18
 
19
+//将其挂载到原型对象上
20
+Vue.prototype.$http = axios
13 21
 new Vue({
14 22
     router,
15 23
     store,

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

@@ -11,6 +11,12 @@ import Teacher from '../components/message/Teacher.vue'
11 11
 import Student from '../components/message/Student.vue'
12 12
 import Report from '../components/report/Report.vue'
13 13
 import Person from '../components/report/Person.vue'
14
+import Oneinfo from '../components/report/Oneinfo.vue'
15
+import Moreinfo from '../components/report/Moreinfo.vue'
16
+import Homework from '../components/homework/Homework'
17
+import Unread from '../components/homework/Unread'
18
+import Common from '../views/demo/Common'
19
+import Shiti from '../components/shiti/Shiti'
14 20
 
15 21
 Vue.use(VueRouter)
16 22
 
@@ -50,8 +56,34 @@ const routes = [
50 56
     },
51 57
     {
52 58
         path: '/person',
53
-        component: Person
59
+        component: Person,
60
+        redirect: '/oneInfo',
61
+        children: [{
62
+            path: '/oneInfo',
63
+            component: Oneinfo
64
+        }, {
65
+            path: '/moreInfo',
66
+            component: Moreinfo
67
+        }]
68
+    },
69
+    {
70
+        path: '/common',
71
+        component: Common
72
+
54 73
     },
74
+    {
75
+        path: '/shiti',
76
+        component: Shiti
77
+    },
78
+    {
79
+        path: '/homework',
80
+        component: Homework
81
+    },
82
+    {
83
+        path: '/unread',
84
+        component: Unread
85
+    }
86
+
55 87
 
56 88
 ]
57 89
 

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


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

@@ -0,0 +1,96 @@
1
+  <template>
2
+  <div class="all">
3
+  <!-- 头部区域上-->
4
+    <div class="head">
5
+        <div class="logo">AI升学测评分析平台</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" @click="logout" >退出</a>
11
+        </div>
12
+    </div>
13
+     
14
+        <div class="footer"><p>copyright@2013-2019 All Right</p></div>
15
+    </div>
16
+  </template>
17
+  
18
+ <script>
19
+ export default {
20
+    data(){
21
+       return {
22
+
23
+       }
24
+    },
25
+    methods:{
26
+        logout(){
27
+            this.$router.push('/login')
28
+        }
29
+    }
30
+    
31
+    }
32
+ 
33
+ </script>
34
+  <style style="less" scoped>
35
+  .head {
36
+    overflow: hidden;
37
+    width: 100%;
38
+    height: 68px;
39
+    background-color: #529BFF;
40
+    line-height: 68px;
41
+    color: #fff;
42
+}
43
+.logo {
44
+    font-size:16px;
45
+    float: left;
46
+    width: 20%;
47
+    line-height:40px;
48
+    font-weight: 900;
49
+    height: 40px;
50
+    /* background-color: pink; */
51
+    margin-left: 10px;
52
+   margin-top: 15px;
53
+}
54
+
55
+.headRight {
56
+    float: right;
57
+font-size: 12px;
58
+
59
+}
60
+.ico {
61
+    display: inline-block;
62
+    vertical-align: middle;
63
+    width: 16px;
64
+    height: 16px;
65
+    background-color: pink;
66
+    
67
+}
68
+.photo {
69
+     display: inline-block;
70
+     vertical-align: middle;
71
+    width: 42px;
72
+    height: 42px;
73
+    background-color: pink;
74
+    margin: 0 5px;
75
+    border-radius: 50%;
76
+}
77
+.logout {
78
+    color: #fff;
79
+    margin-right: 15px;
80
+}
81
+
82
+.all {
83
+ position: relative;
84
+}
85
+.footer {
86
+    color: #B1B9CF;
87
+   position:fixed ;
88
+  bottom: -8px;;
89
+   left: 50%;
90
+   transform: translateX(-50%);
91
+   z-index:-999;
92
+
93
+}
94
+
95
+
96
+  </style>

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