mirror of
http://112.124.100.131/GFRS/ebiz-h5.git
synced 2025-12-25 11:52:52 +08:00
GFRS-615 问卷调查VUE代码修改2 --提交人:阳华祥
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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') {
|
||||
//跳转结果页面
|
||||
|
||||
Reference in New Issue
Block a user