|
|
@@ -1,4 +1,5 @@
|
|
|
<template>
|
|
|
+ <button @click="getOperationGuide"></button>
|
|
|
<div style="overflow: auto">
|
|
|
<div style="color:#000; height: 947px;width:2063px ">
|
|
|
<div class="yz__header">
|
|
|
@@ -18,9 +19,9 @@
|
|
|
</div>
|
|
|
<div ref="mainRef" class="resident_doctor__main">
|
|
|
<div class="tag">
|
|
|
- <div v-for="item in pathList"
|
|
|
+ <div v-for="(item,index) in pathList"
|
|
|
:style="currentPagePosition(item.path)"
|
|
|
- @click="item.func? item.func() : handleClick(item.path)">
|
|
|
+ @click="item.func? item.func(index) : handleClick(item.path)">
|
|
|
<span> {{ item.title }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -47,6 +48,8 @@ import {
|
|
|
import PatientList from "@/components/zhu-yuan-yi-sheng/public/PatientList";
|
|
|
import {getDrgIntelligentGrouping} from "@/api/zhu-yuan-yi-sheng/emr-patient";
|
|
|
import {getJyJcZdTree} from "@/api/zhu-yuan-yi-sheng/jian-yan-jian-cha-shen-qing";
|
|
|
+import {getOperationGuide} from "@/api/public-api";
|
|
|
+import {ElMessageBox} from "element-plus";
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
|
@@ -105,6 +108,12 @@ let pathList = $ref([
|
|
|
window.open(res)
|
|
|
})
|
|
|
}
|
|
|
+ },
|
|
|
+ {
|
|
|
+ title: '操作指南 v1.1.1', func: (index) => {
|
|
|
+ window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生${pathList[index].title}.docx`, '_blank')
|
|
|
+ },
|
|
|
+ path: 'download'
|
|
|
}
|
|
|
])
|
|
|
|
|
|
@@ -115,11 +124,30 @@ const currentPagePosition = (val) => {
|
|
|
color: '#fff'
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ if (val === 'download') {
|
|
|
+ return {
|
|
|
+ backgroundColor: 'red',
|
|
|
+ color: '#fff'
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
const mainRef = ref()
|
|
|
onMounted(async () => {
|
|
|
+ if (localStorage.getItem('downloadZn') === null) {
|
|
|
+ ElMessageBox.confirm('下载住院医生操作指南', '提示', {
|
|
|
+ type: 'info',
|
|
|
+ }).then(() => {
|
|
|
+ window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生${pathList[pathList.length - 1].title}.docx`, '_blank')
|
|
|
+ localStorage.setItem('downloadZn', 'true')
|
|
|
+ }).catch(() => {
|
|
|
+ })
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
await nextTick()
|
|
|
winsize.value.main = mainRef.value.clientWidth
|
|
|
getJyJcZdTree().then((res) => {
|
|
|
@@ -157,6 +185,10 @@ onMounted(async () => {
|
|
|
border: 1px solid;
|
|
|
cursor: default;
|
|
|
}
|
|
|
+
|
|
|
+ .download {
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|