问卷调查详情显示问题、已结束不能点击提交;
This commit is contained in:
@@ -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 || {}
|
||||
|
||||
Reference in New Issue
Block a user