| | |
| | | |
| | | <el-row> |
| | | <el-col :span="20" |
| | | ><el-form-item label="适用科室" prop="region"> |
| | | ><el-form-item label="适用课题组" prop="region"> |
| | | <el-select |
| | | v-model="tempDetpRelevanceslist" |
| | | @remove-tag="removetag" |
| | |
| | | size="medium" |
| | | multiple |
| | | filterable |
| | | placeholder="请选择科室" |
| | | placeholder="请选择课题组" |
| | | > |
| | | <el-option |
| | | class="ruleFormaa" |
| | |
| | | v-model="topicobj.score" |
| | | placeholder="请输入题号" |
| | | ></el-input> |
| | | </el-form-item> |
| | | |
| | | <el-form-item prop="valueType"> |
| | | <template #label> |
| | | 结果类型 |
| | | <el-tooltip |
| | | class="item" |
| | | effect="light" |
| | | content="本类型为结果收集类型;选项用于指向性题目如是否等;文本适用复杂情况;数值用于收集数值型数据" |
| | | placement="top-start" |
| | | > |
| | | <i class="el-icon-warning-outline"></i> |
| | | </el-tooltip> |
| | | <!-- 在标签后插入红色星号 --> |
| | | </template> |
| | | <el-radio-group v-model="topicobj.valueType"> |
| | | <el-radio :label="1">选项</el-radio> |
| | | <el-radio :label="2">文本</el-radio> |
| | | <el-radio :label="3">数值</el-radio> |
| | | </el-radio-group> |
| | | </el-form-item> |
| | | </el-col> |
| | | </el-row> |
| | |
| | | delScriptVOList: [], |
| | | illnesslistapi: [], |
| | | illnesslist: [], |
| | | tempDetpRelevanceslist: [], //科室数据 |
| | | tempDetpRelevanceslistform: [], //科室数据 |
| | | tempDetpRelevanceslist: [], //课题组数据 |
| | | tempDetpRelevanceslistform: [], //课题组数据 |
| | | tempbelongWards: [], //病区数据 |
| | | tempbelongWardsform: [], //病区数据 |
| | | optionstag: [], |
| | |
| | | }); |
| | | } |
| | | }, |
| | | // 获取科室树 |
| | | // 获取课题组树 |
| | | getDeptTree() { |
| | | // 科室列表 |
| | | // 课题组列表 |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | this.flatArray = this.flattenArray(response.data); |
| | |
| | | this.Departmenttreatment(); |
| | | }, |
| | | |
| | | // 科室/院区处理 |
| | | // 课题组/院区处理 |
| | | Departmenttreatment() { |
| | | this.tempDetpRelevanceslist.forEach((item) => { |
| | | console.log(item); |
| | |
| | | this.submitForm(); |
| | | }, 500); |
| | | }, |
| | | // 科室删除触发 |
| | | // 课题组删除触发 |
| | | removetag(row) { |
| | | let result = this.deptlist |
| | | .filter((item) => item.deptCode == row) |
| | |
| | | this.illnessVisible = false; |
| | | this.$modal.msgSuccess("编辑成功"); |
| | | }, |
| | | // 保存科室/病区 |
| | | // 保存课题组/病区 |
| | | putbelongDepts(id) { |
| | | this.tempDetpRelevanceslistform.forEach((item) => { |
| | | if (!item.tempid) item.tempid = id; |
| | |
| | | if (this.tempDetpRelevanceslistform.length > 0) { |
| | | depthospgetson(this.tempDetpRelevanceslistform).then((res) => { |
| | | if (res.code == 200) { |
| | | this.$modal.msgSuccess("科室新增成功"); |
| | | this.$modal.msgSuccess("课题组新增成功"); |
| | | } |
| | | }); |
| | | } |
| | |
| | | display: flex; |
| | | .presentation-left { |
| | | width: 45%; |
| | | // height: 500px; |
| | | max-height: 80vh; |
| | | padding: 0 20px; |
| | | font-size: 18px; |
| | | overflow: auto; |
| | | .button-textxg { |
| | | color: #024df0; |
| | | } |
| | |
| | | } |
| | | .presentation-right { |
| | | width: 55%; |
| | | max-height: 688px; |
| | | max-height: 80vh; |
| | | padding: 0 20px; |
| | | font-size: 18px; |
| | | overflow: auto; |