| | |
| | | <el-table-column |
| | | label="编号" |
| | | align="center" |
| | | key="targetid" |
| | | prop="targetid" |
| | | key="sort" |
| | | prop="sort" |
| | | /> |
| | | <el-table-column |
| | | label="标题" |
| | |
| | | <div class="presentation-right"> |
| | | <el-card class="box-card"> |
| | | <el-form |
| | | :inline="true" |
| | | :model="topicobj" |
| | | :inline="true" |
| | | class="demo-form-inline" |
| | | > |
| | | <div class="headline"> |
| | | 题目设置详情 |
| | | <!-- <span style="margin-left: 30px" |
| | | ><el-button type="primary" @click="Submittopicobj" |
| | | >保存</el-button |
| | | ></span |
| | | > --> |
| | | </div> |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.scriptTopic" |
| | | placeholder="请从左侧列表选择" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="问题节点"> |
| | | <el-input |
| | | v-model="topicobj.targetid" |
| | | placeholder="请从左侧列表选择" |
| | | :disabled="true" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <div class="headline">题目设置详情</div> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.scriptTopic" |
| | | placeholder="请从左侧列表选择" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="问题话术"> |
| | | <el-input |
| | | type="textarea" |
| | | style="width: 400px" |
| | | v-model="topicobj.scriptContent" |
| | | placeholder="请从左侧列表选择" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="问题节点"> |
| | | <el-input |
| | | v-model="topicobj.sort" |
| | | placeholder="请从左侧列表选择" |
| | | :disabled="true" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="是否必填"> |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-form-item label="问题语音" v-if="topicobj.scriptVoice"> |
| | | <mini-audio :audio-source="topicobj.scriptVoice"></mini-audio> |
| | | </el-form-item> |
| | | |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="问题语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :headers="headers" |
| | | :show-file-list="false" |
| | | :on-success=" |
| | | (response, file) => handleChanges(response, file, 1) |
| | | " |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 18px; margin-top: 10px" |
| | | v-if="topicobj.scriptVoice" |
| | | >{{ |
| | | topicobj.scriptVoice.substring( |
| | | topicobj.scriptVoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.scriptVoice |
| | | ? topicobj.scriptVoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | <div |
| | | class="topicxq" |
| | | v-if="topicobj.valueType == 2 || topicobj.valueType == 3" |
| | |
| | | </el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item |
| | | label="无匹配语音" |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="无匹配语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :show-file-list="false" |
| | | :headers="headers" |
| | | :on-success=" |
| | | (response, file) => |
| | | handleChanges(response, file, 2) |
| | | " |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 12px" |
| | | v-if="topicobj.nomatchvoice" |
| | | >{{ |
| | | topicobj.nomatchvoice.substring( |
| | | topicobj.nomatchvoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | <mini-audio |
| | | :audio-source="topicobj.nomatchvoice" |
| | | ></mini-audio> </el-form-item |
| | | ></el-col> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.nomatchvoice |
| | | ? topicobj.nomatchvoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="topicxq"> |
| | |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item |
| | | label="语音文件" |
| | | v-if="topicobj.noclearlyvoice" |
| | | > |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.noclearlyvoice |
| | | ? topicobj.noclearlyvoice |
| | | : 'https://example.com/example.mp3' |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="听不清语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :show-file-list="false" |
| | | :headers="headers" |
| | | :on-success=" |
| | | (response, file) => |
| | | handleChanges(response, file, 4) |
| | | " |
| | | ></mini-audio> </el-form-item |
| | | ></el-col> |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 12px" |
| | | v-if="topicobj.noclearlyvoice" |
| | | >{{ |
| | | topicobj.noclearlyvoice.substring( |
| | | topicobj.noclearlyvoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.noclearlyvoice |
| | | ? topicobj.noclearlyvoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div class="topicxq"> |
| | |
| | | ></el-col> |
| | | </el-row> |
| | | |
| | | <el-row :gutter="10"> |
| | | <el-col :span="16"> |
| | | <el-form-item |
| | | label="语音文件" |
| | | v-if="topicobj.sliencevoice" |
| | | > |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.sliencevoice |
| | | ? topicobj.sliencevoice |
| | | : 'https://example.com/example.mp3' |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="静默语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :show-file-list="false" |
| | | :headers="headers" |
| | | :on-success=" |
| | | (response, file) => |
| | | handleChanges(response, file, 3) |
| | | " |
| | | ></mini-audio> </el-form-item |
| | | ></el-col> |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 12px" |
| | | v-if="topicobj.sliencevoice" |
| | | >{{ |
| | | topicobj.sliencevoice.substring( |
| | | topicobj.sliencevoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | topicobj.sliencevoice |
| | | ? topicobj.sliencevoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="item in valssu" |
| | | :key="item.targetid" |
| | | :key="item.sort" |
| | | v-if="item.valueType == 1" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[单选]<span>{{ item.scriptContent }}</span> |
| | | {{ item.sort }}、[单选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="item.remark"> |
| | |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="item in valssu" |
| | | :key="item.targetid" |
| | | :key="item.sort" |
| | | v-if="item.valueType == 2" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[多选]<span>{{ item.scriptContent }}</span> |
| | | {{ item.sort }}、[多选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="item.remark"> |
| | |
| | | <div |
| | | class="scriptTopic-dev" |
| | | v-for="item in valssu" |
| | | :key="item.targetid" |
| | | :key="item.sort" |
| | | v-if="item.valueType == 3" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.targetid }}、[填空]<span>{{ item.scriptContent }}</span> |
| | | {{ item.sort }}、[填空]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-input placeholder="请输入答案" v-model="radioas" clearable> |
| | |
| | | > |
| | | </div> |
| | | <el-divider></el-divider> |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="indexform.scriptTopic" |
| | | placeholder="请输入题目标题" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="问题节点"> |
| | | <el-input |
| | | v-model="indexform.targetid" |
| | | placeholder="请输入问题节点" |
| | | ></el-input> |
| | | </el-form-item> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="是否必填"> |
| | | <el-select |
| | | v-model="indexform.isMust" |
| | | placeholder="默认必填" |
| | | > |
| | | <el-option |
| | | v-for="item in required" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | <div> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12"> |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="indexform.scriptTopic" |
| | | placeholder="请输入题目标题" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="12"> |
| | | <el-form-item label="问题节点"> |
| | | <el-input |
| | | v-model="indexform.sort" |
| | | placeholder="请输入问题节点" |
| | | ></el-input> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="18" |
| | | ><el-form-item label="问题话术"> |
| | | <el-input |
| | | style="width: 400px" |
| | | type="textarea" |
| | | v-model="indexform.scriptContent" |
| | | placeholder="请从左侧列表选择" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <el-row :gutter="10"> |
| | | <el-col :span="12" |
| | | ><el-form-item label="是否必填"> |
| | | <el-select |
| | | v-model="indexform.isMust" |
| | | placeholder="默认必填" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <!-- <el-col :span="12" |
| | | ><el-form-item label="取值类型"> |
| | | <el-select |
| | | v-model="indexform.valueType" |
| | | placeholder="请选择" |
| | | :disabled="true" |
| | | > |
| | | <el-option |
| | | v-for="item in valuetype" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | <el-option |
| | | v-for="item in required" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <!-- <el-col :span="12" |
| | | ><el-form-item label="取值类型"> |
| | | <el-select |
| | | v-model="indexform.valueType" |
| | | placeholder="请选择" |
| | | :disabled="true" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="问题语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :headers="headers" |
| | | :show-file-list="false" |
| | | :on-success=" |
| | | (response, file) => handleChange(response, file, 1) |
| | | <el-option |
| | | v-for="item in valuetype" |
| | | :key="item.value" |
| | | :label="item.label" |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> </el-form-item |
| | | ></el-col> --> |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="问题语音" prop="verbaltrickyy"> |
| | | <el-upload |
| | | class="upload-demo" |
| | | :action="uploadImgUrl" |
| | | :headers="headers" |
| | | :show-file-list="false" |
| | | :on-success=" |
| | | (response, file) => handleChange(response, file, 1) |
| | | " |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 18px; margin-top: 10px" |
| | | v-if="indexform.scriptVoice" |
| | | >{{ |
| | | indexform.scriptVoice.substring( |
| | | indexform.scriptVoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | indexform.scriptVoice |
| | | ? indexform.scriptVoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | accept=".wav,.mp3" |
| | | :limit="1" |
| | | > |
| | | <el-button size="small" type="primary" |
| | | >点击上传</el-button |
| | | > |
| | | </el-upload> |
| | | </el-form-item> |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <span |
| | | style="font-size: 18px; margin-top: 10px" |
| | | v-if="indexform.scriptVoice" |
| | | >{{ |
| | | indexform.scriptVoice.substring( |
| | | indexform.scriptVoice.lastIndexOf("/") + 1 |
| | | ) |
| | | }}</span |
| | | > |
| | | </el-col> |
| | | <el-col :span="6"> |
| | | <mini-audio |
| | | :audio-source=" |
| | | indexform.scriptVoice |
| | | ? indexform.scriptVoice |
| | | : 'https://example.com/example.mp3' |
| | | " |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | ></mini-audio> |
| | | </el-col> |
| | | </el-row> |
| | | </div> |
| | | <div> |
| | | <el-form-item label="指标名称" prop="deptId"> |
| | | <el-input |
| | |
| | | <Regular |
| | | :TargetoptionList="indexform.ivrLibaScriptTargetoptionList" |
| | | @deloption="deloption" |
| | | @addoption="addoptionson" |
| | | :controlsc="false" |
| | | :addoption="true" |
| | | /> |
| | | <!-- 无匹配类型 --> |
| | | <div class="topicxq"> |
| | |
| | | }, |
| | | }; |
| | | }, |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | | this.RoutingDataProcessing(); |
| | | this.gettabList(); |
| | | this.getvFollowup(); |
| | | this.auxiliary(); |
| | | } |
| | | }, |
| | | |
| | | created() { |
| | | this.RoutingDataProcessing(); |
| | |
| | | }); |
| | | }); |
| | | compileFollowup(this.ruleForm).then((res) => { |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | this.confirmillness(res.data); |
| | | this.$router.go(-1); |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | this.$modal.closeLoading(); |
| | | this.confirmillness(res.data); |
| | | |
| | | const obj = { path: "/knowledge/templateku/" }; |
| | | this.$tab.closeOpenPage(obj); |
| | | } else { |
| | | this.$modal.msgError("保存失败"); |
| | | |
| | | this.$modal.closeLoading(); |
| | | } |
| | | }); |
| | | }, |
| | | confirmillness(guid) { |
| | |
| | | }, |
| | | // 科室处理 |
| | | Departmenttreatment() { |
| | | this.$modal.loading("正在上传数据,请稍候..."); |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); |
| | |
| | | type: "warning", |
| | | }) |
| | | .then(() => { |
| | | this.$router.go(-1); |
| | | const obj = { path: "/knowledge/templateku/" }; |
| | | this.$tab.closeOpenPage(obj); |
| | | }) |
| | | .catch(() => { |
| | | this.$message({ |
| | |
| | | }); |
| | | }); |
| | | }, |
| | | //控制语音文件 |
| | | //控制语音文件(新) |
| | | handleChange(response, file, additionalParam) { |
| | | console.log(response); |
| | | console.log(additionalParam); |
| | | if (additionalParam == 1) { |
| | | this.indexform.scriptVoice = response.url; |
| | | console.log(this.indexform.scriptVoice); |
| | | } 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) { |
| | | this.indexform.noclearlyvoice = response.url; |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | | //控制语音文件 |
| | | handleChanges(response, file, additionalParam) { |
| | | console.log(response); |
| | | console.log(additionalParam); |
| | | if (additionalParam == 1) { |
| | | this.topicobj.scriptVoice = response.url; |
| | | } else if (additionalParam == 2) { |
| | | this.topicobj.nomatchvoice = response.url; |
| | | } else if (additionalParam == 3) { |
| | | this.topicobj.sliencevoice = response.url; |
| | | } else if (additionalParam == 4) { |
| | | this.topicobj.noclearlyvoice = response.url; |
| | | } |
| | | this.$forceUpdate(); |
| | | }, |
| | |
| | | ); |
| | | row.isoperation = 3; |
| | | this.delScriptVOList.push(row); |
| | | this.sortFn(); |
| | | this.$modal.msgSuccess("已删除,保存模版生效"); |
| | | }) |
| | | .catch(() => {}); |
| | |
| | | sortFn() { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => { |
| | | return Object.assign({}, item, { targetid: (index + 1).toString() }); |
| | | return Object.assign({}, item, { sort: (index + 1).toString() }); |
| | | }); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.forEach((question, index) => { |
| | | question.ivrLibaScriptTargetoptionList = |
| | | question.ivrLibaScriptTargetoptionList.map((option) => { |
| | | option.nextQuestion = Number(question.targetid) + 1; |
| | | option.nextQuestion = Number(question.sort) + 1; |
| | | return option; |
| | | }); |
| | | }); |
| | |
| | | deloption() {}, |
| | | // 修改题目信息 |
| | | Submittopicobj() { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList[this.optionIndex] = |
| | | this.topicobj; |
| | | this.$modal.msgSuccess("暂存选项成功"); |
| | | this.$modal |
| | | .confirm( |
| | | '是否确认新增名称为"' + this.indexform.scriptTopic + '"的问题数据?' |
| | | ) |
| | | .then(() => { |
| | | this.indexform.isoperation = 1; |
| | | this.indexform.pid = this.ruleForm.id; |
| | | this.indexform.ivrLibaScriptTargetoptionList.forEach((item) => { |
| | | item.isoperation = 1; |
| | | }); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.push(this.indexform); |
| | | this.indexform = { |
| | | ivrLibaScriptTargetoptionList: [], |
| | | }; |
| | | this.drawer = false; |
| | | |
| | | this.sortFn(); |
| | | this.$modal.msgSuccess("题目新增成功,保存模版失效"); |
| | | }); |
| | | }, |
| | | |
| | | // --------------------- |
| | |
| | | nodynamiccruxsJson: "", |
| | | }); |
| | | } |
| | | }, |
| | | addoptionson() { |
| | | this.indexform.ivrLibaScriptTargetoptionList.push({ |
| | | guid: 1, |
| | | isoperation: 1, |
| | | targetvalue: "", |
| | | targetregex: "", |
| | | targetregex2: "", |
| | | dynamiccruxs: [], |
| | | nodynamiccruxs: [], |
| | | dynamiccruxsJson: "", |
| | | nodynamiccruxsJson: "", |
| | | }); |
| | | }, |
| | | }, |
| | | }; |
| | |
| | | vertical-align: bottom; |
| | | } |
| | | } |
| | | |
| | | .xinz-infs { |
| | | font-size: 18px; |
| | | line-height: 48px; |