cnhis-design-vue 2.1.125 → 2.1.127
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/CHANGELOG.md +38 -17
- package/es/age/index.js +2 -2
- package/es/big-table/index.js +26 -26
- package/es/button/index.js +2 -2
- package/es/captcha/index.js +3 -3
- package/es/card-reader-sdk/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/color-picker/index.js +1 -1
- package/es/drag-layout/index.js +3 -3
- package/es/editor/index.js +1 -1
- package/es/ellipsis/index.js +1 -1
- package/es/fabric-chart/index.js +157 -63
- package/es/form-table/index.js +20 -20
- package/es/full-calendar/index.js +52 -52
- package/es/full-calendar/style.css +1 -1
- package/es/index/index.js +739 -399
- package/es/index/style.css +1 -1
- package/es/input/index.js +1 -1
- package/es/map/index.js +1 -1
- package/es/multi-chat/index.js +25 -25
- package/es/multi-chat-client/index.js +19 -19
- package/es/multi-chat-history/index.js +4 -4
- package/es/multi-chat-record/index.js +4 -4
- package/es/multi-chat-setting/index.js +20 -20
- package/es/multi-chat-sip/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/scale-container/index.js +1 -1
- package/es/scale-view/index.js +27 -27
- package/es/select/index.js +4 -4
- package/es/select-label/index.js +3 -3
- package/es/select-person/index.js +2 -2
- package/es/select-tag/index.js +4 -4
- package/es/shortcut-setter/index.js +2 -2
- package/es/slider-tree/index.js +1 -1
- package/es/table-filter/index.js +397 -144
- package/es/tag/index.js +1 -1
- package/es/verification-code/index.js +2 -2
- package/lib/cui.common.js +793 -452
- package/lib/cui.umd.js +793 -452
- package/lib/cui.umd.min.js +16 -16
- package/package.json +2 -2
- package/packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue +65 -17
- package/packages/fabric-chart/src/mixins/drawExtracorporealCirculation.js +2 -6
- package/packages/fabric-chart/src/utils/index.js +8 -0
- package/packages/full-calendar/src/FullCalendar.vue +16 -11
- package/packages/full-calendar/src/components/ListTag.vue +6 -4
- package/packages/table-filter/src/components/render-widget/enums.js +39 -16
- package/packages/table-filter/src/components/render-widget/helpers/presetValToTimestamp.js +245 -31
- package/packages/table-filter/src/components/render-widget/index.vue +7 -4
- package/packages/table-filter/src/components/render-widget/widgetCfgMaps.js +38 -11
- package/packages/table-filter/src/mixins/mixins.js +10 -8
- package/packages/table-filter/src/mixins/renderWidget.js +2 -2
package/es/ellipsis/index.js
CHANGED
|
@@ -846,7 +846,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
846
846
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
847
847
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
848
848
|
|
|
849
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
849
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/ellipsis/src/Ellipsis.vue?vue&type=template&id=2e802586&scoped=true&
|
|
850
850
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('a-tooltip',{attrs:{"placement":"top","visible":_vm.visible}},[_c('template',{slot:"title"},[_c('span',[_vm._v(_vm._s(_vm.content))])]),_c('span',{ref:"contentRef",staticClass:"ellipsis-content",on:{"mouseenter":_vm.show,"mouseleave":_vm.hidden}},[_c('span',{ref:"contentInnerRef"},[_vm._v(_vm._s(_vm.content))])])],2)}
|
|
851
851
|
var staticRenderFns = []
|
|
852
852
|
|
package/es/fabric-chart/index.js
CHANGED
|
@@ -295,7 +295,7 @@ var es_promise_finally = __webpack_require__("a79d");
|
|
|
295
295
|
// EXTERNAL MODULE: external "core-js/modules/es.function.name.js"
|
|
296
296
|
var es_function_name_js_ = __webpack_require__("db0a");
|
|
297
297
|
|
|
298
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
298
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/FabricChart.vue?vue&type=template&id=76395f46&scoped=true&
|
|
299
299
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-fabric-chart",style:({ width: _vm.canvasWidth })},[(_vm.rendercanvas)?_c('fabric-canvas',_vm._b({ref:"canvasEle",attrs:{"templateData":_vm.templateData}},'fabric-canvas',_vm.$attrs,false),[_c('fabric-grid'),(_vm.hasXScalevalue)?_c('fabric-text-group',_vm._g({ref:"otherGroups",attrs:{"templateData":_vm.templateData}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-scale-value',{attrs:{"templateData":_vm.templateData}}):_vm._e(),(_vm.hasTopTable)?_c('fabric-lines',_vm._g({ref:"lines",attrs:{"linesObj":_vm.templateData.top}},_vm.$listeners)):_vm._e(),(_vm.hasTable)?_c('fabric-polylines',_vm._g({ref:"polylines",attrs:{"polyline":_vm.polylines,"other":_vm.templateData.left.other || {},"timeRangeStyle":_vm.templateData.timeRangeStyle || {}},on:{"pointOperation":_vm.pointOperation}},_vm.$listeners)):_vm._e()],1):_vm._e()],1)}
|
|
300
300
|
var staticRenderFns = []
|
|
301
301
|
|
|
@@ -308,7 +308,7 @@ var objectSpread2 = __webpack_require__("5530");
|
|
|
308
308
|
// EXTERNAL MODULE: ./src/core/create.js
|
|
309
309
|
var create = __webpack_require__("8aef");
|
|
310
310
|
|
|
311
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
311
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricCanvas.vue?vue&type=template&id=37bd438c&
|
|
312
312
|
var FabricCanvasvue_type_template_id_37bd438c_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('canvas',{attrs:{"id":_vm.id}}),_vm._t("default")],2)}
|
|
313
313
|
var FabricCanvasvue_type_template_id_37bd438c_staticRenderFns = []
|
|
314
314
|
|
|
@@ -968,7 +968,7 @@ var component = Object(componentNormalizer["a" /* default */])(
|
|
|
968
968
|
)
|
|
969
969
|
|
|
970
970
|
/* harmony default export */ var FabricCanvas = (component.exports);
|
|
971
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
971
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricPolylines.vue?vue&type=template&id=6078d968&
|
|
972
972
|
var FabricPolylinesvue_type_template_id_6078d968_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"poly-line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
973
973
|
var FabricPolylinesvue_type_template_id_6078d968_staticRenderFns = []
|
|
974
974
|
|
|
@@ -1229,6 +1229,13 @@ function getIntersectionPoint(a, b, c, d) {
|
|
|
1229
1229
|
|
|
1230
1230
|
return false;
|
|
1231
1231
|
}
|
|
1232
|
+
function sortByTime() {
|
|
1233
|
+
var list = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
1234
|
+
list.sort(function (a, b) {
|
|
1235
|
+
return Date.parse(a[0]) - Date.parse(b[0]);
|
|
1236
|
+
});
|
|
1237
|
+
return list;
|
|
1238
|
+
}
|
|
1232
1239
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/mixins/draw.js
|
|
1233
1240
|
|
|
1234
1241
|
|
|
@@ -1838,7 +1845,7 @@ function getIntersectionPoint(a, b, c, d) {
|
|
|
1838
1845
|
}
|
|
1839
1846
|
}
|
|
1840
1847
|
});
|
|
1841
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1848
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/MouseRightClick.vue?vue&type=template&id=25d4407a&scoped=true&
|
|
1842
1849
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-mouse-right-menu-popup c-animation-in",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-mouse-right-menu"},_vm._l((_vm.nodeList),function(item,index){return _c('div',{key:index,staticClass:"c-mouse-menu-item",on:{"click":function($event){return _vm.handleNodeClick(item)}}},[_c('span',[_vm._v(_vm._s(item.name))])])}),0)])}
|
|
1843
1850
|
var MouseRightClickvue_type_template_id_25d4407a_scoped_true_staticRenderFns = []
|
|
1844
1851
|
|
|
@@ -1946,7 +1953,7 @@ var MouseRightClick_component = Object(componentNormalizer["a" /* default */])(
|
|
|
1946
1953
|
)
|
|
1947
1954
|
|
|
1948
1955
|
/* harmony default export */ var MouseRightClick = (MouseRightClick_component.exports);
|
|
1949
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
1956
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/DropPopup.vue?vue&type=template&id=c4db0ace&scoped=true&
|
|
1950
1957
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"c-drop-popup",style:(_vm.dialogStyle)},[_c('div',{staticClass:"c-drop-popup-list"},[_c('span',[_vm._v(_vm._s(_vm.val.title))]),_vm._l((_vm.val.list),function(item){return _c('span',{key:item.id},[_vm._v(" "+_vm._s(((item.name) + ": " + (item.value)))+" ")])})],2)])}
|
|
1951
1958
|
var DropPopupvue_type_template_id_c4db0ace_scoped_true_staticRenderFns = []
|
|
1952
1959
|
|
|
@@ -4135,12 +4142,12 @@ var FabricGrid_component = Object(componentNormalizer["a" /* default */])(
|
|
|
4135
4142
|
)
|
|
4136
4143
|
|
|
4137
4144
|
/* harmony default export */ var FabricGrid = (FabricGrid_component.exports);
|
|
4138
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
4139
|
-
var
|
|
4140
|
-
var
|
|
4145
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=7f8a6f64&
|
|
4146
|
+
var FabricTextGroupvue_type_template_id_7f8a6f64_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"text-group"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
4147
|
+
var FabricTextGroupvue_type_template_id_7f8a6f64_staticRenderFns = []
|
|
4141
4148
|
|
|
4142
4149
|
|
|
4143
|
-
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=
|
|
4150
|
+
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=template&id=7f8a6f64&
|
|
4144
4151
|
|
|
4145
4152
|
// EXTERNAL MODULE: external "core-js/modules/es.reflect.has.js"
|
|
4146
4153
|
var es_reflect_has_js_ = __webpack_require__("bfdc");
|
|
@@ -4369,14 +4376,12 @@ var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep_);
|
|
|
4369
4376
|
data = params.data;
|
|
4370
4377
|
_this2.extracorporealCirculation.list[index][key] = data;
|
|
4371
4378
|
|
|
4372
|
-
_this2.drawExtracorporealCirculation(
|
|
4379
|
+
_this2.drawExtracorporealCirculation();
|
|
4373
4380
|
|
|
4374
4381
|
_this2.canvas.discardActiveObject();
|
|
4375
4382
|
|
|
4376
|
-
_this2.
|
|
4377
|
-
|
|
4378
|
-
obj.bringForward();
|
|
4379
|
-
}
|
|
4383
|
+
_this2.markObjs.forEach(function (obj) {
|
|
4384
|
+
return obj.bringForward();
|
|
4380
4385
|
});
|
|
4381
4386
|
});
|
|
4382
4387
|
}
|
|
@@ -4463,6 +4468,9 @@ var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep_);
|
|
|
4463
4468
|
}
|
|
4464
4469
|
}
|
|
4465
4470
|
});
|
|
4471
|
+
// EXTERNAL MODULE: external "lodash"
|
|
4472
|
+
var external_lodash_ = __webpack_require__("60bb");
|
|
4473
|
+
|
|
4466
4474
|
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricTextGroup.vue?vue&type=script&lang=js&
|
|
4467
4475
|
|
|
4468
4476
|
|
|
@@ -4486,6 +4494,7 @@ var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep_);
|
|
|
4486
4494
|
|
|
4487
4495
|
|
|
4488
4496
|
|
|
4497
|
+
|
|
4489
4498
|
|
|
4490
4499
|
|
|
4491
4500
|
//
|
|
@@ -4503,6 +4512,8 @@ var cloneDeep_default = /*#__PURE__*/__webpack_require__.n(cloneDeep_);
|
|
|
4503
4512
|
|
|
4504
4513
|
|
|
4505
4514
|
|
|
4515
|
+
|
|
4516
|
+
|
|
4506
4517
|
var FabricTextGroupvue_type_script_lang_js_rightClickNode = [{
|
|
4507
4518
|
name: '修改',
|
|
4508
4519
|
type: 'edit'
|
|
@@ -4561,6 +4572,10 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4561
4572
|
}
|
|
4562
4573
|
},
|
|
4563
4574
|
data: function data() {
|
|
4575
|
+
var _this$templateData$bo;
|
|
4576
|
+
|
|
4577
|
+
this.markData = sortByTime(Object(external_lodash_["cloneDeep"])((_this$templateData$bo = this.templateData.bottom) === null || _this$templateData$bo === void 0 ? void 0 : _this$templateData$bo.list));
|
|
4578
|
+
this.markObjs = [];
|
|
4564
4579
|
return {
|
|
4565
4580
|
leftStartX: 0,
|
|
4566
4581
|
isDropVisible: false,
|
|
@@ -4610,7 +4625,7 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
4610
4625
|
|
|
4611
4626
|
if (this.templateData.bottom) {
|
|
4612
4627
|
this.drawExtracorporealCirculation();
|
|
4613
|
-
this.drawBottomTextDataGroup(
|
|
4628
|
+
this.drawBottomTextDataGroup();
|
|
4614
4629
|
}
|
|
4615
4630
|
},
|
|
4616
4631
|
drawBorder: function drawBorder() {
|
|
@@ -5138,20 +5153,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5138
5153
|
removeMark: function removeMark() {
|
|
5139
5154
|
var _this12 = this;
|
|
5140
5155
|
|
|
5141
|
-
this.
|
|
5142
|
-
|
|
5143
|
-
_this12.canvas.remove(obj);
|
|
5144
|
-
}
|
|
5156
|
+
this.markObjs.forEach(function (obj) {
|
|
5157
|
+
return _this12.canvas.remove(obj);
|
|
5145
5158
|
});
|
|
5146
5159
|
},
|
|
5147
|
-
|
|
5148
|
-
|
|
5149
|
-
|
|
5150
|
-
|
|
5151
|
-
_obj$seqStyle,
|
|
5152
|
-
_obj$seqStyle$circle,
|
|
5153
|
-
_this13 = this;
|
|
5154
|
-
|
|
5160
|
+
drawTopTotalLineAndTitle: function drawTopTotalLineAndTitle() {
|
|
5161
|
+
var _this$templateData = this.templateData,
|
|
5162
|
+
obj = _this$templateData.bottom,
|
|
5163
|
+
leftData = _this$templateData.left;
|
|
5155
5164
|
var _this$propItems6 = this.propItems,
|
|
5156
5165
|
endX = _this$propItems6.endX,
|
|
5157
5166
|
originX = _this$propItems6.originX,
|
|
@@ -5159,14 +5168,13 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5159
5168
|
topTotal = _this$propItems6.topTotal,
|
|
5160
5169
|
markHeight = _this$propItems6.markHeight;
|
|
5161
5170
|
|
|
5162
|
-
if (!
|
|
5171
|
+
if (!topTotal.width) {
|
|
5163
5172
|
return;
|
|
5164
5173
|
}
|
|
5165
5174
|
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
var marginLeft = this.templateData.left.leftYScalevalue.spaceGridNumber || defaultVaule.spaceGridNumber;
|
|
5175
|
+
var line1 = this.drawLine([endX, endY - 1, endX, endY + markHeight], Object(objectSpread2["a" /* default */])({}, this.defaultRectStyle));
|
|
5176
|
+
var line2 = this.drawLine([originX, endY + markHeight, endX, endY + markHeight], Object(objectSpread2["a" /* default */])({}, this.defaultRectStyle));
|
|
5177
|
+
var marginLeft = leftData.leftYScalevalue.spaceGridNumber || defaultVaule.spaceGridNumber;
|
|
5170
5178
|
var left = originX - marginLeft * 4; // 默认减去4倍的左边距,防止最左边的数据与名称显示重合了
|
|
5171
5179
|
|
|
5172
5180
|
var title = new this.fabric.Text(String(obj.title), Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({}, defaultVaule.style), defaultVaule.textStyle), obj.style), {}, {
|
|
@@ -5176,7 +5184,38 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5176
5184
|
top: endY + markHeight / 2,
|
|
5177
5185
|
type: 'mark'
|
|
5178
5186
|
}));
|
|
5179
|
-
this.
|
|
5187
|
+
this.markObjs.push(title, line1, line2);
|
|
5188
|
+
this.canvas.add(title, line1, line2);
|
|
5189
|
+
},
|
|
5190
|
+
// 底部标记
|
|
5191
|
+
drawBottomTextDataGroup: function drawBottomTextDataGroup() {
|
|
5192
|
+
var _this$markData,
|
|
5193
|
+
_this13 = this,
|
|
5194
|
+
_obj$style,
|
|
5195
|
+
_obj$iconStyle,
|
|
5196
|
+
_obj$seqStyle,
|
|
5197
|
+
_obj$seqStyle$circle;
|
|
5198
|
+
|
|
5199
|
+
var obj = this.templateData.bottom;
|
|
5200
|
+
var _this$propItems7 = this.propItems,
|
|
5201
|
+
originX = _this$propItems7.originX,
|
|
5202
|
+
endY = _this$propItems7.endY,
|
|
5203
|
+
markHeight = _this$propItems7.markHeight,
|
|
5204
|
+
xCellWidth = _this$propItems7.xCellWidth;
|
|
5205
|
+
|
|
5206
|
+
if (!markHeight || !((_this$markData = this.markData) !== null && _this$markData !== void 0 && _this$markData.length)) {
|
|
5207
|
+
return;
|
|
5208
|
+
}
|
|
5209
|
+
|
|
5210
|
+
if (this.markObjs.length) {
|
|
5211
|
+
Object(toConsumableArray["a" /* default */])(this.markObjs).forEach(function (obj) {
|
|
5212
|
+
return _this13.canvas.remove(obj);
|
|
5213
|
+
});
|
|
5214
|
+
|
|
5215
|
+
this.markObjs = [];
|
|
5216
|
+
}
|
|
5217
|
+
|
|
5218
|
+
this.drawTopTotalLineAndTitle();
|
|
5180
5219
|
|
|
5181
5220
|
var _endY = this.extracorporealCirculationHeight ? endY + this.extracorporealCirculationHeight : endY;
|
|
5182
5221
|
|
|
@@ -5187,6 +5226,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5187
5226
|
var lineHeightText = (((_obj$style = obj.style) === null || _obj$style === void 0 ? void 0 : _obj$style.fontSize) || 12) + 2;
|
|
5188
5227
|
var lineHeightImg = (((_obj$iconStyle = obj.iconStyle) === null || _obj$iconStyle === void 0 ? void 0 : _obj$iconStyle.height) || 12) + 2;
|
|
5189
5228
|
var lineHeightSeq = (((_obj$seqStyle = obj.seqStyle) === null || _obj$seqStyle === void 0 ? void 0 : (_obj$seqStyle$circle = _obj$seqStyle.circle) === null || _obj$seqStyle$circle === void 0 ? void 0 : _obj$seqStyle$circle.radius) || 9) * 2 + 2;
|
|
5229
|
+
var prevLeft = originX;
|
|
5230
|
+
var prevCondition;
|
|
5190
5231
|
|
|
5191
5232
|
var setTop = function setTop(lineHeight, i, condition) {
|
|
5192
5233
|
if (!~condition.limitIndex) {
|
|
@@ -5207,14 +5248,19 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5207
5248
|
return condition.y;
|
|
5208
5249
|
};
|
|
5209
5250
|
|
|
5210
|
-
|
|
5251
|
+
this.markData.forEach(function (item, index) {
|
|
5211
5252
|
var condition = {
|
|
5212
5253
|
limitIndex: -1,
|
|
5213
5254
|
// 标志点是否往上排列的标志,大于-1则表示需要往上排列
|
|
5214
5255
|
y: baseY
|
|
5215
5256
|
};
|
|
5216
5257
|
|
|
5217
|
-
var x = _this13.computedX(item[0]);
|
|
5258
|
+
var x = _this13.computedX(item[0]); // 相隔小于或等于一个小格的宽度就继承上个时间标记的高度继续计算定位,即错位显示
|
|
5259
|
+
|
|
5260
|
+
|
|
5261
|
+
if (x - prevLeft <= xCellWidth) {
|
|
5262
|
+
Object.assign(condition, prevCondition);
|
|
5263
|
+
}
|
|
5218
5264
|
|
|
5219
5265
|
if (_this13.isLimit(item[0])) {
|
|
5220
5266
|
var pointList = [];
|
|
@@ -5263,10 +5309,14 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5263
5309
|
return _ref3.apply(this, arguments);
|
|
5264
5310
|
};
|
|
5265
5311
|
}());
|
|
5312
|
+
prevLeft = x;
|
|
5313
|
+
prevCondition = condition;
|
|
5266
5314
|
Promise.all(pointList).then(function (res) {
|
|
5267
|
-
var _this13$canvas;
|
|
5315
|
+
var _this13$markObjs, _this13$canvas;
|
|
5268
5316
|
|
|
5269
|
-
|
|
5317
|
+
(_this13$markObjs = _this13.markObjs).push.apply(_this13$markObjs, Object(toConsumableArray["a" /* default */])(res));
|
|
5318
|
+
|
|
5319
|
+
(_this13$canvas = _this13.canvas).add.apply(_this13$canvas, Object(toConsumableArray["a" /* default */])(res));
|
|
5270
5320
|
});
|
|
5271
5321
|
}
|
|
5272
5322
|
});
|
|
@@ -5386,19 +5436,56 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5386
5436
|
};
|
|
5387
5437
|
|
|
5388
5438
|
_this15.$emit('markChange', value);
|
|
5439
|
+
|
|
5440
|
+
_this15.updateMarkData(value);
|
|
5441
|
+
|
|
5442
|
+
_this15.drawBottomTextDataGroup();
|
|
5443
|
+
|
|
5444
|
+
_this15.canvas.discardActiveObject();
|
|
5389
5445
|
});
|
|
5390
5446
|
}
|
|
5391
5447
|
},
|
|
5448
|
+
updateMarkData: function updateMarkData(_ref4) {
|
|
5449
|
+
var data = _ref4.data,
|
|
5450
|
+
newVal = _ref4.newVal;
|
|
5451
|
+
var id = data.id;
|
|
5452
|
+
var listIndex, index;
|
|
5453
|
+
listIndex = this.markData.findIndex(function (v) {
|
|
5454
|
+
var i = v[1].findIndex(function (k) {
|
|
5455
|
+
var _k$data;
|
|
5456
|
+
|
|
5457
|
+
return ((_k$data = k.data) === null || _k$data === void 0 ? void 0 : _k$data.id) === id;
|
|
5458
|
+
});
|
|
5459
|
+
i > -1 && (index = i);
|
|
5460
|
+
return i > -1;
|
|
5461
|
+
});
|
|
5462
|
+
var obj = this.markData[listIndex][1].splice(index, 1)[0];
|
|
5463
|
+
var newIndex = this.markData.findIndex(function (v) {
|
|
5464
|
+
return v[0] === newVal;
|
|
5465
|
+
});
|
|
5466
|
+
|
|
5467
|
+
if (!~newIndex) {
|
|
5468
|
+
this.markData.push([newVal, [obj]]);
|
|
5469
|
+
} else {
|
|
5470
|
+
this.markData[newIndex][1].push(obj);
|
|
5471
|
+
}
|
|
5472
|
+
|
|
5473
|
+
var emptyIndex = this.markData.findIndex(function (v) {
|
|
5474
|
+
return v[1].length === 0;
|
|
5475
|
+
});
|
|
5476
|
+
!!~emptyIndex && this.markData.splice(emptyIndex, 1);
|
|
5477
|
+
sortByTime(this.markData);
|
|
5478
|
+
},
|
|
5392
5479
|
moveLimit: function moveLimit(point) {
|
|
5393
5480
|
var _point$other;
|
|
5394
5481
|
|
|
5395
5482
|
point.setCoords();
|
|
5396
|
-
var _this$
|
|
5397
|
-
originX = _this$
|
|
5398
|
-
endX = _this$
|
|
5399
|
-
originY = _this$
|
|
5400
|
-
endY = _this$
|
|
5401
|
-
markHeight = _this$
|
|
5483
|
+
var _this$propItems8 = this.propItems,
|
|
5484
|
+
originX = _this$propItems8.originX,
|
|
5485
|
+
endX = _this$propItems8.endX,
|
|
5486
|
+
originY = _this$propItems8.originY,
|
|
5487
|
+
endY = _this$propItems8.endY,
|
|
5488
|
+
markHeight = _this$propItems8.markHeight;
|
|
5402
5489
|
var bottom = this.templateData.bottom; // 如果是起始标记,如入手术室时间
|
|
5403
5490
|
|
|
5404
5491
|
if ((_point$other = point.other) !== null && _point$other !== void 0 && _point$other.isStart) {
|
|
@@ -5435,17 +5522,17 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5435
5522
|
var leftId = (_point$other2 = point.other) === null || _point$other2 === void 0 ? void 0 : _point$other2.limitLeft;
|
|
5436
5523
|
var limitLeftTime = leftId ? bottom.list.find(function (v) {
|
|
5437
5524
|
return v[1].some(function (k) {
|
|
5438
|
-
var _k$
|
|
5525
|
+
var _k$data2, _k$data3;
|
|
5439
5526
|
|
|
5440
|
-
return ((_k$
|
|
5527
|
+
return ((_k$data2 = k.data) === null || _k$data2 === void 0 ? void 0 : _k$data2.id) && ((_k$data3 = k.data) === null || _k$data3 === void 0 ? void 0 : _k$data3.id) === leftId;
|
|
5441
5528
|
});
|
|
5442
5529
|
})[0] : null;
|
|
5443
5530
|
var rightId = (_point$other3 = point.other) === null || _point$other3 === void 0 ? void 0 : _point$other3.limitRight;
|
|
5444
5531
|
var limitRightTime = rightId ? bottom.list.find(function (v) {
|
|
5445
5532
|
return v[1].some(function (k) {
|
|
5446
|
-
var _k$
|
|
5533
|
+
var _k$data4, _k$data5;
|
|
5447
5534
|
|
|
5448
|
-
return ((_k$
|
|
5535
|
+
return ((_k$data4 = k.data) === null || _k$data4 === void 0 ? void 0 : _k$data4.id) && ((_k$data5 = k.data) === null || _k$data5 === void 0 ? void 0 : _k$data5.id) === rightId;
|
|
5449
5536
|
});
|
|
5450
5537
|
})[0] : null;
|
|
5451
5538
|
var limitLeft = limitLeftTime && !startList || limitLeftTime && startList && new Date(limitLeftTime).getTime() >= new Date(startList[0]).getTime() ? this.computedX(limitLeftTime) : !limitLeftTime && startList || limitLeftTime && startList && new Date(limitLeftTime).getTime() < new Date(startList[0]).getTime() ? this.computedX(startList[0]) : originX;
|
|
@@ -5492,12 +5579,12 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5492
5579
|
},
|
|
5493
5580
|
drawLeftScaleGroup: function drawLeftScaleGroup(dataLeft) {
|
|
5494
5581
|
this.drawLeftTitle(dataLeft);
|
|
5495
|
-
var _this$
|
|
5496
|
-
endY = _this$
|
|
5497
|
-
markHeight = _this$
|
|
5498
|
-
originX = _this$
|
|
5499
|
-
originY = _this$
|
|
5500
|
-
treeTableminCellWidth = _this$
|
|
5582
|
+
var _this$propItems9 = this.propItems,
|
|
5583
|
+
endY = _this$propItems9.endY,
|
|
5584
|
+
markHeight = _this$propItems9.markHeight,
|
|
5585
|
+
originX = _this$propItems9.originX,
|
|
5586
|
+
originY = _this$propItems9.originY,
|
|
5587
|
+
treeTableminCellWidth = _this$propItems9.treeTableminCellWidth;
|
|
5501
5588
|
var rect = new this.fabric.Rect(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])(Object(objectSpread2["a" /* default */])({
|
|
5502
5589
|
left: treeTableminCellWidth,
|
|
5503
5590
|
top: originY,
|
|
@@ -5513,11 +5600,11 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5513
5600
|
},
|
|
5514
5601
|
drawLeftTitle: function drawLeftTitle(dataLeft) {
|
|
5515
5602
|
if (dataLeft.title) {
|
|
5516
|
-
var _this$
|
|
5517
|
-
endY = _this$
|
|
5518
|
-
markHeight = _this$
|
|
5519
|
-
treeTableminCellWidth = _this$
|
|
5520
|
-
originY = _this$
|
|
5603
|
+
var _this$propItems10 = this.propItems,
|
|
5604
|
+
endY = _this$propItems10.endY,
|
|
5605
|
+
markHeight = _this$propItems10.markHeight,
|
|
5606
|
+
treeTableminCellWidth = _this$propItems10.treeTableminCellWidth,
|
|
5607
|
+
originY = _this$propItems10.originY;
|
|
5521
5608
|
this.canvas.add(this.drawTextGroup({
|
|
5522
5609
|
width: treeTableminCellWidth,
|
|
5523
5610
|
height: endY + markHeight - originY
|
|
@@ -5543,8 +5630,8 @@ var getTopTotalList = function getTopTotalList(tree, topTotalList) {
|
|
|
5543
5630
|
|
|
5544
5631
|
var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
5545
5632
|
fabric_chart_FabricTextGroupvue_type_script_lang_js_,
|
|
5546
|
-
|
|
5547
|
-
|
|
5633
|
+
FabricTextGroupvue_type_template_id_7f8a6f64_render,
|
|
5634
|
+
FabricTextGroupvue_type_template_id_7f8a6f64_staticRenderFns,
|
|
5548
5635
|
false,
|
|
5549
5636
|
null,
|
|
5550
5637
|
null,
|
|
@@ -5553,14 +5640,14 @@ var FabricTextGroup_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5553
5640
|
)
|
|
5554
5641
|
|
|
5555
5642
|
/* harmony default export */ var FabricTextGroup = (FabricTextGroup_component.exports);
|
|
5556
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5643
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
5557
5644
|
var FabricScaleValuevue_type_template_id_68258044_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.show)?_c('TimeScaleValue',{attrs:{"times":_vm.timeList,"templateData":_vm.templateData}}):_vm._e()}
|
|
5558
5645
|
var FabricScaleValuevue_type_template_id_68258044_staticRenderFns = []
|
|
5559
5646
|
|
|
5560
5647
|
|
|
5561
5648
|
// CONCATENATED MODULE: ./packages/fabric-chart/src/fabric-chart/FabricScaleValue.vue?vue&type=template&id=68258044&
|
|
5562
5649
|
|
|
5563
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
5650
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/components/TimeScaleValue.vue?vue&type=template&id=3492877c&scoped=true&
|
|
5564
5651
|
var TimeScaleValuevue_type_template_id_3492877c_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"}],staticClass:"c-time-scalevalue",style:({ '--left': _vm.popupStyle.left, '--top': _vm.popupStyle.top, '--height': _vm.popupStyle.height, '--width': _vm.popupStyle.width })},_vm._l((_vm.times),function(item,index){return _c('span',{directives:[{name:"show",rawName:"v-show",value:(index % 2 == 0),expression:"index % 2 == 0"}],key:item.left,staticClass:"c-time-scalevalue-list",style:({ left: ((item.left - item.width / 2) + "px"), '--font-size': _vm.popupStyle.fontSize })},[_vm._v(" "+_vm._s(item.time)+" ")])}),0)}
|
|
5565
5652
|
var TimeScaleValuevue_type_template_id_3492877c_scoped_true_staticRenderFns = []
|
|
5566
5653
|
|
|
@@ -5944,7 +6031,7 @@ var FabricScaleValue_component = Object(componentNormalizer["a" /* default */])(
|
|
|
5944
6031
|
)
|
|
5945
6032
|
|
|
5946
6033
|
/* harmony default export */ var FabricScaleValue = (FabricScaleValue_component.exports);
|
|
5947
|
-
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"
|
|
6034
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"7abca1d8-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./packages/fabric-chart/src/fabric-chart/FabricLines.vue?vue&type=template&id=74aef744&
|
|
5948
6035
|
var FabricLinesvue_type_template_id_74aef744_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"line"},[_c('MouseRightClick',{directives:[{name:"show",rawName:"v-show",value:(_vm.isRightVisible),expression:"isRightVisible"}],attrs:{"getContainer":_vm.getContainer,"nodeList":_vm.rightClickNode,"rightPos":_vm.rightPos},on:{"nodeClick":_vm.handleRightClick,"closeRight":function($event){_vm.isRightVisible = false}}}),_c('DropPopup',{directives:[{name:"show",rawName:"v-show",value:(_vm.isDropVisible),expression:"isDropVisible"}],attrs:{"val":_vm.dropVal,"dropPos":_vm.dropPos}})],1)}
|
|
5949
6036
|
var FabricLinesvue_type_template_id_74aef744_staticRenderFns = []
|
|
5950
6037
|
|
|
@@ -8345,6 +8432,13 @@ module.exports = classof(global.process) == 'process';
|
|
|
8345
8432
|
module.exports = typeof window == 'object';
|
|
8346
8433
|
|
|
8347
8434
|
|
|
8435
|
+
/***/ }),
|
|
8436
|
+
|
|
8437
|
+
/***/ "60bb":
|
|
8438
|
+
/***/ (function(module, exports) {
|
|
8439
|
+
|
|
8440
|
+
module.exports = require("lodash");
|
|
8441
|
+
|
|
8348
8442
|
/***/ }),
|
|
8349
8443
|
|
|
8350
8444
|
/***/ "60da":
|