| | |
| | | <div id="app"> |
| | | <router-view /> |
| | | <theme-picker /> |
| | | <Assistant v-if="" /> |
| | | <Assistant v-if="routertf" /> |
| | | </div> |
| | | </template> |
| | | |
| | |
| | | ThemePicker, |
| | | Assistant: () => import("./components/Assistant"), //异步组件加载方式 |
| | | }, |
| | | data() { |
| | | return { |
| | | routers: this.$route.path.split("/").pop(), |
| | | routertf: true, |
| | | }; |
| | | }, |
| | | created() { |
| | | console.log(this.routers); |
| | | if ( |
| | | this.routers == "outsideChainxj" || |
| | | this.routers == "outsideChain" || |
| | | this.routers == "outsideChainwt" |
| | | ) { |
| | | this.routertf = false; |
| | | } |
| | | }, |
| | | metaInfo() { |
| | | return { |
| | | title: |
| | |
| | | label="题目标题" |
| | | fixed |
| | | align="center" |
| | | key="topic" |
| | | prop="topic" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="题目内容" |
| | | align="center" |
| | | key="script" |
| | | prop="script" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | haoquestionnaire: "", |
| | | idds: "", |
| | | topicform: { |
| | | questionText: "", |
| | | scriptContent: "", |
| | | }, |
| | | amendtag: false, //是否修改类别 |
| | | dialogFormVisible: false, //修改添加类别弹框 |
| | |
| | | <el-col :span="8" |
| | | ><el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.topic" |
| | | v-model="topicobj.scriptTopic" |
| | | placeholder="请输入标题" |
| | | ></el-input> </el-form-item |
| | | ></el-col> |
| | |
| | | <el-col :span="8" |
| | | ><el-form-item label="题目类型"> |
| | | <el-select |
| | | v-model="topicobj.scripttype" |
| | | v-model="topicobj.scriptType" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | |
| | | <el-input |
| | | style="width: 40vw" |
| | | type="textarea" |
| | | id="script" |
| | | v-model="topicobj.script" |
| | | @focus="handleInput('script')" |
| | | id="scriptContent" |
| | | v-model="topicobj.scriptContent" |
| | | @focus="handleInput('scriptContent')" |
| | | placeholder="请输入题目内容" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | <el-input |
| | | style="width: 40vw" |
| | | type="textarea" |
| | | v-model="topicobj.scriptContent" |
| | | v-model="topicobj.scriptDesc" |
| | | placeholder="请输入说明" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | </el-col></el-row |
| | | > --> |
| | | </div> |
| | | <div v-if="topicobj.valueType == 1"> |
| | | <div v-if="topicobj.scriptType != 3"> |
| | | <div class="headline"> |
| | | 选项设置<span style="margin-left: 30px" |
| | | ><el-button type="primary" round @click="addoption" |
| | |
| | | isavailable: "", |
| | | }, |
| | | optionlist: [ |
| | | { value: "topic", table: "topic" }, |
| | | { value: "topic", table: "topic" }, |
| | | { value: "topic", table: "topic" }, |
| | | { value: "scriptTopic", table: "scriptTopic" }, |
| | | { value: "scriptTopic", table: "scriptTopic" }, |
| | | { value: "scriptTopic", table: "scriptTopic" }, |
| | | ], |
| | | inputValueillness: "", |
| | | required: [], |
| | |
| | | return false; |
| | | } |
| | | return true; |
| | | } else if (this.topicobj.scriptType == 3) { |
| | | return true; |
| | | } else { |
| | | this.$message({ |
| | | message: "选项分值未设置", |
| | |
| | | .then(() => { |
| | | console.log(row); |
| | | console.log(this.topicobj); |
| | | this.topicobj.topic = row.targetname; |
| | | this.topicobj.scriptTopic = row.targetname; |
| | | this.topicobj.valueType = row.valueType; |
| | | this.topicobj.scriptContent = row.targetdesc; |
| | | this.topicobj.isavailable = "0"; |
| | |
| | | let inputValueArr = ""; |
| | | let el = document.querySelector("#" + this.currentInputId); |
| | | //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index) |
| | | if (this.currentInputId == "script") { |
| | | inputValueArr = this.topicobj.script.split(""); |
| | | if (this.currentInputId == "scriptContent") { |
| | | inputValueArr = this.topicobj.scriptContent.split(""); |
| | | console.log(123); |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | inputValueArr = this.topicobj.nomatchtext.split(""); |
| | |
| | | // 把数组重新转换为字符串并赋值 |
| | | inputValueArr = inputValueArr.join(""); |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "script") { |
| | | this.topicobj.script = inputValueArr; |
| | | if (this.currentInputId == "scriptContent") { |
| | | this.topicobj.scriptContent = inputValueArr; |
| | | } else if (this.currentInputId == "nomatchtext") { |
| | | this.topicobj.nomatchtext = inputValueArr; |
| | | } else if (this.currentInputId == "sliencetext") { |
| | |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .topic-dev { |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | |
| | | <div class="presentation"> |
| | | <div class="presentation-left"> |
| | | <el-card class="box-card" style="min-height: 688px"> |
| | | <el-table v-loading="loading" :data="ruleForm.svyLibScripts"> |
| | | <el-table |
| | | v-loading="loading" |
| | | :data="ruleForm.svyTemplateLibScripts" |
| | | > |
| | | <el-table-column |
| | | label="序号" |
| | | align="center" |
| | |
| | | <el-table-column |
| | | label="题目标题" |
| | | align="center" |
| | | key="topic" |
| | | prop="topic" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="题目内容" |
| | | align="center" |
| | | key="script" |
| | | prop="script" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | |
| | |
| | | </div> |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.topic" |
| | | v-model="topicobj.scriptTopic" |
| | | placeholder="请输入标题" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | </el-row> |
| | | <div v-if="topicobj.scriptType != 3"> |
| | | <div class="headline">选项设置</div> |
| | | <div |
| | | class="topicxq" |
| | |
| | | > |
| | | <el-row :gutter="10"> |
| | | <el-col :span="11"> |
| | | <el-form-item v-if="topicobj.scoretype == 1" label="分值"> |
| | | <el-form-item |
| | | v-if="topicobj.scoretype == 1" |
| | | label="分值" |
| | | > |
| | | <el-input |
| | | type="text" |
| | | placeholder="请输入选项分值" |
| | |
| | | ></el-form-item> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | <div v-else> |
| | | <div class="topicxq"> |
| | | <el-row :gutter="10"> |
| | | <el-form-item label="选中提示"> |
| | | <el-input |
| | | style="width: 20vw" |
| | | type="textarea" |
| | | autosize |
| | | placeholder="请输入内容" |
| | | v-model="item.prompt" |
| | | > |
| | | </el-input |
| | | ></el-form-item> |
| | | </el-row> |
| | | </div> |
| | | </div> |
| | | </el-form> |
| | | </el-card> |
| | | </div> |
| | |
| | | <el-divider></el-divider> |
| | | <div class="preview-left"> |
| | | <!-- 单选 --> |
| | | <div class="topic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="scriptTopic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="dev-text"> |
| | | {{ item.idd }}、[单选]<span>{{ item.wssd }}</span> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 多选 --> |
| | | <div class="topic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="scriptTopic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="dev-text"> |
| | | {{ item.idd }}、[多选]<span>{{ item.wssd }}</span> |
| | | </div> |
| | |
| | | </div> |
| | | </div> |
| | | <!-- 填空 --> |
| | | <div class="topic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="scriptTopic-dev" v-for="item in valssu" :key="item.aaa"> |
| | | <div class="dev-text"> |
| | | {{ item.idd }}、[填空]<span>{{ item.wssd }}</span> |
| | | </div> |
| | |
| | | :inline="true" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="问题标题" prop="topic"> |
| | | <el-form-item label="问题标题" prop="scriptTopic"> |
| | | <el-input |
| | | v-model="queryParams.topic" |
| | | v-model="queryParams.scriptTopic" |
| | | placeholder="请输入" |
| | | clearable |
| | | style="width: 200px" |
| | |
| | | <el-table-column |
| | | label="标题" |
| | | align="center" |
| | | key="topic" |
| | | prop="topic" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="问题内容" |
| | | align="center" |
| | | key="script" |
| | | prop="script" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | topicobj: {}, |
| | | // 总条数 |
| | | total: 1, |
| | | ruleForm: { svyLibScripts: [], tempDetpRelevances: [] }, |
| | | ruleForm: { svyTemplateLibScripts: [], tempDetpRelevances: [] }, |
| | | rules: {}, |
| | | rulesa: {}, |
| | | optionsclass: [], //分类列表 |
| | | optionlist: [ |
| | | { value: "topic", table: "topic" }, |
| | | { value: "topic", table: "topic" }, |
| | | { value: "scriptTopic", table: "scriptTopic" }, |
| | | { value: "scriptTopic", table: "scriptTopic" }, |
| | | ], |
| | | |
| | | appraiselist: [ |
| | | { label: "分数", value: "1" }, |
| | | { label: "ABC等级", value: "2" }, |
| | |
| | | this.required = store.getters.required; |
| | | this.valuetype = store.getters.valuetype; |
| | | this.courtyardlist = store.getters.courtyardlist; |
| | | this.test(); |
| | | // this.test(); |
| | | }, |
| | | |
| | | methods: { |
| | |
| | | Departmenttreatment() { |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | console.log(this.tempDetpRelevanceslist); |
| | | this.ruleForm.svyLibScripts = this.ruleForm.svyLibScripts.concat( |
| | | this.delScriptVOList |
| | | ); |
| | | this.ruleForm.svyTemplateLibScripts = |
| | | this.ruleForm.svyTemplateLibScripts.concat(this.delScriptVOList); |
| | | console.log(this.tempDetpRelevanceslist, "this.tempDetpRelevanceslist"); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | |
| | | item.isoperation = 1; |
| | | }); |
| | | row.svyLibTemplateTargetoptions = row.svyLibScriptOptions; |
| | | this.ruleForm.svyLibScripts.push(row); |
| | | this.ruleForm.svyTemplateLibScripts.push(row); |
| | | this.sortFn(); |
| | | this.$modal.msgSuccess("新增成功"); |
| | | }, |
| | | handleDelete(row) { |
| | | let index = this.ruleForm.svyLibScripts.indexOf(row); |
| | | this.ruleForm.svyLibScripts.splice(index, 1); |
| | | let index = this.ruleForm.svyTemplateLibScripts.indexOf(row); |
| | | this.ruleForm.svyTemplateLibScripts.splice(index, 1); |
| | | row.isoperation = 3; |
| | | this.delScriptVOList.push(row); |
| | | this.sortFn(); |
| | | }, |
| | | handleUpdate(row) { |
| | | console.log(row); |
| | | this.topicobj = row; |
| | | console.log(this.topicobj, "看数据"); |
| | | // getissuelist({ svyid: row.svyid }).then((res) => { |
| | | // }); |
| | | }, |
| | | syioption(row) { |
| | | const index = this.getIndexInArray(this.ruleForm.svyLibScripts, row); |
| | | const item = this.ruleForm.svyLibScripts.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyLibScripts.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | const index = this.getIndexInArray( |
| | | this.ruleForm.svyTemplateLibScripts, |
| | | row |
| | | ); |
| | | const item = this.ruleForm.svyTemplateLibScripts.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyTemplateLibScripts.splice(index - 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | xiayioption(row) { |
| | | const index = this.getIndexInArray(this.ruleForm.svyLibScripts, row); |
| | | const item = this.ruleForm.svyLibScripts.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyLibScripts.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | const index = this.getIndexInArray( |
| | | this.ruleForm.svyTemplateLibScripts, |
| | | row |
| | | ); |
| | | const item = this.ruleForm.svyTemplateLibScripts.splice(index, 1)[0]; // 移除指定索引处的元素,并保存到item变量中 |
| | | this.ruleForm.svyTemplateLibScripts.splice(index + 1, 0, item); // 将item插入到索引位置的前一位 |
| | | this.sortFn(); |
| | | }, |
| | | sortFn() { |
| | | this.ruleForm.svyLibScripts.forEach((item, index) => { |
| | | this.ruleForm.svyTemplateLibScripts.forEach((item, index) => { |
| | | item.sort = index + 1; |
| | | item.svyLibTemplateTargetoptions.forEach((items) => { |
| | | items.nextQuestion = Number(item.sort) + 1; |
| | | }); |
| | | console.log(this.ruleForm.svyLibScripts); |
| | | }); |
| | | console.log(this.ruleForm.svyTemplateLibScripts); |
| | | }, |
| | | |
| | | // 修改题目信息 |
| | |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .topic-dev { |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | |
| | | width: 22px; |
| | | height: 22px; |
| | | } |
| | | // ::v-deep.topic-dev.el-radio__label { |
| | | // ::v-deep.scriptTopic-dev.el-radio__label { |
| | | // font-size: 24px; |
| | | // } |
| | | ::v-deep.el-radio-group { |
| | |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | |
| | | let ivrTaskcalldetail = { |
| | | asrtext: item.asrtext, |
| | | valueType: item.valueType, |
| | | questiontext: item.questionText, |
| | | scriptContent: item.scriptContent, |
| | | targetoptions: optionarr.join(","), |
| | | }; |
| | | form.ivrTaskcalldetailList.push(ivrTaskcalldetail); |
| | |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | |
| | | let ivrTaskcalldetail = { |
| | | asrtext: item.asrtext, |
| | | valueType: item.valueType, |
| | | questiontext: item.questionText, |
| | | scriptContent: item.scriptContent, |
| | | targetoptions: optionarr.join(","), |
| | | }; |
| | | form.ivrTaskcalldetailList.push(ivrTaskcalldetail); |
| | |
| | | let ivrTaskcalldetail = { |
| | | asrtext: item.asrtext, |
| | | valueType: item.valueType, |
| | | questiontext: item.questionText, |
| | | scriptContent: item.scriptContent, |
| | | targetoptions: optionarr.join(","), |
| | | }; |
| | | form.ivrTaskcalldetailList.push(ivrTaskcalldetail); |
| | |
| | | |
| | | <el-form-item label="患者范围" prop="status"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | |
| | | <el-form-item label="患者状态" prop="status"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | </el-form-item> |
| | | <el-form-item label="随访结果" prop="status"> |
| | | <el-select |
| | | v-model="topqueryParams.topic" |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | |
| | | |
| | | <el-form-item label="就诊科室" prop="status"> |
| | | <el-select |
| | | v-model="patientqueryParams.topic" |
| | | v-model="patientqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option-group |
| | |
| | | <div class="preview-left"> |
| | | <!-- 单选 --> |
| | | <div |
| | | class="topic-dev" |
| | | class="scriptTopic-dev" |
| | | v-for="(item, index) in questionList" |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | |
| | | <el-input |
| | | type="textarea" |
| | | placeholder="未获取到信息" |
| | | v-model.sync="item.questionResult" |
| | | v-model.sync="item.scriptResult" |
| | | :rows="2" |
| | | /> |
| | | </div> |
| | |
| | | prop="status" |
| | | v-if="currenttype == 1 || currenttype == 8" |
| | | > |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-select |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | |
| | | prop="status" |
| | | v-if="currenttype == 4 || currenttype == 5" |
| | | > |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-select |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | |
| | | prop="status" |
| | | v-if="currenttype == 2 || currenttype == 3 || currenttype == 7" |
| | | > |
| | | <el-select v-model="topqueryParams.topic" placeholder="请选择"> |
| | | <el-select |
| | | v-model="topqueryParams.scriptTopic" |
| | | placeholder="请选择" |
| | | > |
| | | <el-option |
| | | v-for="item in taskoptions" |
| | | :key="item.value" |
| | |
| | | border: 1px solid #dcdfe6; |
| | | -webkit-box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.12), |
| | | 0 0 6px 0 rgba(0, 0, 0, 0.04); |
| | | .topic-dev { |
| | | .scriptTopic-dev { |
| | | margin-bottom: 25px; |
| | | font-size: 20px !important; |
| | | .dev-text { |
| | |
| | | width: 22px; |
| | | height: 22px; |
| | | } |
| | | // ::v-deep.topic-dev.el-radio__label { |
| | | // ::v-deep.scriptTopic-dev.el-radio__label { |
| | | // font-size: 24px; |
| | | // } |
| | | ::v-deep.el-radio-group { |
| | |
| | | <el-table-column |
| | | label="标题" |
| | | align="center" |
| | | key="questiontitle" |
| | | prop="questiontitle" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="问题话术" |
| | | align="center" |
| | | key="questionText" |
| | | prop="questionText" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | |
| | |
| | | </div> |
| | | <el-form-item label="题目标题"> |
| | | <el-input |
| | | v-model="topicobj.questiontitle" |
| | | v-model="topicobj.scriptTopic" |
| | | placeholder="请从左侧列表选择" |
| | | ></el-input> |
| | | </el-form-item> |
| | |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、[单选]<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、[单选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-radio-group v-model="radio"> |
| | |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、[多选]<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、[多选]<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | <div class="dev-xx"> |
| | | <el-checkbox-group v-model="radios"> |
| | |
| | | > |
| | | <el-form-item label="标题" prop="userName"> |
| | | <el-input |
| | | v-model="queryParams.questiontitle" |
| | | v-model="queryParams.scriptTopic" |
| | | placeholder="请输入" |
| | | clearable |
| | | style="width: 200px" |
| | |
| | | <el-table-column |
| | | label="标题" |
| | | align="center" |
| | | key="questiontitle" |
| | | prop="questiontitle" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | width="100" |
| | | /> |
| | | <el-table-column |
| | | label="问题话术" |
| | | align="center" |
| | | key="questionText" |
| | | prop="questionText" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | console.log(row); |
| | | if ( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.some( |
| | | (obj) => obj.questiontitle == row.questiontitle |
| | | (obj) => obj.scriptTopic == row.scriptTopic |
| | | ) |
| | | ) { |
| | | this.$modal.msgError("该题目已存在"); |
| | |
| | | }, |
| | | handleDelete(row) { |
| | | this.$modal |
| | | .confirm('是否确认删除问题:"' + row.questiontitle + '"?') |
| | | .confirm('是否确认删除问题:"' + row.scriptTopic + '"?') |
| | | .then(() => { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row), |
| | |
| | | :key="item.aaa" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ index + 1 }}、<span>{{ item.questionText }}</span> |
| | | {{ index + 1 }}、<span>{{ item.scriptContent }}</span> |
| | | </div> |
| | | |
| | | <div class="dev-xx" v-if="item.valueType == 1"> |
| | |
| | | }; |
| | | // 发起ws请求 |
| | | sendWebsocket( |
| | | "ws://localhost:8089/chat?userId=1", |
| | | "ws://localhost:8095/chat?userId=1", |
| | | obj, |
| | | this.wsMessage, |
| | | this.wsError |
| | |
| | | value: dataJson.jsy, |
| | | isEat: 1, |
| | | }); |
| | | } else if (dataJson.nowQuestion.questionText) { |
| | | } else if (dataJson.nowQuestion.scriptContent) { |
| | | this.Answerline.push({ |
| | | value: dataJson.nowQuestion.questionText, |
| | | value: dataJson.nowQuestion.scriptContent, |
| | | isEat: 1, |
| | | }); |
| | | } |
| | |
| | | console.log(obj, "入参"); |
| | | // 发起ws请求 |
| | | sendWebsocket( |
| | | "ws://localhost:8089/chat?userId=1", |
| | | "ws://localhost:8095/chat?userId=1", |
| | | obj, |
| | | this.wsMessage, |
| | | this.wsError |
| | |
| | | label="问题主题" |
| | | fixed |
| | | align="center" |
| | | key="questiontitle" |
| | | prop="questiontitle" |
| | | key="scriptTopic" |
| | | prop="scriptTopic" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | | <el-table-column |
| | | label="问题文本" |
| | | align="center" |
| | | key="questionText" |
| | | prop="questionText" |
| | | key="scriptContent" |
| | | prop="scriptContent" |
| | | width="200" |
| | | :show-overflow-tooltip="true" |
| | | /> |
| | |
| | | <el-table-column |
| | | label="问题语音" |
| | | align="center" |
| | | key="questionvoice" |
| | | prop="questionvoice" |
| | | key="scriptVoice" |
| | | prop="scriptVoice" |
| | | width="200" |
| | | /><el-table-column |
| | | label="关联指标" |
| | |
| | | getbaltrickclassify({}).then((res) => { |
| | | this.deptOptions = res.rows; |
| | | this.dialogFormVisible = false; |
| | | |
| | | }); |
| | | }, |
| | | |
| | |
| | | </el-row> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="20"> |
| | | <el-form-item label="问题主旨" prop="questiontitle"> |
| | | <el-form-item label="问题主旨" prop="scriptTopic"> |
| | | <el-input |
| | | v-model="indexform.questiontitle" |
| | | v-model="indexform.scriptTopic" |
| | | placeholder="请输入问题主旨" |
| | | maxlength="80" |
| | | /> |
| | |
| | | </el-row> |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="问题变量" prop="questionText"> |
| | | <el-form-item label="问题变量" prop="scriptContent"> |
| | | <div style="display: flex; margin-bottom: 10px"> |
| | | <div |
| | | v-for="item in variablelist" |
| | |
| | | > |
| | | <el-row> |
| | | <el-col :span="24"> |
| | | <el-form-item label="问题文本" prop="questionText"> |
| | | <el-form-item label="问题文本" prop="scriptContent"> |
| | | <el-input |
| | | :rows="2" |
| | | type="textarea" |
| | | id="questionText" |
| | | id="scriptContent" |
| | | show-word-limit |
| | | placeholder="请输入内容" |
| | | v-model.sync="indexform.questionText" |
| | | @focus="handleInput('questionText')" |
| | | v-model.sync="indexform.scriptContent" |
| | | @focus="handleInput('scriptContent')" |
| | | /> |
| | | </el-form-item> </el-col |
| | | ></el-row> |
| | |
| | | .confirm('是否添加"' + res.rows[0].targetname + '"指标的选项?') |
| | | .then(() => { |
| | | this.indexform.valueType = res.rows[0].valueType; |
| | | this.indexform.questiontitle = res.rows[0].targetname; |
| | | this.indexform.scriptTopic = res.rows[0].targetname; |
| | | this.indexform.targetname = res.rows[0].targetname; |
| | | this.indexform.targetdesc = res.rows[0].targetdesc; |
| | | this.indexform.isAvailable = "0"; |
| | |
| | | let inputValueArr = ""; |
| | | let el = document.querySelector("#" + this.currentInputId); |
| | | //el.selectionStart; 这就是当前光标所在的位置(字符串中字符的index) |
| | | if (this.currentInputId == "questionText") { |
| | | inputValueArr = this.indexform.questionText.split(""); |
| | | if (this.currentInputId == "scriptContent") { |
| | | inputValueArr = this.indexform.scriptContent.split(""); |
| | | } else if (this.currentInputId == "noMatchText") { |
| | | inputValueArr = this.indexform.noMatchText.split(""); |
| | | } else if (this.currentInputId == "slienceText") { |
| | |
| | | // 把数组重新转换为字符串并赋值 |
| | | inputValueArr = inputValueArr.join(""); |
| | | console.log(inputValueArr); |
| | | if (this.currentInputId == "questionText") { |
| | | this.indexform.questionText = inputValueArr; |
| | | if (this.currentInputId == "scriptContent") { |
| | | this.indexform.scriptContent = inputValueArr; |
| | | } else if (this.currentInputId == "noMatchText") { |
| | | this.indexform.noMatchText = inputValueArr; |
| | | } else if (this.currentInputId == "slienceText") { |