|
@@ -25,10 +25,7 @@
|
|
|
<el-icon v-if="data.submit">
|
|
|
<Lock/>
|
|
|
</el-icon>
|
|
|
- <el-icon v-else>
|
|
|
- <Folder v-if="data.children"/>
|
|
|
- <Document v-else/>
|
|
|
- </el-icon>
|
|
|
+ <component :is="isItAFolder(data)"/>
|
|
|
<span :title="fileName(data)">
|
|
|
{{ fileName(data) }}
|
|
|
</span>
|
|
@@ -56,6 +53,8 @@ import {getAllWards} from "@/api/zhu-yuan-yi-sheng/resident-doctor";
|
|
|
import RightClickMenu from "@/components/menu-item/RightClickMenu.vue";
|
|
|
import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import store from "@/store";
|
|
|
+import {ElIcon} from "element-plus";
|
|
|
+import {Folder, Document} from "@element-plus/icons-vue";
|
|
|
|
|
|
const props = defineProps({
|
|
|
maxHeight: {
|
|
@@ -124,6 +123,7 @@ const wardCreationJudgment = async () => {
|
|
|
}
|
|
|
|
|
|
const handleNodeClick = async (val) => {
|
|
|
+ if (val.type === 'group-category') return
|
|
|
let temp = {}
|
|
|
if (templateType === 0 || templateType === 1) {
|
|
|
temp = {
|
|
@@ -193,11 +193,6 @@ const typeChange = (val) => {
|
|
|
emit("typeChange", val)
|
|
|
}
|
|
|
|
|
|
-const queryHistory = async (times) => {
|
|
|
- templateType = 2
|
|
|
- returnData.patientTree = await getPatientDataTree(props.huanZheXinXi.inpatientNo, times)
|
|
|
-}
|
|
|
-
|
|
|
const filterChange = (val) => {
|
|
|
treeRef.filter(val)
|
|
|
}
|
|
@@ -234,7 +229,6 @@ const deleteTheSpecifiedNode = (id) => {
|
|
|
let courseRecord = true
|
|
|
let findNode = false
|
|
|
const diseaseDurationRecordTime = (id, list) => {
|
|
|
- console.log(courseRecord)
|
|
|
if (courseRecord) {
|
|
|
findNode = false;
|
|
|
findMedicalRecordById(id, list, returnData.patientTree)
|
|
@@ -248,6 +242,7 @@ const findMedicalRecordById = (id, roundTimes, list) => {
|
|
|
let item = list[i]
|
|
|
if (item.emrDocumentId === id) {
|
|
|
findNode = true
|
|
|
+ item.type = 'group-category'
|
|
|
item.children = roundTimes
|
|
|
return
|
|
|
}
|
|
@@ -266,6 +261,7 @@ const queryData = () => {
|
|
|
templateType = 2
|
|
|
emit('patientMedicalRecord')
|
|
|
}
|
|
|
+ console.log(res)
|
|
|
returnData.patientTree = res
|
|
|
})
|
|
|
}
|
|
@@ -324,6 +320,20 @@ const contextmenuItem = (event, data) => {
|
|
|
};
|
|
|
}
|
|
|
|
|
|
+const isItAFolder = (data) => {
|
|
|
+ return h(ElIcon, null,
|
|
|
+ {
|
|
|
+ default: () => {
|
|
|
+ if (data.type === 'category') {
|
|
|
+ return h(Document)
|
|
|
+ } else {
|
|
|
+ return h(Folder)
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ )
|
|
|
+}
|
|
|
+
|
|
|
onMounted(() => {
|
|
|
|
|
|
emrMitt.on('患者病区判断', () => {
|
|
@@ -341,7 +351,6 @@ onMounted(() => {
|
|
|
getEmrTree().then((res) => {
|
|
|
returnData.emrTree = res.all
|
|
|
returnData.deptTree = res.dept
|
|
|
- console.log(res)
|
|
|
})
|
|
|
} else {
|
|
|
templateType = 2
|