|
@@ -63,6 +63,10 @@ export default {
|
|
return {};
|
|
return {};
|
|
},
|
|
},
|
|
},
|
|
},
|
|
|
|
+ showType: {
|
|
|
|
+ type: String,
|
|
|
|
+ default: "invigilation",
|
|
|
|
+ },
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
@@ -82,10 +86,17 @@ export default {
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
toDetail() {
|
|
toDetail() {
|
|
- this.$router.push({
|
|
|
|
- name: "WarningDetail",
|
|
|
|
- params: { recordId: this.data.examRecordId },
|
|
|
|
- });
|
|
|
|
|
|
+ if (this.showType === "invigilation") {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: "WarningDetail",
|
|
|
|
+ params: { recordId: this.data.examRecordId },
|
|
|
|
+ });
|
|
|
|
+ } else {
|
|
|
|
+ this.$router.push({
|
|
|
|
+ name: "PatrolWarningDetail",
|
|
|
|
+ params: { recordId: this.data.examRecordId },
|
|
|
|
+ });
|
|
|
|
+ }
|
|
},
|
|
},
|
|
toLargeView() {
|
|
toLargeView() {
|
|
this.muted = true;
|
|
this.muted = true;
|