| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span style="font-size: 12px">{{ |
| | | <span style="font-size: 12px" v-if="indexform.scriptVoice">{{ |
| | | indexform.scriptVoice.substring( |
| | | indexform.scriptVoice.lastIndexOf("/") + 1 |
| | | ) |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span style="font-size: 12px">{{ |
| | | <span style="font-size: 12px" v-if="indexform.nomatchvoice">{{ |
| | | indexform.nomatchvoice.substring( |
| | | indexform.nomatchvoice.lastIndexOf("/") + 1 |
| | | ) |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span style="font-size: 12px">{{ |
| | | <span style="font-size: 12px" v-if="indexform.sliencevoice">{{ |
| | | indexform.sliencevoice.substring( |
| | | indexform.sliencevoice.lastIndexOf("/") + 1 |
| | | ) |
| | |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span style="font-size: 12px">{{ |
| | | <span style="font-size: 12px" v-if="indexform.noclearlyvoice">{{ |
| | | indexform.noclearlyvoice.substring( |
| | | indexform.noclearlyvoice.lastIndexOf("/") + 1 |
| | | ) |
| | |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="值类型"> |
| | | <el-radio-group disabled v-model="indexform.valueType"> |
| | | <el-radio-group |
| | | :disabled="indexform.targetid" |
| | | v-model="indexform.valueType" |
| | | > |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="题目类型"> |
| | | <el-radio-group disabled v-model="indexform.scriptType"> |
| | | <el-radio-group |
| | | @input="typeselection" |
| | | :disabled="indexform.targetid" |
| | | v-model="indexform.scriptType" |
| | | > |
| | | <el-radio :label="1">单选</el-radio> |
| | | <el-radio :label="2">多选</el-radio> |
| | | <el-radio :label="3">填空</el-radio> |
| | | <!-- <el-radio :label="2">多选</el-radio> --> |
| | | <el-radio :label="4">问答</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col></el-row |
| | | > |
| | | <div v-if="indexform.valueType == 1"> |
| | | <div v-if="indexform.scriptType == 1 || indexform.scriptType == 2"> |
| | | <el-card class="box-card" style="margin-bottom: 20px"> |
| | | <Regular |
| | | :TargetoptionList="indexform.ivrLibaScriptTargetoptionList" |
| | |
| | | style="width: 200px" |
| | | @keyup.enter.native="gettargetInfo" |
| | | /> |
| | | </el-form-item> |
| | | <el-form-item label="指标类型" prop="scriptType"> |
| | | <el-select v-model="queryParams.scriptType" placeholder="请选择"> |
| | | <el-option |
| | | v-for="(item, index) in qyoptions" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | |
| | | <el-form-item> |
| | |
| | | |
| | | addvalue: "添加题目", |
| | | languagelist: [], //语言列表 |
| | | qyoptions: [], |
| | | // 查询参数 |
| | | queryParams: { |
| | | pageNum: 1, |
| | |
| | | this.languagelist = store.getters.languagelist; |
| | | this.usable = store.getters.usable; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | this.qyoptions = store.getters.askvaluetype; |
| | | }, |
| | | |
| | | methods: { |
| | | // 获取详情数据 |
| | | getverbaltrick() { |
| | | let id = this.$route.query.id; |
| | | this.indexform.language = "普通话"; |
| | | this.indexform.isAvailable = "1"; |
| | | |
| | | if (id) { |
| | | getverbaltrick({ id: id }).then((res) => { |
| | | this.indexform = res.data; |
| | |
| | | .catch(() => {}); |
| | | }, |
| | | gettargetInfo() { |
| | | this.queryParams.suitWay = 2; |
| | | gettargetInfo(this.queryParams).then((res) => { |
| | | console.log(res); |
| | | this.targetList = res.rows; |
| | |
| | | this.gettargetInfo(); |
| | | }, |
| | | |
| | | // 题目类型更换 |
| | | typeselection(row) { |
| | | if ( |
| | | (row == 1 || row == 2) && |
| | | !this.indexform.ivrLibaScriptTargetoptionList.length |
| | | ) { |
| | | this.indexform.ivrLibaScriptTargetoptionList.push({ |
| | | guid: 1, |
| | | isoperation: 1, |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | | nodynamiccruxsJson: "", |
| | | }); |
| | | } |
| | | }, |
| | | // 下一步 |
| | | nextstep() { |
| | | if (this.Editprogress <= 1) { |
| | |
| | | this.indexform.scriptVoice = response.url; |
| | | } else if (additionalParam == 2) { |
| | | this.indexform.nomatchvoice = response.url; |
| | | console.log(this.indexform.nomatchvoice); |
| | | } else if (additionalParam == 3) { |
| | | this.indexform.sliencevoice = response.url; |
| | | } else if (additionalParam == 4) { |