ソースを参照

住院医生操作提示指南

DESKTOP-0GD05B0\Administrator 2 年 前
コミット
c5cbcf1174

+ 7 - 0
src/api/public-api.js

@@ -164,3 +164,10 @@ export function getUuid() {
         method: 'get',
     })
 }
+
+export function getOperationGuide() {
+    return request({
+        url: '/publicApi/getOperationGuide',
+        method: 'get',
+    })
+}

+ 14 - 8
src/views/hospitalization/zhu-yuan-yi-sheng/Home.vue

@@ -1,5 +1,4 @@
 <template>
-  <button @click="getOperationGuide"></button>
   <div style="overflow: auto">
     <div style="color:#000; height: 947px;width:2063px ">
       <div class="yz__header">
@@ -24,6 +23,9 @@
                  @click="item.func? item.func(index) :  handleClick(item.path)">
               <span> {{ item.title }}</span>
             </div>
+            <div @click="downloadGuide" style="background-color: red;color: white">
+              <span>操作指南 {{ fileName }}</span>
+            </div>
           </div>
           <router-view v-slot="{ Component }">
             <keep-alive>
@@ -48,8 +50,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";
+import {getOperationGuide} from "@/api/public-api";
 
 const windowSize = computed(() => {
   return store.state.app.windowSize
@@ -60,7 +62,14 @@ const width = store.state.app.windowSize.w - 158 + 'px'
 const xianShiLieBiao = ref(true)
 const basicPatientInformation = ref(true)
 
+let fileName = $ref('v1.1.0')
+
 watch(() => router.currentRoute.value.path, () => {
+  getOperationGuide().then((res) => {
+    fileName = res
+  }).catch(() => {
+    fileName = 'v1.1.0'
+  })
   let path = router.currentRoute.value.path
   if (path === '/inpatient/zhuYuanYiSheng/dianZiBingLi') {
     xianShiLieBiao.value = false
@@ -108,12 +117,6 @@ 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'
   }
 ])
 
@@ -131,7 +134,10 @@ const currentPagePosition = (val) => {
       color: '#fff'
     }
   }
+}
 
+const downloadGuide = () => {
+  window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.docx`, '_blank')
 }
 
 

+ 1 - 1
src/views/hospitalization/zhu-yuan-yi-sheng/yi-zhu-lu-ru/YiZhuLuRu.vue

@@ -70,7 +70,7 @@ import {
 } from '../public-js/zhu-yuan-yi-sheng'
 import store from '@/store'
 import {stringIsBlank} from '@/utils/blank-utils'
-import {getOperationGuide, getTheTransferList} from '@/api/public-api'
+import { getTheTransferList} from '@/api/public-api'
 import router from '@/router'
 import sleep from "@/utils/sleep";
 import DoctorSOrderFee from "@/components/zhu-yuan-yi-sheng/yi-zhu-lu-ru/DoctorSOrderFee.vue";