| | |
| | | // 查询部门详细 |
| | | export function getDept(deptId) { |
| | | return request({ |
| | | url: '/system/dept/getInfo' + deptId, |
| | | url: '/system/dept/getInfo/' + deptId, |
| | | method: 'get' |
| | | }) |
| | | } |
| | |
| | | <div |
| | | class="scriptTopic-dev" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 3" |
| | | v-if="item.scriptType == 4" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.sort }}、[填空]<span>{{ item.scriptContent }}</span> |
| | |
| | | }, |
| | | activated() { |
| | | if (this.id != this.$route.query.id) { |
| | | this.gettabList(); |
| | | this.getissueinfo(); |
| | | this.gettabList(); |
| | | } |
| | | }, |
| | | created() { |
| | | this.gettabList(); |
| | | this.getissueinfo(); |
| | | this.gettabList(); |
| | | this.mode = store.getters.Askmode; |
| | | this.languagelist = store.getters.languagelist; |
| | | this.usable = store.getters.usable; |
| | |
| | | // 获取数据 |
| | | getissueinfo() { |
| | | this.id = this.$route.query.id; |
| | | this.ruleForm = { |
| | | svyTemplateLibScripts: [], |
| | | tempDetpRelevances: [], |
| | | svyLibTemplateTagList: [], |
| | | }; |
| | | |
| | | if (this.id) { |
| | | getQtemplateobj({ svyid: this.id }).then((res) => { |
| | | this.ruleForm = res.rows[0]; |
| | |
| | | }); |
| | | }, |
| | | submitForm(formName) { |
| | | this.$modal.loading("正在上传数据,请稍候..."); |
| | | this.$modal.loading("正在修正保存数据,请稍候..."); |
| | | this.ruleForm.suitway = this.ruleForm.suitway.join(","); |
| | | |
| | | if (!this.ruleForm.categoryid) { |
| | | this.ruleForm.categoryid = -1; |
| | | } |
| | | if (this.id) { |
| | | this.ruleForm.isoperation = 2; |
| | | compileQtemplate(this.ruleForm).then((res) => { |
| | |
| | | |
| | | const allGreaterThanTen = arr.every((array) => { |
| | | const totalScore = array.reduce((accumulator, current) => { |
| | | return accumulator + current.score; |
| | | return accumulator + Number(current.score); |
| | | }, 0); |
| | | console.log(totalScore); |
| | | console.log(this.ruleForm.scriptScore); |
| | | |
| | | return totalScore == this.ruleForm.scriptScore; |
| | | }); |
| | | if (allGreaterThanTen) { |
| | | this.$modal.msgSuccess("题目分值累加和模版总分相符"); |
| | | this.$modal.msgSuccess("分值校验成功"); |
| | | } else { |
| | | this.$modal.msgError("题目分值累加和模版分值不符"); |
| | | } |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">问卷类型</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+添加</div> |
| | | <div class="top-tj" @click="addtagclass">+添加</div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | addtagclass() { |
| | | this.dialogFormVisible = true; |
| | | this.classifyform = { |
| | | categoryname: "", |
| | | }; //类别表单 |
| | | this.radio = "主分类"; |
| | | this.title = "新增类别"; |
| | | this.zufon = true; |
| | | this.zifon = true; |
| | | }, |
| | | |
| | | // 筛选节点 |
| | | filterNode(value, data) { |
| | |
| | | class="scriptTopic-dev" |
| | | v-for="item in questionList" |
| | | :key="item.sort" |
| | | v-if="item.scriptType == 3" |
| | | v-if="item.scriptType == 4" |
| | | > |
| | | <div class="dev-text"> |
| | | {{ item.sort }}、[填空]<span>{{ item.scriptContent }}</span> |
| | |
| | | v-show="showSearch" |
| | | label-width="98px" |
| | | > |
| | | <el-form-item label="随访主题"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | </el-form-item> |
| | | <el-form-item label="随访名称"> |
| | | <el-input v-model="topqueryParams.name"></el-input> |
| | | <el-input v-model="topqueryParams.templateName"></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item label="适用科室" prop="status"> |
| | |
| | | :value="item.value" |
| | | > |
| | | </el-option> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item label="随访模版分类" prop="region"> |
| | | <el-select |
| | | v-model="topqueryParams.assortid" |
| | | size="medium" |
| | | filterable |
| | | placeholder="请选择分类" |
| | | > |
| | | <el-option-group |
| | | v-for="group in indexAssortlist" |
| | | :key="group.id" |
| | | :label="group.indexAssortName" |
| | | > |
| | | <el-option |
| | | v-for="item in group.ivrLibaTemplateAssortList" |
| | | :key="item.id" |
| | | :label="item.indexAssortName" |
| | | :value="item.id" |
| | | > |
| | | </el-option> |
| | | </el-option-group> |
| | | </el-select> |
| | | </el-form-item> |
| | | <el-form-item> |
| | |
| | | delhetaskinfo, |
| | | Editsingletask, |
| | | getvFollowup, |
| | | getFollowupclassify, |
| | | } from "@/api/AiCentre/index"; |
| | | import { listDept } from "@/api/system/dept"; |
| | | |
| | |
| | | patientuserList: [], //选择患者列表 |
| | | sonuserList: [], //选中患者列表 |
| | | delvariableList: [], //删除变量临时存储 |
| | | indexAssortlist: [], |
| | | |
| | | variableList: [ |
| | | { |
| | | name: "姓名", |
| | |
| | | this.total = response.total; |
| | | }); |
| | | }, |
| | | |
| | | nextstep() { |
| | | if (this.Editprogress <= 3) { |
| | | return this.Editprogress++; |
| | |
| | | } |
| | | }); |
| | | } |
| | | getFollowupclassify({}).then((res) => { |
| | | this.indexAssortlist = res.rows; |
| | | }); |
| | | }, |
| | | // 获取科室列表 |
| | | listDept() { |
| | |
| | | } else { |
| | | this.ruleForm.isoperation = 1; |
| | | } |
| | | if (!this.ruleForm.assortid) { |
| | | this.ruleForm.assortid = -1; |
| | | } |
| | | this.ruleForm.labelInfo = JSON.stringify(this.dynamicTags); |
| | | this.ruleForm.suitway = this.ruleForm.suitway.join(","); |
| | | this.ruleForm.campus = this.ruleForm.campus.join(","); |
| | |
| | | }, |
| | | // 科室处理 |
| | | Departmenttreatment() { |
| | | this.$modal.loading("正在上传数据,请稍候..."); |
| | | this.$modal.loading("正在修正保存数据,请稍候..."); |
| | | this.ruleForm.deptNames = JSON.stringify(this.tempDetpRelevanceslist); |
| | | this.ruleForm.ivrLibaTemplateScriptVOList = |
| | | this.ruleForm.ivrLibaTemplateScriptVOList.concat(this.delScriptVOList); |
| | |
| | | <div class="sidecolumn"> |
| | | <div class="sidecolumn-top"> |
| | | <div class="top-wj">模版类型</div> |
| | | <div class="top-tj" @click="dialogFormVisible = true">+添加</div> |
| | | <div class="top-tj" @click="addtagclass">+添加</div> |
| | | </div> |
| | | <div class="center-ss"> |
| | | <el-input |
| | |
| | | this.classifyform = b; |
| | | this.dialogFormVisible = true; |
| | | }, |
| | | addtagclass() { |
| | | this.dialogFormVisible = true; |
| | | this.classifyform = { |
| | | categoryname: "", |
| | | }; //类别表单 |
| | | this.radio = "主分类"; |
| | | this.title = "新增类别"; |
| | | this.zufon = true; |
| | | this.zifon = true; |
| | | }, |
| | | // 预览 |
| | | preview(row) { |
| | | getvFollowup({ id: row.id }).then((res) => { |
| | |
| | | <el-col :span="12"> |
| | | <el-form-item label="归属部门" prop="deptId"> |
| | | <treeselect |
| | | v-model="deptIds" |
| | | v-model="form.depts" |
| | | :options="deptOptions" |
| | | :multiple="true" |
| | | :show-count="true" |
| | |
| | | this.open = true; |
| | | this.title = "添加用户"; |
| | | this.form.password = this.initPassword; |
| | | this.form.depts = []; |
| | | }); |
| | | }, |
| | | /** 修改按钮操作 */ |
| | |
| | | |
| | | const name = process.env.VUE_APP_TITLE || '患者智慧服务系统' // 网页标题 |
| | | |
| | | const port = process.env.port || process.env.npm_config_port || 8095 // 端口 |
| | | const port = process.env.port || process.env.npm_config_port || 8096 // 端口 |
| | | |
| | | // vue.config.js 配置说明 |
| | | //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions |
| | |
| | | proxy: { |
| | | // detail: https://cli.vuejs.org/config/#devserver-proxy |
| | | [process.env.VUE_APP_BASE_API]: { |
| | | target: `http://192.168.1.10:8095`, |
| | | // target:`http://localhost:8095`, |
| | | // target: `http://192.168.1.10:8095`, |
| | | target:`http://localhost:8095`, |
| | | // target: `http://www.hxsoft.com:8080`, |
| | | changeOrigin: true, |
| | | pathRewrite: { |