| | |
| | | <div class="title">{{ taskname ? taskname : "问卷" }}</div> |
| | | |
| | | <div class="preview-left" v-if="!Voicetype"> |
| | | <!-- 单选 --> |
| | | <div |
| | | class="topic-dev" |
| | | v-for="(item, index) in tableDatatop" |
| | | :key="item.id" |
| | | > |
| | | <!-- 单选 --> |
| | | <div |
| | | :class=" |
| | | item.isabnormal |
| | |
| | | if (res.code === 200) { |
| | | this.tableDatatop = res.data.scriptResult; |
| | | this.tableDatatop.forEach((item) => { |
| | | console.log(item.scriptResultId, "scriptResultId"); |
| | | |
| | | if (item.scriptResultId && item.scriptType != 2) { |
| | | if (item.scriptType == 2) item.scriptResult = []; |
| | | if (item.scriptResult && item.scriptType != 2) { |
| | | item.isoption = 3; |
| | | item.scriptResult = item.scriptResult; |
| | | } else if (item.scriptResultId && item.scriptType == 2) { |
| | | } else if (item.scriptResult && item.scriptType == 2) { |
| | | item.scriptResult = item.scriptResult.split("&"); |
| | | item.isoption = 3; |
| | | } |
| | |
| | | item.scriptResult = []; |
| | | } |
| | | }); |
| | | console.log(this.tableDatatop, "this.tableDatatop"); |
| | | |
| | | if (!this.tableDatatop.length) { |
| | | this.puttaskid(this.templateid); |
| | | } |
| | |
| | | } |
| | | this.getuserinfo(); |
| | | } |
| | | console.log(this.Voicetype, "this.Voicetype"); |
| | | |
| | | if (this.Voicetype) { |
| | | this.getPersonVoices(); |
| | | } else { |
| | |
| | | }, |
| | | overdata() { |
| | | this.tableDatatop.forEach((item, index) => { |
| | | console.log(item.svyLibTemplateTargetoptions); |
| | | |
| | | var obj = item.svyLibTemplateTargetoptions.find( |
| | | (items) => items.optioncontent == item.scriptResult |
| | | ); |