GFRS-615 问卷调查VUE代码修改2 --提交人:阳华祥

This commit is contained in:
阳华祥
2020-02-23 21:20:04 +08:00
parent efa86c8190
commit 42974ad06d
2 changed files with 10 additions and 7 deletions

View File

@@ -10,7 +10,7 @@ export default [
name: 'surveyList',
component: surveyList,
meta: {
title: '问卷列表',
title: '问卷调查',
index: 1
}
},
@@ -20,7 +20,7 @@ export default [
name: 'surveyDetail',
component: surveyDetail,
meta: {
title: '问卷详情',
title: '问卷调查',
index: 1
}
},
@@ -30,7 +30,7 @@ export default [
name: 'shareCover',
component: shareCover,
meta: {
title: '问卷分享',
title: '问卷调查',
index: 1
}
}

View File

@@ -108,7 +108,8 @@ export default {
userModel: {
id: null
}
}
},
tableId: null
}
},
created() {
@@ -119,6 +120,7 @@ export default {
}
this.surveyDetailReqDTO.tableId = tableId
this.surveyAgentInfoReqDTO.tableId = tableId
this.tableId = tableId
// 获取代理人信息
this.getSurveyAgentInfo()
},
@@ -164,17 +166,18 @@ export default {
returnFlag = false
}
})
if (!/1\d{10}/.test(that.anwerJson['7'])) {
that.$toast('手机号格式错误')
}
if (!returnFlag) {
return
}
if (!/1\d{10}/.test(that.anwerJson['7'])) {
that.$toast('手机号格式错误')
}
// 初始化请求数据
that.surveyAnswerReqDTO.customerInfo.name = that.anwerJson['7']
that.surveyAnswerReqDTO.customerInfo.mobile = that.anwerJson['8']
that.surveyAnswerReqDTO.answer = JSON.stringify(this.anwerJson)
that.surveyAnswerReqDTO.userModel.id = that.agentInfo.agentCode
that.surveyAnswerReqDTO.tableId = that.tableId
saveSurveyAnswer(that.surveyAnswerReqDTO).then(res => {
if (res.result == '0') {
//跳转结果页面