Explorar el Código

添加操作指南下载

DESKTOP-0GD05B0\Administrator hace 2 años
padre
commit
8f195d2076

+ 4 - 2
src/layout/HeaderV2/function-list/Download.vue

@@ -1,7 +1,9 @@
 <template>
   <div title="下载">
     <el-dropdown style="margin: 0 10px" trigger="click" @command="downloadReadCard">
-      <el-icon style="font-size: 18px"><Download /></el-icon>
+      <el-icon style="font-size: 18px">
+        <Download/>
+      </el-icon>
       <template #dropdown>
         <el-dropdown-menu>
           <el-dropdown-item command="thcardreader">读卡插件安装包</el-dropdown-item>
@@ -15,7 +17,7 @@
 </template>
 
 <script>
-import { defineComponent } from 'vue'
+import {defineComponent} from 'vue'
 
 export default defineComponent({
   name: 'download',

+ 34 - 2
src/views/hospitalization/zhu-yuan-yi-sheng/Home.vue

@@ -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 {
+
+    }
   }
 }
 

+ 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 {getTheTransferList} from '@/api/public-api'
+import {getOperationGuide, 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";