| | |
| | | ></span |
| | | > |
| | | <span style="margin-left: 30px" |
| | | >选中指标:{{ topicobj.scriptTopic }}</span |
| | | >选中指标:<el-tag type="success" effect="dark">{{ |
| | | topicobj.targetname ? topicobj.targetname : "未选择" |
| | | }}</el-tag></span |
| | | > |
| | | <span style="margin-left: 30px" |
| | | ><el-button type="success" round @click="gettargetInfo" |
| | |
| | | return item; |
| | | } |
| | | ); |
| | | this.topicobj.targetoptions = this.topicobj.svyLibScriptOptions |
| | | .map((item) => item.optioncontent) |
| | | .join(", "); |
| | | this.topicobj.otherdata = JSON.stringify(this.variablelist); |
| | | this.topicobj.suitway = this.suitwaylist.join(","); |
| | | if (this.id) { |
| | |
| | | }, |
| | | Saveproblem() { |
| | | if (this.topicobj.scoretype == 1) { |
| | | console.log(321); |
| | | this.Scorejudgment(); |
| | | } else { |
| | | this.compileissue(); |
| | |
| | | ) |
| | | .then(() => { |
| | | console.log(row); |
| | | console.log(this.topicobj); |
| | | this.topicobj.scriptTopic = row.targetname; |
| | | this.topicobj.valueType = row.valueType; |
| | | this.topicobj.scriptContent = row.targetdesc; |
| | | this.topicobj.targetid = row.id; |
| | | this.topicobj.targetname = row.targetname; |
| | | this.topicobj.isavailable = "0"; |
| | | this.topicobj.language = "普通话"; |
| | | this.topicobj.svyLibScriptOptions = []; |
| | |
| | | handleChange(item, response, file, fileList) { |
| | | console.log(response); |
| | | if (response.code == 200) { |
| | | console.log(item); |
| | | let index = this.topicobj.svyLibScriptOptions.findIndex( |
| | | (obj) => obj.id == item.id && obj.name == item.name |
| | | (obj) => obj.optioncontent == item.optioncontent |
| | | ); |
| | | console.log(index); |
| | | this.topicobj.svyLibScriptOptions[index].picturePath = response.url; |
| | | console.log(this.topicobj.svyLibScriptOptions[index]); |
| | | this.$forceUpdate(); |
| | | } else { |
| | | this.$message.error("图片插入失败"); |
| | | } |