cnhis-design-vue 3.3.2-release.0 → 3.3.2-release.2
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/es/components/audio-sdk/index.d.ts +173 -146
- package/es/components/audio-sdk/src/Index.vue.d.ts +174 -147
- package/es/components/audio-sdk/src/Index.vue2.js +131 -53
- package/es/components/audio-sdk/src/audioSDK.d.ts +29 -26
- package/es/components/audio-sdk/src/audioSDK.js +123 -42
- package/es/components/audio-sdk/src/components/readyCountdown.vue.d.ts +31 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue.js +6 -0
- package/es/components/audio-sdk/src/components/readyCountdown.vue2.js +46 -0
- package/es/components/audio-sdk/src/components/recording-modal.vue.d.ts +138 -10
- package/es/components/audio-sdk/src/components/recording.vue.d.ts +139 -11
- package/es/components/audio-sdk/src/components/recording.vue2.js +318 -74
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.d.ts +24 -0
- package/es/components/audio-sdk/src/hooks/useChartAudioContext.js +176 -0
- package/es/components/audio-sdk/src/svgs/Close.vue.js +26 -0
- package/es/components/audio-sdk/src/svgs/Continue.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Enlarge.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Pause.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/WaveView.vue.js +20 -0
- package/es/components/audio-sdk/src/svgs/Zoom.vue.js +27 -0
- package/es/components/audio-sdk/src/types/index.d.ts +42 -0
- package/es/components/audio-sdk/src/types/index.js +10 -0
- package/es/components/audio-sdk/src/utils/recordingModal.d.ts +9 -3
- package/es/components/audio-sdk/src/utils/recordingModal.js +57 -32
- package/es/components/audio-sdk/style/index.css +1 -1
- package/es/components/base-search/src/index.vue2.js +30 -18
- package/es/components/big-table/src/BigTable.vue2.js +191 -133
- package/es/components/big-table/src/components/NoData.vue2.js +16 -4
- package/es/components/big-table/src/components/edit-form/edit-date.js +12 -6
- package/es/components/big-table/src/components/edit-form/edit-input.js +8 -2
- package/es/components/big-table/src/components/edit-form/edit-select.js +21 -17
- package/es/components/big-table/src/components/edit-form/edit-time.js +11 -4
- package/es/components/big-table/src/components/input-button.vue2.js +8 -4
- package/es/components/big-table/src/hooks/useNestTable.js +18 -4
- package/es/components/big-table/src/hooks/useTableParse.js +16 -3
- package/es/components/body-select/src/index.vue2.js +24 -4
- package/es/components/button-print/index.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue.d.ts +12 -4
- package/es/components/button-print/src/ButtonPrint.vue2.js +52 -11
- package/es/components/button-print/src/components/EditFormat.vue2.js +16 -8
- package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -2
- package/es/components/button-print/src/components/IdentityVerification.vue2.js +104 -49
- package/es/components/button-print/src/components/NewPrintComponent.vue.d.ts +7 -2
- package/es/components/button-print/src/components/NewPrintComponent.vue2.js +244 -95
- package/es/components/button-print/src/components/OldPrintComponent.vue.d.ts +5 -2
- package/es/components/button-print/src/components/OldPrintComponent.vue2.js +92 -32
- package/es/components/button-print/src/components/Preview.vue.d.ts +5 -2
- package/es/components/button-print/src/components/Preview.vue2.js +14 -4
- package/es/components/button-print/src/utils/dialog.js +26 -8
- package/es/components/button-print/src/utils/print.d.ts +5 -5
- package/es/components/button-print/src/utils/print.js +108 -21
- package/es/components/card-reader-sdk/src/components/readCardDialog.vue2.js +8 -2
- package/es/components/card-reader-sdk/src/utils/readHealthCard.js +16 -4
- package/es/components/card-reader-sdk-cn/src/henan/index.js +38 -11
- package/es/components/card-render/src/components/index.d.ts +23 -23
- package/es/components/classification/src/components/search-filter/index.vue2.js +24 -10
- package/es/components/classification/src/components/set-classification/index.vue2.js +24 -7
- package/es/components/classification/src/components/table-modal/index.vue2.js +324 -165
- package/es/components/classification/src/index.vue2.js +261 -69
- package/es/components/default-page/src/constants/index.js +144 -19
- package/es/components/default-page/src/index.vue2.js +8 -2
- package/es/components/expand-field/src/components/FormBatchOptionsModal.vue2.js +75 -51
- package/es/components/expand-field/src/components/FormItemPerson.vue2.js +46 -38
- package/es/components/expand-field/src/components/PersonModal.vue2.js +62 -50
- package/es/components/expand-field/src/components/form.vue2.js +783 -412
- package/es/components/expand-field/src/index.vue2.js +88 -22
- package/es/components/expand-field/src/utils/constant.js +88 -12
- package/es/components/fabric-chart/src/components/PopupMenu.js +32 -15
- package/es/components/fabric-chart/src/constants/index.js +72 -10
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +18 -4
- package/es/components/fabric-chart/src/hooks/newBirthProcess/useNewBirthProcess.js +8 -2
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +32 -5
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +8 -2
- package/es/components/fabric-chart/src/hooks/temperature/useCenter.js +63 -41
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +5 -1
- package/es/components/fabric-chart/src/hooks/useCommon.js +24 -4
- package/es/components/fabric-chart/src/hooks/useCumputedPoint.js +4 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +19 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +1 -1
- package/es/components/fabric-chart/src/utils/index.js +2 -2
- package/es/components/field-editor/src/fields.js +232 -30
- package/es/components/field-set/src/FieldColor.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldColor.vue2.js +88 -21
- package/es/components/field-set/src/FieldFilter.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldFilter.vue2.js +32 -16
- package/es/components/field-set/src/FieldSet.vue.d.ts +2 -2
- package/es/components/field-set/src/FieldSet.vue2.js +210 -57
- package/es/components/field-set/src/Index.vue2.js +40 -6
- package/es/components/field-set/src/TableStyle.vue2.js +48 -13
- package/es/components/field-set/src/components/condition.vue2.js +26 -10
- package/es/components/field-set/src/components/edit-dialog.vue2.js +148 -68
- package/es/components/field-set/src/components/edit-filter.vue2.js +24 -4
- package/es/components/field-set/src/components/table-row.vue.d.ts +2 -2
- package/es/components/field-set/src/components/table-row.vue2.js +123 -42
- package/es/components/field-set/src/constants/filter.js +328 -42
- package/es/components/field-set/src/constants/index.js +504 -64
- package/es/components/field-set/src/utils/index.js +1 -1
- package/es/components/form-config/src/components/FormConfigEventSetting.vue2.js +91 -46
- package/es/components/form-config/src/constants/index.js +80 -11
- package/es/components/form-config/src/hooks/useLocale.js +240 -31
- package/es/components/form-render/src/components/renderer/combination/hooks/useCombination.js +8 -4
- package/es/components/form-render/src/components/renderer/combination/jsonCombination.js +8 -4
- package/es/components/form-render/src/components/renderer/combination/tableCombination.js +8 -2
- package/es/components/form-render/src/components/renderer/input.js +3 -2
- package/es/components/form-render/src/components/renderer/radio_checkbox.js +8 -4
- package/es/components/form-render/src/components/renderer/remoteSearch.js +8 -2
- package/es/components/form-render/src/components/renderer/switch.js +24 -4
- package/es/components/form-render/src/components/renderer/textarea.js +5 -4
- package/es/components/form-render/src/utils/schema.js +26 -6
- package/es/components/iho-chat/src/Index.vue2.js +42 -38
- package/es/components/iho-chat/src/components/ChatAdd.vue2.js +108 -33
- package/es/components/iho-chat/src/components/ChatFile.vue2.js +132 -90
- package/es/components/iho-chat/src/components/ChatFooter.vue2.js +110 -48
- package/es/components/iho-chat/src/components/ChatHeader.vue2.js +40 -20
- package/es/components/iho-chat/src/components/ChatMain.vue2.js +55 -23
- package/es/components/iho-chat/src/components/ChatRecord.vue2.js +77 -45
- package/es/components/iho-chat/src/components/ChatSearch.vue2.js +256 -208
- package/es/components/iho-chat/src/components/ChatSet.vue2.js +306 -208
- package/es/components/iho-chat/src/components/ContextMenu.js +50 -9
- package/es/components/iho-chat/src/components/MessageEvent.vue2.js +16 -4
- package/es/components/iho-chat/src/components/MessageTemplate.vue2.js +8 -2
- package/es/components/iho-chat/src/components/MultipleVideo.vue2.js +104 -18
- package/es/components/iho-chat/src/components/PersonProfile.vue2.js +66 -11
- package/es/components/iho-chat/src/components/SelectLabel.vue2.js +47 -43
- package/es/components/iho-chat/src/components/SiderList.vue2.js +68 -38
- package/es/components/iho-chat/src/components/Video.vue2.js +38 -11
- package/es/components/iho-chat/src/hooks/useVideo.js +15 -4
- package/es/components/iho-chat/src/utils/index.js +79 -14
- package/es/components/iho-table/src/hooks/useColumnConfigAdaptor.js +8 -2
- package/es/components/iho-table/src/plugins/dynamicFilterRenderPlugin/dynamicFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRemoteSearchPlugin/remoteFilter.vue2.js +40 -15
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue.d.ts +1 -1
- package/es/components/iho-table/src/plugins/filterRenderPlugin/filter.vue2.js +50 -20
- package/es/components/iho-table/src/plugins/filterTextPlugin/filter.vue2.js +16 -8
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/numberRendererPlugin.js +10 -3
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/editSelect.js +42 -15
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/selectRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/timeRendererPlugin/editTime.vue2.js +18 -12
- package/es/components/index.css +1 -1
- package/es/components/info-header/src/components/patientInfo/index.vue2.js +144 -25
- package/es/components/keyboard/src/Keyboard.vue2.js +20 -8
- package/es/components/keyboard/src/components/NumberPanel.vue2.js +51 -37
- package/es/components/map/src/Map.vue2.js +8 -4
- package/es/components/picture-clipper/src/PictureClipper.vue2.js +16 -8
- package/es/components/quick-search/src/index.vue2.js +176 -131
- package/es/components/recommend-search/src/components/BaseSearch.js +14 -8
- package/es/components/recommend-search/src/components/RecommendInput.vue2.js +28 -8
- package/es/components/recommend-search/src/components/RecommendSelect.vue2.js +18 -5
- package/es/components/scale-view/src/ScaleView.vue2.js +16 -8
- package/es/components/scale-view/src/components/NoData.vue2.js +16 -4
- package/es/components/scale-view/src/components/formitem/r-cascader.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-checkbox.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-input.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-map.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-radio.js +24 -6
- package/es/components/scale-view/src/components/formitem/r-select.js +8 -2
- package/es/components/scale-view/src/components/formitem/r-sign.js +32 -11
- package/es/components/scale-view/src/components/formitem/standard-modal.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-computed.js +24 -5
- package/es/components/scale-view/src/hooks/scaleview-methods.js +16 -4
- package/es/components/scale-view/src/hooks/scaleview-submit.js +16 -3
- package/es/components/scale-view/src/hooks/scaleview-validate.js +40 -9
- package/es/components/search-cascader/src/SearchCascader.vue2.js +20 -14
- package/es/components/select-label/src/LabelFormContent.vue2.js +53 -21
- package/es/components/select-label/src/SelectLabel.vue2.js +81 -51
- package/es/components/select-label/src/components/label-classify.vue2.js +28 -11
- package/es/components/select-label/src/ihoLabel/IhoLabelFormContent.vue2.js +18 -5
- package/es/components/select-label/src/ihoLabel/IhoSelectLabel.vue2.js +34 -8
- package/es/components/select-label/src/ihoLabel/iho-label-classify.vue2.js +18 -5
- package/es/components/select-person/src/SelectPerson.vue2.js +214 -141
- package/es/components/select-person/src/SelectPersonType.vue2.js +127 -102
- package/es/components/select-person/src/components/SearchOrgAndStaff.vue2.js +9 -2
- package/es/components/select-person/src/index.vue2.js +20 -7
- package/es/components/slider-tree/src/index.vue2.js +16 -3
- package/es/components/table-export-field/index.d.ts +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue.d.ts +1 -0
- package/es/components/table-export-field/src/components/ExportModal.vue2.js +187 -113
- package/es/components/table-export-field/src/components/SaveProjectModal.vue2.js +147 -88
- package/es/components/table-export-field/src/index.vue.d.ts +1 -0
- package/es/components/table-export-field/src/index.vue2.js +28 -12
- package/es/components/table-filter/src/components/bi-filter/ValueCfg.vue2.js +32 -5
- package/es/components/table-filter/src/components/bi-filter/helpers/options.js +264 -34
- package/es/components/table-filter/src/components/bi-filter/index.vue2.js +214 -135
- package/es/components/table-filter/src/components/classify-filter/ValueCfg.vue2.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/components/Date.vue2.js +9 -2
- package/es/components/table-filter/src/components/classify-filter/components/DateRange.vue2.js +39 -6
- package/es/components/table-filter/src/components/classify-filter/components/InputFilter.vue2.js +18 -5
- package/es/components/table-filter/src/components/classify-filter/components/InputNumberGroup.vue2.js +29 -18
- package/es/components/table-filter/src/components/classify-filter/helpers/options.js +16 -3
- package/es/components/table-filter/src/components/classify-filter/hooks/useDisplayCategory.js +8 -2
- package/es/components/table-filter/src/components/classify-filter/index.vue2.js +195 -130
- package/es/components/table-filter/src/components/render-widget/components/DateInner.vue2.js +26 -7
- package/es/components/table-filter/src/components/render-widget/components/DateOut.vue2.js +12 -6
- package/es/components/table-filter/src/components/render-widget/components/DateRangeInner.vue2.js +34 -8
- package/es/components/table-filter/src/components/render-widget/components/DateRangeOut.vue2.js +21 -8
- package/es/components/table-filter/src/components/render-widget/components/InputCustom.vue2.js +8 -4
- package/es/components/table-filter/src/components/render-widget/components/InputNumberGroup.vue2.js +19 -6
- package/es/components/table-filter/src/components/render-widget/components/LabelInner.vue2.js +16 -3
- package/es/components/table-filter/src/components/render-widget/components/SelectDynamicOption/index.vue2.js +24 -10
- package/es/components/table-filter/src/components/render-widget/helpers/dateExtraMap.js +1648 -207
- package/es/components/table-filter/src/components/render-widget/helpers/selectExtraMap.js +8 -2
- package/es/components/table-filter/src/components/render-widget/widgetCfgMaps.js +16 -3
- package/es/components/table-filter/src/tool/baseOptions.js +144 -19
- package/es/components/tooth-bitmap/src/ToothBitmap.vue2.js +32 -16
- package/es/components/vod-chunk-upload/src/hooks/upload-computed.js +22 -2
- package/es/components/vod-chunk-upload/src/vod-chunk-upload/vod-chunk-upload.vue2.js +8 -4
- package/es/components/vod-chunk-upload/src/vod-upload-modal.js +16 -8
- package/es/shared/assets/img/defaultCover/10review_successful.png.js +1 -1
- package/es/shared/assets/img/defaultCover/11review_fail.png.js +1 -1
- package/es/shared/assets/img/defaultCover/12no_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/13no_menu_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/14no_call_setting.png.js +1 -1
- package/es/shared/assets/img/defaultCover/15no_use_tag.png.js +1 -1
- package/es/shared/assets/img/defaultCover/16no_table_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/1location.png.js +1 -1
- package/es/shared/assets/img/defaultCover/2notfound.png.js +1 -1
- package/es/shared/assets/img/defaultCover/3loading.png.js +1 -1
- package/es/shared/assets/img/defaultCover/4no_permission.png.js +1 -1
- package/es/shared/assets/img/defaultCover/5no_data.png.js +1 -1
- package/es/shared/assets/img/defaultCover/6no_network.png.js +1 -1
- package/es/shared/assets/img/defaultCover/7no_doctor.png.js +1 -1
- package/es/shared/assets/img/defaultCover/8system_error.png.js +1 -1
- package/es/shared/assets/img/defaultCover/9system_upgrade.png.js +1 -1
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/table_style_2.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/hooks/selectHooks/useSelectAllowModify.js +2 -2
- package/es/shared/package.json.js +1 -1
- package/package.json +2 -2
- package/es/components/audio-sdk/src/components/recording-modal.vue.js +0 -6
- package/es/components/audio-sdk/src/components/recording-modal.vue2.js +0 -40
- package/es/components/audio-sdk/src/utils/recorder/fft.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3-engine.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/mp3.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/recorder.d.ts +0 -4
- package/es/components/audio-sdk/src/utils/recorder/wave.d.ts +0 -4
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +0 -1
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +0 -1
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +0 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +0 -86
- package/es/shared/utils/fabricjs/index.d.ts +0 -6823
- package/es/shared/utils/tapable/index.d.ts +0 -139
@@ -149,8 +149,12 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
149
149
|
} = target.origin || {};
|
150
150
|
if (type === "pulse") {
|
151
151
|
const list = shadowPointCache.get(key);
|
152
|
-
const index = list == null ? void 0 : list.findIndex((point) => point
|
153
|
-
list.splice(index, 1,
|
152
|
+
const index = list == null ? void 0 : list.findIndex((point) => point.left === target.left);
|
153
|
+
list.splice(index, 1, {
|
154
|
+
...list[index],
|
155
|
+
left: target.left,
|
156
|
+
top: target.top
|
157
|
+
});
|
154
158
|
}
|
155
159
|
}
|
156
160
|
const data = getShadowData();
|
@@ -209,6 +213,12 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
209
213
|
const finalResult = Object.values(result).filter((item) => item.length === 2 && Math.trunc(item[0][1]) !== Math.trunc(item[1][1]));
|
210
214
|
return finalResult;
|
211
215
|
}
|
216
|
+
function getXY(point) {
|
217
|
+
return [point.left, point.top];
|
218
|
+
}
|
219
|
+
function getPointWidthRightLine(point) {
|
220
|
+
return point && !point.breakpoint ? point : null;
|
221
|
+
}
|
212
222
|
function getShadowData() {
|
213
223
|
const data = [];
|
214
224
|
const pulsePoints = [];
|
@@ -217,8 +227,8 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
217
227
|
pulsePoints.push(item[1]);
|
218
228
|
if (item[0] === SHADOWKEYS[0]) {
|
219
229
|
item[1].forEach((_item) => {
|
220
|
-
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v
|
221
|
-
someIndex > -1 && sames.push(_item
|
230
|
+
const someIndex = (shadowPointCache.get(SHADOWKEYS[1]) || []).findIndex((v) => v.left === _item.left);
|
231
|
+
someIndex > -1 && sames.push(_item.left);
|
222
232
|
});
|
223
233
|
}
|
224
234
|
}
|
@@ -226,28 +236,24 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
226
236
|
let _arr1 = [];
|
227
237
|
let _arr2 = [];
|
228
238
|
sames.forEach((left2) => {
|
229
|
-
const index1 = points1.findIndex((point) => point
|
230
|
-
const index2 = points2.findIndex((point) => point
|
239
|
+
const index1 = points1.findIndex((point) => point.left === left2);
|
240
|
+
const index2 = points2.findIndex((point) => point.left === left2);
|
231
241
|
const currentPoint1 = points1[index1];
|
232
242
|
const currentPoint2 = points2[index2];
|
233
|
-
const prevPoint1 = points1[index1 - 1];
|
243
|
+
const prevPoint1 = getPointWidthRightLine(points1[index1 - 1]);
|
234
244
|
const nextPoint1 = points1[index1 + 1];
|
235
|
-
const prevPoint2 = points2[index2 - 1];
|
245
|
+
const prevPoint2 = getPointWidthRightLine(points2[index2 - 1]);
|
236
246
|
const nextPoint2 = points2[index2 + 1];
|
237
247
|
if (prevPoint1 && prevPoint2) {
|
238
|
-
if (prevPoint1
|
239
|
-
const maxPoint = Math.max(prevPoint1
|
240
|
-
_arr1.push([prevPoint1, prevPoint2].find((point) => point
|
248
|
+
if (prevPoint1.left !== prevPoint2.left) {
|
249
|
+
const maxPoint = Math.max(prevPoint1.left, prevPoint2.left);
|
250
|
+
_arr1.push(getXY([prevPoint1, prevPoint2].find((point) => point.left === maxPoint)));
|
241
251
|
}
|
242
252
|
} else if (prevPoint1) {
|
243
|
-
_arr1.push(prevPoint1);
|
253
|
+
_arr1.push(getXY(prevPoint1));
|
244
254
|
} else if (prevPoint2) {
|
245
|
-
_arr2.push(prevPoint2);
|
255
|
+
_arr2.push(getXY(prevPoint2));
|
246
256
|
}
|
247
|
-
const minYPoint = Math.min(currentPoint1[1], currentPoint2[1]);
|
248
|
-
_arr1.push([currentPoint1, currentPoint2].find((point) => point[1] === minYPoint));
|
249
|
-
const maxYPoint = Math.max(currentPoint1[1], currentPoint2[1]);
|
250
|
-
_arr2.push([currentPoint1, currentPoint2].find((point) => point[1] === maxYPoint));
|
251
257
|
const setData = () => {
|
252
258
|
const dataItem = [..._arr1, ..._arr2.reverse()];
|
253
259
|
const [firstPoint] = dataItem;
|
@@ -258,27 +264,35 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
258
264
|
_arr1 = [];
|
259
265
|
_arr2 = [];
|
260
266
|
};
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
267
|
+
const minYPoint = Math.min(currentPoint1.top, currentPoint2.top);
|
268
|
+
const maxYPoint = Math.max(currentPoint1.top, currentPoint2.top);
|
269
|
+
_arr1.push(getXY([currentPoint1, currentPoint2].find((point) => point.top === minYPoint)));
|
270
|
+
_arr2.push(getXY([currentPoint1, currentPoint2].find((point) => point.top === maxYPoint)));
|
271
|
+
if (currentPoint1.breakpoint || currentPoint2.breakpoint) {
|
272
|
+
setData();
|
273
|
+
}
|
274
|
+
if (!currentPoint1.breakpoint && !currentPoint2.breakpoint) {
|
275
|
+
if (nextPoint1 && nextPoint2) {
|
276
|
+
if (nextPoint1.left !== nextPoint2.left) {
|
277
|
+
const minPoint = Math.min(nextPoint1.left, nextPoint2.left);
|
278
|
+
_arr1.push(getXY([nextPoint1, nextPoint2].find((point) => point.left === minPoint)));
|
279
|
+
setData();
|
280
|
+
}
|
281
|
+
} else if (nextPoint1) {
|
282
|
+
_arr1.push(getXY(nextPoint1));
|
283
|
+
setData();
|
284
|
+
} else if (nextPoint2) {
|
285
|
+
_arr2.push(getXY(nextPoint2));
|
286
|
+
setData();
|
287
|
+
} else {
|
265
288
|
setData();
|
266
289
|
}
|
267
|
-
} else if (nextPoint1) {
|
268
|
-
_arr1.push(nextPoint1);
|
269
|
-
setData();
|
270
|
-
} else if (nextPoint2) {
|
271
|
-
_arr2.push(nextPoint2);
|
272
|
-
setData();
|
273
|
-
} else {
|
274
|
-
setData();
|
275
290
|
}
|
276
291
|
});
|
277
292
|
return data;
|
278
293
|
}
|
279
294
|
function setCanvasEvent() {
|
280
295
|
canvas.value.on("mouse:up", (event2) => {
|
281
|
-
var _a;
|
282
296
|
const {
|
283
297
|
button,
|
284
298
|
target,
|
@@ -310,7 +324,14 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
310
324
|
pointMenuProps.target = target;
|
311
325
|
} else {
|
312
326
|
pointMenuProps.target = null;
|
313
|
-
pointMenuProps.list = [(
|
327
|
+
pointMenuProps.list = [function() {
|
328
|
+
var _a, _b, _c;
|
329
|
+
try {
|
330
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.219")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.219")) || "\u65B0\u589E\u8282\u70B9";
|
331
|
+
} catch (e) {
|
332
|
+
return "\u65B0\u589E\u8282\u70B9";
|
333
|
+
}
|
334
|
+
}()];
|
314
335
|
itemList.forEach((v) => {
|
315
336
|
if (!getEqualXTypes([...gridPoints], x, "_type").includes(v.bigType)) {
|
316
337
|
const newY = ["pain"].includes(v.bigType) ? painOriginY : vitalSignsOriginY;
|
@@ -360,10 +381,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
360
381
|
const pulseObj = yScaleValue.find((item) => item.show && item.type === "pulse");
|
361
382
|
if (!pulseObj || !((_a = pulseObj.dataList) == null ? void 0 : _a.length))
|
362
383
|
return;
|
363
|
-
if (!pulseObj.dataList.some((item) =>
|
364
|
-
var _a2;
|
365
|
-
return item.title.includes(((_a2 = window.getLanguageByCode) == null ? void 0 : _a2.call(window, "10010.1.235")) || "\u8109\u640F");
|
366
|
-
}))
|
384
|
+
if (!pulseObj.dataList.some((item) => item.key === "mai"))
|
367
385
|
return;
|
368
386
|
const overlap = Object.assign({}, OVERLAP, left.overlap || {});
|
369
387
|
const points = [];
|
@@ -430,7 +448,6 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
430
448
|
};
|
431
449
|
const _isOneLine = isOneLine(scaleValue);
|
432
450
|
(_a = item.list) == null ? void 0 : _a.forEach((v, index) => {
|
433
|
-
var _a2, _b, _c, _d;
|
434
451
|
const _item = !_isOneLine ? item : dataList.find((_v) => _v.key === v.key);
|
435
452
|
const points = getPointer(isRespirator(v) ? {
|
436
453
|
...v,
|
@@ -443,9 +460,10 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
443
460
|
} : nextV, scaleValue) : void 0;
|
444
461
|
const nextItem = nextV ? !_isOneLine ? item : dataList.find((_v) => _v.key === nextV.key) : {};
|
445
462
|
const {
|
446
|
-
|
463
|
+
key = ""
|
447
464
|
} = _item;
|
448
|
-
|
465
|
+
const mai = "mai";
|
466
|
+
if (!(key === mai && nextItem.key !== mai || key !== mai && nextItem.key === mai) && points && nextPoint && getFloorNumber(points[0], 1) === getFloorNumber(nextPoint[0], 1)) {
|
449
467
|
const pointOriginX = points[0] - xCellWidth / 2;
|
450
468
|
points[0] = pointOriginX + xCellWidth / 4;
|
451
469
|
nextPoint[0] = nextDoublePointsX = points[0] + xCellWidth / 2;
|
@@ -480,7 +498,11 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
480
498
|
}
|
481
499
|
nextDoublePointsX2 = null;
|
482
500
|
}
|
483
|
-
return
|
501
|
+
return {
|
502
|
+
left: point.left,
|
503
|
+
top: point.top,
|
504
|
+
breakpoint: !point.rightLine
|
505
|
+
};
|
484
506
|
});
|
485
507
|
};
|
486
508
|
if (_isOneLine) {
|
@@ -790,7 +812,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
790
812
|
overlapKey,
|
791
813
|
unit: scaleValue.unit,
|
792
814
|
type,
|
793
|
-
_type: setOtherType(
|
815
|
+
_type: setOtherType(key, type),
|
794
816
|
dataIndex,
|
795
817
|
index,
|
796
818
|
isOneLine: _isOneLine
|
@@ -884,7 +906,7 @@ function useCenter(canvas, propItems, emits, computedX, computedY, getXValue, ge
|
|
884
906
|
x: point.left,
|
885
907
|
y: point.top
|
886
908
|
};
|
887
|
-
let timeText =
|
909
|
+
let timeText = `${config.timeLabel} ${((data == null ? void 0 : data.time) || getXValue(point.left)).slice(-5)}`;
|
888
910
|
pointTipProps.list = [getListValue(), timeText];
|
889
911
|
pointTipProps.show = true;
|
890
912
|
function getListValue() {
|
@@ -211,7 +211,7 @@ function useTemperatureChart(canvas, props, emits, canvasRef, pointTipProps, poi
|
|
211
211
|
return item.dataList.filter((v) => v.show).map((v, dataIndex) => {
|
212
212
|
return {
|
213
213
|
...v,
|
214
|
-
bigType: setOtherType(v.
|
214
|
+
bigType: setOtherType(v.key, item.type),
|
215
215
|
unit: item.unit,
|
216
216
|
dataIndex,
|
217
217
|
isOneLine: isOneLine(item)
|
@@ -111,7 +111,11 @@ function useTop(canvas, propItems) {
|
|
111
111
|
const dayList = (gridXNumber - surplusCell[1] - surplusCell[3]) / grid.subSecondXCell;
|
112
112
|
for (let i = 0; i < dayList; i++) {
|
113
113
|
const left = originX + i * width;
|
114
|
-
const
|
114
|
+
const {
|
115
|
+
am,
|
116
|
+
pm
|
117
|
+
} = top.xScalevalue || {};
|
118
|
+
const value = i % 2 === 0 ? am : pm;
|
115
119
|
const textGroup = drawTextGroup({
|
116
120
|
width,
|
117
121
|
height,
|
@@ -1,8 +1,28 @@
|
|
1
|
-
var _a, _b, _c;
|
2
1
|
const messages = {
|
3
|
-
repeat: (
|
4
|
-
|
5
|
-
|
2
|
+
repeat: function() {
|
3
|
+
var _a, _b, _c;
|
4
|
+
try {
|
5
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.216")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.216")) || "\u8BE5\u65F6\u6BB5\u5DF2\u5B58\u5728\u6570\u503C\u4E0D\u80FD\u65B0\u589E";
|
6
|
+
} catch (e) {
|
7
|
+
return "\u8BE5\u65F6\u6BB5\u5DF2\u5B58\u5728\u6570\u503C\u4E0D\u80FD\u65B0\u589E";
|
8
|
+
}
|
9
|
+
}(),
|
10
|
+
exceedMax: function() {
|
11
|
+
var _a, _b, _c;
|
12
|
+
try {
|
13
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.217")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.217")) || "\u672A\u6765\u65F6\u95F4\u4E0D\u5141\u8BB8\u5F55\u5165";
|
14
|
+
} catch (e) {
|
15
|
+
return "\u672A\u6765\u65F6\u95F4\u4E0D\u5141\u8BB8\u5F55\u5165";
|
16
|
+
}
|
17
|
+
}(),
|
18
|
+
exceedMin: function() {
|
19
|
+
var _a, _b, _c;
|
20
|
+
try {
|
21
|
+
return ((_a = window.getLanguageByCode) == null ? void 0 : _a.call(window, "10010.1.218")) || ((_c = (_b = window.top) == null ? void 0 : _b.getLanguageByCode) == null ? void 0 : _c.call(_b, "10010.1.218")) || "\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u5165\u9662\u65F6\u95F4";
|
22
|
+
} catch (e) {
|
23
|
+
return "\u4E0D\u5141\u8BB8\u5C0F\u4E8E\u5165\u9662\u65F6\u95F4";
|
24
|
+
}
|
25
|
+
}()
|
6
26
|
};
|
7
27
|
function useCommon(canvas, emits, propItems) {
|
8
28
|
function getEqualXTypes(points, pointX, field, range = propItems.xCellWidth) {
|
@@ -109,9 +109,12 @@ function useBirthProcessCumputedPoint(propItems) {
|
|
109
109
|
}
|
110
110
|
function getYValue(key, pointY) {
|
111
111
|
const item = scaleValues.find((item2) => [item2.key, item2.type || ""].includes(key));
|
112
|
+
const {
|
113
|
+
changeByInteger
|
114
|
+
} = item;
|
112
115
|
const [minValue] = (item == null ? void 0 : item.range) || [0];
|
113
116
|
const y = (endY - pointY) / propItems[`${key}YCell`] + minValue;
|
114
|
-
return getFloorNumber(y);
|
117
|
+
return changeByInteger ? getRoundNumber(y) : getFloorNumber(y);
|
115
118
|
}
|
116
119
|
return {
|
117
120
|
computedX,
|
@@ -312,6 +312,25 @@ function drawPoint(type = "circle", style) {
|
|
312
312
|
});
|
313
313
|
return new fabric.Group([bigIcon, smallIcon], _newStyle);
|
314
314
|
}
|
315
|
+
case "arrow": {
|
316
|
+
const {
|
317
|
+
width = 10,
|
318
|
+
height = 10
|
319
|
+
} = newStyle;
|
320
|
+
return new fabric.Polyline([{
|
321
|
+
x: 0,
|
322
|
+
y: 0
|
323
|
+
}, {
|
324
|
+
x: width / 2,
|
325
|
+
y: height
|
326
|
+
}, {
|
327
|
+
x: width,
|
328
|
+
y: 0
|
329
|
+
}], {
|
330
|
+
fill: "transparent",
|
331
|
+
...omit(newStyle, ["width", "height"])
|
332
|
+
});
|
333
|
+
}
|
315
334
|
default:
|
316
335
|
style && Reflect.deleteProperty(style, "stroke");
|
317
336
|
return new fabric.Text(String(type), {
|
@@ -9,7 +9,7 @@ export declare function deleteProperty(data: AnyObject, list: AnyObject[]): {};
|
|
9
9
|
*/
|
10
10
|
export declare function isOneLine(scaleItem: AnyObject): any;
|
11
11
|
export declare function getIndex(time: string, list: AnyObject[], isEqual?: boolean): number;
|
12
|
-
export declare function setOtherType(
|
12
|
+
export declare function setOtherType(key: string, type: string): string;
|
13
13
|
export declare function getType(type: string): string;
|
14
14
|
export declare function isValidValue(value: number | string): boolean;
|
15
15
|
export declare function isOverlapPoint(pointObj1: any, pointObj2: any): boolean;
|
@@ -23,8 +23,8 @@ function getIndex(time, list, isEqual = false) {
|
|
23
23
|
});
|
24
24
|
return !~index ? list.length : index;
|
25
25
|
}
|
26
|
-
function setOtherType(
|
27
|
-
return
|
26
|
+
function setOtherType(key, type) {
|
27
|
+
return key === "xinmai" ? "pulse_other" : type;
|
28
28
|
}
|
29
29
|
function getType(type) {
|
30
30
|
return type.includes("_other") ? type.split("_")[0] : type;
|