| | |
| | | {{ index + 1 }}、[单选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.scriptResult"> |
| | | <el-radio-group v-model="item.scriptResult" @change="handleOptionChange($event, index, item)"> |
| | | <el-radio |
| | | v-for="(items, index) in item.svyLibTemplateTargetoptions" |
| | | :key="index" |
| | | :label="index" |
| | | :label="items.optioncontent" |
| | | >{{ items.optioncontent }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | |
| | | } |
| | | ); |
| | | }, |
| | | // 获取数据 |
| | | getExternalfollowup() { |
| | | getExternalfollowup({ param1: this.taskid, param2: this.patid }).then( |
| | | (res) => { |
| | |
| | | const arr = structuredClone(this.questionList); |
| | | arr.forEach((item) => { |
| | | item.asrtext = JSON.stringify(item.scriptResult); |
| | | if (item.scriptType == 2 && item.scriptResult[0]) { |
| | | item.asrtext = item.scriptResult.join("&"); |
| | | } |
| | | }); |
| | | form.serviceSubtaskDetailList = arr; |
| | | Submitaquestionnaire(form).then((res) => { |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 处理选项 |
| | | handleOptionChange(selectedvalue, index,arr) { |
| | | // 查找选中的选项对象 |
| | | const selectedOption = arr.svyLibTemplateTargetoptions.find( |
| | | (option) => option.optioncontent == selectedvalue |
| | | ); |
| | | if (selectedOption) { |
| | | // 将选中的选项对象的 id 赋值给 obj.sonId |
| | | this.questionList[index].nextScriptno = selectedOption.nextQuestion; |
| | | } |
| | | }, |
| | | }, |
| | | }; |
| | | </script> |
| | |
| | | value: "2", |
| | | label: "纸质", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信公众号", |
| | | }, |
| | | ]; |
| | | } else if (this.form.serviceType == 6) { |
| | | this.checkboxlist = [ |
| | |
| | | label: "微信小程序", |
| | | }, |
| | | ]; |
| | | }else if (this.form.serviceType == 2 || this.form.serviceType == 3) { |
| | | this.checkboxlist = [ |
| | | { |
| | | value: "1", |
| | | label: "人工", |
| | | }, |
| | | { |
| | | value: "3", |
| | | label: "电话", |
| | | }, |
| | | { |
| | | value: "4", |
| | | label: "短信", |
| | | }, |
| | | { |
| | | value: "5", |
| | | label: "微信公众号", |
| | | }, |
| | | { |
| | | value: "6", |
| | | label: "微信小程序", |
| | | }, |
| | | |
| | | { |
| | | value: "8", |
| | | label: "智能机器人", |
| | | }, |
| | | ]; |
| | | } |
| | | getQtemplatelist(queryParams).then((response) => { |
| | | this.userList = response.rows; |