| | |
| | | </el-radio-group> |
| | | </el-form-item></el-col |
| | | > |
| | | <!-- <el-col :span="8"> |
| | | <el-form-item label="是否必填" prop="ismandatory"> |
| | | <el-radio-group v-model="topicobj.ismandatory"> |
| | | <el-col :span="8" |
| | | ><el-form-item label="是否预约" prop="reservation"> |
| | | <el-radio-group v-model="topicobj.reservation"> |
| | | <el-radio |
| | | @change="$forceUpdate()" |
| | | v-for="(item, index) in required" |
| | | v-for="(item, index) in reservations" |
| | | :label="item.value" |
| | | >{{ item.label }}</el-radio |
| | | > |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> --> |
| | | </el-form-item></el-col |
| | | > |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | |
| | |
| | | </el-col> |
| | | </el-row> |
| | | |
| | | <!-- <el-form-item |
| | | label="" |
| | | prop="scriptContent" |
| | | v-if="topicobj.scriptType == 3" |
| | | > |
| | | <div style="display: flex; margin-bottom: 10px"> |
| | | <div class="tsgnames" @click="tsgnametos">插入填空标记</div> |
| | | </div> |
| | | </el-form-item> --> |
| | | <!-- <el-row> |
| | | <el-col :span="20"> |
| | | <el-form-item |
| | | label="填空信息" |
| | | v-if=" |
| | | topicobj.scriptType == 3 && |
| | | topicobj.svyLibScriptOptions.length |
| | | " |
| | | > |
| | | <el-card class="box-card" style="width: 200%"> |
| | | <div |
| | | v-for="item in topicobj.svyLibScriptOptions" |
| | | v-if="item.isoperation != 3" |
| | | style="margin-bottom: 10px" |
| | | > |
| | | <el-input |
| | | type="text" |
| | | placeholder="填入内容信息" |
| | | v-model="item.aaa" |
| | | > |
| | | <el-button |
| | | slot="append" |
| | | @click="deletexuanx(item)" |
| | | type="danger" |
| | | icon="el-icon-delete" |
| | | circle |
| | | ></el-button> |
| | | <span slot="prepend">{{ |
| | | "(" + item.orderno + ")" |
| | | }}</span> |
| | | </el-input> |
| | | </div> |
| | | </el-card> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> --> |
| | | |
| | | |
| | | <!-- <el-form-item label="选中指标:"> |
| | | <span style="margin-left: 30px" |
| | | ><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" |
| | | >+选择指标</el-button |
| | | ></span |
| | | > |
| | | </el-form-item> --> |
| | | </div> |
| | | <div class="headline">关联信息配置</div> |
| | | <el-divider></el-divider> |
| | |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="topicobj.picturePath" |
| | | :preview-src-list="[...topicobj.picturePath]" |
| | | :preview-src-list="topicobj.picturePath ? [topicobj.picturePath] : []" |
| | | > |
| | | </el-image> |
| | | </div> |
| | |
| | | </div> |
| | | <div v-if="Editprogress == 2"> |
| | | <el-card class="box-card"> |
| | | <el-form :inline="true" :model="topicobj" class="demo-form-inline"> |
| | | <el-form :inline="true" ref="topicobj" :model="topicobj" class="demo-form-inline"> |
| | | <div class="headline"> |
| | | 指标设置详情 |
| | | <span v-if="topicobj.targetname" style="margin-left: 30px" |
| | |
| | | <el-image |
| | | style="width: 100px; height: 100px" |
| | | :src="item.picturePath" |
| | | :preview-src-list="[...item.picturePath]" |
| | | :preview-src-list="item.picturePath ? [item.picturePath] : []" |
| | | > |
| | | </el-image> |
| | | </div> |
| | |
| | | optionstag: [], |
| | | valuetype: [], |
| | | usable: [], |
| | | reservations: [ |
| | | { label: "预约", value: "2" }, |
| | | { label: "非预约", value: "1" }, |
| | | ], |
| | | mode: [], //方式 |
| | | // 表单校验 |
| | | rules: { |
| | |
| | | this.dynamicTags = this.topicobj.svyLibScriptTagList.map( |
| | | this.processElement |
| | | ); |
| | | console.log(this.dynamicTags,'this.dynamicTags'); |
| | | |
| | | this.scriptTypels = this.topicobj.scriptType; |
| | | this.variablelist = JSON.parse(this.topicobj.otherdata) |
| | | ? JSON.parse(this.topicobj.otherdata) |
| | |
| | | let scorearr = this.topicobj.svyLibScriptOptions; |
| | | let isValid = scorearr.every((score, index) => { |
| | | if (this.topicobj.scriptType == 1) { |
| | | if (score.score) { |
| | | if (score.score||score.score==0) { |
| | | if ( |
| | | Number(score.score) < 0 || |
| | | Number(score.score) > Number(this.topicobj.score) |
| | |
| | | this.topicobj.scriptType = row.scriptType; |
| | | this.topicobj.scriptContent = row.targetdesc; |
| | | this.topicobj.targetid = row.id; |
| | | this.topicobj.prompt = row.prompt; |
| | | this.topicobj.targetname = row.targetname; |
| | | this.topicobj.svyLibScriptOptions = []; |
| | | const labellist = row.targetoptionList; |
| | |
| | | }; |
| | | listtag(tagqueryParams).then((response) => { |
| | | this.optionstag = response.rows; |
| | | console.log(this.optionstag,'optionstag'); |
| | | |
| | | }); |
| | | }, |
| | | handleClosetag(tag) { |