|  |  | 
 |  |  |           v-for="(item, index) in questionList" | 
 |  |  |           :key="item.aaa" | 
 |  |  |         > | 
 |  |  |           <div class="dev-text"> | 
 |  |  |             {{ index + 1 }}、<span>{{ item.scriptContent }}</span> | 
 |  |  |           <div | 
 |  |  |             class="scriptTopic-dev" | 
 |  |  |             :key="item.sort" | 
 |  |  |             v-if="item.scriptType == 1" | 
 |  |  |           > | 
 |  |  |             <div class="dev-text"> | 
 |  |  |               {{ item.sort }}、[单选]<span>{{ item.scriptContent }}</span> | 
 |  |  |             </div> | 
 |  |  |             <div class="dev-xx"> | 
 |  |  |               <el-radio-group v-model="item.remark"> | 
 |  |  |                 <el-radio | 
 |  |  |                   v-for="(items, index) in item.svyLibTemplateTargetoptions" | 
 |  |  |                   :key="index" | 
 |  |  |                   :label="index" | 
 |  |  |                   >{{ items.optioncontent }}</el-radio | 
 |  |  |                 > | 
 |  |  |               </el-radio-group> | 
 |  |  |             </div> | 
 |  |  |           </div> | 
 |  |  |  | 
 |  |  |           <div class="dev-xx" v-if="item.valueType == 1"> | 
 |  |  |             <el-radio-group v-model="item.asrtext"> | 
 |  |  |               <el-radio | 
 |  |  |                 v-for="(items, index) in item.ivrLibaScriptTargetoptionList" | 
 |  |  |                 :key="items.id" | 
 |  |  |                 :label="items.targetvalue" | 
 |  |  |                 >{{ items.targetvalue }}</el-radio | 
 |  |  |               > | 
 |  |  |             </el-radio-group> | 
 |  |  |           <!-- 多选 --> | 
 |  |  |           <div | 
 |  |  |             class="scriptTopic-dev" | 
 |  |  |             :key="item.sort" | 
 |  |  |             v-if="item.scriptType == 2" | 
 |  |  |           > | 
 |  |  |             <div class="dev-text"> | 
 |  |  |               {{ item.sort }}、[多选]<span>{{ item.scriptContent }}</span> | 
 |  |  |             </div> | 
 |  |  |             <div class="dev-xx"> | 
 |  |  |               <el-checkbox-group v-model="qremark"> | 
 |  |  |                 <el-checkbox | 
 |  |  |                   v-for="(items, index) in item.svyLibTemplateTargetoptions" | 
 |  |  |                   :key="index" | 
 |  |  |                   :label="index" | 
 |  |  |                 > | 
 |  |  |                   {{ items.optioncontent }} | 
 |  |  |                 </el-checkbox> | 
 |  |  |               </el-checkbox-group> | 
 |  |  |             </div> | 
 |  |  |           </div> | 
 |  |  |           <div v-else> | 
 |  |  |             <el-input | 
 |  |  |               type="textarea" | 
 |  |  |               placeholder="请输入内容" | 
 |  |  |               v-model.sync="item.asrtext" | 
 |  |  |               :rows="2" | 
 |  |  |             /> | 
 |  |  |           <!-- 填空 --> | 
 |  |  |           <div | 
 |  |  |             class="scriptTopic-dev" | 
 |  |  |             :key="item.sort" | 
 |  |  |             v-if="item.scriptType == 4" | 
 |  |  |           > | 
 |  |  |             <div class="dev-text"> | 
 |  |  |               {{ item.sort }}、[问答]<span>{{ item.scriptContent }}</span> | 
 |  |  |             </div> | 
 |  |  |             <div class="dev-xx"> | 
 |  |  |               <el-input placeholder="请输入答案" v-model="radioas" clearable> | 
 |  |  |               </el-input> | 
 |  |  |             </div> | 
 |  |  |           </div> | 
 |  |  |         </div> | 
 |  |  |       </div> | 
 |  |  | 
 |  |  | <script> | 
 |  |  | import { | 
 |  |  |   getExternalfollowup, | 
 |  |  |   SetsaveQuestionAnswer, | 
 |  |  |   Submitaquestionnaire, | 
 |  |  | } from "@/api/AiCentre/index"; | 
 |  |  | import JSEncrypt from "jsencrypt"; | 
 |  |  | export default { | 
 |  |  | 
 |  |  |   methods: { | 
 |  |  |     // 获取数据 | 
 |  |  |     getQuestionnaire() { | 
 |  |  |       let taskid = this.$route.query.param1; | 
 |  |  |       let patid = this.$route.query.param2; | 
 |  |  |       this.taskid = this.$route.query.param1; | 
 |  |  |       this.patid = this.$route.query.param2; | 
 |  |  |       let taskname = this.$route.query.param3; | 
 |  |  |       let routertf = this.$route.query.param5; | 
 |  |  |  | 
 |  |  |       console.log(taskid, "taskid"); | 
 |  |  |       console.log(patid, "patid"); | 
 |  |  |       console.log(taskname, "taskname"); | 
 |  |  |       console.log(routertf, "routertf"); | 
 |  |  |       // console.log(taskid, "taskid"); | 
 |  |  |       // console.log(patid, "patid"); | 
 |  |  |       // console.log(taskname, "taskname"); | 
 |  |  |       // console.log(routertf, "routertf"); | 
 |  |  |       // let taskid = | 
 |  |  |       //   "OFp7tn/B6x7IzKJetvGWHdSWBj7msRlnlj6am9dyuHTH6sEt4uBbVCUXs5kcF/e4O2W6vqHf2Bz9K3/evbYDmw=="; | 
 |  |  |       // let patid = | 
 |  |  |       //   "CVk0j8O86AeCqhV5WPsBBYDg9fec0wDoDlP9imYK4wDBNIkxywZzMJEGlPagOxnq6qr2WYZo0U8MUGWRGnq8ZA=="; | 
 |  |  |       this.taskid = this.decrypt(taskid); | 
 |  |  |       this.patid = this.decrypt(patid); | 
 |  |  |       // 解密 | 
 |  |  |       // this.taskid = this.decrypt(taskid); | 
 |  |  |       // this.patid = this.decrypt(patid); | 
 |  |  |  | 
 |  |  |       // this.taskid = taskid; | 
 |  |  |       // this.patid = patid; | 
 |  |  |       console.log(this.taskid, "this.taskid"); | 
 |  |  |       console.log(this.patid, "this.patid"); | 
 |  |  |  | 
 |  |  |  | 
 |  |  |       this.$modal.msgSuccess("用户id为" + this.patid); | 
 |  |  |       this.$modal.msgSuccess("任务id为" + this.taskid); | 
 |  |  |       let taskids = this.encrypt(this.taskid); | 
 |  |  |       let patids = this.encrypt(this.patid); | 
 |  |  |       getExternalfollowup({ param1: taskids, param2: patids }).then((res) => { | 
 |  |  |       // let taskids = this.encrypt(this.taskid); | 
 |  |  |       // let patids = this.encrypt(this.patid); | 
 |  |  |       getExternalfollowup({ param1: this.taskid, param2: this.patid }).then((res) => { | 
 |  |  |         if (res.code == 200) { | 
 |  |  |           this.questionList = res.rows; | 
 |  |  |         } | 
 |  |  | 
 |  |  |       // 提交表单逻辑 | 
 |  |  |       console.log(this.questionList); | 
 |  |  |       let form = { | 
 |  |  |         param1: this.encrypt(this.taskid), | 
 |  |  |         param2: this.encrypt(this.patid), | 
 |  |  |         param1: this.taskid, | 
 |  |  |         param2: this.patid, | 
 |  |  |         ivrTaskcalldetailList: [], | 
 |  |  |       }; | 
 |  |  |       this.questionList.forEach((item) => { | 
 |  |  | 
 |  |  |       }); | 
 |  |  |       console.log(form, "form"); | 
 |  |  |  | 
 |  |  |       SetsaveQuestionAnswer(form).then((res) => { | 
 |  |  |       Submitaquestionnaire(form).then((res) => { | 
 |  |  |         if (res.code == 200) { | 
 |  |  |           this.$modal.msgSuccess("提交成功"); | 
 |  |  |         } |