|
|
@@ -22,7 +22,7 @@ |
|
|
|
</div> |
|
|
|
<div class="list_box"> |
|
|
|
<div class="item" v-for="(item, index) in topic" :key="index"> |
|
|
|
<div class="label"> |
|
|
|
<div :class="['label', {error: (isError && fromSsjl && item.Id == '8') || (isError && fromSsjl && item.Id == '11')}]"> |
|
|
|
<span>{{ item.Title }}</span> |
|
|
|
<span>({{ item.Type }})</span> |
|
|
|
</div> |
|
|
@@ -38,6 +38,7 @@ |
|
|
|
:key="idx" |
|
|
|
:title="ite.label" |
|
|
|
@click="onRadio(index, ite.value)" |
|
|
|
:title-class="[{cellTitle: (isError && fromSsjl && item.Id == '8') || (isError && fromSsjl && item.Id == '11')}]" |
|
|
|
> |
|
|
|
<template #right-icon> |
|
|
|
<van-radio :name="ite.value" /> |
|
|
@@ -89,7 +90,9 @@ export default { |
|
|
|
keyCode: '', |
|
|
|
title: '', |
|
|
|
topic: [], //题目列表 |
|
|
|
select: [], |
|
|
|
select: [], |
|
|
|
isError: null, //是否是答题错误 |
|
|
|
fromSsjl: this.$store.getters.fromSsjl |
|
|
|
} |
|
|
|
}, |
|
|
|
mounted() { |
|
|
@@ -201,7 +204,8 @@ export default { |
|
|
|
data: temp, |
|
|
|
}, this.$store.getters.ssjlToken) |
|
|
|
if (re.success) { |
|
|
|
this.$toast('问卷提交成功', 3000) |
|
|
|
this.$toast('问卷提交成功', 3000); |
|
|
|
this.isError = false; |
|
|
|
setTimeout(() => { |
|
|
|
// 2023.09.25 使用此返回方法可能会导致页面返回异常,故使用路由跳转到指定页面 |
|
|
|
this.$router.replace({ |
|
|
@@ -210,7 +214,6 @@ export default { |
|
|
|
uid: this.uid |
|
|
|
} |
|
|
|
}) |
|
|
|
/* window.history.back(-1); */ |
|
|
|
}, 3000) |
|
|
|
} else { |
|
|
|
//this.$toast(re.msg); |
|
|
@@ -218,6 +221,7 @@ export default { |
|
|
|
message: re.msg, |
|
|
|
showCancelButton: false, |
|
|
|
}); |
|
|
|
this.isError = true; |
|
|
|
} |
|
|
|
}, |
|
|
|
onRadio(index, value) { |
|
|
@@ -337,7 +341,17 @@ export default { |
|
|
|
|
|
|
|
.label { |
|
|
|
font-size: 4vw; |
|
|
|
&.error { |
|
|
|
color: red; |
|
|
|
} |
|
|
|
} |
|
|
|
.van-cell { |
|
|
|
.van-cell__title { |
|
|
|
&.cellTitle { |
|
|
|
color: red; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|