|
@@ -77,6 +77,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="marker-body">
|
|
<div class="marker-body">
|
|
<ImageView
|
|
<ImageView
|
|
|
|
+ v-if="curPaper.imgSrc"
|
|
:img-src="curPaper.imgSrc"
|
|
:img-src="curPaper.imgSrc"
|
|
@on-prev="toPrevPaper"
|
|
@on-prev="toPrevPaper"
|
|
@on-next="toNextPaper"
|
|
@on-next="toNextPaper"
|
|
@@ -99,6 +100,7 @@ import {
|
|
workLevelList,
|
|
workLevelList,
|
|
paperCheckUpdateProgress,
|
|
paperCheckUpdateProgress,
|
|
paperCheckProgress,
|
|
paperCheckProgress,
|
|
|
|
+ paperCheckHistoryStudent,
|
|
} from "@/api";
|
|
} from "@/api";
|
|
import TaskAction from "./TaskAction.vue";
|
|
import TaskAction from "./TaskAction.vue";
|
|
import ImageView from "@/components/ImageView.vue";
|
|
import ImageView from "@/components/ImageView.vue";
|
|
@@ -134,11 +136,11 @@ export default {
|
|
};
|
|
};
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
|
|
+ this.getWorkLevels();
|
|
this.initData();
|
|
this.initData();
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
async initData() {
|
|
async initData() {
|
|
- this.getWorkLevels();
|
|
|
|
const res = await paperCheckProgress({ paperCheckId: this.taskInfo.id });
|
|
const res = await paperCheckProgress({ paperCheckId: this.taskInfo.id });
|
|
if (res && res.secretNumber) {
|
|
if (res && res.secretNumber) {
|
|
await this.toPage(res.pageNumber + 1);
|
|
await this.toPage(res.pageNumber + 1);
|
|
@@ -156,12 +158,22 @@ export default {
|
|
this.levels = data || [];
|
|
this.levels = data || [];
|
|
},
|
|
},
|
|
async getList() {
|
|
async getList() {
|
|
- const res = await paperCheckListStudent({
|
|
|
|
|
|
+ const fetchFunc =
|
|
|
|
+ this.curMenu === "task"
|
|
|
|
+ ? paperCheckListStudent
|
|
|
|
+ : paperCheckHistoryStudent;
|
|
|
|
+
|
|
|
|
+ const res = await fetchFunc({
|
|
paperCheckId: this.taskInfo.id,
|
|
paperCheckId: this.taskInfo.id,
|
|
pageNumber: this.current - 1,
|
|
pageNumber: this.current - 1,
|
|
pageSize: this.size,
|
|
pageSize: this.size,
|
|
});
|
|
});
|
|
- this.papers = res.data;
|
|
|
|
|
|
+ this.papers = res.data.map((item) => {
|
|
|
|
+ return {
|
|
|
|
+ ...item,
|
|
|
|
+ dataType: this.curMenu,
|
|
|
|
+ };
|
|
|
|
+ });
|
|
this.total = res.totalCount;
|
|
this.total = res.totalCount;
|
|
this.totalPage = res.pageCount;
|
|
this.totalPage = res.pageCount;
|
|
},
|
|
},
|
|
@@ -185,6 +197,11 @@ export default {
|
|
// menu
|
|
// menu
|
|
toSwitchMenu(item) {
|
|
toSwitchMenu(item) {
|
|
this.curMenu = item.value;
|
|
this.curMenu = item.value;
|
|
|
|
+ if (this.curMenu === "task") {
|
|
|
|
+ this.initData();
|
|
|
|
+ } else {
|
|
|
|
+ this.toPage(1);
|
|
|
|
+ }
|
|
},
|
|
},
|
|
// paper
|
|
// paper
|
|
selectPaper(index) {
|
|
selectPaper(index) {
|