| | |
| | | "vue-meta": "2.4.0", |
| | | "vue-quill-editor": "^3.0.6", |
| | | "vue-router": "3.4.9", |
| | | "vuedraggable": "2.24.3", |
| | | "vuedraggable": "^2.24.3", |
| | | "vuex": "3.6.0", |
| | | "xlsx": "^0.18.5" |
| | | }, |
| | |
| | | import { codemirror } from "vue-codemirror"; |
| | | import "@/utils/cm-setting.js"; |
| | | Vue.component("codemirror", codemirror); |
| | | // import VueCodeMirror from 'vue-codemirror' |
| | | // import 'vue-codemirror/dist/codemirror.css' |
| | | // Vue.use(VueCodeMirror) |
| | | |
| | | //实现quill-editor编辑器拖拽上传图片 |
| | | // import Quill from 'quill' |
| | | import { Quill } from "vue-quill-editor"; |
| | | window.Quill = Quill; |
| | | import imageResize from "quill-image-resize"; |
| | | // const scriptEl = document.createElement('script'); |
| | | // scriptEl.charset = 'utf-8' |
| | | // scriptEl.src = './image-resize.min.js' |
| | | // const head = document.head || document.getElementsByTagName('head')[0]; |
| | | // head.appendChild(scriptEl); |
| | | |
| | | |
| | | import { ImageDrop } from "quill-image-drop-module"; |
| | | // import imageResize from 'quill-image-resize' |
| | | Quill.register("modules/imageDrop", ImageDrop); |
| | | // import imageResize from 'quill-image-resize-module' |
| | | Quill.register("modules/imageResize", imageResize); |
| | | //实现quill-editor编辑器调整图片尺寸 |
| | | // Quill.register('modules/imageResize', ImageResize) |
| | | |
| | | import LemonIMUI from "lemon-imui"; |
| | | import "lemon-imui/dist/index.css"; |
| | |
| | | addtargetillness, |
| | | getlibrarylist, |
| | | dellibraryinfo, |
| | | deltargetillness, |
| | | compilelibrary, |
| | | getlibraryinfo, |
| | | getillnesslist, |
| | |
| | | headers: { |
| | | Authorization: "Bearer " + getToken(), |
| | | }, |
| | | uploadImgUrl: "/v1/admin/common/upload", |
| | | uploadImgUrl: process.env.VUE_APP_BASE_API + "/common/upload", |
| | | uploadUrlPath: "没有文件上传", |
| | | quillUpdateImg: false, |
| | | fileList: [ |
| | |
| | | : ""; |
| | | if (this.id) { |
| | | this.ruleForm.isoperation = 2; |
| | | compilelibrary(this.ruleForm).then((response) => { |
| | | this.$modal.msgSuccess("修改成功"); |
| | | this.$router.go(-1); |
| | | }); |
| | | } else { |
| | | this.ruleForm.isoperation = 1; |
| | | compilelibrary(this.ruleForm).then((response) => { |
| | | this.$modal.msgSuccess("新增成功"); |
| | | } |
| | | this.illnesslist.forEach((item, index) => { |
| | | if (!item.id) { |
| | | addtargetillness(item).then((res) => {}); |
| | | } |
| | | }); |
| | | if (this.illnesslistapi.length) { |
| | | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); |
| | | } |
| | | compilelibrary(this.ruleForm).then((res) => { |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | this.$router.go(-1); |
| | | }); |
| | | } |
| | | }, |
| | | // 下一步 |
| | | nextstep() { |
| | |
| | | let tagname = this.inputValue; |
| | | illnesslistget(item).then((res) => { |
| | | opeavalue = res.data; |
| | | opeavalue.outid = this.indexid; |
| | | opeavalue.outid = this.id; |
| | | opeavalue.type = 6; |
| | | opeavalue.icd10id = opeavalue.icdid; |
| | | opeavalue.icd10name = opeavalue.icdname; |
| | |
| | | this.illnesslist.push(opeavalue); |
| | | } |
| | | }); |
| | | console.log(this.illnesslist, "加"); |
| | | this.illnessVisible = false; |
| | | this.inputValue = ""; |
| | | }, |
| | | confirmillness() { |
| | | this.illnesslist.forEach((item, index) => { |
| | | if (!item.id) { |
| | | addtargetillness(item).then((res) => {}); |
| | | } |
| | | }); |
| | | if (this.illnesslistapi.length) { |
| | | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); |
| | | } |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | |
| | | illnessshowInput() { |
| | | this.illnessVisible = true; |
| | | }, |
| | |
| | | // this.$emit('upload',res, file) |
| | | console.log(res, file); |
| | | //拼接出上传的图片在服务器的完整地址 |
| | | let imgUrl = res.data.url; |
| | | let imgUrl = res.url; |
| | | let type = imgUrl.substring(imgUrl.lastIndexOf(".") + 1); |
| | | console.log(type); |
| | | // 获取富文本组件实例 |
| | |
| | | |
| | | <script> |
| | | import { |
| | | listUser, |
| | | getUser, |
| | | delUser, |
| | | addUser, |
| | | updateUser, |
| | | } from "@/api/system/user"; |
| | | import { |
| | | gettargetInfo, |
| | | particulartarget, |
| | | gettargetInfoedit, |
| | |
| | | </el-form-item> |
| | | <el-row :gutter="20"> |
| | | <el-col :span="8"> |
| | | <el-form-item label="随访前处理" prop="name"> |
| | | <el-form-item label="随访前处理(是否需要)" prop="name"> |
| | | <el-select |
| | | v-model="ruleForm.prefollowup" |
| | | size="medium" |
| | |
| | | </el-select> </el-form-item |
| | | ></el-col> |
| | | <el-col :span="9"> |
| | | <el-form-item label="随访后处理" prop="region"> |
| | | <el-form-item label="随访后处理(是否需要)" prop="region"> |
| | | <el-select |
| | | v-model="ruleForm.postfollowup" |
| | | size="medium" |
| | |
| | | <el-form-item label="静默时间(秒)" prop="name"> |
| | | <div style="width: 40%"> |
| | | <el-input |
| | | v-model="ruleForm.name" |
| | | v-model="ruleForm.silencetime" |
| | | ></el-input></div></el-form-item |
| | | ></el-col> |
| | | <el-col :span="10"> |
| | |
| | | > |
| | | <el-col :span="8"> |
| | | <div style="text-align: right; padding-right: 10px"> |
| | | <el-button type="danger" round>删除</el-button> |
| | | <el-button type="danger" @click="" round>删除</el-button> |
| | | </div> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | delFollowupinfo, |
| | | Followupinfo, |
| | | getFollowuplist, |
| | | deltargetillness, |
| | | getillnesslist, |
| | | illnesslistget, |
| | | getillness, |
| | |
| | | label: "indexAssortName", |
| | | }, |
| | | tempDetpRelevanceslist: [], |
| | | delScriptVOList: [], |
| | | variablelist: [ |
| | | { variatename: "姓名", variate: "${name}", default: 1 }, |
| | | { variatename: "电话", variate: "${phone}", default: 1 }, |
| | |
| | | Departmenttreatment() { |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | console.log(this.tempDetpRelevanceslist); |
| | | console.log(this.delScriptVOList, "this.delScriptVOList"); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); |
| | | const result = this.tempDetpRelevanceslist.map( |
| | | (subArr) => subArr[subArr.length - 1] |
| | | ); |
| | |
| | | }); |
| | | }, |
| | | |
| | | /** 查询题目列表 */ |
| | | getList() { |
| | | // this.loading = true; |
| | | listUser().then((response) => { |
| | | console.log(response); |
| | | // this.userList = response.data; |
| | | // this.total = response.total; |
| | | // this.loading = false; |
| | | console.log(this.userList); |
| | | }); |
| | | // const { rows } = await listUser(); |
| | | // console.log(rows); |
| | | // this.list = rows; |
| | | }, |
| | | // 修改题目信息 |
| | | Submittopicobj() {}, |
| | | |
| | |
| | | addtopic(row) { |
| | | console.log(row); |
| | | getverbaltrick({ id: row.id }).then((res) => { |
| | | console.log(res); |
| | | console.log(res, "详情"); |
| | | res.data.isoperation = 1; |
| | | res.data.id = null; |
| | | res.data.ivrLibaScriptTargetoptionList.forEach((item) => { |
| | | item.isoperation = 1; |
| | | }); |
| | | row.isoperation = 1; |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.push(row); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.push(res.data); |
| | | }); |
| | | }, |
| | | handleDelete(row) { |
| | | let index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice( |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(row), |
| | | 1 |
| | | ); |
| | | row.isoperation = 3; |
| | | this.delScriptVOList.push(row); |
| | | }, |
| | | handleUpdate(row) { |
| | | console.log(row.id); |
| | | console.log(row); |
| | | if (row.ivrLibaScriptTargetoptionList.length) { |
| | | this.topicobj = row; |
| | | } else { |
| | | getverbaltrick({ id: row.id }).then((res) => { |
| | | this.topicobj = res.data; |
| | | console.log(res.data); |
| | | console.log(res.data, "topicobj"); |
| | | }); |
| | | }, |
| | | handleDelete(item) { |
| | | const index = this.ruleForm.ivrLibaTemplateScriptVOList.indexOf(item); |
| | | if (index !== -1) { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.splice(index, 1); // 从索引位置删除一个元素 |
| | | this.sortFn(); |
| | | } else { |
| | | console.log("未找到该对象"); |
| | | } |
| | | }, |
| | | syioption(row) { |
| | |
| | | sortFn() { |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.map((item, index) => { |
| | | return { |
| | | guid: index + 1, |
| | | id: item.id, |
| | | questiontitle: item.questiontitle, |
| | | questionText: item.questionText, |
| | | }; |
| | | return Object.assign({}, item, { guid: (index + 1).toString() }); |
| | | }); |
| | | console.log(this.ruleForm.ivrLibaTemplateScriptVOList); |
| | | }, |
| | |
| | | console.log(this.illnesslist); |
| | | this.inputVisibleillness = false; |
| | | this.inputValueillness = ""; |
| | | }, |
| | | // 保存 |
| | | confirmillness() { |
| | | this.illnesslist.forEach((item, index) => { |
| | | if (!item.id) { |
| | | addtargetillness(item).then((res) => {}); |
| | | } |
| | | }); |
| | | if (this.illnesslistapi.length) { |
| | | deltargetillness(this.illnesslistapi.join(",")).then((res) => {}); |
| | | } |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | }, |
| | | }; |