| | |
| | | getsearchrResults, |
| | | getPersonVoices, |
| | | getTaskservelist, |
| | | getTaskparticty, |
| | | getTaskFollowup, |
| | | Editsingletaskson, |
| | | serviceSubtaskDetailedit, |
| | | serviceSubtaskDetailadd, |
| | |
| | | taskname: "", |
| | | activeName: "wj", |
| | | voice: "", |
| | | templateid:'', |
| | | tableDatatop: [], //题目表 |
| | | voiceDatatop: [], //题目表 |
| | | Whetherall: false, //是否全部记录展示 |
| | |
| | | item.scriptResult = []; |
| | | } |
| | | }); |
| | | if (!this.tableDatatop.length) { |
| | | this.puttaskid(this.templateid); |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | // 获取问卷完整数据比对 |
| | | puttaskid(id) { |
| | | getTaskparticty(id).then((res) => { |
| | | getTaskFollowup(id).then((res) => { |
| | | if (res.code == 200) { |
| | | this.tableDatatop = res.data.ivrTaskTemplateScriptVOList; |
| | | this.tableDatatop.forEach((item) => { |
| | | // 类型判断赋值 |
| | | if (item.ivrTaskScriptTargetoptionList) { |
| | | item.targetvalue=1; |
| | | item.questiontext=item.scriptContent; |
| | | item.targetvalue = item.ivrTaskScriptTargetoptionList.map(obj => obj.targetvalue).join('&'); |
| | | } |
| | | if (item.targetvalue) { |
| | | item.scriptResult = item.targetvalue.split("&"); |
| | | } else { |
| | | item.scriptResult = []; |
| | | } |
| | | }); |
| | | console.log(this.tableDatatop,'this.tableDatatop'); |
| | | |
| | | } |
| | | }); |
| | |
| | | }).then((res) => { |
| | | if (res.code == 200) { |
| | | this.logsheetlist = res.rows[0].serviceSubtaskList; |
| | | this.puttaskid(this.logsheetlist[0].templateid) |
| | | this.templateid=this.logsheetlist[0].templateid |
| | | } |
| | | }); |
| | | }, |