vue2-client 1.15.93 → 1.15.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -6
- package/package.json +1 -1
- package/src/base-client/components/common/XFormTable/demo.vue +2 -2
- package/src/base-client/components/his/XHisEditor/XHisEditor.vue +2 -52
- package/src/base-client/components/his/XImportExcelButton/XFrontImportExcel.vue +11 -7
- package/src/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue +1 -1
- package/src/base-client/components/his/XList/XList.vue +1 -1
- package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
- package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
- package/src/layouts/BlankView.vue +5 -3
- package/src/pages/WorkflowDetail/WorkflowDetail.vue +5 -5
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformationDetails.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +4 -4
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue +1 -1
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails.vue +2 -6
- package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkflowListResolution.vue +2 -2
- package/src/router/async/router.map.js +2 -1
- package/src/utils/routerUtil.js +16 -2
- package/.history/public/his/editor/editor_20250606134713.html +0 -51
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
- package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
- package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
- package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
- package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
- package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
- package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
- package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
- package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
- package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
- package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
- package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
- package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
- package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
- package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
- package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
- package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
- package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
- package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
- package/.history/src/base-client/components/his/XList/XList_20250704142024.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142033.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704142040.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142211.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704142214.vue +0 -494
- package/.history/src/base-client/components/his/XList/XList_20250704143010.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250704143203.vue +0 -495
- package/.history/src/base-client/components/his/XList/XList_20250707095101.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100152.vue +0 -492
- package/.history/src/base-client/components/his/XList/XList_20250707100200.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100208.vue +0 -485
- package/.history/src/base-client/components/his/XList/XList_20250707100259.vue +0 -488
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250609151519.vue +0 -222
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155514.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155556.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612155600.vue +0 -183
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181609.vue +0 -206
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250612181629.vue +0 -209
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095553.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095610.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613095612.vue +0 -242
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100041.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100047.vue +0 -251
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100054.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100105.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100107.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613100114.vue +0 -250
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140844.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140910.vue +0 -238
- package/.history/src/base-client/components/his/XShiftSchedule/XShiftSchedule_20250613140912.vue +0 -238
- package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
- package/src/base-client/components/TreeList/TreeList.vue +0 -91
- package/src/base-client/components/TreeList/TreeNode.vue +0 -81
- package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
- package/src/base-client/components/his/XHisEditor/dome.vue +0 -144
@@ -1,111 +1,111 @@
|
|
1
|
-
<template>
|
2
|
-
<!-- 根据实际部署环境修改 editor.html 的路径 -->
|
3
|
-
<iframe
|
4
|
-
src="/his/editor/editor.html"
|
5
|
-
width="100%"
|
6
|
-
height="800"
|
7
|
-
frameborder="0"
|
8
|
-
@load="onIframeLoad"
|
9
|
-
ref="editorIframe">
|
10
|
-
</iframe>
|
11
|
-
</template>
|
12
|
-
|
13
|
-
<script setup>
|
14
|
-
|
15
|
-
import { ref, onBeforeUnmount } from 'vue'
|
16
|
-
|
17
|
-
const editorIframe = ref(null)
|
18
|
-
const checkEditorTimer = ref(null)
|
19
|
-
const checkCount = ref(0)
|
20
|
-
const editor = ref(null)
|
21
|
-
const iframeWindow = ref(null)
|
22
|
-
// 对外暴露的获取editor方法
|
23
|
-
const getEditor = () => {
|
24
|
-
if (editor.value) {
|
25
|
-
return editor.value
|
26
|
-
}
|
27
|
-
if (iframeWindow.value && iframeWindow.value.editor) {
|
28
|
-
editor.value = iframeWindow.value.editor
|
29
|
-
return editor.value
|
30
|
-
}
|
31
|
-
if (editorIframe.value && editorIframe.value.contentWindow && editorIframe.value.contentWindow.editor) {
|
32
|
-
editor.value = editorIframe.value.contentWindow.editor
|
33
|
-
return editor.value
|
34
|
-
}
|
35
|
-
return null
|
36
|
-
}
|
37
|
-
// 创建体温单方法
|
38
|
-
const createVitalSigns = (data) => {
|
39
|
-
const editorObj = getEditor()
|
40
|
-
if (!editorObj) {
|
41
|
-
throw new Error('editor对象未初始化,无法创建体温单')
|
42
|
-
}
|
43
|
-
if (typeof editorObj.createVitalSigns === 'function') {
|
44
|
-
return editorObj.createVitalSigns(data)
|
45
|
-
} else {
|
46
|
-
throw new Error('editor对象未包含createVitalSigns方法')
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
// 检查editor对象是否已初始化
|
51
|
-
const startEditorCheck = (frameWindow, iframe) => {
|
52
|
-
if (checkEditorTimer.value) {
|
53
|
-
clearInterval(checkEditorTimer.value)
|
54
|
-
}
|
55
|
-
checkCount.value = 0
|
56
|
-
checkEditorTimer.value = setInterval(() => {
|
57
|
-
checkCount.value++
|
58
|
-
try {
|
59
|
-
const editorObj = frameWindow.editor
|
60
|
-
if (editorObj && typeof editorObj.createVitalSigns === 'function') {
|
61
|
-
clearInterval(checkEditorTimer.value)
|
62
|
-
editor.value = editorObj
|
63
|
-
// 将editor对象暴露到全局
|
64
|
-
window.iframeEditor = editorObj
|
65
|
-
window.iframeWindow = frameWindow
|
66
|
-
// 触发事件
|
67
|
-
emit('editor-ready', editorObj)
|
68
|
-
emit('load', { target: iframe, editor: editorObj })
|
69
|
-
// 发送消息通知
|
70
|
-
window.parent.postMessage({ type: 'editorReady' }, '*')
|
71
|
-
}
|
72
|
-
} catch (err) {
|
73
|
-
console.error('检查editor对象时出错:', err)
|
74
|
-
}
|
75
|
-
if (checkCount.value >= 20) {
|
76
|
-
clearInterval(checkEditorTimer.value)
|
77
|
-
console.error('Editor 对象加载失败')
|
78
|
-
}
|
79
|
-
}, 500)
|
80
|
-
}
|
81
|
-
// iframe加载完成的处理
|
82
|
-
const onIframeLoad = (e) => {
|
83
|
-
const iframe = e.target
|
84
|
-
const frameWindow = iframe.contentWindow
|
85
|
-
iframeWindow.value = frameWindow
|
86
|
-
if (!frameWindow) {
|
87
|
-
console.error('无法访问 iframe 内容')
|
88
|
-
return
|
89
|
-
}
|
90
|
-
startEditorCheck(frameWindow, iframe)
|
91
|
-
}
|
92
|
-
// 组件销毁前清理
|
93
|
-
onBeforeUnmount(() => {
|
94
|
-
if (checkEditorTimer.value) {
|
95
|
-
clearInterval(checkEditorTimer.value)
|
96
|
-
}
|
97
|
-
})
|
98
|
-
// 暴露方法给父组件
|
99
|
-
defineExpose({ getEditor, createVitalSigns })
|
100
|
-
|
101
|
-
// 定义事件
|
102
|
-
const emit = defineEmits(['editor-ready', 'load'])
|
103
|
-
</script>
|
104
|
-
|
105
|
-
<style scoped>
|
106
|
-
iframe {
|
107
|
-
border: none;
|
108
|
-
width: 100%;
|
109
|
-
min-height: 800px;
|
110
|
-
}
|
111
|
-
</style>
|
1
|
+
<template>
|
2
|
+
<!-- 根据实际部署环境修改 editor.html 的路径 -->
|
3
|
+
<iframe
|
4
|
+
src="/his/editor/editor.html"
|
5
|
+
width="100%"
|
6
|
+
height="800"
|
7
|
+
frameborder="0"
|
8
|
+
@load="onIframeLoad"
|
9
|
+
ref="editorIframe">
|
10
|
+
</iframe>
|
11
|
+
</template>
|
12
|
+
|
13
|
+
<script setup>
|
14
|
+
|
15
|
+
import { ref, onBeforeUnmount } from 'vue'
|
16
|
+
|
17
|
+
const editorIframe = ref(null)
|
18
|
+
const checkEditorTimer = ref(null)
|
19
|
+
const checkCount = ref(0)
|
20
|
+
const editor = ref(null)
|
21
|
+
const iframeWindow = ref(null)
|
22
|
+
// 对外暴露的获取editor方法
|
23
|
+
const getEditor = () => {
|
24
|
+
if (editor.value) {
|
25
|
+
return editor.value
|
26
|
+
}
|
27
|
+
if (iframeWindow.value && iframeWindow.value.editor) {
|
28
|
+
editor.value = iframeWindow.value.editor
|
29
|
+
return editor.value
|
30
|
+
}
|
31
|
+
if (editorIframe.value && editorIframe.value.contentWindow && editorIframe.value.contentWindow.editor) {
|
32
|
+
editor.value = editorIframe.value.contentWindow.editor
|
33
|
+
return editor.value
|
34
|
+
}
|
35
|
+
return null
|
36
|
+
}
|
37
|
+
// 创建体温单方法
|
38
|
+
const createVitalSigns = (data) => {
|
39
|
+
const editorObj = getEditor()
|
40
|
+
if (!editorObj) {
|
41
|
+
throw new Error('editor对象未初始化,无法创建体温单')
|
42
|
+
}
|
43
|
+
if (typeof editorObj.createVitalSigns === 'function') {
|
44
|
+
return editorObj.createVitalSigns(data)
|
45
|
+
} else {
|
46
|
+
throw new Error('editor对象未包含createVitalSigns方法')
|
47
|
+
}
|
48
|
+
}
|
49
|
+
|
50
|
+
// 检查editor对象是否已初始化
|
51
|
+
const startEditorCheck = (frameWindow, iframe) => {
|
52
|
+
if (checkEditorTimer.value) {
|
53
|
+
clearInterval(checkEditorTimer.value)
|
54
|
+
}
|
55
|
+
checkCount.value = 0
|
56
|
+
checkEditorTimer.value = setInterval(() => {
|
57
|
+
checkCount.value++
|
58
|
+
try {
|
59
|
+
const editorObj = frameWindow.editor
|
60
|
+
if (editorObj && typeof editorObj.createVitalSigns === 'function') {
|
61
|
+
clearInterval(checkEditorTimer.value)
|
62
|
+
editor.value = editorObj
|
63
|
+
// 将editor对象暴露到全局
|
64
|
+
window.iframeEditor = editorObj
|
65
|
+
window.iframeWindow = frameWindow
|
66
|
+
// 触发事件
|
67
|
+
emit('editor-ready', editorObj)
|
68
|
+
emit('load', { target: iframe, editor: editorObj })
|
69
|
+
// 发送消息通知
|
70
|
+
window.parent.postMessage({ type: 'editorReady' }, '*')
|
71
|
+
}
|
72
|
+
} catch (err) {
|
73
|
+
console.error('检查editor对象时出错:', err)
|
74
|
+
}
|
75
|
+
if (checkCount.value >= 20) {
|
76
|
+
clearInterval(checkEditorTimer.value)
|
77
|
+
console.error('Editor 对象加载失败')
|
78
|
+
}
|
79
|
+
}, 500)
|
80
|
+
}
|
81
|
+
// iframe加载完成的处理
|
82
|
+
const onIframeLoad = (e) => {
|
83
|
+
const iframe = e.target
|
84
|
+
const frameWindow = iframe.contentWindow
|
85
|
+
iframeWindow.value = frameWindow
|
86
|
+
if (!frameWindow) {
|
87
|
+
console.error('无法访问 iframe 内容')
|
88
|
+
return
|
89
|
+
}
|
90
|
+
startEditorCheck(frameWindow, iframe)
|
91
|
+
}
|
92
|
+
// 组件销毁前清理
|
93
|
+
onBeforeUnmount(() => {
|
94
|
+
if (checkEditorTimer.value) {
|
95
|
+
clearInterval(checkEditorTimer.value)
|
96
|
+
}
|
97
|
+
})
|
98
|
+
// 暴露方法给父组件
|
99
|
+
defineExpose({ getEditor, createVitalSigns })
|
100
|
+
|
101
|
+
// 定义事件
|
102
|
+
const emit = defineEmits(['editor-ready', 'load'])
|
103
|
+
</script>
|
104
|
+
|
105
|
+
<style scoped>
|
106
|
+
iframe {
|
107
|
+
border: none;
|
108
|
+
width: 100%;
|
109
|
+
min-height: 800px;
|
110
|
+
}
|
111
|
+
</style>
|
@@ -26,9 +26,9 @@ export default {
|
|
26
26
|
...mapState('setting', ['cachePage', 'animate'])
|
27
27
|
},
|
28
28
|
created () {
|
29
|
-
this.loadCacheConfig(this.$router?.options?.routes)
|
30
29
|
},
|
31
30
|
mounted () {
|
31
|
+
this.loadCacheConfig(this.$router?.options?.routes)
|
32
32
|
if (window.__MICRO_APP_ENVIRONMENT__) {
|
33
33
|
this.isMicroAppEnv = true
|
34
34
|
window.microApp.addDataListener((data) => {
|
@@ -44,9 +44,11 @@ export default {
|
|
44
44
|
// 加载需要排除缓存的路由配置
|
45
45
|
loadCacheConfig (routes, pCache = true) {
|
46
46
|
routes.forEach(item => {
|
47
|
-
const cacheAble = item.meta?.
|
47
|
+
const cacheAble = item.meta?.keepAlive ?? pCache ?? true
|
48
48
|
if (!cacheAble) {
|
49
|
-
|
49
|
+
// 确保路径以 / 开头
|
50
|
+
const path = item.path.startsWith('/') ? item.path : '/' + item.path
|
51
|
+
this.excludeKeys.push(new RegExp(`^${path.replace(/:[^/]*/g, '[^/]*')}(\\?.*)?\\d*::.+$`))
|
50
52
|
}
|
51
53
|
if (item.children) {
|
52
54
|
this.loadCacheConfig(item.children, cacheAble)
|
@@ -114,16 +114,16 @@
|
|
114
114
|
|
115
115
|
<script>
|
116
116
|
import { mapState } from 'vuex'
|
117
|
-
import workflowBaseInformation from '
|
118
|
-
import WorkFlowHandle from '
|
117
|
+
import workflowBaseInformation from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformation.vue'
|
118
|
+
import WorkFlowHandle from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue'
|
119
119
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
120
120
|
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
121
121
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
122
|
-
import WorkflowLog from '
|
123
|
-
import LeaveMessage from '
|
122
|
+
import WorkflowLog from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue'
|
123
|
+
import LeaveMessage from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue'
|
124
124
|
import XUploadFilesView from '@vue2-client/base-client/components/common/XUploadFilesView/index.vue'
|
125
125
|
import FileItemGroup from '@vue2-client/components/FileImageItem/FileItemGroup.vue'
|
126
|
-
import worklog from '
|
126
|
+
import worklog from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/worklog.vue'
|
127
127
|
|
128
128
|
export default {
|
129
129
|
name: 'WorkflowDetail',
|
@@ -134,7 +134,7 @@ import { formatDate } from '@vue2-client/utils/util'
|
|
134
134
|
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
135
135
|
import moment from 'moment'
|
136
136
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
137
|
-
import WorkOrderParentDetails from '
|
137
|
+
import WorkOrderParentDetails from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails'
|
138
138
|
|
139
139
|
export default {
|
140
140
|
name: 'ApplyBaseInformation',
|
@@ -106,7 +106,7 @@ import { formatDate } from '@vue2-client/utils/util'
|
|
106
106
|
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
107
107
|
import moment from 'moment'
|
108
108
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
109
|
-
import WorkOrderParentDetails from '
|
109
|
+
import WorkOrderParentDetails from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkOrderParentDetails'
|
110
110
|
|
111
111
|
export default {
|
112
112
|
name: 'ApplyBaseInformation',
|
@@ -272,16 +272,16 @@ import { formatDate } from '@vue2-client/utils/util'
|
|
272
272
|
import { mapState } from 'vuex'
|
273
273
|
import moment from 'moment'
|
274
274
|
import FilePreview from '@vue2-client/components/FilePreview'
|
275
|
-
import WorkFlowTimeline from '
|
275
|
+
import WorkFlowTimeline from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowTimeline.vue'
|
276
276
|
import { FileItem, ImageItem } from '@vue2-client/components/FileImageItem'
|
277
|
-
import WorkflowListResolution from '
|
277
|
+
import WorkflowListResolution from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkflowListResolution'
|
278
278
|
import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
|
279
279
|
import * as util from '@vue2-client/utils/util'
|
280
280
|
import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
|
281
281
|
import LogicRunner from '@vue2-client/logic/LogicRunner'
|
282
282
|
import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
|
283
|
-
import WorkFlowPreview from '
|
284
|
-
import WorkflowPersonSelector from '
|
283
|
+
import WorkFlowPreview from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowPreview'
|
284
|
+
import WorkflowPersonSelector from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/components/WorkflowPersonSelector.vue'
|
285
285
|
|
286
286
|
export default {
|
287
287
|
name: 'WorkFlowHandle',
|
@@ -156,7 +156,7 @@
|
|
156
156
|
|
157
157
|
<script>
|
158
158
|
import { formatDate } from '@vue2-client/utils/util'
|
159
|
-
import TrimTextTail from '
|
159
|
+
import TrimTextTail from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/TrimTextTail'
|
160
160
|
|
161
161
|
export default {
|
162
162
|
components: { TrimTextTail },
|
@@ -60,13 +60,11 @@
|
|
60
60
|
|
61
61
|
<script>
|
62
62
|
import { mapState } from 'vuex'
|
63
|
-
import workflowBaseInformationDetails from '
|
64
|
-
import workflowHandle from '
|
63
|
+
import workflowBaseInformationDetails from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowBaseInformationDetails.vue'
|
64
|
+
import workflowHandle from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue'
|
65
65
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
66
66
|
import { postByServiceName } from '@vue2-client/services/api/restTools'
|
67
67
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
68
|
-
import ApplyWorkflowLog from './WorkflowLog.vue'
|
69
|
-
import WorkflowLog from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/WorkflowLog.vue'
|
70
68
|
import LeaveMessage from '@vue2-client/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue'
|
71
69
|
// import LeaveMessage from '@vue2-client/components/LeaveMessage'
|
72
70
|
|
@@ -74,11 +72,9 @@ export default {
|
|
74
72
|
name: 'WorkOrderParentDetails',
|
75
73
|
components: {
|
76
74
|
LeaveMessage,
|
77
|
-
WorkflowLog,
|
78
75
|
workflowBaseInformationDetails,
|
79
76
|
workflowHandle,
|
80
77
|
XFormTable,
|
81
|
-
ApplyWorkflowLog
|
82
78
|
},
|
83
79
|
data () {
|
84
80
|
return {
|
@@ -26,8 +26,8 @@
|
|
26
26
|
|
27
27
|
<script>
|
28
28
|
import XFormTable from '@vue2-client/base-client/components/common/XFormTable/XFormTable'
|
29
|
-
import WorkflowDetail from '
|
30
|
-
import WorkflowDetailResso from '
|
29
|
+
import WorkflowDetail from '@vue2-client/pages/WorkflowDetail/WorkflowDetail.vue'
|
30
|
+
import WorkflowDetailResso from '@vue2-client/pages/WorkflowDetail//WorkflowPageDetail/WorkflowDetailResso.vue'
|
31
31
|
import { mapState } from 'vuex'
|
32
32
|
import moment from 'moment'
|
33
33
|
import { workFlowViewApi } from '@vue2-client/services/api/workFlow'
|
@@ -60,12 +60,13 @@ path: 'example',
|
|
60
60
|
// component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
|
61
61
|
// component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
|
62
62
|
// component: () => import('@vue2-client/base-client/components/common/XReport/XReportDemo.vue'),
|
63
|
-
component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
63
|
+
// component: () => import('@vue2-client/base-client/components/common/XFormTable/demo.vue'),
|
64
64
|
// component: () => import('@vue2-client/base-client/components/common/XDatePicker/demo.vue'),
|
65
65
|
// component: () => import('@vue2-client/base-client/components/common/XTab/XTabDemo.vue'),
|
66
66
|
// component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
|
67
67
|
// component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
|
68
68
|
// component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
|
69
|
+
component: () => import('@vue2-client/base-client/components/his/XImportExcelButton/XFrontImportExcelDemo.vue'),
|
69
70
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
70
71
|
// component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
|
71
72
|
// component: () => import('@vue2-client/pages/XPageViewExample/index.vue'),
|
package/src/utils/routerUtil.js
CHANGED
@@ -449,7 +449,14 @@ function parsefunc (func) {
|
|
449
449
|
try {
|
450
450
|
const params = new URLSearchParams(queryString)
|
451
451
|
for (const [key, value] of params.entries()) {
|
452
|
-
|
452
|
+
// 转换字符串布尔值为实际的布尔值
|
453
|
+
if (value === 'true') {
|
454
|
+
route.meta[key] = true
|
455
|
+
} else if (value === 'false') {
|
456
|
+
route.meta[key] = false
|
457
|
+
} else {
|
458
|
+
route.meta[key] = value
|
459
|
+
}
|
453
460
|
}
|
454
461
|
if (route.meta.path) {
|
455
462
|
route.path = route.meta.path
|
@@ -533,7 +540,14 @@ function parsefuncOA (func) {
|
|
533
540
|
try {
|
534
541
|
const params = new URLSearchParams(queryString)
|
535
542
|
for (const [key, value] of params.entries()) {
|
536
|
-
|
543
|
+
// 转换字符串布尔值为实际的布尔值
|
544
|
+
if (value === 'true') {
|
545
|
+
route.meta[key] = true
|
546
|
+
} else if (value === 'false') {
|
547
|
+
route.meta[key] = false
|
548
|
+
} else {
|
549
|
+
route.meta[key] = value
|
550
|
+
}
|
537
551
|
}
|
538
552
|
if (route.meta.path) {
|
539
553
|
route.path = route.meta.path
|
@@ -1,51 +0,0 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8"/>
|
5
|
-
<link rel="shortcut icon" href="./favicon.svg" type="image/svg+xml"/>
|
6
|
-
<link rel="stylesheet" href="./vender/jquery/zTreeStyle/zTreeStyle.css" type="text/css">
|
7
|
-
<script src = "./vender/jquery/jquery.js"></script>
|
8
|
-
<script src = "./vender/date97/WdatePicker.js"></script>
|
9
|
-
<script src = "./vender/jquery/jquery.ztree.core.min.js"></script>
|
10
|
-
<script src = "./vender/jquery/jquery.ztree.exedit.min.js"></script>
|
11
|
-
<script src = "./vender/jquery/jquery.ztree.exhide.min.js"></script>
|
12
|
-
<script src = "./vender/codemirror.js"></script>
|
13
|
-
<script src = "./vender/fabric.js"></script>
|
14
|
-
<script src="./vender/editor.js"></script>
|
15
|
-
<script>
|
16
|
-
$(function() {
|
17
|
-
//配置项可以不设置,会使用默认设置
|
18
|
-
let option = {
|
19
|
-
license:'QO1pepfLYwDNqGvW21ensj0psE9CxBxf5MSRD1q2sCvclYGGtk6clTZEIth12i4SvvvDC04ZNcHe3uQuNtBUFcAk7sHUwAdYvffM2aZis/jpZqrm1rDGk1NHYsheD6DroF+m3jZ5Izh/LxRjzZJfaHHejfrn5InFoSqErfPm4gY=',
|
20
|
-
mode:'form', //默认模式 form:表单模式,design:设计模式
|
21
|
-
pdfUrl:'https://www.x-emr.cn/pdf/post', //pdf生成服务
|
22
|
-
dictionary: [ //知识库
|
23
|
-
{name: '体征', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
24
|
-
{name: '症状', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=20', itemUrl:'https://www.x-emr.cn/dictitem'},
|
25
|
-
{name: '卫生信息数据元', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=40', itemUrl:'https://www.x-emr.cn/dictitem'},
|
26
|
-
{name: '电子病历数据集', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=50', itemUrl:'https://www.x-emr.cn/dictitem'},
|
27
|
-
{name: '国家医保标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=80', itemUrl:'https://www.x-emr.cn/dictitem'},
|
28
|
-
{name: '省数据平台标准', isParent:true, treeUrl:'https://www.x-emr.cn/dict?category=90', itemUrl:'https://www.x-emr.cn/dictitem'},
|
29
|
-
]
|
30
|
-
}
|
31
|
-
|
32
|
-
//从模块的Editor组件中获取mode,doc,lang属性 (该段代码可删除)
|
33
|
-
let mode = window.frameElement.getAttribute('mode')
|
34
|
-
let doc = window.frameElement.getAttribute('doc')
|
35
|
-
let lang = window.frameElement.getAttribute('lang')
|
36
|
-
mode? option.mode = mode: null
|
37
|
-
lang? option.lang = lang: null
|
38
|
-
|
39
|
-
//初始化编辑器(初始化代码可以放入组件的load事件中)
|
40
|
-
editor.init(option).then(()=>{
|
41
|
-
doc? editor.loadUrl(doc) : null
|
42
|
-
})
|
43
|
-
|
44
|
-
})
|
45
|
-
</script>
|
46
|
-
</head>
|
47
|
-
<body>
|
48
|
-
<!-- 默认id 为editor -->
|
49
|
-
<div id="editor" style="width:100%; height:100%;"></div>
|
50
|
-
</body>
|
51
|
-
</html>
|