vue2-client 1.14.81 → 1.14.82

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.
Files changed (115) hide show
  1. package/docs/Logic/345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +0 -1
  2. package/docs//345/207/275/346/225/260/344/275/277/347/224/250/347/233/270/345/205/263.md +1 -2
  3. package/package.json +1 -1
  4. package/src/base-client/components/common/Upload/Upload.vue +0 -1
  5. package/src/base-client/components/common/XTab/XTab.vue +8 -0
  6. package/src/base-client/components/common/XUploadFilesView/index.vue +485 -485
  7. package/src/base-client/components/his/XTextCard/XTextCard.vue +207 -207
  8. package/src/base-client/components/his/XTreeRows/TreeNode.vue +100 -100
  9. package/src/base-client/components/his/XTreeRows/XTreeRows.vue +197 -197
  10. package/src/base-client/components/his/threeTestOrders/editor.vue +111 -111
  11. package/src/components/FileImageItem/FileItem.vue +1 -1
  12. package/src/pages/WorkflowDetail/WorkFlowDemo.vue +1 -1
  13. package/src/pages/WorkflowDetail/WorkflowPageDetail/LeaveMessage.vue +388 -388
  14. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowHandle.vue +26 -56
  15. package/src/pages/WorkflowDetail/WorkflowPageDetail/WorkFlowPreview.vue +98 -0
  16. package/src/router/async/router.map.js +1 -3
  17. package/src/utils/axios-interceptors.js +19 -1
  18. package/src/utils/request.js +5 -0
  19. package/.history/public/his/editor/editor_20250606134713.html +0 -51
  20. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527173925.vue +0 -509
  21. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174316.vue +0 -524
  22. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174419.vue +0 -524
  23. package/.history/src/base-client/components/common/AddressSearchCombobox/AddressSearchCombobox_20250527174422.vue +0 -524
  24. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172825.vue +0 -207
  25. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172945.vue +0 -211
  26. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611172949.vue +0 -212
  27. package/.history/src/base-client/components/common/XAddReport/XAddReport_20250611173010.vue +0 -212
  28. package/.history/src/base-client/components/common/XForm/XFormItem_20250508134122.vue +0 -1320
  29. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171604.vue +0 -1332
  30. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171613.vue +0 -1331
  31. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171703.vue +0 -1331
  32. package/.history/src/base-client/components/common/XForm/XFormItem_20250527171720.vue +0 -1331
  33. package/.history/src/base-client/components/common/XForm/XFormItem_20250527174327.vue +0 -1339
  34. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612092804.vue +0 -731
  35. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612112546.vue +0 -748
  36. package/.history/src/base-client/components/common/XReportGrid/XReportTrGroup_20250612113808.vue +0 -748
  37. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115237.vue +0 -1071
  38. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115346.vue +0 -1078
  39. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115350.vue +0 -1077
  40. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115415.vue +0 -1077
  41. package/.history/src/base-client/components/common/XReportGrid/XReport_20250612115429.vue +0 -1077
  42. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611091619.vue +0 -442
  43. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092547.vue +0 -442
  44. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092552.vue +0 -442
  45. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092744.vue +0 -475
  46. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092955.vue +0 -475
  47. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611092957.vue +0 -475
  48. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095652.vue +0 -477
  49. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095701.vue +0 -477
  50. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611095704.vue +0 -477
  51. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100005.vue +0 -473
  52. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100011.vue +0 -473
  53. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100014.vue +0 -473
  54. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100833.vue +0 -473
  55. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100853.vue +0 -473
  56. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611100940.vue +0 -473
  57. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101011.vue +0 -473
  58. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101013.vue +0 -473
  59. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101014.vue +0 -473
  60. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101159.vue +0 -473
  61. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101238.vue +0 -474
  62. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101240.vue +0 -474
  63. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101242.vue +0 -474
  64. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101404.vue +0 -472
  65. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101410.vue +0 -472
  66. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101459.vue +0 -472
  67. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101500.vue +0 -472
  68. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101502.vue +0 -472
  69. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101504.vue +0 -472
  70. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101610.vue +0 -501
  71. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101700.vue +0 -501
  72. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101702.vue +0 -501
  73. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101741.vue +0 -504
  74. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101749.vue +0 -504
  75. package/.history/src/base-client/components/his/XHisEditor/XHisEditor_20250611101759.vue +0 -504
  76. package/.history/src/base-client/components/his/XHisEditor/dome_20250611091349.vue +0 -131
  77. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105854.vue +0 -160
  78. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105902.vue +0 -160
  79. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105924.vue +0 -160
  80. package/.history/src/base-client/components/his/XHisEditor/dome_20250611105932.vue +0 -158
  81. package/.history/src/base-client/components/his/XList/XList_20250609135848.vue +0 -173
  82. package/.history/src/base-client/components/his/XList/XList_20250609141026.vue +0 -222
  83. package/.history/src/base-client/components/his/XList/XList_20250609141035.vue +0 -229
  84. package/.history/src/base-client/components/his/XList/XList_20250609141103.vue +0 -229
  85. package/.history/src/base-client/components/his/XList/XList_20250609141105.vue +0 -229
  86. package/.history/src/base-client/components/his/XList/XList_20250609141334.vue +0 -241
  87. package/.history/src/base-client/components/his/XList/XList_20250609141404.vue +0 -241
  88. package/.history/src/base-client/components/his/XList/XList_20250609141406.vue +0 -241
  89. package/.history/src/base-client/components/his/XList/XList_20250609141801.vue +0 -245
  90. package/.history/src/base-client/components/his/XList/XList_20250609142033.vue +0 -245
  91. package/.history/src/base-client/components/his/XList/XList_20250609142038.vue +0 -245
  92. package/.history/src/base-client/components/his/XList/XList_20250609142435.vue +0 -255
  93. package/.history/src/base-client/components/his/XList/XList_20250609142503.vue +0 -255
  94. package/.history/src/base-client/components/his/XList/XList_20250609142504.vue +0 -255
  95. package/.history/src/base-client/components/his/XList/XList_20250609143012.vue +0 -270
  96. package/.history/src/base-client/components/his/XList/XList_20250609143044.vue +0 -270
  97. package/.history/src/base-client/components/his/XList/XList_20250609143046.vue +0 -270
  98. package/.history/src/base-client/components/his/XList/XList_20250609143210.vue +0 -270
  99. package/.history/src/base-client/components/his/XList/XList_20250609144339.vue +0 -294
  100. package/.history/src/base-client/components/his/XList/XList_20250609144410.vue +0 -294
  101. package/.history/src/base-client/components/his/XList/XList_20250609144412.vue +0 -294
  102. package/.history/src/base-client/components/his/XList/XList_20250609144647.vue +0 -303
  103. package/.history/src/base-client/components/his/XList/XList_20250609144716.vue +0 -303
  104. package/.history/src/base-client/components/his/XList/XList_20250609144729.vue +0 -303
  105. package/.history/src/base-client/components/his/XList/XList_20250609151232.vue +0 -288
  106. package/.history/src/base-client/components/his/XList/XList_20250609151247.vue +0 -288
  107. package/.history/src/base-client/components/his/XList/XList_20250609151252.vue +0 -288
  108. package/.history/src/base-client/components/his/XList/XList_20250609161220.vue +0 -317
  109. package/.history/src/base-client/components/his/XList/XList_20250609161258.vue +0 -306
  110. package/.history/src/base-client/components/his/XList/XList_20250609161319.vue +0 -306
  111. package/.history/src/base-client/components/his/XList/XList_20250609161320.vue +0 -306
  112. package/Users/objecrt/af-vue2-client/src/base-client/components/his/XShiftSchedule/XShiftSchedule.vue +0 -36
  113. package/src/base-client/components/TreeList/TreeList.vue +0 -91
  114. package/src/base-client/components/TreeList/TreeNode.vue +0 -81
  115. package/src/base-client/components/common/XCardSet/XTiltle.vue +0 -191
@@ -35,64 +35,24 @@
35
35
  <a-tabs default-active-key="1" @change="note = ''" type="card">
36
36
  <template v-if="beforeStepActive || workflowState">
37
37
  <a-tab-pane key="0" tab="步骤详情">
38
- <a-card :bordered="false" :loading="loadingHistory">
38
+ <a-card :bordered="false" :loading="loadingHistory" :body-style="{ paddingTop: 0 }">
39
39
  <!-- 当前步骤历史记录 -->
40
- <template v-if="formCompletedDataPreview">
41
- <a-descriptions
42
- v-show="formCompletedDataPreview.data"
43
- :column="{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
44
- bordered
45
- class="descriptionPreviewItem"
46
- >
47
- <p slot="title" class="descriptionTitle">
48
- 填写历史
49
- </p>
50
- <a-descriptions-item
51
- v-for="(value,key) in formCompletedDataPreview.data"
52
- :key="key"
53
- v-show="key !== '附件上传'"
40
+ <template v-if="showTab">
41
+ <x-tab :compProp="{ buttonState: { add: false, edit: false, delete: false, import: false }}" :local-config="tabDesigner" :body-style="{ padding: 0 }" :tabBarGutter="24" default-active-key="workFlowTab">
42
+ <a-tab-pane
43
+ :forceRender="true"
44
+ v-if="formCompletedDataPreview"
45
+ slot="extraBeforeTabs"
46
+ key="workFlowTab"
47
+ tab="表单"
54
48
  >
55
- <span slot="label" style="color: #000">{{ key }}</span>
56
- <div style="white-space: pre-wrap">{{ value }}</div>
57
- </a-descriptions-item>
58
- </a-descriptions>
59
- <a-descriptions
60
- v-show="formCompletedDataPreview.note"
61
- bordered
62
- class="descriptionPreviewItem"
63
- >
64
- <p slot="title" class="descriptionTitle">
65
- 备注
66
- </p>
67
- <a-descriptions-item>
68
- <span slot="label" style="color: #000">备注信息</span>
69
- <p style="white-space: pre-wrap">{{ formCompletedDataPreview.note }}</p>
70
- </a-descriptions-item>
71
- </a-descriptions>
72
- <a-descriptions
73
- v-show="formCompletedDataPreview.images.length"
74
- class="descriptionPreviewItem allWidth"
75
- >
76
- <p slot="title" class="descriptionTitle">
77
- 图片
78
- </p>
79
- <a-descriptions-item>
80
- <image-item :images="formCompletedDataPreview.images" />
81
- </a-descriptions-item>
82
- </a-descriptions>
83
- <a-descriptions
84
- v-show="formCompletedDataPreview.files.length"
85
- class="descriptionPreviewItem allWidth"
86
- >
87
- <p slot="title" class="descriptionTitle">
88
- 附件
89
- </p>
90
- <a-descriptions-item>
91
- <file-item :files="formCompletedDataPreview.files" />
92
- </a-descriptions-item>
93
- </a-descriptions>
49
+ <work-flow-preview :form-completed-data-preview="formCompletedDataPreview" />
50
+ </a-tab-pane>
51
+ </x-tab>
52
+ </template>
53
+ <template v-else-if="formCompletedDataPreview">
54
+ <work-flow-preview :form-completed-data-preview="formCompletedDataPreview" />
94
55
  </template>
95
- <!-- 当前步骤无记录 -->
96
56
  <template v-else>
97
57
  <a-result status="404" title="暂无数据" sub-title="该步骤暂无数据。">
98
58
  </a-result>
@@ -276,6 +236,7 @@ import { executeStrFunctionByContext } from '@vue2-client/utils/runEvalFunction'
276
236
  import * as util from '@vue2-client/utils/util'
277
237
  import { getConfigByNameAsync, runLogic } from '@vue2-client/services/api/common'
278
238
  import XTab from '@vue2-client/base-client/components/common/XTab/XTab.vue'
239
+ import WorkFlowPreview from './WorkFlowPreview'
279
240
 
280
241
  export default {
281
242
  name: 'WorkFlowHandle',
@@ -288,7 +249,8 @@ export default {
288
249
  XAddForm,
289
250
  FilePreview,
290
251
  FileItem,
291
- ImageItem
252
+ ImageItem,
253
+ WorkFlowPreview
292
254
  },
293
255
  computed: {
294
256
  ...mapState('account', { currUser: 'user' }),
@@ -834,6 +796,14 @@ export default {
834
796
  formCompletedDataPreview = null
835
797
  }
836
798
  this.formCompletedDataPreview = formCompletedDataPreview
799
+ // 渲染已完成步骤的Tab
800
+ const properties = this.stepsDefine[stepId - 1].properties
801
+ this.tabDesigner = properties.tabDesigner
802
+ if (this.tabDesigner) {
803
+ this.showTab = true
804
+ } else {
805
+ this.showTab = false
806
+ }
837
807
  // 完成
838
808
  this.loadingHistory = false
839
809
  this.beforeStepActive = this.activeStepName !== this.currentStep.state
@@ -0,0 +1,98 @@
1
+ <template>
2
+ <div>
3
+ <a-descriptions
4
+ v-show="formCompletedDataPreview.data"
5
+ :column="{ xxl: 4, xl: 3, lg: 3, md: 3, sm: 2, xs: 1 }"
6
+ bordered
7
+ class="descriptionPreviewItem"
8
+ >
9
+ <p slot="title" class="descriptionTitle">
10
+ 填写历史
11
+ </p>
12
+ <a-descriptions-item
13
+ v-for="(value, key) in formCompletedDataPreview.data"
14
+ :key="key"
15
+ v-show="key !== '附件上传'"
16
+ >
17
+ <span slot="label" style="color: #000">{{ key }}</span>
18
+ <div style="white-space: pre-wrap">{{ value }}</div>
19
+ </a-descriptions-item>
20
+ </a-descriptions>
21
+ <a-descriptions
22
+ v-show="formCompletedDataPreview.note"
23
+ bordered
24
+ class="descriptionPreviewItem"
25
+ >
26
+ <p slot="title" class="descriptionTitle">
27
+ 备注
28
+ </p>
29
+ <a-descriptions-item>
30
+ <span slot="label" style="color: #000">备注信息</span>
31
+ <p style="white-space: pre-wrap">{{ formCompletedDataPreview.note }}</p>
32
+ </a-descriptions-item>
33
+ </a-descriptions>
34
+ <a-descriptions
35
+ v-show="formCompletedDataPreview.images.length"
36
+ class="descriptionPreviewItem allWidth"
37
+ >
38
+ <p slot="title" class="descriptionTitle">
39
+ 图片
40
+ </p>
41
+ <a-descriptions-item>
42
+ <image-item :images="formCompletedDataPreview.images" />
43
+ </a-descriptions-item>
44
+ </a-descriptions>
45
+ <a-descriptions
46
+ v-show="formCompletedDataPreview.files.length"
47
+ class="descriptionPreviewItem allWidth"
48
+ >
49
+ <p slot="title" class="descriptionTitle">
50
+ 附件
51
+ </p>
52
+ <a-descriptions-item>
53
+ <file-item :files="formCompletedDataPreview.files" />
54
+ </a-descriptions-item>
55
+ </a-descriptions>
56
+ </div>
57
+ </template>
58
+
59
+ <script>
60
+ import { FileItem, ImageItem } from '@vue2-client/components/FileImageItem'
61
+ export default {
62
+ name: 'WorkFlowPreview',
63
+ components: {
64
+ FileItem,
65
+ ImageItem
66
+ },
67
+ props: {
68
+ formCompletedDataPreview: {
69
+ type: Object,
70
+ required: true
71
+ }
72
+ }
73
+ }
74
+ </script>
75
+
76
+ <style scoped>
77
+ .descriptionPreviewItem {
78
+ margin-bottom: 22px;
79
+ }
80
+ .allWidth >>> .ant-descriptions-item-content {
81
+ width: 100%;
82
+ }
83
+ .descriptionTitle {
84
+ position: relative;
85
+ padding-left: 12px;
86
+ }
87
+ .descriptionTitle::before {
88
+ content: '';
89
+ position: absolute;
90
+ left: 0;
91
+ top: 50%;
92
+ transform: translateY(-50%);
93
+ width: 4px;
94
+ height: 16px;
95
+ background-color: #1890ff;
96
+ border-radius: 2px;
97
+ }
98
+ </style>
@@ -55,7 +55,6 @@ routerResource.newDynamicStatistics = () => import('@vue2-client/pages/NewDynami
55
55
  routerResource.example = {
56
56
  path: 'example',
57
57
  name: '示例主页面',
58
- // component: () => import('@vue2-client/pages/addressSelect/addressDemo.vue'),
59
58
  // component: () => import('@vue2-client/base-client/components/common/XDescriptions/demo.vue'),
60
59
  // component: () => import('@vue2-client/base-client/components/common/XAddNativeForm/demo.vue'),
61
60
  // component: () => import('@vue2-client/base-client/components/common/XFormGroup/demo.vue'),
@@ -66,8 +65,7 @@ routerResource.example = {
66
65
  // component: () => import('@vue2-client/base-client/components/common/XRate/demo.vue'),
67
66
  // component: () => import('@vue2-client/base-client/components/common/XForm/demo.vue'),
68
67
  // component: () => import('@vue2-client/base-client/components/his/XTimeSelect/XTimeSelectDemo.vue'),
69
- component: () => import('@vue2-client/base-client/components/his/XQuestionnaire/XQuestionnaireDemo.vue'),
70
- // component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
68
+ component: () => import('@vue2-client/pages/WorkflowDetail/WorkFlowDemo.vue'),
71
69
  // component: () => import('@vue2-client/base-client/components/common/XConversation/XConversationDemo.vue'),
72
70
  // component: () => import('@vue2-client/base-client/components/common/XButtons/XButtonDemo.vue'),
73
71
  // component: () => import('@vue2-client/base-client/components/common/XLabelSelect/XLabelSelectDemo.vue'),
@@ -48,6 +48,24 @@ const resp403 = {
48
48
  }
49
49
  }
50
50
 
51
+ const resp413 = {
52
+ onFulfilled (response, options) {
53
+ const { message } = options
54
+ if (response.code === 413) {
55
+ message.error('上传文件过大')
56
+ }
57
+ return response
58
+ },
59
+ onRejected (error, options) {
60
+ const { message } = options
61
+ const { response } = error
62
+ if (response.status === 413) {
63
+ message.error('上传文件过大')
64
+ }
65
+ return Promise.reject(error)
66
+ }
67
+ }
68
+
51
69
  const reqCommon = {
52
70
  /**
53
71
  * 发送请求之前做些什么
@@ -78,5 +96,5 @@ const reqCommon = {
78
96
 
79
97
  export default {
80
98
  request: [reqCommon], // 请求拦截
81
- response: [resp401, resp403] // 响应拦截
99
+ response: [resp401, resp403, resp413] // 响应拦截
82
100
  }
@@ -334,6 +334,11 @@ const errorHandler = (error) => {
334
334
  message: '系统警告',
335
335
  description: data
336
336
  })
337
+ } else if (error.response.status === 413 || (data && data.code === 413)) {
338
+ notification.warn({
339
+ message: '上传的文件过大',
340
+ description: '请检查文件内容'
341
+ })
337
342
  } else {
338
343
  notification.error({
339
344
  message: '网络异常',
@@ -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>