|
|
@@ -54,6 +54,7 @@ import {ElMessageBox} from "element-plus";
|
|
|
import {getOperationGuide, getOperationGuidePdf} from "@/api/public-api";
|
|
|
import {xcMessage} from "@/utils/xiaochan-element-plus";
|
|
|
import axios from "axios";
|
|
|
+import {isDev} from "@/utils/public";
|
|
|
|
|
|
const windowSize = computed(() => {
|
|
|
return store.state.app.windowSize
|
|
|
@@ -77,7 +78,7 @@ watch(() => router.currentRoute.value.path, () => {
|
|
|
}, {immediate: true})
|
|
|
|
|
|
const handleClick = (path, disable) => {
|
|
|
- if (disable) {
|
|
|
+ if (disable && !isDev) {
|
|
|
xcMessage.info('该功能在开发中。。。')
|
|
|
} else {
|
|
|
router.push(path);
|
|
|
@@ -153,8 +154,6 @@ const downloadGuide = () => {
|
|
|
window.open(`http://webhis.thyy.cn:8080/download/操作指南/住院医生操作指南 ${fileName}.docx`, '_blank')
|
|
|
}
|
|
|
})
|
|
|
- }).catch(() => {
|
|
|
- fileName = 'v1.1.0'
|
|
|
})
|
|
|
}
|
|
|
|
|
|
@@ -163,20 +162,7 @@ const mainRef = ref()
|
|
|
onMounted(async () => {
|
|
|
getOperationGuide().then((res) => {
|
|
|
fileName = res
|
|
|
- }).catch(() => {
|
|
|
- fileName = 'v1.1.0'
|
|
|
})
|
|
|
- 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) => {
|