| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="8" |
| | | ><el-form-item label="语言(缺)"> |
| | | ><el-form-item label="语言"> |
| | | <el-select |
| | | v-model="topicobj.language" |
| | | size="medium" |
| | |
| | | <el-col :span="8" |
| | | ><el-form-item label="适用方式"> |
| | | <el-select |
| | | v-model="suitwaylist" |
| | | size="medium" |
| | | filterable |
| | | multiple |
| | | placeholder="请选择分类" |
| | | v-model="topicobj.suitway" |
| | | disabled |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | class="topicobjaa" |
| | |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :headers="headers" |
| | | :accept="'image/*,video/*'" |
| | | accept=".jpg,.png,image/*" |
| | | :on-success="handleChangetg" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | | <div slot="tip" class="el-upload__tip"> |
| | | 只能上传jpg/png类型文件 |
| | | </div> |
| | | </el-upload> |
| | | |
| | | <div style="margin: 20px"> |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :headers="headers" |
| | | :accept="'image/*,video/*'" |
| | | accept=".jpg,.png,image/*" |
| | | :on-success="handleChange.bind(this, item)" |
| | | > |
| | | <el-button size="small" type="primary">点击上传</el-button> |
| | |
| | | topicobj: { |
| | | svyLibScriptOptions: [], |
| | | svyLibScriptTagList: [], |
| | | suitway: "1", |
| | | }, |
| | | headers: { |
| | | Authorization: "Bearer " + getToken(), |
| | |
| | | this.dynamicTags = this.topicobj.svyLibScriptTagList.map( |
| | | this.processElement |
| | | ); |
| | | this.suitwaylist = this.topicobj.suitway.split(","); |
| | | this.variablelist = JSON.parse(this.topicobj.otherdata) |
| | | ? JSON.parse(this.topicobj.otherdata) |
| | | : this.variablelist; |
| | |
| | | } |
| | | ); |
| | | this.topicobj.targetoptions = this.topicobj.svyLibScriptOptions |
| | | .filter((item) => item.isoperation != 3) |
| | | .map((item) => item.optioncontent) |
| | | .join(", "); |
| | | this.topicobj.otherdata = JSON.stringify(this.variablelist); |
| | | this.topicobj.suitway = this.suitwaylist.join(","); |
| | | if (this.id) { |
| | | this.topicobj.isoperation = 2; |
| | | compileissue(this.topicobj).then((res) => { |
| | |
| | | // this.illnessVisible = false; |
| | | // this.$modal.msgSuccess("编辑成功"); |
| | | // }, |
| | | resetQuery() {}, |
| | | resetQuery() { |
| | | this.queryParams = { |
| | | pageNum: 1, |
| | | pageSize: 10, |
| | | }; |
| | | this.gettargetInfo(); |
| | | }, |
| | | // 便捷标签 |
| | | tsgnameto(row) { |
| | | let inputValueArr = ""; |