|
@@ -203,7 +203,7 @@
|
|
currentPagePrivileges.SNAPSHOT_DETAILS
|
|
currentPagePrivileges.SNAPSHOT_DETAILS
|
|
"
|
|
"
|
|
type="text"
|
|
type="text"
|
|
- @click="gotoCaptureDetail(scope.row.dataId)"
|
|
|
|
|
|
+ @click="gotoCaptureDetail(scope.row)"
|
|
>{{ scope.row.dataId }}</el-button
|
|
>{{ scope.row.dataId }}</el-button
|
|
>
|
|
>
|
|
<span
|
|
<span
|
|
@@ -586,6 +586,27 @@ import _ from "lodash";
|
|
export default {
|
|
export default {
|
|
components: { commonFormVue },
|
|
components: { commonFormVue },
|
|
mixins: [pagePrivilege],
|
|
mixins: [pagePrivilege],
|
|
|
|
+ beforeRouteEnter(to, from, next) {
|
|
|
|
+ next((vm) => {
|
|
|
|
+ if (from.params?.checkedRows) {
|
|
|
|
+ const unwatch = vm.$watch("tableData", (tableData = []) => {
|
|
|
|
+ tableData.forEach((d) => {
|
|
|
|
+ vm.$refs["multipleTable"]?.toggleRowSelection(
|
|
|
|
+ d,
|
|
|
|
+ from.params.checkedRows.includes(d.dataId)
|
|
|
|
+ );
|
|
|
|
+ });
|
|
|
|
+ if (unwatch) {
|
|
|
|
+ unwatch();
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+ },
|
|
|
|
+ beforeRouteLeave(to, from, next) {
|
|
|
|
+ to.params.checkedRows = this.selectedIds;
|
|
|
|
+ next();
|
|
|
|
+ },
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
isOnlineExam: false,
|
|
isOnlineExam: false,
|
|
@@ -842,9 +863,15 @@ export default {
|
|
"/admin/oe/examPaperDetail/" + courseId + "/" + examRecordDataId
|
|
"/admin/oe/examPaperDetail/" + courseId + "/" + examRecordDataId
|
|
);
|
|
);
|
|
},
|
|
},
|
|
- gotoCaptureDetail(examRecordDataId) {
|
|
|
|
- this.$router.push({
|
|
|
|
- path: "/oe/captureDetail/" + examRecordDataId + "/examDetail",
|
|
|
|
|
|
+ gotoCaptureDetail(row) {
|
|
|
|
+ this.$refs["multipleTable"]?.toggleRowSelection(row, true);
|
|
|
|
+ this.$nextTick(() => {
|
|
|
|
+ /** checkbox UI选中状态延迟 */
|
|
|
|
+ setTimeout(() => {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ path: "/oe/captureDetail/" + row.examRecordDataId + "/examDetail",
|
|
|
|
+ });
|
|
|
|
+ }, 200);
|
|
});
|
|
});
|
|
},
|
|
},
|
|
exportData() {
|
|
exportData() {
|