问卷调查详情显示问题、已结束不能点击提交;

This commit is contained in:
zhouyanli
2026-06-24 17:12:43 +08:00
parent a501524646
commit 8939fec34b
5 changed files with 61 additions and 23 deletions

View File

@@ -60,7 +60,7 @@ const questionList = computed(() => {
})
const answerMap = computed(() => {
const answerContent = detailItem.value?.answerContent
const answerContent = detailItem.value?.myAnswer
if (!answerContent) return {}
try {
const list = JSON.parse(answerContent)
@@ -77,8 +77,8 @@ const answerMap = computed(() => {
const getDetailData = async () => {
try {
const params = { questionnairedId: currentId.value }
const res = await getQuestionnaireDetail(params)
const params = { villageId: uni.getStorageSync('currentVillageId') }
const res = await getQuestionnaireDetail(currentId.value, params)
if (res.code === 200) {
const data = Array.isArray(res.data) ? res.data[0] : res.data
detailItem.value = data || {}