Commit 974183a8 by xinla

判断用户是否填写逻辑调整

1 parent a37c5532
...@@ -718,19 +718,19 @@ export default { ...@@ -718,19 +718,19 @@ export default {
data.createTime = new Date() data.createTime = new Date()
} }
isCompleteSurvey(data).then((response) => { isCompleteSurvey(data).then((res) => {
console.log('判断用户是否填写', response) // console.log('判断用户是否填写', res)
if (response.code == 200) { // res.data = true / false
} else { if (res?.data == true) {
// this.toast(response.data) this.ifEnd = true
this.fromList = '' // this.fromList = ''
showDialog({ // showDialog({
title: '提示', // title: '提示',
message: '当前问卷您已填写完毕,暂时无法填写。', // message: '当前问卷您已填写完毕,暂时无法填写。',
confirmButtonText: '我知道了', // confirmButtonText: '我知道了',
}).then(() => { // }).then(() => {
// on close // // on close
}) // })
} }
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!