|
@@ -15,8 +15,9 @@ let sm_id = $ref('');
|
|
|
let subject_id = $ref('')
|
|
|
let school_list = $ref([])
|
|
|
let subject_list = $ref([])
|
|
|
-let tableData = $ref([])
|
|
|
-let barSubject = $ref([]);
|
|
|
+let teacherData = $ref([])
|
|
|
+let subjectData = $ref([]);
|
|
|
+let barTeacher = $ref([]);
|
|
|
let barPercent = $ref([]);
|
|
|
let barUnusual = $ref(['缺考','学号异常','页码异常','缺考异常','客观题异常','选择题异常','判断题异常','填空题异常']);
|
|
|
let barUnData = $ref([40,70,100,70,70,70,80,90])
|
|
@@ -52,21 +53,25 @@ function getData() {
|
|
|
subject_id: subject_id,
|
|
|
};
|
|
|
request({
|
|
|
- url: "/yzy/scan/km",
|
|
|
+ url: "/yzy/jspyjd/main",
|
|
|
data: data,
|
|
|
}).then((res) => {
|
|
|
if (res.code === '1') {
|
|
|
- ykj_name = res.data.ksjh.ykj_ksrwmc;
|
|
|
- tableData = res.data.list;
|
|
|
- barSubject = [];
|
|
|
- barPercent = [];
|
|
|
- tableData.forEach(item =>{
|
|
|
- barSubject.push(item.ze_xueke_name);
|
|
|
- barPercent.push(item.scan_percent);
|
|
|
- })
|
|
|
- nextTick(()=>{
|
|
|
- initChart();
|
|
|
- })
|
|
|
+ ykj_name = res.data.data1.ksjh.ykj_ksrwmc;
|
|
|
+ teacherData = res.data.data1.list;
|
|
|
+ barTeacher = res.data.data1.users;
|
|
|
+ barPercent = res.data.data1.values;
|
|
|
+ if (cur_sub.id === '1') {
|
|
|
+ nextTick(() => {
|
|
|
+ initChart();
|
|
|
+ })
|
|
|
+
|
|
|
+ } else {
|
|
|
+ nextTick(() => {
|
|
|
+ initUnChart();
|
|
|
+ })
|
|
|
+
|
|
|
+ }
|
|
|
|
|
|
}
|
|
|
})
|
|
@@ -91,7 +96,7 @@ function initChart() {
|
|
|
{
|
|
|
type: 'category',
|
|
|
name: '教师',
|
|
|
- data: barSubject,
|
|
|
+ data: barTeacher,
|
|
|
axisTick: {
|
|
|
alignWithLabel: true
|
|
|
},
|
|
@@ -263,12 +268,12 @@ onMounted(() => {
|
|
|
<th>平均分</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
- <tr v-for="item in tableData">
|
|
|
- <td>{{item.ze_xueke_name}}</td>
|
|
|
- <td>{{item.scan_percent}}</td>
|
|
|
- <td>{{item.student_num}}</td>
|
|
|
- <td>{{item.scan_num}}</td>
|
|
|
- <td>{{item.qks}}</td>
|
|
|
+ <tr v-for="item in teacherData">
|
|
|
+ <td>{{item.user_name}}</td>
|
|
|
+ <td>{{item.jd}}%</td>
|
|
|
+ <td>{{item.wcl}}</td>
|
|
|
+ <td>{{item.zfs}}</td>
|
|
|
+ <td>{{item.pjf}}</td>
|
|
|
<td>
|
|
|
<button type="button" class="op-btn">查看详情</button>
|
|
|
</td>
|
|
@@ -289,7 +294,7 @@ onMounted(() => {
|
|
|
<th>在线人数</th>
|
|
|
<th>操作</th>
|
|
|
</tr>
|
|
|
- <tr v-for="item in tableData">
|
|
|
+ <tr v-for="item in subjectData">
|
|
|
<td>{{item.ze_xueke_name}}</td>
|
|
|
<td>{{item.scan_percent}}</td>
|
|
|
<td>{{item.student_num}}</td>
|