hoeditor-web 3.1.34 → 3.1.36
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/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +1392 -744
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -601,6 +601,40 @@ var DownOutline = {
|
|
|
601
601
|
exports.Z = DownOutline;
|
|
602
602
|
|
|
603
603
|
|
|
604
|
+
/***/ }),
|
|
605
|
+
|
|
606
|
+
/***/ 12004:
|
|
607
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
608
|
+
|
|
609
|
+
"use strict";
|
|
610
|
+
var __webpack_unused_export__;
|
|
611
|
+
|
|
612
|
+
__webpack_unused_export__ = ({ value: true });
|
|
613
|
+
var DownSquareOutline = {
|
|
614
|
+
name: 'down-square',
|
|
615
|
+
theme: 'outline',
|
|
616
|
+
icon: {
|
|
617
|
+
tag: 'svg',
|
|
618
|
+
attrs: { viewBox: '64 64 896 896', focusable: false },
|
|
619
|
+
children: [
|
|
620
|
+
{
|
|
621
|
+
tag: 'path',
|
|
622
|
+
attrs: {
|
|
623
|
+
d: 'M505.5 658.7c3.2 4.4 9.7 4.4 12.9 0l178-246c3.8-5.3 0-12.7-6.5-12.7H643c-10.2 0-19.9 4.9-25.9 13.2L512 558.6 406.8 413.2c-6-8.3-15.6-13.2-25.9-13.2H334c-6.5 0-10.3 7.4-6.5 12.7l178 246z'
|
|
624
|
+
}
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
tag: 'path',
|
|
628
|
+
attrs: {
|
|
629
|
+
d: 'M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z'
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
]
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
exports.Z = DownSquareOutline;
|
|
636
|
+
|
|
637
|
+
|
|
604
638
|
/***/ }),
|
|
605
639
|
|
|
606
640
|
/***/ 60139:
|
|
@@ -8346,7 +8380,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8346
8380
|
|
|
8347
8381
|
/***/ }),
|
|
8348
8382
|
|
|
8349
|
-
/***/
|
|
8383
|
+
/***/ 46335:
|
|
8350
8384
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
8351
8385
|
|
|
8352
8386
|
"use strict";
|
|
@@ -8362,19 +8396,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
8362
8396
|
var es_array_includes = __webpack_require__(26699);
|
|
8363
8397
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
8364
8398
|
var es_string_includes = __webpack_require__(32023);
|
|
8365
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=template&id=
|
|
8399
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=template&id=24bf2dec&scoped=true&
|
|
8366
8400
|
|
|
8367
8401
|
|
|
8368
8402
|
var render = function render() {
|
|
8369
8403
|
var _vm = this,
|
|
8370
8404
|
_c = _vm._self._c;
|
|
8371
8405
|
return _c('div', {
|
|
8372
|
-
directives: [{
|
|
8373
|
-
name: "click-outside",
|
|
8374
|
-
rawName: "v-click-outside",
|
|
8375
|
-
value: _vm.handleClose,
|
|
8376
|
-
expression: "handleClose"
|
|
8377
|
-
}],
|
|
8378
8406
|
ref: "listSourceModal",
|
|
8379
8407
|
staticClass: "control-modal-contents list-source-modal",
|
|
8380
8408
|
on: {
|
|
@@ -8404,12 +8432,12 @@ var render = function render() {
|
|
|
8404
8432
|
}, [_vm._v("列表")]), _c('a-table', {
|
|
8405
8433
|
staticStyle: {
|
|
8406
8434
|
"width": "100%",
|
|
8407
|
-
"height": "
|
|
8435
|
+
"height": "320px"
|
|
8408
8436
|
},
|
|
8409
8437
|
attrs: {
|
|
8410
8438
|
"row-key": "id",
|
|
8411
8439
|
"scroll": {
|
|
8412
|
-
y:
|
|
8440
|
+
y: 260
|
|
8413
8441
|
},
|
|
8414
8442
|
"data-source": _vm.listValue,
|
|
8415
8443
|
"bordered": true,
|
|
@@ -8432,7 +8460,42 @@ var render = function render() {
|
|
|
8432
8460
|
}, [_vm._v(_vm._s(index + 1))])];
|
|
8433
8461
|
}
|
|
8434
8462
|
}])
|
|
8435
|
-
}), _c('a-table-column', {
|
|
8463
|
+
}), _vm.isAllowMultiSelected ? _c('a-table-column', {
|
|
8464
|
+
key: "title",
|
|
8465
|
+
attrs: {
|
|
8466
|
+
"title": "标题",
|
|
8467
|
+
"width": 150
|
|
8468
|
+
},
|
|
8469
|
+
scopedSlots: _vm._u([{
|
|
8470
|
+
key: "default",
|
|
8471
|
+
fn: function fn(text, record, index) {
|
|
8472
|
+
return [_c('a-input', {
|
|
8473
|
+
attrs: {
|
|
8474
|
+
"type": "textarea",
|
|
8475
|
+
"size": "small"
|
|
8476
|
+
},
|
|
8477
|
+
on: {
|
|
8478
|
+
"focus": function focus($event) {
|
|
8479
|
+
return _vm.focusIndex(index);
|
|
8480
|
+
},
|
|
8481
|
+
"input": function input($event) {
|
|
8482
|
+
return _vm.inputIndex(index);
|
|
8483
|
+
},
|
|
8484
|
+
"blur": function blur($event) {
|
|
8485
|
+
return _vm.blurIndex(index);
|
|
8486
|
+
}
|
|
8487
|
+
},
|
|
8488
|
+
model: {
|
|
8489
|
+
value: record.title,
|
|
8490
|
+
callback: function callback($$v) {
|
|
8491
|
+
_vm.$set(record, "title", $$v);
|
|
8492
|
+
},
|
|
8493
|
+
expression: "record.title"
|
|
8494
|
+
}
|
|
8495
|
+
})];
|
|
8496
|
+
}
|
|
8497
|
+
}], null, false, 3708070783)
|
|
8498
|
+
}) : _vm._e(), _c('a-table-column', {
|
|
8436
8499
|
key: "text",
|
|
8437
8500
|
attrs: {
|
|
8438
8501
|
"title": "文本"
|
|
@@ -8443,6 +8506,7 @@ var render = function render() {
|
|
|
8443
8506
|
return [_c('a-input', {
|
|
8444
8507
|
class: _vm.errorIndex.includes(record.id) ? 'error' : '',
|
|
8445
8508
|
attrs: {
|
|
8509
|
+
"type": "textarea",
|
|
8446
8510
|
"size": "small"
|
|
8447
8511
|
},
|
|
8448
8512
|
on: {
|
|
@@ -8470,13 +8534,14 @@ var render = function render() {
|
|
|
8470
8534
|
key: "value",
|
|
8471
8535
|
attrs: {
|
|
8472
8536
|
"title": "值",
|
|
8473
|
-
"width":
|
|
8537
|
+
"width": 150
|
|
8474
8538
|
},
|
|
8475
8539
|
scopedSlots: _vm._u([{
|
|
8476
8540
|
key: "default",
|
|
8477
8541
|
fn: function fn(text, record, index) {
|
|
8478
8542
|
return [_c('a-input', {
|
|
8479
8543
|
attrs: {
|
|
8544
|
+
"type": "textarea",
|
|
8480
8545
|
"size": "small"
|
|
8481
8546
|
},
|
|
8482
8547
|
on: {
|
|
@@ -8534,10 +8599,60 @@ var render = function render() {
|
|
|
8534
8599
|
})];
|
|
8535
8600
|
}
|
|
8536
8601
|
}])
|
|
8602
|
+
}), _vm.isAllowMultiSelected ? _c('a-table-column', {
|
|
8603
|
+
key: "input",
|
|
8604
|
+
attrs: {
|
|
8605
|
+
"title": "支持输入",
|
|
8606
|
+
"width": 40
|
|
8607
|
+
},
|
|
8608
|
+
scopedSlots: _vm._u([{
|
|
8609
|
+
key: "default",
|
|
8610
|
+
fn: function fn(text, record, index) {
|
|
8611
|
+
return [_c('a-checkbox', {
|
|
8612
|
+
on: {
|
|
8613
|
+
"change": function change($event) {
|
|
8614
|
+
return _vm.inputCheckboxChange(index);
|
|
8615
|
+
}
|
|
8616
|
+
},
|
|
8617
|
+
model: {
|
|
8618
|
+
value: record.input,
|
|
8619
|
+
callback: function callback($$v) {
|
|
8620
|
+
_vm.$set(record, "input", $$v);
|
|
8621
|
+
},
|
|
8622
|
+
expression: "record.input"
|
|
8623
|
+
}
|
|
8624
|
+
})];
|
|
8625
|
+
}
|
|
8626
|
+
}], null, false, 2604556771)
|
|
8627
|
+
}) : _vm._e(), _c('a-table-column', {
|
|
8628
|
+
key: "default",
|
|
8629
|
+
attrs: {
|
|
8630
|
+
"title": "默认",
|
|
8631
|
+
"width": 40
|
|
8632
|
+
},
|
|
8633
|
+
scopedSlots: _vm._u([{
|
|
8634
|
+
key: "default",
|
|
8635
|
+
fn: function fn(text, record, index) {
|
|
8636
|
+
return [_c('a-checkbox', {
|
|
8637
|
+
on: {
|
|
8638
|
+
"change": function change($event) {
|
|
8639
|
+
return _vm.defaultCheckboxChange(index);
|
|
8640
|
+
}
|
|
8641
|
+
},
|
|
8642
|
+
model: {
|
|
8643
|
+
value: record.default,
|
|
8644
|
+
callback: function callback($$v) {
|
|
8645
|
+
_vm.$set(record, "default", $$v);
|
|
8646
|
+
},
|
|
8647
|
+
expression: "record.default"
|
|
8648
|
+
}
|
|
8649
|
+
})];
|
|
8650
|
+
}
|
|
8651
|
+
}])
|
|
8537
8652
|
}), _c('a-table-column', {
|
|
8538
8653
|
key: "opt",
|
|
8539
8654
|
attrs: {
|
|
8540
|
-
"width":
|
|
8655
|
+
"width": 50
|
|
8541
8656
|
},
|
|
8542
8657
|
scopedSlots: _vm._u([{
|
|
8543
8658
|
key: "default",
|
|
@@ -8548,29 +8663,10 @@ var render = function render() {
|
|
|
8548
8663
|
"justify-content": "space-between",
|
|
8549
8664
|
"align-items": "center"
|
|
8550
8665
|
}
|
|
8551
|
-
}, [
|
|
8552
|
-
|
|
8553
|
-
|
|
8554
|
-
attrs: {
|
|
8555
|
-
"size": "small"
|
|
8556
|
-
},
|
|
8557
|
-
on: {
|
|
8558
|
-
"click": function click($event) {
|
|
8559
|
-
$event.stopPropagation();
|
|
8560
|
-
return _vm.cancelDefault(record.id);
|
|
8561
|
-
}
|
|
8562
|
-
}
|
|
8563
|
-
}, [_vm._v("取消")]) : _vm._e(), !record.default && record.text ? _c('a-button', {
|
|
8564
|
-
attrs: {
|
|
8565
|
-
"size": "small"
|
|
8666
|
+
}, [index !== _vm.listValue.length - 1 ? _c('a-button', {
|
|
8667
|
+
staticStyle: {
|
|
8668
|
+
"font-size": "12px"
|
|
8566
8669
|
},
|
|
8567
|
-
on: {
|
|
8568
|
-
"click": function click($event) {
|
|
8569
|
-
$event.stopPropagation();
|
|
8570
|
-
return _vm.setDefault(record.id);
|
|
8571
|
-
}
|
|
8572
|
-
}
|
|
8573
|
-
}, [_vm._v("设为默认")]) : _vm._e(), index !== _vm.listValue.length - 1 ? _c('a-button', {
|
|
8574
8670
|
attrs: {
|
|
8575
8671
|
"size": "small"
|
|
8576
8672
|
},
|
|
@@ -8603,7 +8699,7 @@ var render = function render() {
|
|
|
8603
8699
|
};
|
|
8604
8700
|
var staticRenderFns = [];
|
|
8605
8701
|
|
|
8606
|
-
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=template&id=
|
|
8702
|
+
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=template&id=24bf2dec&scoped=true&
|
|
8607
8703
|
|
|
8608
8704
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
8609
8705
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -8677,7 +8773,13 @@ var appendToBody = __webpack_require__(95677);
|
|
|
8677
8773
|
// 鼠标移入
|
|
8678
8774
|
mouseenter: function mouseenter(event) {
|
|
8679
8775
|
var ev = event || window.event;
|
|
8680
|
-
|
|
8776
|
+
if (index == _this.listValue.length - 1) {
|
|
8777
|
+
ev.target.draggable = false;
|
|
8778
|
+
ev.target.style.cursor = 'pointer';
|
|
8779
|
+
} else {
|
|
8780
|
+
ev.target.draggable = true;
|
|
8781
|
+
ev.target.style.cursor = 'move';
|
|
8782
|
+
}
|
|
8681
8783
|
},
|
|
8682
8784
|
// 开始拖拽
|
|
8683
8785
|
dragstart: function dragstart(event) {
|
|
@@ -8704,6 +8806,7 @@ var appendToBody = __webpack_require__(95677);
|
|
|
8704
8806
|
},
|
|
8705
8807
|
init: function init() {
|
|
8706
8808
|
var list = [{
|
|
8809
|
+
title: '',
|
|
8707
8810
|
text: '',
|
|
8708
8811
|
value: '',
|
|
8709
8812
|
type: 0,
|
|
@@ -8771,9 +8874,26 @@ var appendToBody = __webpack_require__(95677);
|
|
|
8771
8874
|
}
|
|
8772
8875
|
}
|
|
8773
8876
|
},
|
|
8877
|
+
inputCheckboxChange: function inputCheckboxChange(index) {
|
|
8878
|
+
this.listValue = (0,toConsumableArray/* default */.Z)(this.listValue.map(function (v, key) {
|
|
8879
|
+
if (key != index) {
|
|
8880
|
+
v.input = false;
|
|
8881
|
+
}
|
|
8882
|
+
return v;
|
|
8883
|
+
}));
|
|
8884
|
+
},
|
|
8885
|
+
defaultCheckboxChange: function defaultCheckboxChange(index) {
|
|
8886
|
+
this.listValue = (0,toConsumableArray/* default */.Z)(this.listValue.map(function (v, key) {
|
|
8887
|
+
if (key != index) {
|
|
8888
|
+
v.default = false;
|
|
8889
|
+
}
|
|
8890
|
+
return v;
|
|
8891
|
+
}));
|
|
8892
|
+
},
|
|
8774
8893
|
addCustoms: function addCustoms() {
|
|
8775
8894
|
var _this3 = this;
|
|
8776
8895
|
this.listValue.push({
|
|
8896
|
+
title: '',
|
|
8777
8897
|
text: '',
|
|
8778
8898
|
value: '',
|
|
8779
8899
|
type: 0,
|
|
@@ -8850,10 +8970,10 @@ var appendToBody = __webpack_require__(95677);
|
|
|
8850
8970
|
});
|
|
8851
8971
|
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=script&lang=js&
|
|
8852
8972
|
/* harmony default export */ var listsource_ListSourcevue_type_script_lang_js_ = (ListSourcevue_type_script_lang_js_);
|
|
8853
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=
|
|
8973
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=24bf2dec&prod&lang=less&scoped=true&
|
|
8854
8974
|
// extracted by mini-css-extract-plugin
|
|
8855
8975
|
|
|
8856
|
-
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=
|
|
8976
|
+
;// CONCATENATED MODULE: ./src/components/controls/listsource/ListSource.vue?vue&type=style&index=0&id=24bf2dec&prod&lang=less&scoped=true&
|
|
8857
8977
|
|
|
8858
8978
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8859
8979
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -8872,7 +8992,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8872
8992
|
staticRenderFns,
|
|
8873
8993
|
false,
|
|
8874
8994
|
null,
|
|
8875
|
-
"
|
|
8995
|
+
"24bf2dec",
|
|
8876
8996
|
null
|
|
8877
8997
|
|
|
8878
8998
|
)
|
|
@@ -9371,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9371
9491
|
|
|
9372
9492
|
/***/ }),
|
|
9373
9493
|
|
|
9374
|
-
/***/
|
|
9494
|
+
/***/ 28758:
|
|
9375
9495
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9376
9496
|
|
|
9377
9497
|
"use strict";
|
|
@@ -9391,7 +9511,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9391
9511
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9392
9512
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9393
9513
|
var es_string_replace = __webpack_require__(15306);
|
|
9394
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9514
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6d315cb7&
|
|
9395
9515
|
|
|
9396
9516
|
|
|
9397
9517
|
|
|
@@ -9451,11 +9571,12 @@ var render = function render() {
|
|
|
9451
9571
|
staticClass: "list"
|
|
9452
9572
|
}, [_c('li', {
|
|
9453
9573
|
staticStyle: {
|
|
9454
|
-
"text-align": "center"
|
|
9574
|
+
"text-align": "center",
|
|
9575
|
+
"line-height": "30px"
|
|
9455
9576
|
}
|
|
9456
9577
|
}, [_vm._v("无选项")])]) : _vm._e(), !_vm.insCheckSyncUpdateList && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0 ? _c('div', {
|
|
9457
9578
|
staticClass: "ant-checkbox-group"
|
|
9458
|
-
}, [_c('RecycleScroller', {
|
|
9579
|
+
}, [_vm.currentList.length > 50 ? [_c('RecycleScroller', {
|
|
9459
9580
|
staticClass: "scroller",
|
|
9460
9581
|
attrs: {
|
|
9461
9582
|
"items": _vm.currentList,
|
|
@@ -9466,9 +9587,7 @@ var render = function render() {
|
|
|
9466
9587
|
key: "default",
|
|
9467
9588
|
fn: function fn(_ref) {
|
|
9468
9589
|
var item = _ref.item;
|
|
9469
|
-
return [
|
|
9470
|
-
staticClass: "poper-select-title"
|
|
9471
|
-
}, [_vm._v(_vm._s(item.text))]) : _vm._e(), !item.title ? _c('a-checkbox', {
|
|
9590
|
+
return [_c('a-checkbox', {
|
|
9472
9591
|
key: item.id + Math.random(),
|
|
9473
9592
|
attrs: {
|
|
9474
9593
|
"id": item.id,
|
|
@@ -9479,34 +9598,23 @@ var render = function render() {
|
|
|
9479
9598
|
}
|
|
9480
9599
|
}, [_c('span', {
|
|
9481
9600
|
staticClass: "ant-checkbox-texts"
|
|
9482
|
-
}, [_vm._v(_vm._s(item.showText))])])
|
|
9601
|
+
}, [_vm._v(_vm._s(item.showText))])])];
|
|
9483
9602
|
}
|
|
9484
|
-
}], null, false,
|
|
9485
|
-
})]
|
|
9486
|
-
|
|
9487
|
-
"change": _vm.mutexSelectItemsChange
|
|
9488
|
-
},
|
|
9489
|
-
model: {
|
|
9490
|
-
value: _vm.mutexSelectedIds,
|
|
9491
|
-
callback: function callback($$v) {
|
|
9492
|
-
_vm.mutexSelectedIds = $$v;
|
|
9493
|
-
},
|
|
9494
|
-
expression: "mutexSelectedIds"
|
|
9495
|
-
}
|
|
9496
|
-
}, [_vm._l(_vm.currentList, function (item, index) {
|
|
9497
|
-
return [index >= 1 && item.type != _vm.currentList[index - 1].type ? _c('p', {
|
|
9498
|
-
key: index + Math.random(),
|
|
9499
|
-
staticClass: "a-checkbox-mutex-line"
|
|
9500
|
-
}) : _vm._e(), _c('a-checkbox', {
|
|
9603
|
+
}], null, false, 497750683)
|
|
9604
|
+
})] : _vm._l(_vm.currentList, function (item) {
|
|
9605
|
+
return _c('a-checkbox', {
|
|
9501
9606
|
key: item.id + Math.random(),
|
|
9502
9607
|
attrs: {
|
|
9503
|
-
"
|
|
9504
|
-
"
|
|
9608
|
+
"id": item.id,
|
|
9609
|
+
"checked": item.selected
|
|
9610
|
+
},
|
|
9611
|
+
on: {
|
|
9612
|
+
"change": _vm.selectItemsChange
|
|
9505
9613
|
}
|
|
9506
9614
|
}, [_c('span', {
|
|
9507
9615
|
staticClass: "ant-checkbox-texts"
|
|
9508
|
-
}, [_vm._v(_vm._s(item.showText))])])
|
|
9509
|
-
})], 2)
|
|
9616
|
+
}, [_vm._v(_vm._s(item.showText))])]);
|
|
9617
|
+
})], 2) : _vm._e(), !_vm.isShowTitle && !_vm.insCheckSyncUpdateList && !_vm.isAllowMultiSelect && _vm.currentList.length > 0 ? _c('a-radio-group', {
|
|
9510
9618
|
model: {
|
|
9511
9619
|
value: _vm.selectedId,
|
|
9512
9620
|
callback: function callback($$v) {
|
|
@@ -9529,7 +9637,37 @@ var render = function render() {
|
|
|
9529
9637
|
}
|
|
9530
9638
|
}
|
|
9531
9639
|
}, [_vm._v(" " + _vm._s(item.showText) + " ")]);
|
|
9532
|
-
}), 1) : _vm._e(), _vm.
|
|
9640
|
+
}), 1) : _vm._e(), _vm.isShowTitle && !_vm.insCheckSyncUpdateList && !_vm.isAllowMultiSelect && _vm.currentList.length > 0 ? [_c('a-table', {
|
|
9641
|
+
staticStyle: {
|
|
9642
|
+
"width": "100%"
|
|
9643
|
+
},
|
|
9644
|
+
attrs: {
|
|
9645
|
+
"row-key": "id",
|
|
9646
|
+
"show-header": false,
|
|
9647
|
+
"columns": _vm.columns,
|
|
9648
|
+
"customRow": _vm.customRow,
|
|
9649
|
+
"data-source": _vm.currentList,
|
|
9650
|
+
"bordered": true,
|
|
9651
|
+
"pagination": false
|
|
9652
|
+
},
|
|
9653
|
+
scopedSlots: _vm._u([{
|
|
9654
|
+
key: "select",
|
|
9655
|
+
fn: function fn(text, record, index) {
|
|
9656
|
+
return [_c('a-radio', {
|
|
9657
|
+
key: record.id + Math.random(),
|
|
9658
|
+
attrs: {
|
|
9659
|
+
"value": record.id,
|
|
9660
|
+
"checked": record.selected
|
|
9661
|
+
},
|
|
9662
|
+
nativeOn: {
|
|
9663
|
+
"~click": function click($event) {
|
|
9664
|
+
return _vm.selectItemsChange(record);
|
|
9665
|
+
}
|
|
9666
|
+
}
|
|
9667
|
+
})];
|
|
9668
|
+
}
|
|
9669
|
+
}], null, false, 2505920532)
|
|
9670
|
+
})] : _vm._e(), _vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.insCheckSyncUpdateList && !_vm.mutexSelect && _vm.isCanSearch ? _c('transition-group', {
|
|
9533
9671
|
staticClass: "list",
|
|
9534
9672
|
attrs: {
|
|
9535
9673
|
"name": "drag",
|
|
@@ -9595,43 +9733,34 @@ var render = function render() {
|
|
|
9595
9733
|
}
|
|
9596
9734
|
}
|
|
9597
9735
|
})], 1)];
|
|
9598
|
-
})], 2) : _vm._e()], 2)]) : _vm._e(), _vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect ? _c('footer',
|
|
9599
|
-
|
|
9600
|
-
|
|
9601
|
-
},
|
|
9736
|
+
})], 2) : _vm._e()], 2)]) : _vm._e(), _vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect ? _c('footer', {
|
|
9737
|
+
staticClass: "select-poper-footer"
|
|
9738
|
+
}, [_c('a-button', {
|
|
9602
9739
|
on: {
|
|
9603
9740
|
"click": _vm.handleClose
|
|
9604
9741
|
}
|
|
9605
|
-
}, [_vm._v("关闭")])], 1) : _vm._e(), _vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect ? _c('footer',
|
|
9606
|
-
|
|
9607
|
-
|
|
9608
|
-
},
|
|
9742
|
+
}, [_vm._v("关闭")])], 1) : _vm._e(), _vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect ? _c('footer', {
|
|
9743
|
+
staticClass: "select-poper-footer"
|
|
9744
|
+
}, [!_vm.mutexSelect ? _c('a-button', {
|
|
9609
9745
|
on: {
|
|
9610
9746
|
"click": _vm.allSelect
|
|
9611
9747
|
}
|
|
9612
9748
|
}, [_vm._v("全选")]) : _vm._e(), _c('a-button', {
|
|
9613
|
-
staticStyle: {
|
|
9614
|
-
"padding": "5px 13px"
|
|
9615
|
-
},
|
|
9616
9749
|
on: {
|
|
9617
9750
|
"click": _vm.cancelSelect
|
|
9618
9751
|
}
|
|
9619
9752
|
}, [_vm._v("清空")]), _c('a-button', {
|
|
9620
|
-
staticStyle: {
|
|
9621
|
-
"padding": "5px 13px"
|
|
9622
|
-
},
|
|
9623
9753
|
on: {
|
|
9624
9754
|
"click": _vm.handleClose
|
|
9625
9755
|
}
|
|
9626
9756
|
}, [_vm._v("取消")]), _c('a-button', {
|
|
9627
|
-
staticStyle: {
|
|
9628
|
-
"padding": "5px 13px"
|
|
9629
|
-
},
|
|
9630
9757
|
attrs: {
|
|
9631
9758
|
"type": "primary"
|
|
9632
9759
|
},
|
|
9633
9760
|
on: {
|
|
9634
|
-
"click":
|
|
9761
|
+
"click": function click($event) {
|
|
9762
|
+
return _vm.sureSelect();
|
|
9763
|
+
}
|
|
9635
9764
|
}
|
|
9636
9765
|
}, [_vm._v("确定")])], 1) : _vm._e(), _vm.poperType === 'datePoper' ? _c('div', {
|
|
9637
9766
|
staticClass: "date-poper",
|
|
@@ -9779,7 +9908,7 @@ var render = function render() {
|
|
|
9779
9908
|
};
|
|
9780
9909
|
var staticRenderFns = [];
|
|
9781
9910
|
|
|
9782
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9911
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=6d315cb7&
|
|
9783
9912
|
|
|
9784
9913
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9785
9914
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -9803,10 +9932,10 @@ var es_array_concat = __webpack_require__(92222);
|
|
|
9803
9932
|
var es_array_splice = __webpack_require__(40561);
|
|
9804
9933
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
9805
9934
|
var es_array_map = __webpack_require__(21249);
|
|
9806
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
9807
|
-
var es_object_keys = __webpack_require__(47941);
|
|
9808
9935
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
9809
9936
|
var es_array_join = __webpack_require__(69600);
|
|
9937
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
9938
|
+
var es_object_keys = __webpack_require__(47941);
|
|
9810
9939
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
9811
9940
|
var es_number_constructor = __webpack_require__(9653);
|
|
9812
9941
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
@@ -11791,6 +11920,25 @@ var type = __webpack_require__(41542);
|
|
|
11791
11920
|
|
|
11792
11921
|
|
|
11793
11922
|
|
|
11923
|
+
var columns = [{
|
|
11924
|
+
title: '',
|
|
11925
|
+
dataIndex: 'select',
|
|
11926
|
+
key: 'select',
|
|
11927
|
+
scopedSlots: {
|
|
11928
|
+
customRender: 'select'
|
|
11929
|
+
},
|
|
11930
|
+
width: 30
|
|
11931
|
+
}, {
|
|
11932
|
+
title: '标题',
|
|
11933
|
+
dataIndex: 'title',
|
|
11934
|
+
key: 'title',
|
|
11935
|
+
width: 150
|
|
11936
|
+
}, {
|
|
11937
|
+
title: '文本',
|
|
11938
|
+
dataIndex: 'showText',
|
|
11939
|
+
key: 'showText',
|
|
11940
|
+
width: 250
|
|
11941
|
+
}];
|
|
11794
11942
|
/* harmony default export */ var PoperSelectvue_type_script_lang_js_ = ({
|
|
11795
11943
|
name: 'PoperSelectModal',
|
|
11796
11944
|
mixins: [appendToBody/* default */.Z],
|
|
@@ -11811,7 +11959,7 @@ var type = __webpack_require__(41542);
|
|
|
11811
11959
|
required: true
|
|
11812
11960
|
}
|
|
11813
11961
|
},
|
|
11814
|
-
inject: ['getCustomProperty'],
|
|
11962
|
+
inject: ['getCustomProperty', "hoEditorProvider"],
|
|
11815
11963
|
data: function data() {
|
|
11816
11964
|
return {
|
|
11817
11965
|
moment: (moment_default()),
|
|
@@ -11858,7 +12006,15 @@ var type = __webpack_require__(41542);
|
|
|
11858
12006
|
calendarInstance: null,
|
|
11859
12007
|
calendarTimeInstance: null,
|
|
11860
12008
|
notSelectTime: false,
|
|
11861
|
-
isSelected: false
|
|
12009
|
+
isSelected: false,
|
|
12010
|
+
isShowTitle: false,
|
|
12011
|
+
// 是否显示标题
|
|
12012
|
+
columns: columns,
|
|
12013
|
+
prefix: {
|
|
12014
|
+
usePrefix: false,
|
|
12015
|
+
selectPrefix: '',
|
|
12016
|
+
unSelectPrefix: ''
|
|
12017
|
+
}
|
|
11862
12018
|
};
|
|
11863
12019
|
},
|
|
11864
12020
|
computed: {
|
|
@@ -11928,12 +12084,22 @@ var type = __webpack_require__(41542);
|
|
|
11928
12084
|
selectedString = currentPoperNode.keyValue ? currentPoperNode.keyValue.split(',') : [];
|
|
11929
12085
|
this.mutexSelect = currentPoperNode.mutexSelect;
|
|
11930
12086
|
this.isAllowMultiSelect = currentPoperNode.allowMultiSelect;
|
|
12087
|
+
this.prefix = {
|
|
12088
|
+
usePrefix: currentPoperNode.usePrefix,
|
|
12089
|
+
selectPrefix: currentPoperNode.selectPrefix,
|
|
12090
|
+
unSelectPrefix: currentPoperNode.unSelectPrefix
|
|
12091
|
+
};
|
|
11931
12092
|
} else if (currentPoperNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
11932
12093
|
selectedString = currentPoperNode.keyValue ? currentPoperNode.keyValue.split(',') : [];
|
|
11933
12094
|
this.mutexSelect = currentPoperNode.downListProperty.mutexSelect ? true : false;
|
|
11934
12095
|
this.isAllowMultiSelect = currentPoperNode.downListProperty.allowMultiSelected;
|
|
11935
12096
|
this.isMultiLinesDisplay = currentPoperNode.downListProperty.isMultiLinesDisplay == true || currentPoperNode.downListProperty.isMultiLinesDisplay == 'true' ? true : false;
|
|
11936
12097
|
this.insCheckSyncUpdateList = currentPoperNode.insCheckSyncUpdateList;
|
|
12098
|
+
this.prefix = {
|
|
12099
|
+
usePrefix: currentPoperNode.downListProperty.usePrefix,
|
|
12100
|
+
selectPrefix: currentPoperNode.downListProperty.selectPrefix,
|
|
12101
|
+
unSelectPrefix: currentPoperNode.downListProperty.unSelectPrefix
|
|
12102
|
+
};
|
|
11937
12103
|
}
|
|
11938
12104
|
(_this$poperSelectList = this.poperSelectList) === null || _this$poperSelectList === void 0 ? void 0 : _this$poperSelectList.forEach(function (v, index) {
|
|
11939
12105
|
v.id = String(v.id);
|
|
@@ -11948,7 +12114,7 @@ var type = __webpack_require__(41542);
|
|
|
11948
12114
|
} else {
|
|
11949
12115
|
v.showText = v.text;
|
|
11950
12116
|
}
|
|
11951
|
-
|
|
12117
|
+
if (v.title) _this.isShowTitle = true;
|
|
11952
12118
|
if (selectedString.length > 0 && selectedString.filter(function (m) {
|
|
11953
12119
|
return v.id == m;
|
|
11954
12120
|
}).length === 1) {
|
|
@@ -11970,7 +12136,6 @@ var type = __webpack_require__(41542);
|
|
|
11970
12136
|
this.currentListNameText = currentPoperNode.name;
|
|
11971
12137
|
if (this.poperSelectList && this.poperSelectList.length >= 20) this.isCanSearch = true;
|
|
11972
12138
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
11973
|
-
// console.log(this.currentList);
|
|
11974
12139
|
}
|
|
11975
12140
|
},
|
|
11976
12141
|
mounted: function mounted() {
|
|
@@ -12008,9 +12173,6 @@ var type = __webpack_require__(41542);
|
|
|
12008
12173
|
}
|
|
12009
12174
|
},
|
|
12010
12175
|
methods: {
|
|
12011
|
-
// datePickerChange(event) {
|
|
12012
|
-
// console.log('datePickerChange ==> ', event.target.value);
|
|
12013
|
-
// },
|
|
12014
12176
|
timeFocus: function timeFocus(event) {
|
|
12015
12177
|
if (this.calendarTimeInstance) {
|
|
12016
12178
|
this.calendarTimeInstance.removeEventListener('input', this.calendarTimeInstance);
|
|
@@ -12105,7 +12267,6 @@ var type = __webpack_require__(41542);
|
|
|
12105
12267
|
var timeStyle = format.replace(/yyyy|YYYY|MM|DD/g, '');
|
|
12106
12268
|
var defaultValue = event.target.value;
|
|
12107
12269
|
if (event.target.value.replace(/[^0-9]/g, '').length !== defaultValue.length) {
|
|
12108
|
-
console.warn("value: ".concat(defaultValue));
|
|
12109
12270
|
return;
|
|
12110
12271
|
}
|
|
12111
12272
|
if (dateStyle && timeStyle) {
|
|
@@ -12332,7 +12493,7 @@ var type = __webpack_require__(41542);
|
|
|
12332
12493
|
this.isSelected = true;
|
|
12333
12494
|
this.poperSelectList.splice(selectItemIndex, 1, item);
|
|
12334
12495
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
12335
|
-
this.sureSelect();
|
|
12496
|
+
this.sureSelect(value.input);
|
|
12336
12497
|
} else {
|
|
12337
12498
|
console.time('搜索时间');
|
|
12338
12499
|
var str = this.input;
|
|
@@ -12422,13 +12583,14 @@ var type = __webpack_require__(41542);
|
|
|
12422
12583
|
this.mutexType = '';
|
|
12423
12584
|
},
|
|
12424
12585
|
// 选中
|
|
12425
|
-
sureSelect: function sureSelect() {
|
|
12586
|
+
sureSelect: function sureSelect(isAutoInput) {
|
|
12426
12587
|
var _this11 = this;
|
|
12427
12588
|
console.time('下拉选中时间');
|
|
12428
12589
|
var text = '';
|
|
12429
12590
|
var keyValue = '';
|
|
12430
12591
|
var value = '';
|
|
12431
12592
|
var textArr = [];
|
|
12593
|
+
var prefixText = "";
|
|
12432
12594
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
12433
12595
|
var selected = this.isAllowMultiSelect && this.isCanSearch ? this.selectedList : this.poperSelectList.filter(function (v) {
|
|
12434
12596
|
return v.selected;
|
|
@@ -12442,6 +12604,21 @@ var type = __webpack_require__(41542);
|
|
|
12442
12604
|
textArr.push(text);
|
|
12443
12605
|
}
|
|
12444
12606
|
} else {
|
|
12607
|
+
if (this.prefix.usePrefix) {
|
|
12608
|
+
var selectPrefix = [];
|
|
12609
|
+
var unSelectPrefix = [];
|
|
12610
|
+
this.poperSelectList.forEach(function (v) {
|
|
12611
|
+
if (v.selected) {
|
|
12612
|
+
selectPrefix.push(v.text);
|
|
12613
|
+
} else {
|
|
12614
|
+
unSelectPrefix.push(v.text);
|
|
12615
|
+
}
|
|
12616
|
+
});
|
|
12617
|
+
prefixText = this.prefix.selectPrefix + selectPrefix.join('、');
|
|
12618
|
+
if (prefixText && unSelectPrefix.length > 0) {
|
|
12619
|
+
prefixText += ',' + this.prefix.unSelectPrefix + unSelectPrefix.join('、');
|
|
12620
|
+
}
|
|
12621
|
+
}
|
|
12445
12622
|
selected.forEach(function (v, index) {
|
|
12446
12623
|
if (index < selected.length - 1) {
|
|
12447
12624
|
if (currentPoperNode.customProperty && currentPoperNode.customProperty.hasThirdData && v.value) {
|
|
@@ -12471,22 +12648,28 @@ var type = __webpack_require__(41542);
|
|
|
12471
12648
|
}
|
|
12472
12649
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
12473
12650
|
if (currentPoperNode instanceof DownListNode/* DownListNode */.yF) {
|
|
12474
|
-
|
|
12651
|
+
if (prefixText) {
|
|
12652
|
+
// 设置前缀时回填文本内容
|
|
12653
|
+
text = prefixText;
|
|
12654
|
+
}
|
|
12475
12655
|
var params = {
|
|
12476
|
-
id:
|
|
12477
|
-
name:
|
|
12656
|
+
id: currentPoperNode.id,
|
|
12657
|
+
name: currentPoperNode.name,
|
|
12478
12658
|
text: text,
|
|
12479
12659
|
keyValue: keyValue,
|
|
12480
12660
|
title: '下拉选择框',
|
|
12481
|
-
tipText:
|
|
12482
|
-
isAllowDelete:
|
|
12483
|
-
isReadOnly:
|
|
12484
|
-
allowMultiSelect:
|
|
12485
|
-
innerIdentifier:
|
|
12486
|
-
dataMetaIdentifier:
|
|
12487
|
-
identifierFormat:
|
|
12488
|
-
readType:
|
|
12489
|
-
mutexSelect:
|
|
12661
|
+
tipText: currentPoperNode.tipText,
|
|
12662
|
+
isAllowDelete: currentPoperNode.isAllowDelete,
|
|
12663
|
+
isReadOnly: currentPoperNode.isReadOnly,
|
|
12664
|
+
allowMultiSelect: currentPoperNode.allowMultiSelect,
|
|
12665
|
+
innerIdentifier: currentPoperNode.innerIdentifier,
|
|
12666
|
+
dataMetaIdentifier: currentPoperNode.dataMetaIdentifier,
|
|
12667
|
+
identifierFormat: currentPoperNode.identifierFormat,
|
|
12668
|
+
readType: currentPoperNode.readType,
|
|
12669
|
+
mutexSelect: currentPoperNode.mutexSelect,
|
|
12670
|
+
usePrefix: currentPoperNode.usePrefix,
|
|
12671
|
+
selectPrefix: currentPoperNode.selectPrefix,
|
|
12672
|
+
unSelectPrefix: currentPoperNode.unSelectPrefix,
|
|
12490
12673
|
value: value
|
|
12491
12674
|
};
|
|
12492
12675
|
hoEditorFactory.vueController.updateDownList(params, this.poperSelectList);
|
|
@@ -12498,6 +12681,14 @@ var type = __webpack_require__(41542);
|
|
|
12498
12681
|
if (text == this.textParam.name) {
|
|
12499
12682
|
text = '';
|
|
12500
12683
|
}
|
|
12684
|
+
if (isAutoInput) {
|
|
12685
|
+
// 支持输入情况下,清空选项内容,默认显示以文本域名称
|
|
12686
|
+
text = '';
|
|
12687
|
+
}
|
|
12688
|
+
if (prefixText) {
|
|
12689
|
+
// 设置前缀时回填文本内容
|
|
12690
|
+
text = prefixText;
|
|
12691
|
+
}
|
|
12501
12692
|
this.textParam.text = text;
|
|
12502
12693
|
this.textParam.keyValue = keyValue;
|
|
12503
12694
|
this.textParam.value = value;
|
|
@@ -12514,15 +12705,15 @@ var type = __webpack_require__(41542);
|
|
|
12514
12705
|
console.timeEnd('下拉选中时间');
|
|
12515
12706
|
// 元素联动内容延时关闭下拉选项,防止双击把光标移动到联动元素外
|
|
12516
12707
|
if (selected.length === 1 && selected[0].text.indexOf('<元素>') !== -1) {
|
|
12517
|
-
|
|
12708
|
+
this.$nextTick(function () {
|
|
12518
12709
|
_this11.handleClose();
|
|
12519
|
-
},
|
|
12710
|
+
}, 100);
|
|
12520
12711
|
} else {
|
|
12521
12712
|
this.handleClose();
|
|
12522
12713
|
}
|
|
12523
12714
|
},
|
|
12524
12715
|
shuffle: function shuffle() {
|
|
12525
|
-
// this.selectedList =
|
|
12716
|
+
// this.selectedList = [];
|
|
12526
12717
|
},
|
|
12527
12718
|
dragstart: function dragstart(index) {
|
|
12528
12719
|
this.dragIndex = index;
|
|
@@ -12554,17 +12745,27 @@ var type = __webpack_require__(41542);
|
|
|
12554
12745
|
(_document$querySelect2 = document.querySelector('.ho-editor-list')) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.removeEventListener('scroll', this.listenScroller, true);
|
|
12555
12746
|
window.removeEventListener('keydown', this.arrowKeysController);
|
|
12556
12747
|
},
|
|
12557
|
-
|
|
12558
|
-
this
|
|
12748
|
+
customRow: function customRow(record, index) {
|
|
12749
|
+
var _this12 = this;
|
|
12750
|
+
return {
|
|
12751
|
+
on: {
|
|
12752
|
+
click: function click(event) {
|
|
12753
|
+
_this12.selectItemsChange(record);
|
|
12754
|
+
}
|
|
12755
|
+
}
|
|
12756
|
+
};
|
|
12559
12757
|
}
|
|
12758
|
+
},
|
|
12759
|
+
beforeDestroy: function beforeDestroy() {
|
|
12760
|
+
this.removeListerner();
|
|
12560
12761
|
}
|
|
12561
12762
|
});
|
|
12562
12763
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12563
12764
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12564
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12765
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6d315cb7&prod&lang=less&
|
|
12565
12766
|
// extracted by mini-css-extract-plugin
|
|
12566
12767
|
|
|
12567
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12768
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=6d315cb7&prod&lang=less&
|
|
12568
12769
|
|
|
12569
12770
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12570
12771
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -13533,7 +13734,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13533
13734
|
|
|
13534
13735
|
/***/ }),
|
|
13535
13736
|
|
|
13536
|
-
/***/
|
|
13737
|
+
/***/ 16616:
|
|
13537
13738
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13538
13739
|
|
|
13539
13740
|
"use strict";
|
|
@@ -13547,7 +13748,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13547
13748
|
|
|
13548
13749
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13549
13750
|
var es_function_name = __webpack_require__(68309);
|
|
13550
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13751
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=0a08010d&
|
|
13551
13752
|
|
|
13552
13753
|
var render = function render() {
|
|
13553
13754
|
var _vm = this,
|
|
@@ -14282,7 +14483,7 @@ var render = function render() {
|
|
|
14282
14483
|
};
|
|
14283
14484
|
var staticRenderFns = [];
|
|
14284
14485
|
|
|
14285
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14486
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=0a08010d&
|
|
14286
14487
|
|
|
14287
14488
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14288
14489
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -14593,10 +14794,10 @@ var defaultBox = {
|
|
|
14593
14794
|
});
|
|
14594
14795
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14595
14796
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14596
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14797
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=0a08010d&prod&lang=less&
|
|
14597
14798
|
// extracted by mini-css-extract-plugin
|
|
14598
14799
|
|
|
14599
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14800
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=0a08010d&prod&lang=less&
|
|
14600
14801
|
|
|
14601
14802
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14602
14803
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -14624,7 +14825,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14624
14825
|
|
|
14625
14826
|
/***/ }),
|
|
14626
14827
|
|
|
14627
|
-
/***/
|
|
14828
|
+
/***/ 32497:
|
|
14628
14829
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14629
14830
|
|
|
14630
14831
|
"use strict";
|
|
@@ -14642,7 +14843,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
14642
14843
|
var es_array_includes = __webpack_require__(26699);
|
|
14643
14844
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
14644
14845
|
var es_string_includes = __webpack_require__(32023);
|
|
14645
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
14846
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=d2560b58&
|
|
14646
14847
|
|
|
14647
14848
|
|
|
14648
14849
|
|
|
@@ -14832,6 +15033,57 @@ var render = function render() {
|
|
|
14832
15033
|
}
|
|
14833
15034
|
}, [_vm._v("自动回填")])], 1)]), _c('li', {
|
|
14834
15035
|
staticClass: "control-item"
|
|
15036
|
+
}, [_c('span', {
|
|
15037
|
+
staticClass: "label"
|
|
15038
|
+
}, [_vm._v("设置前缀字符文本")]), _c('a-checkbox', {
|
|
15039
|
+
attrs: {
|
|
15040
|
+
"disabled": !_vm.allowMultiSelect,
|
|
15041
|
+
"size": "small"
|
|
15042
|
+
},
|
|
15043
|
+
model: {
|
|
15044
|
+
value: _vm.usePrefix,
|
|
15045
|
+
callback: function callback($$v) {
|
|
15046
|
+
_vm.usePrefix = $$v;
|
|
15047
|
+
},
|
|
15048
|
+
expression: "usePrefix"
|
|
15049
|
+
}
|
|
15050
|
+
}, [_vm._v("启用")])], 1), _c('li', {
|
|
15051
|
+
staticClass: "control-item"
|
|
15052
|
+
}, [_c('span', {
|
|
15053
|
+
staticClass: "label"
|
|
15054
|
+
}, [_vm._v("选中项前缀字符文本")]), _c('a-input', {
|
|
15055
|
+
attrs: {
|
|
15056
|
+
"size": "small",
|
|
15057
|
+
"disabled": !_vm.usePrefix,
|
|
15058
|
+
"placeholder": "选中项前缀字符文本"
|
|
15059
|
+
},
|
|
15060
|
+
model: {
|
|
15061
|
+
value: _vm.selectPrefix,
|
|
15062
|
+
callback: function callback($$v) {
|
|
15063
|
+
_vm.selectPrefix = $$v;
|
|
15064
|
+
},
|
|
15065
|
+
expression: "selectPrefix"
|
|
15066
|
+
}
|
|
15067
|
+
}), _c('span', {
|
|
15068
|
+
staticClass: "label",
|
|
15069
|
+
staticStyle: {
|
|
15070
|
+
"margin-left": "20px"
|
|
15071
|
+
}
|
|
15072
|
+
}, [_vm._v("未选中前缀字符文本")]), _c('a-input', {
|
|
15073
|
+
attrs: {
|
|
15074
|
+
"size": "small",
|
|
15075
|
+
"disabled": !_vm.usePrefix,
|
|
15076
|
+
"placeholder": "未选中前缀字符文本"
|
|
15077
|
+
},
|
|
15078
|
+
model: {
|
|
15079
|
+
value: _vm.unSelectPrefix,
|
|
15080
|
+
callback: function callback($$v) {
|
|
15081
|
+
_vm.unSelectPrefix = $$v;
|
|
15082
|
+
},
|
|
15083
|
+
expression: "unSelectPrefix"
|
|
15084
|
+
}
|
|
15085
|
+
})], 1), _c('li', {
|
|
15086
|
+
staticClass: "control-item"
|
|
14835
15087
|
}, [_c('a-table', {
|
|
14836
15088
|
staticStyle: {
|
|
14837
15089
|
"width": "100%",
|
|
@@ -15034,7 +15286,7 @@ var render = function render() {
|
|
|
15034
15286
|
};
|
|
15035
15287
|
var staticRenderFns = [];
|
|
15036
15288
|
|
|
15037
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=
|
|
15289
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=d2560b58&
|
|
15038
15290
|
|
|
15039
15291
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
15040
15292
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -15118,6 +15370,9 @@ var type = __webpack_require__(41542);
|
|
|
15118
15370
|
errorIndex: [],
|
|
15119
15371
|
animationClassNames: 'control-modal-contents select-modal animation-in',
|
|
15120
15372
|
tableInfo: null,
|
|
15373
|
+
usePrefix: false,
|
|
15374
|
+
selectPrefix: '有',
|
|
15375
|
+
unSelectPrefix: '无',
|
|
15121
15376
|
modifyProps: {},
|
|
15122
15377
|
unwatchProps: [],
|
|
15123
15378
|
watchProps: ['name', 'tipText', 'isReadOnly', 'mutexSelect', 'allowMultiSelect', 'isAllowDelete', 'innerIdentifier', 'dataMetaIdentifier', 'identifierFormat', 'readType'
|
|
@@ -15182,6 +15437,9 @@ var type = __webpack_require__(41542);
|
|
|
15182
15437
|
property[key] = _this.customPropertys[key];
|
|
15183
15438
|
});
|
|
15184
15439
|
this.customPropertyValue = (0,objectSpread2/* default */.Z)({}, property);
|
|
15440
|
+
this.usePrefix = updateNode.usePrefix;
|
|
15441
|
+
this.selectPrefix = updateNode.selectPrefix || '有';
|
|
15442
|
+
this.unSelectPrefix = updateNode.unSelectPrefix || '无';
|
|
15185
15443
|
this.setWatchProps();
|
|
15186
15444
|
} else {
|
|
15187
15445
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
@@ -15405,6 +15663,9 @@ var type = __webpack_require__(41542);
|
|
|
15405
15663
|
identifierFormat: this.identifierFormat,
|
|
15406
15664
|
readType: this.readType ? 1 : 0,
|
|
15407
15665
|
mutexSelect: this.mutexSelect,
|
|
15666
|
+
usePrefix: this.usePrefix,
|
|
15667
|
+
selectPrefix: this.selectPrefix,
|
|
15668
|
+
unSelectPrefix: this.unSelectPrefix,
|
|
15408
15669
|
customProperty: this.customProperty
|
|
15409
15670
|
};
|
|
15410
15671
|
if (this.controlStatus === 'add') {
|
|
@@ -15434,10 +15695,10 @@ var type = __webpack_require__(41542);
|
|
|
15434
15695
|
});
|
|
15435
15696
|
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=script&lang=js&
|
|
15436
15697
|
/* harmony default export */ var selectDialog_SelectDialogvue_type_script_lang_js_ = (SelectDialogvue_type_script_lang_js_);
|
|
15437
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
15698
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=d2560b58&prod&lang=less&
|
|
15438
15699
|
// extracted by mini-css-extract-plugin
|
|
15439
15700
|
|
|
15440
|
-
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=
|
|
15701
|
+
;// CONCATENATED MODULE: ./src/components/controls/selectDialog/SelectDialog.vue?vue&type=style&index=0&id=d2560b58&prod&lang=less&
|
|
15441
15702
|
|
|
15442
15703
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
15443
15704
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -21132,7 +21393,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
21132
21393
|
|
|
21133
21394
|
/***/ }),
|
|
21134
21395
|
|
|
21135
|
-
/***/
|
|
21396
|
+
/***/ 69812:
|
|
21136
21397
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
21137
21398
|
|
|
21138
21399
|
"use strict";
|
|
@@ -21146,7 +21407,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
21146
21407
|
|
|
21147
21408
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
21148
21409
|
var es_function_name = __webpack_require__(68309);
|
|
21149
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
21410
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=1c1bca2d&
|
|
21150
21411
|
|
|
21151
21412
|
var render = function render() {
|
|
21152
21413
|
var _vm = this,
|
|
@@ -21284,6 +21545,7 @@ var render = function render() {
|
|
|
21284
21545
|
staticClass: "label"
|
|
21285
21546
|
}, [_vm._v("文本内容")]), _c('a-input', {
|
|
21286
21547
|
attrs: {
|
|
21548
|
+
"type": "textarea",
|
|
21287
21549
|
"size": "small",
|
|
21288
21550
|
"disabled": _vm.controlStatus === 'update',
|
|
21289
21551
|
"placeholder": "文本内容"
|
|
@@ -21418,7 +21680,57 @@ var render = function render() {
|
|
|
21418
21680
|
attrs: {
|
|
21419
21681
|
"value": ""
|
|
21420
21682
|
}
|
|
21421
|
-
}, [_vm._v("无连接符")])], 1)], 1)], 1) : _vm._e(), _c('li', {
|
|
21683
|
+
}, [_vm._v("无连接符")])], 1)], 1)], 1) : _vm._e(), _vm.textParam.inputFieldType === 1 ? [_c('li', {
|
|
21684
|
+
staticClass: "control-item"
|
|
21685
|
+
}, [_c('span', {
|
|
21686
|
+
staticClass: "label"
|
|
21687
|
+
}, [_vm._v("设置前缀字符文本")]), _c('a-checkbox', {
|
|
21688
|
+
attrs: {
|
|
21689
|
+
"disabled": !_vm.textParam.downListProperty.allowMultiSelected,
|
|
21690
|
+
"size": "small"
|
|
21691
|
+
},
|
|
21692
|
+
model: {
|
|
21693
|
+
value: _vm.textParam.downListProperty.usePrefix,
|
|
21694
|
+
callback: function callback($$v) {
|
|
21695
|
+
_vm.$set(_vm.textParam.downListProperty, "usePrefix", $$v);
|
|
21696
|
+
},
|
|
21697
|
+
expression: "textParam.downListProperty.usePrefix"
|
|
21698
|
+
}
|
|
21699
|
+
}, [_vm._v("启用")])], 1), _c('li', {
|
|
21700
|
+
staticClass: "control-item"
|
|
21701
|
+
}, [_c('span', {
|
|
21702
|
+
staticClass: "label"
|
|
21703
|
+
}, [_vm._v("选中项前缀字符文本")]), _c('a-input', {
|
|
21704
|
+
attrs: {
|
|
21705
|
+
"size": "small",
|
|
21706
|
+
"disabled": !_vm.textParam.downListProperty.allowMultiSelected || !_vm.textParam.downListProperty.usePrefix,
|
|
21707
|
+
"placeholder": "选中项前缀字符文本"
|
|
21708
|
+
},
|
|
21709
|
+
model: {
|
|
21710
|
+
value: _vm.textParam.downListProperty.selectPrefix,
|
|
21711
|
+
callback: function callback($$v) {
|
|
21712
|
+
_vm.$set(_vm.textParam.downListProperty, "selectPrefix", $$v);
|
|
21713
|
+
},
|
|
21714
|
+
expression: "textParam.downListProperty.selectPrefix"
|
|
21715
|
+
}
|
|
21716
|
+
})], 1), _c('li', {
|
|
21717
|
+
staticClass: "control-item"
|
|
21718
|
+
}, [_c('span', {
|
|
21719
|
+
staticClass: "label"
|
|
21720
|
+
}, [_vm._v("未选中前缀字符文本")]), _c('a-input', {
|
|
21721
|
+
attrs: {
|
|
21722
|
+
"size": "small",
|
|
21723
|
+
"disabled": !_vm.textParam.downListProperty.allowMultiSelected || !_vm.textParam.downListProperty.usePrefix,
|
|
21724
|
+
"placeholder": "未选中前缀字符文本"
|
|
21725
|
+
},
|
|
21726
|
+
model: {
|
|
21727
|
+
value: _vm.textParam.downListProperty.unSelectPrefix,
|
|
21728
|
+
callback: function callback($$v) {
|
|
21729
|
+
_vm.$set(_vm.textParam.downListProperty, "unSelectPrefix", $$v);
|
|
21730
|
+
},
|
|
21731
|
+
expression: "textParam.downListProperty.unSelectPrefix"
|
|
21732
|
+
}
|
|
21733
|
+
})], 1)] : _vm._e(), _c('li', {
|
|
21422
21734
|
staticClass: "line"
|
|
21423
21735
|
}), _c('li', {
|
|
21424
21736
|
staticClass: "control-item"
|
|
@@ -21569,7 +21881,7 @@ var render = function render() {
|
|
|
21569
21881
|
},
|
|
21570
21882
|
expression: "textParam.notReplaceElement"
|
|
21571
21883
|
}
|
|
21572
|
-
}, [_vm._v("不启用元素引用")])], 1)])]), _c('a-tab-pane', {
|
|
21884
|
+
}, [_vm._v("不启用元素引用")])], 1)], 2)]), _c('a-tab-pane', {
|
|
21573
21885
|
key: "third",
|
|
21574
21886
|
attrs: {
|
|
21575
21887
|
"tab": "其他属性"
|
|
@@ -21626,8 +21938,12 @@ var render = function render() {
|
|
|
21626
21938
|
};
|
|
21627
21939
|
var staticRenderFns = [];
|
|
21628
21940
|
|
|
21629
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
21941
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=1c1bca2d&
|
|
21630
21942
|
|
|
21943
|
+
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
21944
|
+
var style = __webpack_require__(94310);
|
|
21945
|
+
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
|
|
21946
|
+
var message = __webpack_require__(40735);
|
|
21631
21947
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
21632
21948
|
var toConsumableArray = __webpack_require__(61748);
|
|
21633
21949
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
@@ -21673,7 +21989,7 @@ var MarkNode = __webpack_require__(57727);
|
|
|
21673
21989
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
21674
21990
|
var HOEditorFactorys = __webpack_require__(74089);
|
|
21675
21991
|
// EXTERNAL MODULE: ./src/components/controls/textDialog/VerifyTip.vue + 5 modules
|
|
21676
|
-
var VerifyTip = __webpack_require__(
|
|
21992
|
+
var VerifyTip = __webpack_require__(74618);
|
|
21677
21993
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
21678
21994
|
|
|
21679
21995
|
|
|
@@ -21696,6 +22012,8 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21696
22012
|
|
|
21697
22013
|
|
|
21698
22014
|
|
|
22015
|
+
|
|
22016
|
+
|
|
21699
22017
|
|
|
21700
22018
|
|
|
21701
22019
|
|
|
@@ -21720,12 +22038,9 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21720
22038
|
verifyAreaList: [],
|
|
21721
22039
|
modifyProps: {},
|
|
21722
22040
|
unwatchProps: [],
|
|
21723
|
-
watchProps: ['labelText', 'name', 'tipText', 'fixedWidth', 'isCentered', 'canModifyContent', 'includesKeyword', 'valueArea', 'isAllowDelete', 'enableGlobalColor', 'alignWithBlocked', 'innerIdentifier', 'dataMetaIdentifier', 'identifierFormat', 'readTypeBool', 'keyValue', 'value', 'hideDuringPrint', 'notReplaceElement', 'insCheckSyncUpdateList'
|
|
21724
|
-
// 'downListProperty', 'customProperty'
|
|
21725
|
-
]
|
|
22041
|
+
watchProps: ['labelText', 'name', 'tipText', 'fixedWidth', 'isCentered', 'canModifyContent', 'includesKeyword', 'valueArea', 'isAllowDelete', 'enableGlobalColor', 'alignWithBlocked', 'innerIdentifier', 'dataMetaIdentifier', 'identifierFormat', 'readTypeBool', 'keyValue', 'value', 'hideDuringPrint', 'notReplaceElement', 'insCheckSyncUpdateList']
|
|
21726
22042
|
};
|
|
21727
22043
|
},
|
|
21728
|
-
|
|
21729
22044
|
props: {
|
|
21730
22045
|
hoEditorFactoryId: {
|
|
21731
22046
|
default: ''
|
|
@@ -21738,19 +22053,7 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21738
22053
|
}
|
|
21739
22054
|
},
|
|
21740
22055
|
inject: ['hoEditorProvider', 'getCustomProperty'],
|
|
21741
|
-
watch: {
|
|
21742
|
-
// 'hoEditorProvider.isVerifyTip': {
|
|
21743
|
-
// deep: true,
|
|
21744
|
-
// handler() {
|
|
21745
|
-
// console.log(this.hoEditorProvider.verifyKewordList);
|
|
21746
|
-
// console.log(this.hoEditorProvider.verifyAreaList)
|
|
21747
|
-
// },
|
|
21748
|
-
// },
|
|
21749
|
-
},
|
|
21750
22056
|
computed: {
|
|
21751
|
-
// dataSource() {
|
|
21752
|
-
// return this.hoEditorProvider.getVerifyTipList();
|
|
21753
|
-
// },
|
|
21754
22057
|
customsValue: function customsValue() {
|
|
21755
22058
|
return this.hoEditorProvider.getCustomsValue().filter(function (v) {
|
|
21756
22059
|
if (v.text || v.value) return v;
|
|
@@ -21758,9 +22061,7 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21758
22061
|
},
|
|
21759
22062
|
listArrSource: function listArrSource() {
|
|
21760
22063
|
return this.hoEditorProvider.getListArrSource();
|
|
21761
|
-
}
|
|
21762
|
-
// return this.getCustomProperty();
|
|
21763
|
-
// },
|
|
22064
|
+
}
|
|
21764
22065
|
},
|
|
21765
22066
|
created: function created() {
|
|
21766
22067
|
var _this = this;
|
|
@@ -21855,7 +22156,11 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21855
22156
|
return value;
|
|
21856
22157
|
},
|
|
21857
22158
|
allowMultiSelectChange: function allowMultiSelectChange() {
|
|
21858
|
-
if (!this.textParam.downListProperty.allowMultiSelected)
|
|
22159
|
+
if (!this.textParam.downListProperty.allowMultiSelected) {
|
|
22160
|
+
this.textParam.downListProperty.mutexSelect = false;
|
|
22161
|
+
this.textParam.downListProperty.usePrefix = false;
|
|
22162
|
+
}
|
|
22163
|
+
this.hoEditorProvider.setListAllowMultiSelected(this.textParam.downListProperty.allowMultiSelected);
|
|
21859
22164
|
},
|
|
21860
22165
|
openListArrModel: function openListArrModel() {
|
|
21861
22166
|
this.hoEditorProvider.setListAllowMultiSelected(this.textParam.downListProperty.allowMultiSelected);
|
|
@@ -21865,17 +22170,6 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21865
22170
|
this.hoEditorProvider.setVerifyTipList('', key, '');
|
|
21866
22171
|
this.hoEditorProvider.setIsVerifyTip(true);
|
|
21867
22172
|
},
|
|
21868
|
-
/**
|
|
21869
|
-
* 最小长度变化
|
|
21870
|
-
*/
|
|
21871
|
-
minLengthChange: function minLengthChange(minLength) {},
|
|
21872
|
-
/**
|
|
21873
|
-
* 最大长度变化
|
|
21874
|
-
*/
|
|
21875
|
-
maxLengthChange: function maxLengthChange(maxLength) {},
|
|
21876
|
-
// openDataSourceModal() {
|
|
21877
|
-
// this.hoEditorProvider.setIsDataSource(true);
|
|
21878
|
-
// },
|
|
21879
22173
|
openCustomsModal: function openCustomsModal() {
|
|
21880
22174
|
this.hoEditorProvider.setIsCustoms(true);
|
|
21881
22175
|
},
|
|
@@ -21890,15 +22184,19 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21890
22184
|
sure: function sure() {
|
|
21891
22185
|
var _this3 = this;
|
|
21892
22186
|
if (this.textParam.inputFieldType === 1) {
|
|
22187
|
+
if (this.textParam.downListProperty.usePrefix) {
|
|
22188
|
+
if (this.textParam.downListProperty.selectPrefix == '' || this.textParam.downListProperty.unSelectPrefix == '') {
|
|
22189
|
+
message/* default */.Z.destroy();
|
|
22190
|
+
message/* default */.Z.error('启用前缀字符时,选中项前缀字符和未选中项前缀字符不能为空');
|
|
22191
|
+
return;
|
|
22192
|
+
}
|
|
22193
|
+
}
|
|
21893
22194
|
this.textParam.downListProperty.source = this.listArrSource;
|
|
21894
22195
|
var arr = this.hoEditorProvider.getListStyle();
|
|
21895
22196
|
arr = arr.map(function (v) {
|
|
21896
22197
|
v.text = v.text.replace('\r', '').replace('\n', '');
|
|
21897
22198
|
return v;
|
|
21898
22199
|
});
|
|
21899
|
-
// if(this.textParam.downListProperty.listItems == JSON.stringify(arr)) {
|
|
21900
|
-
// this.modifyProps['labelText'] = this.textParam.labelText;
|
|
21901
|
-
// }
|
|
21902
22200
|
this.textParam.downListProperty.listItems = JSON.stringify(arr);
|
|
21903
22201
|
var textArr = [];
|
|
21904
22202
|
this.hoEditorProvider.getListStyle().forEach(function (v) {
|
|
@@ -21961,10 +22259,10 @@ var VerifyTip = __webpack_require__(82633);
|
|
|
21961
22259
|
});
|
|
21962
22260
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
21963
22261
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
|
|
21964
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
22262
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=1c1bca2d&prod&lang=less&
|
|
21965
22263
|
// extracted by mini-css-extract-plugin
|
|
21966
22264
|
|
|
21967
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
22265
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=1c1bca2d&prod&lang=less&
|
|
21968
22266
|
|
|
21969
22267
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
21970
22268
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -22275,7 +22573,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22275
22573
|
|
|
22276
22574
|
/***/ }),
|
|
22277
22575
|
|
|
22278
|
-
/***/
|
|
22576
|
+
/***/ 74618:
|
|
22279
22577
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22280
22578
|
|
|
22281
22579
|
"use strict";
|
|
@@ -22287,7 +22585,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22287
22585
|
"default": function() { return /* binding */ VerifyTip; }
|
|
22288
22586
|
});
|
|
22289
22587
|
|
|
22290
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/VerifyTip.vue?vue&type=template&id=
|
|
22588
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/VerifyTip.vue?vue&type=template&id=526b62eb&scoped=true&
|
|
22291
22589
|
var render = function render() {
|
|
22292
22590
|
var _vm = this,
|
|
22293
22591
|
_c = _vm._self._c;
|
|
@@ -22479,7 +22777,7 @@ var render = function render() {
|
|
|
22479
22777
|
}, {
|
|
22480
22778
|
key: "opt",
|
|
22481
22779
|
fn: function fn(text, record, index) {
|
|
22482
|
-
return [index !== _vm.
|
|
22780
|
+
return [index !== _vm.verifyAreaList.length - 1 ? _c('a-button', {
|
|
22483
22781
|
attrs: {
|
|
22484
22782
|
"size": "small"
|
|
22485
22783
|
},
|
|
@@ -22773,10 +23071,10 @@ var areaColumns = [{
|
|
|
22773
23071
|
});
|
|
22774
23072
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/VerifyTip.vue?vue&type=script&lang=js&
|
|
22775
23073
|
/* harmony default export */ var textDialog_VerifyTipvue_type_script_lang_js_ = (VerifyTipvue_type_script_lang_js_);
|
|
22776
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/VerifyTip.vue?vue&type=style&index=0&id=
|
|
23074
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/VerifyTip.vue?vue&type=style&index=0&id=526b62eb&prod&lang=less&scoped=true&
|
|
22777
23075
|
// extracted by mini-css-extract-plugin
|
|
22778
23076
|
|
|
22779
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/VerifyTip.vue?vue&type=style&index=0&id=
|
|
23077
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/VerifyTip.vue?vue&type=style&index=0&id=526b62eb&prod&lang=less&scoped=true&
|
|
22780
23078
|
|
|
22781
23079
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
22782
23080
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -22795,7 +23093,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22795
23093
|
staticRenderFns,
|
|
22796
23094
|
false,
|
|
22797
23095
|
null,
|
|
22798
|
-
"
|
|
23096
|
+
"526b62eb",
|
|
22799
23097
|
null
|
|
22800
23098
|
|
|
22801
23099
|
)
|
|
@@ -24407,7 +24705,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
24407
24705
|
|
|
24408
24706
|
/***/ }),
|
|
24409
24707
|
|
|
24410
|
-
/***/
|
|
24708
|
+
/***/ 12625:
|
|
24411
24709
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
24412
24710
|
|
|
24413
24711
|
"use strict";
|
|
@@ -24421,7 +24719,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
24421
24719
|
|
|
24422
24720
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
24423
24721
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
24424
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
24722
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=208f3ae6&
|
|
24425
24723
|
|
|
24426
24724
|
var render = function render() {
|
|
24427
24725
|
var _vm = this,
|
|
@@ -24446,6 +24744,66 @@ var render = function render() {
|
|
|
24446
24744
|
staticClass: "control-item"
|
|
24447
24745
|
}, [_c('span', {
|
|
24448
24746
|
staticClass: "label"
|
|
24747
|
+
}, [_vm._v("设置图片占位回填")]), _c('a-checkbox', {
|
|
24748
|
+
attrs: {
|
|
24749
|
+
"size": "small"
|
|
24750
|
+
},
|
|
24751
|
+
model: {
|
|
24752
|
+
value: _vm.isBackFill,
|
|
24753
|
+
callback: function callback($$v) {
|
|
24754
|
+
_vm.isBackFill = $$v;
|
|
24755
|
+
},
|
|
24756
|
+
expression: "isBackFill"
|
|
24757
|
+
}
|
|
24758
|
+
})], 1), _c('li', {
|
|
24759
|
+
staticClass: "control-item"
|
|
24760
|
+
}, [_c('span', {
|
|
24761
|
+
staticClass: "label"
|
|
24762
|
+
}, [_vm._v("内部标识符")]), _c('a-input', {
|
|
24763
|
+
attrs: {
|
|
24764
|
+
"placeholder": "内部标识符"
|
|
24765
|
+
},
|
|
24766
|
+
model: {
|
|
24767
|
+
value: _vm.innerIdentifier,
|
|
24768
|
+
callback: function callback($$v) {
|
|
24769
|
+
_vm.innerIdentifier = $$v;
|
|
24770
|
+
},
|
|
24771
|
+
expression: "innerIdentifier"
|
|
24772
|
+
}
|
|
24773
|
+
})], 1), _vm.isBackFill ? [_c('li', {
|
|
24774
|
+
staticClass: "control-item"
|
|
24775
|
+
}, [_c('span', {
|
|
24776
|
+
staticClass: "label"
|
|
24777
|
+
}, [_vm._v("图片宽度")]), _c('a-input', {
|
|
24778
|
+
attrs: {
|
|
24779
|
+
"placeholder": "设置回填的图片宽度"
|
|
24780
|
+
},
|
|
24781
|
+
model: {
|
|
24782
|
+
value: _vm.backFillWidth,
|
|
24783
|
+
callback: function callback($$v) {
|
|
24784
|
+
_vm.backFillWidth = $$v;
|
|
24785
|
+
},
|
|
24786
|
+
expression: "backFillWidth"
|
|
24787
|
+
}
|
|
24788
|
+
})], 1), _c('li', {
|
|
24789
|
+
staticClass: "control-item"
|
|
24790
|
+
}, [_c('span', {
|
|
24791
|
+
staticClass: "label"
|
|
24792
|
+
}, [_vm._v("图片高度")]), _c('a-input', {
|
|
24793
|
+
attrs: {
|
|
24794
|
+
"placeholder": "设置回填的图片高度"
|
|
24795
|
+
},
|
|
24796
|
+
model: {
|
|
24797
|
+
value: _vm.backFillHeight,
|
|
24798
|
+
callback: function callback($$v) {
|
|
24799
|
+
_vm.backFillHeight = $$v;
|
|
24800
|
+
},
|
|
24801
|
+
expression: "backFillHeight"
|
|
24802
|
+
}
|
|
24803
|
+
})], 1)] : [_c('li', {
|
|
24804
|
+
staticClass: "control-item"
|
|
24805
|
+
}, [_c('span', {
|
|
24806
|
+
staticClass: "label"
|
|
24449
24807
|
}, [_vm._v("上传图片")]), _c('a-upload', {
|
|
24450
24808
|
ref: "upload",
|
|
24451
24809
|
staticClass: "upload-image",
|
|
@@ -24572,7 +24930,7 @@ var render = function render() {
|
|
|
24572
24930
|
"color": "#f00",
|
|
24573
24931
|
"user-select": "text"
|
|
24574
24932
|
}
|
|
24575
|
-
}, [_vm._v("病历正文内容最大宽度:" + _vm._s(_vm.mainBounds.width))]) : _vm._e(), _vm.height > _vm.mainBounds.height ? _c('li', {
|
|
24933
|
+
}, [_vm._v(" 病历正文内容最大宽度:" + _vm._s(_vm.mainBounds.width) + " ")]) : _vm._e(), _vm.height > _vm.mainBounds.height ? _c('li', {
|
|
24576
24934
|
staticStyle: {
|
|
24577
24935
|
"text-align": "left",
|
|
24578
24936
|
"padding": "0 0 0 10px",
|
|
@@ -24580,7 +24938,7 @@ var render = function render() {
|
|
|
24580
24938
|
"color": "#f00",
|
|
24581
24939
|
"user-select": "text"
|
|
24582
24940
|
}
|
|
24583
|
-
}, [_vm._v("病历正文内容最大高度:" + _vm._s(_vm.mainBounds.height))]) : _vm._e()] : _vm._e(), _c('fieldset', {
|
|
24941
|
+
}, [_vm._v(" 病历正文内容最大高度:" + _vm._s(_vm.mainBounds.height) + " ")]) : _vm._e()] : _vm._e(), _c('fieldset', {
|
|
24584
24942
|
staticClass: "fieldset"
|
|
24585
24943
|
}, [_c('legend', [_vm._v("预 览")]), _c('div', {
|
|
24586
24944
|
staticClass: "view-image"
|
|
@@ -24590,9 +24948,9 @@ var render = function render() {
|
|
|
24590
24948
|
"width": this.width,
|
|
24591
24949
|
"src": _vm.imageUrl
|
|
24592
24950
|
}
|
|
24593
|
-
}) : _vm._e()])])], 2)]), _c('footer', {
|
|
24951
|
+
}) : _vm._e()])])]], 2)]), _c('footer', {
|
|
24594
24952
|
staticClass: "ho-modal-footer"
|
|
24595
|
-
}, [_c('a-button', {
|
|
24953
|
+
}, [!_vm.isBackFill ? _c('a-button', {
|
|
24596
24954
|
attrs: {
|
|
24597
24955
|
"loading": _vm.uploadLoading,
|
|
24598
24956
|
"type": "primary"
|
|
@@ -24600,7 +24958,14 @@ var render = function render() {
|
|
|
24600
24958
|
on: {
|
|
24601
24959
|
"click": _vm.sure
|
|
24602
24960
|
}
|
|
24603
|
-
}, [_vm._v(_vm._s(_vm.uploadLoading ? '正在上传。。。' : '上传'))])
|
|
24961
|
+
}, [_vm._v(_vm._s(_vm.uploadLoading ? '正在上传。。。' : '上传'))]) : _c('a-button', {
|
|
24962
|
+
staticStyle: {
|
|
24963
|
+
"margin-left": "30px"
|
|
24964
|
+
},
|
|
24965
|
+
on: {
|
|
24966
|
+
"click": _vm.insertEmptyImage
|
|
24967
|
+
}
|
|
24968
|
+
}, [_vm._v("插入空图片")]), _c('a-button', {
|
|
24604
24969
|
staticStyle: {
|
|
24605
24970
|
"margin-left": "30px"
|
|
24606
24971
|
},
|
|
@@ -24611,7 +24976,7 @@ var render = function render() {
|
|
|
24611
24976
|
};
|
|
24612
24977
|
var staticRenderFns = [];
|
|
24613
24978
|
|
|
24614
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
24979
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=template&id=208f3ae6&
|
|
24615
24980
|
|
|
24616
24981
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
24617
24982
|
var style = __webpack_require__(94310);
|
|
@@ -24673,7 +25038,11 @@ var util = __webpack_require__(62783);
|
|
|
24673
25038
|
imageBounds: {
|
|
24674
25039
|
width: 0,
|
|
24675
25040
|
height: 0
|
|
24676
|
-
}
|
|
25041
|
+
},
|
|
25042
|
+
isBackFill: false,
|
|
25043
|
+
backFillWidth: 0,
|
|
25044
|
+
backFillHeight: 0,
|
|
25045
|
+
innerIdentifier: ''
|
|
24677
25046
|
};
|
|
24678
25047
|
},
|
|
24679
25048
|
watch: {
|
|
@@ -24837,6 +25206,16 @@ var util = __webpack_require__(62783);
|
|
|
24837
25206
|
};
|
|
24838
25207
|
}
|
|
24839
25208
|
},
|
|
25209
|
+
insertEmptyImage: function insertEmptyImage() {
|
|
25210
|
+
var _this5 = this;
|
|
25211
|
+
this.vueController.insertImage('', Number(this.backFillWidth), Number(this.backFillHeight), {
|
|
25212
|
+
isBackFill: true,
|
|
25213
|
+
innerIdentifier: this.innerIdentifier
|
|
25214
|
+
});
|
|
25215
|
+
this.$nextTick(function () {
|
|
25216
|
+
_this5.handleClose();
|
|
25217
|
+
});
|
|
25218
|
+
},
|
|
24840
25219
|
sure: function sure() {
|
|
24841
25220
|
if (this.file) {
|
|
24842
25221
|
this.uploadfwq(this.file);
|
|
@@ -24868,10 +25247,10 @@ var util = __webpack_require__(62783);
|
|
|
24868
25247
|
});
|
|
24869
25248
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=script&lang=js&
|
|
24870
25249
|
/* harmony default export */ var upload_UploadImageDialogvue_type_script_lang_js_ = (UploadImageDialogvue_type_script_lang_js_);
|
|
24871
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
25250
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=208f3ae6&prod&lang=less&
|
|
24872
25251
|
// extracted by mini-css-extract-plugin
|
|
24873
25252
|
|
|
24874
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
25253
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=208f3ae6&prod&lang=less&
|
|
24875
25254
|
|
|
24876
25255
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
24877
25256
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -27770,6 +28149,7 @@ __webpack_require__.d(icons_namespaceObject, {
|
|
|
27770
28149
|
CloseOutline: function() { return CloseOutline/* default */.Z; },
|
|
27771
28150
|
DeleteOutline: function() { return DeleteOutline/* default */.Z; },
|
|
27772
28151
|
DownOutline: function() { return DownOutline/* default */.Z; },
|
|
28152
|
+
DownSquareOutline: function() { return DownSquareOutline/* default */.Z; },
|
|
27773
28153
|
EditOutline: function() { return EditOutline/* default */.Z; },
|
|
27774
28154
|
ExclamationCircleFill: function() { return ExclamationCircleFill/* default */.Z; },
|
|
27775
28155
|
ExclamationCircleOutline: function() { return ExclamationCircleOutline/* default */.Z; },
|
|
@@ -27877,6 +28257,8 @@ var InfoCircleFill = __webpack_require__(67392);
|
|
|
27877
28257
|
var CloseCircleFill = __webpack_require__(44950);
|
|
27878
28258
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/lib/fill/ExclamationCircleFill.js
|
|
27879
28259
|
var ExclamationCircleFill = __webpack_require__(23454);
|
|
28260
|
+
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/lib/outline/DownSquareOutline.js
|
|
28261
|
+
var DownSquareOutline = __webpack_require__(12004);
|
|
27880
28262
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/lib/outline/MenuOutline.js
|
|
27881
28263
|
var MenuOutline = __webpack_require__(9785);
|
|
27882
28264
|
// EXTERNAL MODULE: ./node_modules/@ant-design/icons/lib/outline/EditOutline.js
|
|
@@ -27918,6 +28300,7 @@ var QuestionCircleOutline = __webpack_require__(94820);
|
|
|
27918
28300
|
|
|
27919
28301
|
|
|
27920
28302
|
|
|
28303
|
+
|
|
27921
28304
|
|
|
27922
28305
|
|
|
27923
28306
|
// export { default as QuestionCircleFill } from '@ant-design/icons/lib/fill/QuestionCircleFill';
|
|
@@ -39749,7 +40132,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39749
40132
|
function DocController(hoEditorFactoryID) {
|
|
39750
40133
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(this, DocController);
|
|
39751
40134
|
//private static _instance: DocController;
|
|
39752
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(this, "_findContent",
|
|
40135
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(this, "_findContent", '');
|
|
39753
40136
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(this, "_count", 0);
|
|
39754
40137
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(this, "_hoEditorFactoryID", void 0);
|
|
39755
40138
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(this, "_onInsertNodeByID", void 0);
|
|
@@ -39808,13 +40191,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39808
40191
|
var style = hoEditorFactory.docTree.styles[aRange.npEnd.node.styleIndex];
|
|
39809
40192
|
creatorIndex = style.creatorIndex === undefined ? -1 : style.creatorIndex;
|
|
39810
40193
|
}
|
|
39811
|
-
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview && oper !==
|
|
40194
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview && oper !== 'update' && creatorIndex === -1) {
|
|
39812
40195
|
hoEditorFactory.undoService.begin();
|
|
39813
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p(
|
|
40196
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p('reviewDelete', 'string')));
|
|
39814
40197
|
hoEditorFactory.undoService.commit();
|
|
39815
40198
|
} else {
|
|
39816
40199
|
hoEditorFactory.undoService.begin();
|
|
39817
|
-
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper ===
|
|
40200
|
+
var nodesDeleteUndoUnit = new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, oper === 'update' ? true : false);
|
|
39818
40201
|
hoEditorFactory.undoService.add(nodesDeleteUndoUnit);
|
|
39819
40202
|
hoEditorFactory.undoService.commit();
|
|
39820
40203
|
return nodesDeleteUndoUnit.isError;
|
|
@@ -39849,7 +40232,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39849
40232
|
|
|
39850
40233
|
var isError;
|
|
39851
40234
|
if (!curRange.isEmpty) {
|
|
39852
|
-
isError = this.deleteRange(curRange, true, isResetFieldText ?
|
|
40235
|
+
isError = this.deleteRange(curRange, true, isResetFieldText ? 'update' : undefined);
|
|
39853
40236
|
//删除选中节点
|
|
39854
40237
|
}
|
|
39855
40238
|
|
|
@@ -39879,12 +40262,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39879
40262
|
value: function keyBoardInput(text) {
|
|
39880
40263
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39881
40264
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview) {
|
|
39882
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40265
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
39883
40266
|
return;
|
|
39884
40267
|
}
|
|
39885
40268
|
// alert(text);
|
|
39886
|
-
var startPath =
|
|
39887
|
-
var endPath =
|
|
40269
|
+
var startPath = '';
|
|
40270
|
+
var endPath = '';
|
|
39888
40271
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
39889
40272
|
if (!hoEditorFactory.docTree.curDomRange.isEmpty) {
|
|
39890
40273
|
domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
@@ -39917,7 +40300,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39917
40300
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
39918
40301
|
//const cellText = cellNode.getCellText();
|
|
39919
40302
|
if (!isAllowEdit) {
|
|
39920
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40303
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
39921
40304
|
return;
|
|
39922
40305
|
}
|
|
39923
40306
|
}
|
|
@@ -39925,7 +40308,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39925
40308
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
39926
40309
|
//const cellText = cellNode.getCellText();
|
|
39927
40310
|
if (!_isAllowEdit) {
|
|
39928
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40311
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
39929
40312
|
return;
|
|
39930
40313
|
}
|
|
39931
40314
|
}
|
|
@@ -39977,9 +40360,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39977
40360
|
var oldType = texts[i][0];
|
|
39978
40361
|
var istart = strText.indexOf(startTagName);
|
|
39979
40362
|
var iend = strText.indexOf(endTagName);
|
|
39980
|
-
var subString =
|
|
40363
|
+
var subString = '';
|
|
39981
40364
|
var leftString = strText;
|
|
39982
|
-
while (leftString >
|
|
40365
|
+
while (leftString > '') {
|
|
39983
40366
|
if (istart == 0 && iend >= 0) {
|
|
39984
40367
|
var nodeID = leftString.substring(istart + startTagLen, iend);
|
|
39985
40368
|
leftString = leftString.substring(iend + endTagLen, leftString.length);
|
|
@@ -39995,7 +40378,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39995
40378
|
} else {
|
|
39996
40379
|
subString = leftString;
|
|
39997
40380
|
ret.push([oldType, subString]);
|
|
39998
|
-
leftString =
|
|
40381
|
+
leftString = '';
|
|
39999
40382
|
}
|
|
40000
40383
|
}
|
|
40001
40384
|
}
|
|
@@ -40005,37 +40388,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40005
40388
|
key: "insertALine",
|
|
40006
40389
|
value: function insertALine(hoEditorFactory, path, lineText, roots, pNode, curTextStyle, node, childIndex, isEndLine, aresolve, oldCanModifyContent, isUpdate) {
|
|
40007
40390
|
var _this = this;
|
|
40008
|
-
// const startTagLen = "<元素>".length;
|
|
40009
|
-
// let istart = lineText.indexOf("<元素>");
|
|
40010
|
-
// let iend = lineText.indexOf("</元素>");
|
|
40011
|
-
// let subString = "";
|
|
40012
|
-
// let leftString = lineText;
|
|
40013
|
-
// const arrSubString = new Array<[number, string]>();
|
|
40014
|
-
// while (leftString > "") {
|
|
40015
|
-
// if (istart == 0 && iend >= 0) {
|
|
40016
|
-
// const nodeID = leftString.substring(istart + startTagLen, iend)
|
|
40017
|
-
// leftString = leftString.substring(iend + startTagLen + 1, leftString.length);
|
|
40018
|
-
// arrSubString.push([1, nodeID]);
|
|
40019
|
-
// istart = leftString.indexOf("<元素>");
|
|
40020
|
-
// iend = leftString.indexOf("</元素>");
|
|
40021
|
-
// }
|
|
40022
|
-
// else if (istart > 0 && iend > 0) {
|
|
40023
|
-
// subString = leftString.substring(0, istart);
|
|
40024
|
-
// leftString = leftString.substring(istart, leftString.length);
|
|
40025
|
-
// arrSubString.push([0, subString]);
|
|
40026
|
-
// istart = leftString.indexOf("<元素>");
|
|
40027
|
-
// iend = leftString.indexOf("</元素>");
|
|
40028
|
-
// } else {
|
|
40029
|
-
// subString = leftString;
|
|
40030
|
-
// arrSubString.push([0, subString])
|
|
40031
|
-
// leftString = "";
|
|
40032
|
-
// }
|
|
40033
|
-
// }
|
|
40034
40391
|
var arrSubString = new Array();
|
|
40035
40392
|
arrSubString.push([0, lineText]);
|
|
40036
|
-
arrSubString = this.procText(arrSubString, 1,
|
|
40037
|
-
arrSubString = this.procText(arrSubString, 2,
|
|
40038
|
-
arrSubString = this.procText(arrSubString, 3,
|
|
40393
|
+
arrSubString = this.procText(arrSubString, 1, '<元素>', '</元素>');
|
|
40394
|
+
arrSubString = this.procText(arrSubString, 2, '<上标>', '</上标>');
|
|
40395
|
+
arrSubString = this.procText(arrSubString, 3, '<下标>', '</下标>');
|
|
40039
40396
|
var aPromise = new Promise(function (resolve, reject) {
|
|
40040
40397
|
resolve(path);
|
|
40041
40398
|
});
|
|
@@ -40047,6 +40404,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40047
40404
|
break;
|
|
40048
40405
|
}
|
|
40049
40406
|
}
|
|
40407
|
+
var isInsertLinkage = '';
|
|
40050
40408
|
arrSubString.forEach(function (aTextArray, index) {
|
|
40051
40409
|
aPromise = aPromise.then(function (res) {
|
|
40052
40410
|
if (res) {
|
|
@@ -40056,6 +40414,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40056
40414
|
if (aTextArray[0] == 1) {
|
|
40057
40415
|
if (_this._onInsertNodeByID) {
|
|
40058
40416
|
_this._onInsertNodeByID(strPath, aText).then(function (res) {
|
|
40417
|
+
if (!isInsertLinkage) isInsertLinkage = aText;
|
|
40059
40418
|
strPath = res;
|
|
40060
40419
|
if (index === arrSubString.length - 1) {
|
|
40061
40420
|
if (!isEndLine) {
|
|
@@ -40068,6 +40427,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40068
40427
|
}
|
|
40069
40428
|
}
|
|
40070
40429
|
aresolve(strPath);
|
|
40430
|
+
hoEditorFactory.vueController.autoSelect(isInsertLinkage);
|
|
40071
40431
|
}
|
|
40072
40432
|
resolve(strPath);
|
|
40073
40433
|
});
|
|
@@ -40117,6 +40477,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40117
40477
|
}
|
|
40118
40478
|
}
|
|
40119
40479
|
aresolve(strPath);
|
|
40480
|
+
hoEditorFactory.vueController.autoSelect(isInsertLinkage);
|
|
40120
40481
|
}
|
|
40121
40482
|
resolve(strPath);
|
|
40122
40483
|
}
|
|
@@ -40124,6 +40485,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40124
40485
|
}
|
|
40125
40486
|
});
|
|
40126
40487
|
});
|
|
40488
|
+
aPromise.then(function (res) {
|
|
40489
|
+
return new Promise(function (resolve, reject) {
|
|
40490
|
+
resolve(11);
|
|
40491
|
+
});
|
|
40492
|
+
});
|
|
40127
40493
|
return strPath;
|
|
40128
40494
|
}
|
|
40129
40495
|
/**
|
|
@@ -40138,10 +40504,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40138
40504
|
value: function insertPlainTextAfterPath(path, text, oldCanModifyContent) {
|
|
40139
40505
|
var _this2 = this;
|
|
40140
40506
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40141
|
-
if (text ===
|
|
40507
|
+
if (text === '') {
|
|
40142
40508
|
return;
|
|
40143
40509
|
}
|
|
40144
|
-
var lines = text.split(
|
|
40510
|
+
var lines = text.split('\n');
|
|
40145
40511
|
var strPath = path;
|
|
40146
40512
|
//选中的位置有节点
|
|
40147
40513
|
var nodePosition = hoEditorFactory.docTree.findNodePositionByPath(strPath);
|
|
@@ -40170,11 +40536,6 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40170
40536
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40171
40537
|
var pNode = node.parentNode;
|
|
40172
40538
|
if (pNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re && pNode.childNodes.indexOf(node) === 0 && hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview) {
|
|
40173
|
-
//const aNode = pNode.childNodes[0];
|
|
40174
|
-
//if (aNode instanceof MarkNode) {
|
|
40175
|
-
//curStyleIndex = aNode.styleIndex;
|
|
40176
|
-
//hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40177
|
-
//}
|
|
40178
40539
|
curStyleIndex = node.styleIndex;
|
|
40179
40540
|
hoEditorFactory.docTree.curStyleIndex = curStyleIndex;
|
|
40180
40541
|
}
|
|
@@ -40254,7 +40615,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40254
40615
|
var newRange = domRange;
|
|
40255
40616
|
if (!domRange.isEmpty) {
|
|
40256
40617
|
//有选中区域
|
|
40257
|
-
if (keyValue ===
|
|
40618
|
+
if (keyValue === 'left' || keyValue === 'up') {
|
|
40258
40619
|
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, startPath);
|
|
40259
40620
|
} else {
|
|
40260
40621
|
newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath);
|
|
@@ -40274,15 +40635,15 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40274
40635
|
}, {
|
|
40275
40636
|
key: "keyBoardDelete",
|
|
40276
40637
|
value: function keyBoardDelete(keyValue) {
|
|
40277
|
-
var startPath =
|
|
40278
|
-
var endPath =
|
|
40638
|
+
var startPath = '';
|
|
40639
|
+
var endPath = '';
|
|
40279
40640
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40280
40641
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
40281
40642
|
if (!domRange.isEmpty) {
|
|
40282
40643
|
domRange = domRange.normalize();
|
|
40283
40644
|
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40284
40645
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
40285
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40646
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
40286
40647
|
return;
|
|
40287
40648
|
}
|
|
40288
40649
|
}
|
|
@@ -40290,10 +40651,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40290
40651
|
endPath = domRange.endPath;
|
|
40291
40652
|
var changingEvent = new _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .NodeChangingEvent */ .Q(_DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daInsert, startPath, endPath, _events_NodeChangingEvent__WEBPACK_IMPORTED_MODULE_24__/* .OperType */ .y.keyBoardDelete);
|
|
40292
40653
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
40293
|
-
if (keyValue ===
|
|
40654
|
+
if (keyValue === 'Backspace') {
|
|
40294
40655
|
this.deleteTextBeforePath(startPath);
|
|
40295
40656
|
}
|
|
40296
|
-
if (keyValue ===
|
|
40657
|
+
if (keyValue === 'Delete') {
|
|
40297
40658
|
this.deleteTextAfterPath(startPath);
|
|
40298
40659
|
}
|
|
40299
40660
|
}
|
|
@@ -40357,14 +40718,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40357
40718
|
return _context.abrupt("return");
|
|
40358
40719
|
case 16:
|
|
40359
40720
|
//}
|
|
40360
|
-
topath =
|
|
40721
|
+
topath = '';
|
|
40361
40722
|
if (!(childIndex > 0)) {
|
|
40362
40723
|
_context.next = 23;
|
|
40363
40724
|
break;
|
|
40364
40725
|
}
|
|
40365
|
-
arr = startPath.split(
|
|
40366
|
-
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 +
|
|
40367
|
-
topath = arr.join(
|
|
40726
|
+
arr = startPath.split('/');
|
|
40727
|
+
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) - 1 + '';
|
|
40728
|
+
topath = arr.join('/');
|
|
40368
40729
|
_context.next = 30;
|
|
40369
40730
|
break;
|
|
40370
40731
|
case 23:
|
|
@@ -40377,7 +40738,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40377
40738
|
_context.next = 30;
|
|
40378
40739
|
break;
|
|
40379
40740
|
case 28:
|
|
40380
|
-
console.error(
|
|
40741
|
+
console.error('这里应该不会出现这种情况 2020.10.28');
|
|
40381
40742
|
return _context.abrupt("return");
|
|
40382
40743
|
case 30:
|
|
40383
40744
|
hoEditorFactory.docTree.curDomRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, topath, startPath);
|
|
@@ -40503,7 +40864,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40503
40864
|
_context.next = 87;
|
|
40504
40865
|
break;
|
|
40505
40866
|
}
|
|
40506
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40867
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
40507
40868
|
return _context.abrupt("return");
|
|
40508
40869
|
case 87:
|
|
40509
40870
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
@@ -40515,21 +40876,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40515
40876
|
_context.next = 92;
|
|
40516
40877
|
break;
|
|
40517
40878
|
}
|
|
40518
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40879
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
40519
40880
|
return _context.abrupt("return");
|
|
40520
40881
|
case 92:
|
|
40521
40882
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
40522
40883
|
_context.next = 95;
|
|
40523
40884
|
break;
|
|
40524
40885
|
}
|
|
40525
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40886
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
40526
40887
|
return _context.abrupt("return");
|
|
40527
40888
|
case 95:
|
|
40528
40889
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
40529
40890
|
_context.next = 98;
|
|
40530
40891
|
break;
|
|
40531
40892
|
}
|
|
40532
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
40893
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
40533
40894
|
return _context.abrupt("return");
|
|
40534
40895
|
case 98:
|
|
40535
40896
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
@@ -40540,12 +40901,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40540
40901
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
40541
40902
|
ePath = hoEditorFactory.docTree.getNodeLastPath(node); //const nextNode = node.nextLeaf();
|
|
40542
40903
|
//if ((node.imgSrc !== "" || node.fingerPrintSrc !== "") && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
|
|
40543
|
-
if (!((node.imgSrc !==
|
|
40904
|
+
if (!((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate)) {
|
|
40544
40905
|
_context.next = 113;
|
|
40545
40906
|
break;
|
|
40546
40907
|
}
|
|
40547
40908
|
path = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
40548
|
-
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, node.name ===
|
|
40909
|
+
signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, node.name === '' ? '医师签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, undefined, undefined, node.attribute, node.connectChar, node.otherProperties);
|
|
40549
40910
|
hoEditorFactory.undoService.begin();
|
|
40550
40911
|
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
40551
40912
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, signNode));
|
|
@@ -40564,7 +40925,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40564
40925
|
}
|
|
40565
40926
|
return _context.abrupt("return");
|
|
40566
40927
|
case 113:
|
|
40567
|
-
if (node.connectMode ==
|
|
40928
|
+
if (node.connectMode == '换行' && preNode instanceof _treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_31__/* .ParagraphNode */ .C) {
|
|
40568
40929
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
40569
40930
|
}
|
|
40570
40931
|
hoEditorFactory.undoService.begin();
|
|
@@ -40624,9 +40985,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40624
40985
|
var tmp;
|
|
40625
40986
|
if (np.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R) {
|
|
40626
40987
|
if (np.childIndex < np.node.getLength() - 1) {
|
|
40627
|
-
var arr = path.split(
|
|
40628
|
-
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) + 1 +
|
|
40629
|
-
return arr.join(
|
|
40988
|
+
var arr = path.split('/');
|
|
40989
|
+
arr[arr.length - 1] = parseInt(arr[arr.length - 1]) + 1 + '';
|
|
40990
|
+
return arr.join('/');
|
|
40630
40991
|
} else {
|
|
40631
40992
|
tmp = np.node.nextSibling();
|
|
40632
40993
|
}
|
|
@@ -40685,7 +41046,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40685
41046
|
var drawNode = arange.npEnd.node.drawNodes[0];
|
|
40686
41047
|
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(drawNode);
|
|
40687
41048
|
if (drawArea) {
|
|
40688
|
-
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_86__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node,
|
|
41049
|
+
var nodeNeedModifyEvent = new _events_NodeNeedModifyEvent__WEBPACK_IMPORTED_MODULE_86__/* .NodeNeedModifyEvent */ .x(arange.npEnd.node, 'dblclick', drawArea.index);
|
|
40689
41050
|
hoEditorFactory.docTree.nodeNeedModify(nodeNeedModifyEvent);
|
|
40690
41051
|
return;
|
|
40691
41052
|
} else {
|
|
@@ -40791,7 +41152,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40791
41152
|
throw new Error("\u9519\u8BEF\u7684\u9009\u62E9\u8303\u56F4".concat(curDomRange.startPath, " ").concat(curDomRange.endPath));
|
|
40792
41153
|
}
|
|
40793
41154
|
hoEditorFactory.undoService.begin();
|
|
40794
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p(operateType, operateType ===
|
|
41155
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, normalDomRange.startPath, normalDomRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p(operateType, operateType === 'fontBold' || operateType === 'fontItalic' ? isSelsected : undefined)));
|
|
40795
41156
|
hoEditorFactory.undoService.commit();
|
|
40796
41157
|
}
|
|
40797
41158
|
/**
|
|
@@ -40909,7 +41270,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40909
41270
|
var astart = normalDomRange.npStart.node;
|
|
40910
41271
|
var aend = normalDomRange.npEnd.node;
|
|
40911
41272
|
var anode = astart;
|
|
40912
|
-
var selectedText =
|
|
41273
|
+
var selectedText = '';
|
|
40913
41274
|
if (anode && astart) {
|
|
40914
41275
|
do {
|
|
40915
41276
|
if (anode) {
|
|
@@ -40942,7 +41303,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40942
41303
|
value: function insertMenstrualHistory(operType, curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge) {
|
|
40943
41304
|
var domRange = curDomRange.normalize();
|
|
40944
41305
|
var startPath = domRange.endPath;
|
|
40945
|
-
if (operType ===
|
|
41306
|
+
if (operType === 'update') {
|
|
40946
41307
|
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
40947
41308
|
if (np) {
|
|
40948
41309
|
var node = np.node;
|
|
@@ -40958,7 +41319,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40958
41319
|
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
40959
41320
|
var menstrualHistoryNode = new _treeNode_MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_40__/* .MenstrualHistoryNode */ .n(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
40960
41321
|
//插入该表达式节点
|
|
40961
|
-
if (operType ===
|
|
41322
|
+
if (operType === 'add') {
|
|
40962
41323
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
40963
41324
|
}
|
|
40964
41325
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
@@ -40979,7 +41340,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40979
41340
|
value: function insertPupilMap(operType, curDomRange, value1, value2, value3, value4, value5, value6, value7) {
|
|
40980
41341
|
var domRange = curDomRange.normalize();
|
|
40981
41342
|
var startPath = domRange.endPath;
|
|
40982
|
-
if (operType ===
|
|
41343
|
+
if (operType === 'update') {
|
|
40983
41344
|
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
40984
41345
|
if (np) {
|
|
40985
41346
|
var node = np.node;
|
|
@@ -40995,7 +41356,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40995
41356
|
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
40996
41357
|
var pupilMapNode = new _treeNode_PupilMapNode__WEBPACK_IMPORTED_MODULE_41__/* .PupilMapNode */ .v(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7);
|
|
40997
41358
|
//插入该表达式节点
|
|
40998
|
-
if (operType ===
|
|
41359
|
+
if (operType === 'add') {
|
|
40999
41360
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41000
41361
|
}
|
|
41001
41362
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, pupilMapNode));
|
|
@@ -41018,7 +41379,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41018
41379
|
value: function insertLightLocation(operType, curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9) {
|
|
41019
41380
|
var domRange = curDomRange.normalize();
|
|
41020
41381
|
var startPath = domRange.endPath;
|
|
41021
|
-
if (operType ===
|
|
41382
|
+
if (operType === 'update') {
|
|
41022
41383
|
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41023
41384
|
if (np) {
|
|
41024
41385
|
var node = np.node;
|
|
@@ -41034,7 +41395,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41034
41395
|
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41035
41396
|
var lightLocationMapNode = new _treeNode_LightLocationMapNode__WEBPACK_IMPORTED_MODULE_42__/* .LightLocationMapNode */ .D(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
41036
41397
|
//插入该表达式节点
|
|
41037
|
-
if (operType ===
|
|
41398
|
+
if (operType === 'add') {
|
|
41038
41399
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41039
41400
|
}
|
|
41040
41401
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, lightLocationMapNode));
|
|
@@ -41054,7 +41415,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41054
41415
|
value: function insertFetalHeartMap(operType, curDomRange, value1, value2, value3, value4, value5, value6) {
|
|
41055
41416
|
var domRange = curDomRange.normalize();
|
|
41056
41417
|
var startPath = domRange.endPath;
|
|
41057
|
-
if (operType ===
|
|
41418
|
+
if (operType === 'update') {
|
|
41058
41419
|
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41059
41420
|
if (np) {
|
|
41060
41421
|
var node = np.node;
|
|
@@ -41070,7 +41431,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41070
41431
|
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41071
41432
|
var fetalHeartMapNode = new _treeNode_FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_43__/* .FetalHeartMapNode */ .t(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, value1, value2, value3, value4, value5, value6);
|
|
41072
41433
|
//插入该表达式节点
|
|
41073
|
-
if (operType ===
|
|
41434
|
+
if (operType === 'add') {
|
|
41074
41435
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41075
41436
|
}
|
|
41076
41437
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, fetalHeartMapNode));
|
|
@@ -41088,7 +41449,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41088
41449
|
value: function insertPermanentTeethMap(operType, curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark) {
|
|
41089
41450
|
var domRange = curDomRange.normalize();
|
|
41090
41451
|
var startPath = domRange.endPath;
|
|
41091
|
-
if (operType ===
|
|
41452
|
+
if (operType === 'update') {
|
|
41092
41453
|
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
41093
41454
|
if (np) {
|
|
41094
41455
|
var node = np.node;
|
|
@@ -41104,7 +41465,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41104
41465
|
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
41105
41466
|
var permanentTeethMapNode = new _treeNode_PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_44__/* .PermanentTeethMapNode */ .f(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected, remark);
|
|
41106
41467
|
//插入该表达式节点
|
|
41107
|
-
if (operType ===
|
|
41468
|
+
if (operType === 'add') {
|
|
41108
41469
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
41109
41470
|
}
|
|
41110
41471
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, permanentTeethMapNode));
|
|
@@ -41123,7 +41484,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41123
41484
|
var domRange = curDomRange.normalize();
|
|
41124
41485
|
var startPath = domRange.endPath;
|
|
41125
41486
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41126
|
-
if (operType ===
|
|
41487
|
+
if (operType === 'update') {
|
|
41127
41488
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41128
41489
|
if (np) {
|
|
41129
41490
|
var node = np.node;
|
|
@@ -41139,7 +41500,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41139
41500
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41140
41501
|
var primaryTeethMapNode = new _treeNode_PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_45__/* .PrimaryTeethMapNode */ .x(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMedicalExpression, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
41141
41502
|
//插入该表达式节点
|
|
41142
|
-
if (operType ===
|
|
41503
|
+
if (operType === 'add') {
|
|
41143
41504
|
hoEditorFactory.undoService.begin();
|
|
41144
41505
|
}
|
|
41145
41506
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, primaryTeethMapNode));
|
|
@@ -41157,7 +41518,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41157
41518
|
var startPath = domRange.endPath;
|
|
41158
41519
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41159
41520
|
var childNodes = [];
|
|
41160
|
-
if (operType ===
|
|
41521
|
+
if (operType === 'update') {
|
|
41161
41522
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41162
41523
|
if (np && np.node) {
|
|
41163
41524
|
var node;
|
|
@@ -41187,11 +41548,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41187
41548
|
node.childNodes2[1].node2DrawNode();
|
|
41188
41549
|
}
|
|
41189
41550
|
}
|
|
41190
|
-
if (Number(values[
|
|
41191
|
-
if (node.keyValue !==
|
|
41551
|
+
if (Number(values['inputFieldType']) === 1) {
|
|
41552
|
+
if (node.keyValue !== '') {
|
|
41192
41553
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
41193
|
-
var _text = values[
|
|
41194
|
-
var textArr = _text.split(
|
|
41554
|
+
var _text = values['text'];
|
|
41555
|
+
var textArr = _text.split('\n');
|
|
41195
41556
|
if (textArr.length == 1) {
|
|
41196
41557
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, _text, hoEditorFactory.docTree.curStyleIndex);
|
|
41197
41558
|
node.childNodes.splice(1, 0, textNode);
|
|
@@ -41235,7 +41596,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41235
41596
|
}
|
|
41236
41597
|
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
41237
41598
|
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
41238
|
-
if (Number(values[
|
|
41599
|
+
if (Number(values['inputFieldType']) === 1) {
|
|
41239
41600
|
pnode.drawCell.needUpdate = true;
|
|
41240
41601
|
pnode.table.update();
|
|
41241
41602
|
} else {
|
|
@@ -41246,13 +41607,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41246
41607
|
}
|
|
41247
41608
|
}
|
|
41248
41609
|
}
|
|
41249
|
-
var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id +
|
|
41250
|
-
if (!record || record.indexOf(
|
|
41251
|
-
hoEditorFactory.docTree.elementChangeRecords.set(node.id +
|
|
41610
|
+
var record = hoEditorFactory.docTree.elementChangeRecords.get(node.id + '|' + node.dataId);
|
|
41611
|
+
if (!record || record.indexOf('add') < 0) {
|
|
41612
|
+
hoEditorFactory.docTree.elementChangeRecords.set(node.id + '|' + node.dataId, ['update', updateProps]);
|
|
41252
41613
|
}
|
|
41253
|
-
return
|
|
41614
|
+
return '';
|
|
41254
41615
|
} else {
|
|
41255
|
-
return
|
|
41616
|
+
return '';
|
|
41256
41617
|
}
|
|
41257
41618
|
}
|
|
41258
41619
|
}
|
|
@@ -41278,9 +41639,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41278
41639
|
//hoEditorFactory.drawTree.moveCaretToPath(afterPath);
|
|
41279
41640
|
hoEditorFactory.docTree.curDomRange.setSamePath(afterPath);
|
|
41280
41641
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
41281
|
-
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id +
|
|
41642
|
+
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add']);
|
|
41282
41643
|
} else {
|
|
41283
|
-
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id +
|
|
41644
|
+
hoEditorFactory.docTree.elementChangeRecords.set(textInputFieldNode.id + '|' + textInputFieldNode.dataId, ['add0']);
|
|
41284
41645
|
}
|
|
41285
41646
|
return afterPath;
|
|
41286
41647
|
}
|
|
@@ -41298,7 +41659,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41298
41659
|
var startPath = domRange.startPath;
|
|
41299
41660
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41300
41661
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41301
|
-
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_49__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID(
|
|
41662
|
+
var imageNode = new _treeNode_ImageNode__WEBPACK_IMPORTED_MODULE_49__/* .ImageNode */ .H(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, hoEditorFactory.gernerateCode.generateID('IMG'), imagePath, width, height, options);
|
|
41302
41663
|
//插入该表达式节点
|
|
41303
41664
|
hoEditorFactory.undoService.begin();
|
|
41304
41665
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, imageNode));
|
|
@@ -41323,7 +41684,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41323
41684
|
var domRange = curDomRange.normalize();
|
|
41324
41685
|
var startPath = domRange.endPath;
|
|
41325
41686
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41326
|
-
if (operType ===
|
|
41687
|
+
if (operType === 'update') {
|
|
41327
41688
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41328
41689
|
if (np) {
|
|
41329
41690
|
var node = np.node;
|
|
@@ -41342,7 +41703,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41342
41703
|
//,bandDataSource
|
|
41343
41704
|
);
|
|
41344
41705
|
//插入该表达式节点
|
|
41345
|
-
if (operType ===
|
|
41706
|
+
if (operType === 'add') {
|
|
41346
41707
|
hoEditorFactory.undoService.begin();
|
|
41347
41708
|
}
|
|
41348
41709
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, barCodeNode));
|
|
@@ -41369,7 +41730,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41369
41730
|
var domRange = curDomRange.normalize();
|
|
41370
41731
|
var startPath = domRange.endPath;
|
|
41371
41732
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
41372
|
-
if (operType ===
|
|
41733
|
+
if (operType === 'update') {
|
|
41373
41734
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
41374
41735
|
if (np) {
|
|
41375
41736
|
var node = np.node;
|
|
@@ -41385,7 +41746,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41385
41746
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
41386
41747
|
var qrcodeNode = new _treeNode_QrcodeNode__WEBPACK_IMPORTED_MODULE_51__/* .QrcodeNode */ .d(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntImage, id, name, innerIdentifier, textContent, type, correctLevel, width, height, isFillBack);
|
|
41387
41748
|
//插入该表达式节点
|
|
41388
|
-
if (operType ===
|
|
41749
|
+
if (operType === 'add') {
|
|
41389
41750
|
hoEditorFactory.undoService.begin();
|
|
41390
41751
|
}
|
|
41391
41752
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, qrcodeNode));
|
|
@@ -41411,11 +41772,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41411
41772
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
41412
41773
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
41413
41774
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
41414
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
41775
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
41415
41776
|
return;
|
|
41416
41777
|
}
|
|
41417
41778
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
41418
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
41779
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
41419
41780
|
return;
|
|
41420
41781
|
}
|
|
41421
41782
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -41444,7 +41805,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41444
41805
|
// paraNode
|
|
41445
41806
|
// );
|
|
41446
41807
|
// }
|
|
41447
|
-
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .TableProperty */ .vE(
|
|
41808
|
+
var tableProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .TableProperty */ .vE('');
|
|
41448
41809
|
var tableNode = new _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_52__/* .TableNode */ .Fh(this._hoEditorFactoryID, np.roots, parentNode, row, col, tableProperty);
|
|
41449
41810
|
hoEditorFactory.undoService.begin();
|
|
41450
41811
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableInsertUndoUnit__WEBPACK_IMPORTED_MODULE_62__/* .TableInsertUndoUnit */ .m(this._hoEditorFactoryID, arange.startPath, tableNode));
|
|
@@ -41478,7 +41839,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41478
41839
|
c = _cell$table$getCellIn2[1];
|
|
41479
41840
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
41480
41841
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41481
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
41842
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
41482
41843
|
return;
|
|
41483
41844
|
}
|
|
41484
41845
|
}
|
|
@@ -41506,9 +41867,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41506
41867
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
41507
41868
|
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
41508
41869
|
anode.childNodes.splice(1, 0, markNode);
|
|
41509
|
-
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_56__/* .DownListNode */ .yF && anode.keyValue !==
|
|
41870
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_56__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
41510
41871
|
anode.text = anode.name;
|
|
41511
|
-
anode.keyValue =
|
|
41872
|
+
anode.keyValue = '';
|
|
41512
41873
|
anode.node2DrawNode();
|
|
41513
41874
|
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_55__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
41514
41875
|
anode.text = anode.labelText;
|
|
@@ -41516,14 +41877,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41516
41877
|
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.number !== 0) {
|
|
41517
41878
|
anode.number = 0;
|
|
41518
41879
|
anode.type = 0;
|
|
41519
|
-
anode.signor =
|
|
41520
|
-
anode.signTime =
|
|
41880
|
+
anode.signor = '';
|
|
41881
|
+
anode.signTime = '';
|
|
41521
41882
|
anode.imgWidth = 0;
|
|
41522
41883
|
anode.imgHeight = 0;
|
|
41523
41884
|
anode.customProperty = new Object();
|
|
41524
|
-
anode.fingerPrintSrc =
|
|
41885
|
+
anode.fingerPrintSrc = '';
|
|
41525
41886
|
anode.fingerPosition = 0;
|
|
41526
|
-
anode.imgSrc =
|
|
41887
|
+
anode.imgSrc = '';
|
|
41527
41888
|
}
|
|
41528
41889
|
}
|
|
41529
41890
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
@@ -41575,7 +41936,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41575
41936
|
// );
|
|
41576
41937
|
// }
|
|
41577
41938
|
} else {
|
|
41578
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
41939
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
41579
41940
|
return;
|
|
41580
41941
|
}
|
|
41581
41942
|
}
|
|
@@ -41596,7 +41957,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41596
41957
|
c = _cell$table$getCellIn4[1];
|
|
41597
41958
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_29__/* .PaintState */ .Dh.psEdit) {
|
|
41598
41959
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
41599
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
41960
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
41600
41961
|
return;
|
|
41601
41962
|
}
|
|
41602
41963
|
}
|
|
@@ -41624,9 +41985,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41624
41985
|
anode.childNodes.splice(1, anode.childNodes.length - 2);
|
|
41625
41986
|
var markNode = new _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, anode.rootNodes, anode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntMark, anode.name, anode.childNodes[0].styleIndex, 1);
|
|
41626
41987
|
anode.childNodes.splice(1, 0, markNode);
|
|
41627
|
-
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_56__/* .DownListNode */ .yF && anode.keyValue !==
|
|
41988
|
+
} else if (anode instanceof _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_56__/* .DownListNode */ .yF && anode.keyValue !== '') {
|
|
41628
41989
|
anode.text = anode.name;
|
|
41629
|
-
anode.keyValue =
|
|
41990
|
+
anode.keyValue = '';
|
|
41630
41991
|
anode.node2DrawNode();
|
|
41631
41992
|
} else if (anode instanceof _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_55__/* .DateTimeNode */ .Z && anode.text !== anode.labelText) {
|
|
41632
41993
|
anode.text = anode.labelText;
|
|
@@ -41634,14 +41995,14 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41634
41995
|
} else if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.number !== 0) {
|
|
41635
41996
|
anode.number = 0;
|
|
41636
41997
|
anode.type = 0;
|
|
41637
|
-
anode.signor =
|
|
41638
|
-
anode.signTime =
|
|
41998
|
+
anode.signor = '';
|
|
41999
|
+
anode.signTime = '';
|
|
41639
42000
|
anode.imgWidth = 0;
|
|
41640
42001
|
anode.imgHeight = 0;
|
|
41641
42002
|
anode.customProperty = new Object();
|
|
41642
|
-
anode.fingerPrintSrc =
|
|
42003
|
+
anode.fingerPrintSrc = '';
|
|
41643
42004
|
anode.fingerPosition = 0;
|
|
41644
|
-
anode.imgSrc =
|
|
42005
|
+
anode.imgSrc = '';
|
|
41645
42006
|
}
|
|
41646
42007
|
}
|
|
41647
42008
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
@@ -41693,7 +42054,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41693
42054
|
// );
|
|
41694
42055
|
// }
|
|
41695
42056
|
} else {
|
|
41696
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42057
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
41697
42058
|
return;
|
|
41698
42059
|
}
|
|
41699
42060
|
}
|
|
@@ -41754,7 +42115,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41754
42115
|
// );
|
|
41755
42116
|
// }
|
|
41756
42117
|
} else {
|
|
41757
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42118
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
41758
42119
|
return;
|
|
41759
42120
|
}
|
|
41760
42121
|
}
|
|
@@ -41812,7 +42173,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41812
42173
|
// );
|
|
41813
42174
|
// }
|
|
41814
42175
|
} else {
|
|
41815
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42176
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
41816
42177
|
return;
|
|
41817
42178
|
}
|
|
41818
42179
|
}
|
|
@@ -41829,7 +42190,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41829
42190
|
r2 = _TableNode$getSelectT2[3],
|
|
41830
42191
|
c2 = _TableNode$getSelectT2[4];
|
|
41831
42192
|
if (!table) {
|
|
41832
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42193
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
41833
42194
|
return;
|
|
41834
42195
|
}
|
|
41835
42196
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -41841,7 +42202,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41841
42202
|
for (var i = r1; i <= r2; i++) {
|
|
41842
42203
|
var rowInfo = table.rowInfos[i];
|
|
41843
42204
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
41844
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42205
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
41845
42206
|
return;
|
|
41846
42207
|
}
|
|
41847
42208
|
}
|
|
@@ -41857,7 +42218,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41857
42218
|
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableDeleteRowUndoUnit__WEBPACK_IMPORTED_MODULE_63__/* .TableDeleteRowUndoUnit */ .$r(this._hoEditorFactoryID, table, r1, r2 - r1 + 1));
|
|
41858
42219
|
hoEditorFactory.undoService.commit();
|
|
41859
42220
|
if (table.childNodes.length > 0) {
|
|
41860
|
-
var path =
|
|
42221
|
+
var path = '';
|
|
41861
42222
|
var np = hoEditorFactory.docTree.findNodePositionByPath(aRange.startPath);
|
|
41862
42223
|
if (np && np.node) {
|
|
41863
42224
|
path = aRange.startPath;
|
|
@@ -41900,7 +42261,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41900
42261
|
r2 = _TableNode$getSelectT4[3],
|
|
41901
42262
|
c2 = _TableNode$getSelectT4[4];
|
|
41902
42263
|
if (!table) {
|
|
41903
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42264
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
41904
42265
|
return;
|
|
41905
42266
|
}
|
|
41906
42267
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -41953,7 +42314,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
41953
42314
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
41954
42315
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
41955
42316
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
41956
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42317
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
41957
42318
|
return;
|
|
41958
42319
|
}
|
|
41959
42320
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -42005,7 +42366,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42005
42366
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
42006
42367
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
42007
42368
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
42008
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42369
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
42009
42370
|
return;
|
|
42010
42371
|
}
|
|
42011
42372
|
var endPath = cell1.table.getNodePath();
|
|
@@ -42242,13 +42603,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42242
42603
|
var startPath = domRange.endPath;
|
|
42243
42604
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42244
42605
|
var oldIsTransToText = false;
|
|
42245
|
-
if (operType ===
|
|
42606
|
+
if (operType === 'update') {
|
|
42246
42607
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
42247
42608
|
if (np) {
|
|
42248
42609
|
var node = np.node;
|
|
42249
42610
|
if (node instanceof _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_54__/* .RadioAndCheckBoxNode */ .Yh) {
|
|
42250
42611
|
hoEditorFactory.undoService.begin();
|
|
42251
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath,
|
|
42612
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42252
42613
|
oldIsTransToText = node.isTransToText;
|
|
42253
42614
|
//hoEditorFactory.undoService.commit();
|
|
42254
42615
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42257,21 +42618,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42257
42618
|
}
|
|
42258
42619
|
}
|
|
42259
42620
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42260
|
-
var valuesObj = eval(
|
|
42261
|
-
var text = valuesObj[
|
|
42262
|
-
var isTransToText = valuesObj[
|
|
42621
|
+
var valuesObj = eval('(' + valuesObject + ')');
|
|
42622
|
+
var text = valuesObj['text'].toString();
|
|
42623
|
+
var isTransToText = valuesObj['isTransToText'];
|
|
42263
42624
|
//if (isTransToTextNode) {
|
|
42264
42625
|
//valuesObj["text"] = "";
|
|
42265
42626
|
//valuesObject = JSON.stringify(valuesObj);
|
|
42266
42627
|
//}
|
|
42267
42628
|
var radioAndCheckBoxNode = new _treeNode_RadioAndCheckBoxNode__WEBPACK_IMPORTED_MODULE_54__/* .RadioAndCheckBoxNode */ .Yh(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex);
|
|
42268
42629
|
//插入该表达式节点
|
|
42269
|
-
if (operType ===
|
|
42630
|
+
if (operType === 'add') {
|
|
42270
42631
|
hoEditorFactory.undoService.begin();
|
|
42271
42632
|
}
|
|
42272
42633
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, radioAndCheckBoxNode));
|
|
42273
42634
|
hoEditorFactory.undoService.commit();
|
|
42274
|
-
if (isTransToText && (operType ===
|
|
42635
|
+
if (isTransToText && (operType === 'add' || operType === 'update' && !oldIsTransToText)) {
|
|
42275
42636
|
var path = radioAndCheckBoxNode.getNodePath();
|
|
42276
42637
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_28__/* .TextNode */ .R(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntText, text, styleIndex);
|
|
42277
42638
|
hoEditorFactory.undoService.begin();
|
|
@@ -42305,20 +42666,20 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42305
42666
|
}
|
|
42306
42667
|
var domRange = curDomRange.normalize();
|
|
42307
42668
|
var startNode = domRange.npStart.node;
|
|
42308
|
-
var returnPath =
|
|
42669
|
+
var returnPath = '';
|
|
42309
42670
|
var sNode = startNode;
|
|
42310
42671
|
if (startNode) {
|
|
42311
42672
|
sNode = startNode.rootNodes[0];
|
|
42312
42673
|
}
|
|
42313
42674
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42314
42675
|
if (object.obj2.size === 0) {
|
|
42315
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42676
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
42316
42677
|
} else {
|
|
42317
42678
|
var nodesMap = object.obj1;
|
|
42318
42679
|
var indexsMap = object.obj2;
|
|
42319
42680
|
returnPath = hoEditorFactory.docTree.getFindPath(nodesMap, indexsMap, this._count);
|
|
42320
42681
|
}
|
|
42321
|
-
if (returnPath ===
|
|
42682
|
+
if (returnPath === '-1') {
|
|
42322
42683
|
this._count = 0;
|
|
42323
42684
|
returnPath = this.find(curDomRange, findContent, direction, matchCase);
|
|
42324
42685
|
}
|
|
@@ -42334,10 +42695,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42334
42695
|
path = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
|
|
42335
42696
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
|
|
42336
42697
|
} else {
|
|
42337
|
-
var pathArr = path.split(
|
|
42698
|
+
var pathArr = path.split('/');
|
|
42338
42699
|
var value = parseInt(pathArr[pathArr.length - 1]);
|
|
42339
42700
|
pathArr[pathArr.length - 1] = (value + 1).toString();
|
|
42340
|
-
path = pathArr.join(
|
|
42701
|
+
path = pathArr.join('/');
|
|
42341
42702
|
}
|
|
42342
42703
|
}
|
|
42343
42704
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
@@ -42373,11 +42734,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42373
42734
|
sNode = startNode.rootNodes[0];
|
|
42374
42735
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
42375
42736
|
if (object.obj2.size === 0) {
|
|
42376
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
42737
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
42377
42738
|
} else {
|
|
42378
42739
|
var nodesMap = object.obj1;
|
|
42379
42740
|
var indexsMap = object.obj2;
|
|
42380
|
-
var temp =
|
|
42741
|
+
var temp = ''; //临时变量
|
|
42381
42742
|
var flag = true; //是否交换的标志
|
|
42382
42743
|
for (var i = 1; i < indexsMap.size; i++) {
|
|
42383
42744
|
//表示趟数,一共 arr.length-1 次
|
|
@@ -42386,13 +42747,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42386
42747
|
for (var j = indexsMap.size; j > i; j--) {
|
|
42387
42748
|
//选出该趟排序的最大值往后移动
|
|
42388
42749
|
var val = indexsMap.get(j);
|
|
42389
|
-
var paraIndex = val.split(
|
|
42390
|
-
var textCount = parseInt(val.split(
|
|
42391
|
-
var strIndex = parseInt(val.split(
|
|
42750
|
+
var paraIndex = val.split('|')[0];
|
|
42751
|
+
var textCount = parseInt(val.split('|')[1]);
|
|
42752
|
+
var strIndex = parseInt(val.split('|')[2]);
|
|
42392
42753
|
var val1 = indexsMap.get(j - 1);
|
|
42393
|
-
var paraIndex1 = val1.split(
|
|
42394
|
-
var textCount1 = parseInt(val1.split(
|
|
42395
|
-
var strIndex1 = parseInt(val1.split(
|
|
42754
|
+
var paraIndex1 = val1.split('|')[0];
|
|
42755
|
+
var textCount1 = parseInt(val1.split('|')[1]);
|
|
42756
|
+
var strIndex1 = parseInt(val1.split('|')[2]);
|
|
42396
42757
|
if (paraIndex === paraIndex1 && (textCount1 < textCount || textCount1 === textCount && strIndex1 < strIndex)) {
|
|
42397
42758
|
temp = val;
|
|
42398
42759
|
indexsMap.set(j, val1);
|
|
@@ -42415,7 +42776,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42415
42776
|
var newTextNode1 = getArr1[2];
|
|
42416
42777
|
hoEditorFactory.undoService.begin();
|
|
42417
42778
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, startPath, endPath1));
|
|
42418
|
-
if (replaceContent !==
|
|
42779
|
+
if (replaceContent !== '') {
|
|
42419
42780
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, newTextNode1));
|
|
42420
42781
|
}
|
|
42421
42782
|
hoEditorFactory.undoService.commit();
|
|
@@ -42425,12 +42786,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42425
42786
|
} finally {
|
|
42426
42787
|
_iterator.f();
|
|
42427
42788
|
}
|
|
42428
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.info(
|
|
42789
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
42429
42790
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
42430
42791
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
42431
42792
|
}
|
|
42432
42793
|
} else {
|
|
42433
|
-
if (!path.includes(
|
|
42794
|
+
if (!path.includes('/')) {
|
|
42434
42795
|
throw new Error("\u9519\u8BEF\u7684\u8DEF\u5F84".concat(path));
|
|
42435
42796
|
}
|
|
42436
42797
|
this._count = 0;
|
|
@@ -42439,13 +42800,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42439
42800
|
var newTextNode2 = getArr2[1];
|
|
42440
42801
|
hoEditorFactory.undoService.begin();
|
|
42441
42802
|
hoEditorFactory.undoService.add(new _undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_37__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, path, endPath2));
|
|
42442
|
-
if (replaceContent !==
|
|
42803
|
+
if (replaceContent !== '') {
|
|
42443
42804
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, path, newTextNode2));
|
|
42444
42805
|
}
|
|
42445
42806
|
hoEditorFactory.undoService.commit();
|
|
42446
42807
|
var oldRange = hoEditorFactory.docTree.curDomRange;
|
|
42447
42808
|
var endPath = path;
|
|
42448
|
-
if (replaceContent !==
|
|
42809
|
+
if (replaceContent !== '') {
|
|
42449
42810
|
endPath = hoEditorFactory.docTree.getNodeLastPath(newTextNode2);
|
|
42450
42811
|
}
|
|
42451
42812
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(this._hoEditorFactoryID, path, endPath);
|
|
@@ -42469,12 +42830,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42469
42830
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
42470
42831
|
while (1) switch (_context2.prev = _context2.next) {
|
|
42471
42832
|
case 0:
|
|
42472
|
-
oldDataID =
|
|
42473
|
-
oldId =
|
|
42833
|
+
oldDataID = '';
|
|
42834
|
+
oldId = '';
|
|
42474
42835
|
domRange = curDomRange.normalize();
|
|
42475
42836
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42476
42837
|
startPath = domRange.endPath;
|
|
42477
|
-
if (!(operType ===
|
|
42838
|
+
if (!(operType === 'update')) {
|
|
42478
42839
|
_context2.next = 16;
|
|
42479
42840
|
break;
|
|
42480
42841
|
}
|
|
@@ -42492,7 +42853,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42492
42853
|
oldId = node.id;
|
|
42493
42854
|
hoEditorFactory.undoService.begin();
|
|
42494
42855
|
_context2.next = 15;
|
|
42495
|
-
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath,
|
|
42856
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42496
42857
|
case 15:
|
|
42497
42858
|
//hoEditorFactory.undoService.commit();
|
|
42498
42859
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42500,7 +42861,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42500
42861
|
case 16:
|
|
42501
42862
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42502
42863
|
dateTimeNode = new _treeNode_DateTimeNode__WEBPACK_IMPORTED_MODULE_55__/* .DateTimeNode */ .Z(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, styleIndex); //插入该表达式节点
|
|
42503
|
-
if (operType ===
|
|
42864
|
+
if (operType === 'add') {
|
|
42504
42865
|
hoEditorFactory.undoService.begin();
|
|
42505
42866
|
} else {
|
|
42506
42867
|
dateTimeNode.dataId = oldDataID;
|
|
@@ -42537,10 +42898,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42537
42898
|
case 0:
|
|
42538
42899
|
domRange = curDomRange.normalize();
|
|
42539
42900
|
startPath = domRange.endPath;
|
|
42540
|
-
oldDataID =
|
|
42541
|
-
oldId =
|
|
42901
|
+
oldDataID = '';
|
|
42902
|
+
oldId = '';
|
|
42542
42903
|
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42543
|
-
if (!(operType ===
|
|
42904
|
+
if (!(operType === 'update')) {
|
|
42544
42905
|
_context3.next = 16;
|
|
42545
42906
|
break;
|
|
42546
42907
|
}
|
|
@@ -42558,7 +42919,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42558
42919
|
oldId = node.id;
|
|
42559
42920
|
hoEditorFactory.undoService.begin();
|
|
42560
42921
|
_context3.next = 15;
|
|
42561
|
-
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath,
|
|
42922
|
+
return hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
42562
42923
|
case 15:
|
|
42563
42924
|
//hoEditorFactory.undoService.commit();
|
|
42564
42925
|
//startPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
@@ -42566,7 +42927,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42566
42927
|
case 16:
|
|
42567
42928
|
parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42568
42929
|
downListNode = new _treeNode_DownListNode__WEBPACK_IMPORTED_MODULE_56__/* .DownListNode */ .yF(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntControl, valuesObject, downListContent, styleIndex); //插入该表达式节点
|
|
42569
|
-
if (operType ===
|
|
42930
|
+
if (operType === 'add') {
|
|
42570
42931
|
hoEditorFactory.undoService.begin();
|
|
42571
42932
|
} else {
|
|
42572
42933
|
downListNode.dataId = oldDataID;
|
|
@@ -42574,16 +42935,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42574
42935
|
}
|
|
42575
42936
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, downListNode));
|
|
42576
42937
|
hoEditorFactory.undoService.commit();
|
|
42577
|
-
if (operType ===
|
|
42938
|
+
if (operType === 'add') {
|
|
42578
42939
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
42579
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id +
|
|
42940
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add']);
|
|
42580
42941
|
} else {
|
|
42581
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id +
|
|
42942
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['add0']);
|
|
42582
42943
|
}
|
|
42583
42944
|
} else {
|
|
42584
|
-
record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id +
|
|
42585
|
-
if (!record || record.indexOf(
|
|
42586
|
-
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id +
|
|
42945
|
+
record = hoEditorFactory.docTree.elementChangeRecords.get(downListNode.id + '|' + downListNode.dataId);
|
|
42946
|
+
if (!record || record.indexOf('add') < 0) {
|
|
42947
|
+
hoEditorFactory.docTree.elementChangeRecords.set(downListNode.id + '|' + downListNode.dataId, ['update', updateProps]);
|
|
42587
42948
|
}
|
|
42588
42949
|
}
|
|
42589
42950
|
case 22:
|
|
@@ -42638,17 +42999,17 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42638
42999
|
hoEditorFactory.undoService.commit();
|
|
42639
43000
|
}
|
|
42640
43001
|
/**
|
|
42641
|
-
|
|
42642
|
-
|
|
42643
|
-
|
|
42644
|
-
|
|
42645
|
-
|
|
43002
|
+
* 插入链接按钮
|
|
43003
|
+
* @param operType 操作类型 "add"新增
|
|
43004
|
+
* @param name 按钮名称
|
|
43005
|
+
* @param fileId 跳转到的病历id
|
|
43006
|
+
*/
|
|
42646
43007
|
}, {
|
|
42647
43008
|
key: "insertJumpButton",
|
|
42648
43009
|
value: function insertJumpButton(operType, curDomRange, name, fileId) {
|
|
42649
43010
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42650
43011
|
var startPath = curDomRange.endPath;
|
|
42651
|
-
if (operType ===
|
|
43012
|
+
if (operType === 'update') {
|
|
42652
43013
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
42653
43014
|
if (np) {
|
|
42654
43015
|
var node = np.node;
|
|
@@ -42661,7 +43022,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42661
43022
|
}
|
|
42662
43023
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
42663
43024
|
var jumpButtonNode = new _treeNode_JumpButtonNode__WEBPACK_IMPORTED_MODULE_90__/* .JumpButtonNode */ .a(this._hoEditorFactoryID, curDomRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntJumpButton, name, fileId, hoEditorFactory.docTree.curStyleIndex);
|
|
42664
|
-
if (operType ===
|
|
43025
|
+
if (operType === 'add') {
|
|
42665
43026
|
hoEditorFactory.undoService.begin();
|
|
42666
43027
|
}
|
|
42667
43028
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, jumpButtonNode));
|
|
@@ -42693,7 +43054,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42693
43054
|
throw _events_Exception__WEBPACK_IMPORTED_MODULE_53__/* .Exception */ .P.NodeNotFound();
|
|
42694
43055
|
}
|
|
42695
43056
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42696
|
-
var commentID = hoEditorFactory.gernerateCode.generateID(
|
|
43057
|
+
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
42697
43058
|
var startPath = domRange.startPath;
|
|
42698
43059
|
var endPath = domRange.endPath;
|
|
42699
43060
|
var ePNode = hoEditorFactory.docTree.getParentNode(endPath); //结束节点的父节点
|
|
@@ -42717,7 +43078,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42717
43078
|
// 2023-05-23注释 25临时放开
|
|
42718
43079
|
curArea.drawComments();
|
|
42719
43080
|
hoEditorFactory.undoService.begin();
|
|
42720
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p(
|
|
43081
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_35__/* .Operate */ .p('insertComment', commentID)));
|
|
42721
43082
|
hoEditorFactory.undoService.commit();
|
|
42722
43083
|
// const newEndpath = endNode.getNodePath();
|
|
42723
43084
|
// const newRange = new DomRange(
|
|
@@ -42741,7 +43102,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42741
43102
|
var delStyleComment = function delStyleComment(commentID) {
|
|
42742
43103
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
42743
43104
|
if (value.commentID === commentID) {
|
|
42744
|
-
value.commentID =
|
|
43105
|
+
value.commentID = '0';
|
|
42745
43106
|
}
|
|
42746
43107
|
});
|
|
42747
43108
|
};
|
|
@@ -42777,7 +43138,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42777
43138
|
} else {
|
|
42778
43139
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
42779
43140
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
42780
|
-
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn(
|
|
43141
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_92__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
42781
43142
|
return;
|
|
42782
43143
|
}
|
|
42783
43144
|
del(_comment);
|
|
@@ -42968,7 +43329,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42968
43329
|
child.alpha = 1;
|
|
42969
43330
|
if (child instanceof createjs.Container) {
|
|
42970
43331
|
for (var j = 0; j < child.children.length; j++) {
|
|
42971
|
-
if (child.children[j].name ===
|
|
43332
|
+
if (child.children[j].name === 'back') {
|
|
42972
43333
|
child.children[j].alpha = 1;
|
|
42973
43334
|
}
|
|
42974
43335
|
}
|
|
@@ -42991,47 +43352,47 @@ var DocController = /*#__PURE__*/function () {
|
|
|
42991
43352
|
return;
|
|
42992
43353
|
/*
|
|
42993
43354
|
const loopNodes = ((fnode: BaseNode, lnode: BaseNode) => {
|
|
42994
|
-
|
|
42995
|
-
|
|
42996
|
-
|
|
42997
|
-
|
|
42998
|
-
|
|
42999
|
-
|
|
43000
|
-
}
|
|
43001
|
-
if (style.deleterIndex !== -1) {
|
|
43002
|
-
style.deleterIndex = -1;
|
|
43003
|
-
}
|
|
43004
|
-
if (style.creatorIndex !== -1) {
|
|
43005
|
-
style.creatorIndex = -1;
|
|
43006
|
-
}
|
|
43007
|
-
const newIndex = hoEditorFactory.docTree.styleCompare(style);
|
|
43008
|
-
anode.styleIndex = newIndex;
|
|
43009
|
-
}
|
|
43010
|
-
anode = (anode as BaseNode).previousLeaf();
|
|
43011
|
-
} while (anode && anode !== fnode)
|
|
43012
|
-
});
|
|
43013
|
-
if (type === 0) {
|
|
43014
|
-
const headerNodes = hoEditorFactory.docTree.headerNodes;
|
|
43015
|
-
const footerNodes = hoEditorFactory.docTree.footerNodes;
|
|
43016
|
-
const mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
43017
|
-
for (let i = 0; i < headerNodes.length; i++) {
|
|
43018
|
-
const hNodes = headerNodes[i];
|
|
43019
|
-
loopNodes(hNodes[0], hNodes[hNodes.length - 1]);
|
|
43355
|
+
let anode: BaseNode | null = lnode;
|
|
43356
|
+
do {
|
|
43357
|
+
if (anode instanceof TextNode) {
|
|
43358
|
+
const style = hoEditorFactory.docTree.styles[anode.styleIndex];
|
|
43359
|
+
if (style.commentID !== "0") {
|
|
43360
|
+
style.commentID = "0";
|
|
43020
43361
|
}
|
|
43021
|
-
|
|
43022
|
-
|
|
43023
|
-
loopNodes(fNodes[0], fNodes[fNodes.length - 1]);
|
|
43362
|
+
if (style.deleterIndex !== -1) {
|
|
43363
|
+
style.deleterIndex = -1;
|
|
43024
43364
|
}
|
|
43025
|
-
|
|
43026
|
-
|
|
43027
|
-
if (curDomRange.isEmpty) {
|
|
43028
|
-
return;
|
|
43029
|
-
} else {
|
|
43030
|
-
const domRange = curDomRange.normalize();
|
|
43031
|
-
const firstNode = domRange.npStart.node as BaseNode;
|
|
43032
|
-
const lastNode = domRange.npEnd.node as BaseNode;
|
|
43033
|
-
loopNodes(firstNode, lastNode);
|
|
43365
|
+
if (style.creatorIndex !== -1) {
|
|
43366
|
+
style.creatorIndex = -1;
|
|
43034
43367
|
}
|
|
43368
|
+
const newIndex = hoEditorFactory.docTree.styleCompare(style);
|
|
43369
|
+
anode.styleIndex = newIndex;
|
|
43370
|
+
}
|
|
43371
|
+
anode = (anode as BaseNode).previousLeaf();
|
|
43372
|
+
} while (anode && anode !== fnode)
|
|
43373
|
+
});
|
|
43374
|
+
if (type === 0) {
|
|
43375
|
+
const headerNodes = hoEditorFactory.docTree.headerNodes;
|
|
43376
|
+
const footerNodes = hoEditorFactory.docTree.footerNodes;
|
|
43377
|
+
const mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
43378
|
+
for (let i = 0; i < headerNodes.length; i++) {
|
|
43379
|
+
const hNodes = headerNodes[i];
|
|
43380
|
+
loopNodes(hNodes[0], hNodes[hNodes.length - 1]);
|
|
43381
|
+
}
|
|
43382
|
+
for (let j = 0; j < footerNodes.length; j++) {
|
|
43383
|
+
const fNodes = headerNodes[j];
|
|
43384
|
+
loopNodes(fNodes[0], fNodes[fNodes.length - 1]);
|
|
43385
|
+
}
|
|
43386
|
+
loopNodes(mainNodes[0], mainNodes[mainNodes.length - 1]);
|
|
43387
|
+
} else {
|
|
43388
|
+
if (curDomRange.isEmpty) {
|
|
43389
|
+
return;
|
|
43390
|
+
} else {
|
|
43391
|
+
const domRange = curDomRange.normalize();
|
|
43392
|
+
const firstNode = domRange.npStart.node as BaseNode;
|
|
43393
|
+
const lastNode = domRange.npEnd.node as BaseNode;
|
|
43394
|
+
loopNodes(firstNode, lastNode);
|
|
43395
|
+
}
|
|
43035
43396
|
}
|
|
43036
43397
|
// const changeEvent = new NodeChangeEvent(
|
|
43037
43398
|
// this._hoEditorFactoryID,
|
|
@@ -43058,7 +43419,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43058
43419
|
hoEditorFactory.undoService.begin();
|
|
43059
43420
|
if (domRange.npEnd.node instanceof _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_72__/* .TableFormula */ .N) {
|
|
43060
43421
|
var prePath = hoEditorFactory.docTree.getNodeLastPath(domRange.npEnd.node.previousLeaf());
|
|
43061
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath,
|
|
43422
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, domRange.npEnd.node, startPath, 'update'));
|
|
43062
43423
|
startPath = prePath;
|
|
43063
43424
|
}
|
|
43064
43425
|
var tableFormula = new _treeNode_TableFormula__WEBPACK_IMPORTED_MODULE_72__/* .TableFormula */ .N(this._hoEditorFactoryID, domRange.npStart.roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntTableFormula, formulaStr, hoEditorFactory.docTree.curStyleIndex, isHideZero, formulaType);
|
|
@@ -43133,9 +43494,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43133
43494
|
}
|
|
43134
43495
|
}
|
|
43135
43496
|
/**
|
|
43136
|
-
|
|
43137
|
-
|
|
43138
|
-
|
|
43497
|
+
* @description 在光标处插入网页文本
|
|
43498
|
+
* @param strHtml 网页文本,需要为单根文本,如<div> </div>
|
|
43499
|
+
*/
|
|
43139
43500
|
}, {
|
|
43140
43501
|
key: "insertHtmlText",
|
|
43141
43502
|
value: function insertHtmlText(strHtml) {
|
|
@@ -43165,10 +43526,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43165
43526
|
return cgEvent;
|
|
43166
43527
|
}
|
|
43167
43528
|
/**
|
|
43168
|
-
|
|
43169
|
-
|
|
43170
|
-
|
|
43171
|
-
|
|
43529
|
+
* @description 修改、删除后的重绘
|
|
43530
|
+
* @param cgEvent 变更绘制事件对象 在getRedrawObject中获取
|
|
43531
|
+
* @param endModifyNode 变更后的最后一个节点
|
|
43532
|
+
*/
|
|
43172
43533
|
}, {
|
|
43173
43534
|
key: "modifyRedraw",
|
|
43174
43535
|
value: function modifyRedraw(cgEvent, endModifyNode) {
|
|
@@ -43199,10 +43560,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43199
43560
|
hoeditorfactory.docTree.change(cgEvent);
|
|
43200
43561
|
}
|
|
43201
43562
|
/**
|
|
43202
|
-
|
|
43203
|
-
|
|
43204
|
-
|
|
43205
|
-
|
|
43563
|
+
* 插入分割符
|
|
43564
|
+
* @param width 宽
|
|
43565
|
+
* @param color 高
|
|
43566
|
+
*/
|
|
43206
43567
|
}, {
|
|
43207
43568
|
key: "insertSeparateChar",
|
|
43208
43569
|
value: function insertSeparateChar(range, width, color, line) {
|
|
@@ -43234,23 +43595,23 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43234
43595
|
}
|
|
43235
43596
|
}
|
|
43236
43597
|
/**
|
|
43237
|
-
|
|
43238
|
-
|
|
43239
|
-
|
|
43240
|
-
|
|
43598
|
+
* 插入孕周
|
|
43599
|
+
* @param lastMenstruationDate 末次月经日期
|
|
43600
|
+
* @param usedDate 用来计算的日期
|
|
43601
|
+
*/
|
|
43241
43602
|
}, {
|
|
43242
43603
|
key: "insertGestation",
|
|
43243
43604
|
value: function insertGestation(range, operType, lastMenstruationDate, usedDate) {
|
|
43244
43605
|
var domRange = range.normalize();
|
|
43245
43606
|
var startPath = domRange.endPath;
|
|
43246
43607
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43247
|
-
if (operType ===
|
|
43608
|
+
if (operType === 'update') {
|
|
43248
43609
|
var np = hoEditorFactory.docTree.findNodePositionByPath(startPath);
|
|
43249
43610
|
if (np) {
|
|
43250
43611
|
var node = np.node;
|
|
43251
43612
|
if (node instanceof _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_87__/* .GestationNode */ .G) {
|
|
43252
43613
|
hoEditorFactory.undoService.begin();
|
|
43253
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath,
|
|
43614
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath, 'update'));
|
|
43254
43615
|
startPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43255
43616
|
}
|
|
43256
43617
|
}
|
|
@@ -43258,7 +43619,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43258
43619
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43259
43620
|
var gestationNode = new _treeNode_GestationNode__WEBPACK_IMPORTED_MODULE_87__/* .GestationNode */ .G(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntGestation, lastMenstruationDate, usedDate, hoEditorFactory.docTree.curStyleIndex);
|
|
43260
43621
|
//插入节点
|
|
43261
|
-
if (operType ===
|
|
43622
|
+
if (operType === 'add') {
|
|
43262
43623
|
hoEditorFactory.undoService.begin();
|
|
43263
43624
|
}
|
|
43264
43625
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, gestationNode));
|
|
@@ -43327,9 +43688,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43327
43688
|
text = text.substring(0, eChildIndex + 1);
|
|
43328
43689
|
startPath = hoeditorfactory.docTree.getNodeLastPath(anode.previousLeaf());
|
|
43329
43690
|
//endPath = range.endPath;
|
|
43330
|
-
_pathArr = range.endPath.split(
|
|
43691
|
+
_pathArr = range.endPath.split('/');
|
|
43331
43692
|
_pathArr[_pathArr.length - 1] = eChildIndex.toString();
|
|
43332
|
-
endPath = _pathArr.join(
|
|
43693
|
+
endPath = _pathArr.join('/');
|
|
43333
43694
|
} else if (anode === astart) {
|
|
43334
43695
|
text = text.substring(sChildIndex + 1, text.length);
|
|
43335
43696
|
startPath = range.startPath;
|
|
@@ -43374,9 +43735,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43374
43735
|
return textToLabel;
|
|
43375
43736
|
}()
|
|
43376
43737
|
/**
|
|
43377
|
-
|
|
43378
|
-
|
|
43379
|
-
|
|
43738
|
+
* 标签文本转化为普通文本
|
|
43739
|
+
* @param 标签节点
|
|
43740
|
+
*/
|
|
43380
43741
|
}, {
|
|
43381
43742
|
key: "labelToText",
|
|
43382
43743
|
value: function labelToText(node) {
|
|
@@ -43405,7 +43766,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43405
43766
|
var loopCell = function loopCell() {
|
|
43406
43767
|
for (var j = 1; j < cell.childNodes.length; j++) {
|
|
43407
43768
|
var anode = cell.childNodes[j];
|
|
43408
|
-
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.imgSrc ==
|
|
43769
|
+
if (anode instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && anode.imgSrc == '' && anode.fingerPrintSrc == '') {
|
|
43409
43770
|
mark = false;
|
|
43410
43771
|
break;
|
|
43411
43772
|
}
|
|
@@ -43453,7 +43814,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43453
43814
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43454
43815
|
var startPath = domRange.startPath;
|
|
43455
43816
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43456
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, name, signType, signFormat,
|
|
43817
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 0, 0, name, signType, signFormat, '', '', signTimeFormat, '', 0, 0, customProperty, true, hoEditorFactory.docTree.curStyleIndex, connectMode, isFront, allowEditSignTime, undefined, undefined, attribute, connectChar, otherProperties);
|
|
43457
43818
|
//插入该表达式节点
|
|
43458
43819
|
hoEditorFactory.undoService.begin();
|
|
43459
43820
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -43474,7 +43835,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43474
43835
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43475
43836
|
var startPath = domRange.startPath;
|
|
43476
43837
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath);
|
|
43477
|
-
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 1, type, name, 0,
|
|
43838
|
+
var signNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_25__/* .NodeType */ .Jq.ntSign, 1, type, name, 0, '医师签名', signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, hoEditorFactory.docTree.curStyleIndex, undefined, undefined, undefined, fingerPrintSrc, fingerPosition);
|
|
43478
43839
|
//插入该表达式节点
|
|
43479
43840
|
hoEditorFactory.undoService.begin();
|
|
43480
43841
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_26__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, signNode));
|
|
@@ -43498,7 +43859,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43498
43859
|
value: function updateSignNode(node, type, name, signor, signTime, imgSrc, imgWidth, imgHeight, customProperty, fingerPrintSrc, fingerPosition, otherProperties) {
|
|
43499
43860
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
43500
43861
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
43501
|
-
if (node.imgSrc ===
|
|
43862
|
+
if (node.imgSrc === '') {
|
|
43502
43863
|
//第一次更新签名
|
|
43503
43864
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43504
43865
|
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_76__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_27__/* .DocAction */ .gk.daModifyStyle, sPath, ePath);
|
|
@@ -43513,7 +43874,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43513
43874
|
node.customProperty = customProperty;
|
|
43514
43875
|
node.imgWidth = imgWidth;
|
|
43515
43876
|
node.imgHeight = imgHeight;
|
|
43516
|
-
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc :
|
|
43877
|
+
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : '';
|
|
43517
43878
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
43518
43879
|
node.otherProperties = otherProperties ? otherProperties : node.otherProperties;
|
|
43519
43880
|
node.imgSrc = imgSrc;
|
|
@@ -43527,7 +43888,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43527
43888
|
}
|
|
43528
43889
|
} else {
|
|
43529
43890
|
//第二次更新签名
|
|
43530
|
-
if (node.connectMode ===
|
|
43891
|
+
if (node.connectMode === '换行') {
|
|
43531
43892
|
sPath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
43532
43893
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(node.drawNodes[0]);
|
|
43533
43894
|
var curParaNode = dline.paragraphNode;
|
|
@@ -43549,19 +43910,19 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43549
43910
|
}
|
|
43550
43911
|
}
|
|
43551
43912
|
/**
|
|
43552
|
-
|
|
43553
|
-
|
|
43554
|
-
|
|
43555
|
-
|
|
43556
|
-
|
|
43557
|
-
|
|
43558
|
-
|
|
43559
|
-
|
|
43560
|
-
|
|
43561
|
-
|
|
43562
|
-
|
|
43563
|
-
|
|
43564
|
-
|
|
43913
|
+
* 修改空签名
|
|
43914
|
+
* @param node 签名节点
|
|
43915
|
+
* @param name 签名名称
|
|
43916
|
+
* @param attribute 签名属性
|
|
43917
|
+
* @param signType 0单人签名 1多人签名
|
|
43918
|
+
* @param signFormat 签名格式
|
|
43919
|
+
* @param signor 签名人
|
|
43920
|
+
* @param signTime 签名时间
|
|
43921
|
+
* @param signTimeFormat 签名时间格式
|
|
43922
|
+
* @param connectMode 连接符
|
|
43923
|
+
* @param otherProperties
|
|
43924
|
+
* @param isFront 是否前置
|
|
43925
|
+
*/
|
|
43565
43926
|
}, {
|
|
43566
43927
|
key: "updateEmptySignNode",
|
|
43567
43928
|
value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties, isFront) {
|
|
@@ -43586,10 +43947,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43586
43947
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43587
43948
|
}
|
|
43588
43949
|
/**
|
|
43589
|
-
|
|
43590
|
-
|
|
43591
|
-
|
|
43592
|
-
|
|
43950
|
+
* 更新签名时间
|
|
43951
|
+
* @param node 签名节点
|
|
43952
|
+
* @param signTime 签名时间
|
|
43953
|
+
*/
|
|
43593
43954
|
}, {
|
|
43594
43955
|
key: "updateSignTime",
|
|
43595
43956
|
value: function updateSignTime(node, signText) {
|
|
@@ -43626,10 +43987,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43626
43987
|
hoEditorFactory.docTree.change(changeEvent);
|
|
43627
43988
|
}
|
|
43628
43989
|
/**
|
|
43629
|
-
|
|
43630
|
-
|
|
43631
|
-
|
|
43632
|
-
|
|
43990
|
+
* 更新签名自定义属性
|
|
43991
|
+
* @param node 签名节点
|
|
43992
|
+
* @param customProperty 自定义属性
|
|
43993
|
+
*/
|
|
43633
43994
|
}, {
|
|
43634
43995
|
key: "updateSignCustomProp",
|
|
43635
43996
|
value: function updateSignCustomProp(node, customProperty) {
|
|
@@ -43695,7 +44056,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
43695
44056
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
43696
44057
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
43697
44058
|
};
|
|
43698
|
-
var toPath =
|
|
44059
|
+
var toPath = '';
|
|
43699
44060
|
if (nextNode instanceof _treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) {
|
|
43700
44061
|
toPath = nextNode.getNodePath();
|
|
43701
44062
|
setSelectRange(toPath, toPath);
|
|
@@ -54121,6 +54482,12 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
54121
54482
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_mutexSelect", false);
|
|
54122
54483
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_allowMultiSelect", false);
|
|
54123
54484
|
//允许多选
|
|
54485
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_usePrefix", void 0);
|
|
54486
|
+
// 设置前缀字符文本
|
|
54487
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_selectPrefix", void 0);
|
|
54488
|
+
// 设置前缀字符文本
|
|
54489
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_unSelectPrefix", void 0);
|
|
54490
|
+
// 设置前缀字符文本
|
|
54124
54491
|
//private _valuesObject: object;
|
|
54125
54492
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_this), "_keyValue", "");
|
|
54126
54493
|
//选中项的key值
|
|
@@ -54319,6 +54686,36 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
54319
54686
|
this._allowMultiSelect = value;
|
|
54320
54687
|
}
|
|
54321
54688
|
}
|
|
54689
|
+
}, {
|
|
54690
|
+
key: "usePrefix",
|
|
54691
|
+
get: function get() {
|
|
54692
|
+
return this._usePrefix;
|
|
54693
|
+
},
|
|
54694
|
+
set: function set(value) {
|
|
54695
|
+
if (this._usePrefix !== value) {
|
|
54696
|
+
this._usePrefix = value;
|
|
54697
|
+
}
|
|
54698
|
+
}
|
|
54699
|
+
}, {
|
|
54700
|
+
key: "selectPrefix",
|
|
54701
|
+
get: function get() {
|
|
54702
|
+
return this._selectPrefix;
|
|
54703
|
+
},
|
|
54704
|
+
set: function set(value) {
|
|
54705
|
+
if (this._selectPrefix !== value) {
|
|
54706
|
+
this._selectPrefix = value;
|
|
54707
|
+
}
|
|
54708
|
+
}
|
|
54709
|
+
}, {
|
|
54710
|
+
key: "unSelectPrefix",
|
|
54711
|
+
get: function get() {
|
|
54712
|
+
return this._unSelectPrefix;
|
|
54713
|
+
},
|
|
54714
|
+
set: function set(value) {
|
|
54715
|
+
if (this._unSelectPrefix !== value) {
|
|
54716
|
+
this._unSelectPrefix = value;
|
|
54717
|
+
}
|
|
54718
|
+
}
|
|
54322
54719
|
}, {
|
|
54323
54720
|
key: "downListContent",
|
|
54324
54721
|
get: function get() {
|
|
@@ -54541,6 +54938,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
54541
54938
|
isReadOnly: this.isReadOnly,
|
|
54542
54939
|
mutexSelect: this.mutexSelect,
|
|
54543
54940
|
allowMultiSelect: this.allowMultiSelect,
|
|
54941
|
+
usePrefix: this.usePrefix,
|
|
54942
|
+
selectPrefix: this.selectPrefix,
|
|
54943
|
+
unSelectPrefix: this.unSelectPrefix,
|
|
54544
54944
|
readType: this.readType,
|
|
54545
54945
|
downLists: downLists,
|
|
54546
54946
|
//dataSource: this.bandDataSource,
|
|
@@ -54601,6 +55001,14 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
54601
55001
|
if (this.remark) {
|
|
54602
55002
|
retObj.remark = this.remark;
|
|
54603
55003
|
}
|
|
55004
|
+
if (this.remark) {
|
|
55005
|
+
retObj.remark = this.remark;
|
|
55006
|
+
}
|
|
55007
|
+
if (this.usePrefix) {
|
|
55008
|
+
retObj.usePrefix = this.usePrefix;
|
|
55009
|
+
retObj.selectPrefix = this.selectPrefix;
|
|
55010
|
+
retObj.unSelectPrefix = this.unSelectPrefix;
|
|
55011
|
+
}
|
|
54604
55012
|
var paga = {
|
|
54605
55013
|
"DownListNode": retObj
|
|
54606
55014
|
};
|
|
@@ -54627,6 +55035,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
54627
55035
|
json.isReadOnly = !json.isReadOnly ? false : json.isReadOnly;
|
|
54628
55036
|
json.mutexSelect = !json.mutexSelect ? false : json.mutexSelect;
|
|
54629
55037
|
json.allowMultiSelect = !json.allowMultiSelect ? false : json.allowMultiSelect;
|
|
55038
|
+
json.usePrefix = !json.usePrefix ? false : json.usePrefix;
|
|
55039
|
+
json.selectPrefix = json.selectPrefix || '有';
|
|
55040
|
+
json.unSelectPrefix = json.unSelectPrefix || '无';
|
|
54630
55041
|
json.type = parseInt(_ControlNode__WEBPACK_IMPORTED_MODULE_26__/* .ControlType */ .C[json.type]);
|
|
54631
55042
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
54632
55043
|
json.readType = json.readType ? Number(json.readType) : -1;
|
|
@@ -55353,7 +55764,7 @@ var BaseNode = __webpack_require__(62358);
|
|
|
55353
55764
|
var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
55354
55765
|
(0,inherits/* default */.Z)(ImageNode, _BaseNode);
|
|
55355
55766
|
var _super = (0,createSuper/* default */.Z)(ImageNode);
|
|
55356
|
-
|
|
55767
|
+
// 内部标识符
|
|
55357
55768
|
function ImageNode(hoEditorFactoryID, rootNodes, pNode, nodeType, id, imageDataBase64String, width, height,
|
|
55358
55769
|
//scaleX?: number,
|
|
55359
55770
|
//scaleY?: number,
|
|
@@ -55382,6 +55793,8 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55382
55793
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_imageJson", void 0);
|
|
55383
55794
|
// 修改层json信息
|
|
55384
55795
|
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_isBackFill", void 0);
|
|
55796
|
+
//是否是回填的
|
|
55797
|
+
(0,defineProperty/* default */.Z)((0,assertThisInitialized/* default */.Z)(_this), "_innerIdentifier", void 0);
|
|
55385
55798
|
_this._id = id;
|
|
55386
55799
|
_this._width = width;
|
|
55387
55800
|
_this._height = height;
|
|
@@ -55391,6 +55804,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55391
55804
|
_this._markImage = markImage ? markImage : '';
|
|
55392
55805
|
_this._imageJson = imageJson ? imageJson : '';
|
|
55393
55806
|
_this.isBackFill = options !== null && options !== void 0 && options.isBackFill ? options.isBackFill : false;
|
|
55807
|
+
_this.innerIdentifier = (options === null || options === void 0 ? void 0 : options.innerIdentifier) || '';
|
|
55394
55808
|
//this._scaleX = scaleX ? scaleX : 1;
|
|
55395
55809
|
//this._scaleY = scaleY ? scaleY : 1;
|
|
55396
55810
|
_this.node2DrawNodeRange(0, 0);
|
|
@@ -55508,6 +55922,16 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55508
55922
|
this._isBackFill = value;
|
|
55509
55923
|
}
|
|
55510
55924
|
}
|
|
55925
|
+
}, {
|
|
55926
|
+
key: "innerIdentifier",
|
|
55927
|
+
get: function get() {
|
|
55928
|
+
return this._innerIdentifier;
|
|
55929
|
+
},
|
|
55930
|
+
set: function set(value) {
|
|
55931
|
+
if (this._innerIdentifier !== value) {
|
|
55932
|
+
this._innerIdentifier = value;
|
|
55933
|
+
}
|
|
55934
|
+
}
|
|
55511
55935
|
/**
|
|
55512
55936
|
* imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
|
|
55513
55937
|
*/
|
|
@@ -55604,6 +56028,9 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55604
56028
|
if (this.isBackFill) {
|
|
55605
56029
|
retObj.isBackFill = this.isBackFill;
|
|
55606
56030
|
}
|
|
56031
|
+
if (this.innerIdentifier) {
|
|
56032
|
+
retObj.innerIdentifier = this.innerIdentifier;
|
|
56033
|
+
}
|
|
55607
56034
|
if (isCopy) {
|
|
55608
56035
|
return retObj;
|
|
55609
56036
|
}
|
|
@@ -55625,12 +56052,14 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55625
56052
|
//const scaleY = Number(json.scaleY);
|
|
55626
56053
|
var isFormula = json.isFormula ? json.isFormula === "true" ? true : false : false;
|
|
55627
56054
|
var isBackFill = json.isBackFill ? json.isBackFill === "true" ? true : false : false;
|
|
56055
|
+
var innerIdentifier = json.innerIdentifier || '';
|
|
55628
56056
|
return new ImageNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, BaseNode/* NodeType */.Jq.ntImage, json.id, json.imageDataBase64String, width, height,
|
|
55629
56057
|
//scaleX,
|
|
55630
56058
|
//scaleY,
|
|
55631
56059
|
{
|
|
55632
56060
|
isFormula: isFormula,
|
|
55633
|
-
isBackFill: isBackFill
|
|
56061
|
+
isBackFill: isBackFill,
|
|
56062
|
+
innerIdentifier: innerIdentifier
|
|
55634
56063
|
}, json.markImage, json.imageJson);
|
|
55635
56064
|
}
|
|
55636
56065
|
}]);
|
|
@@ -65992,7 +66421,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
65992
66421
|
/* harmony export */ });
|
|
65993
66422
|
/* unused harmony exports SpecialFormat, DataFormat, DataVerifyFormat, BandDataSource */
|
|
65994
66423
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(94310);
|
|
65995
|
-
/* harmony import */ var
|
|
66424
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(40735);
|
|
65996
66425
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(61748);
|
|
65997
66426
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
65998
66427
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
@@ -66019,16 +66448,16 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
66019
66448
|
/* harmony import */ var core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_slice_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
66020
66449
|
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(38862);
|
|
66021
66450
|
/* harmony import */ var core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_json_stringify_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
66022
|
-
/* harmony import */ var
|
|
66023
|
-
/* harmony import */ var
|
|
66024
|
-
/* harmony import */ var
|
|
66025
|
-
/* harmony import */ var
|
|
66026
|
-
/* harmony import */ var
|
|
66027
|
-
/* harmony import */ var
|
|
66028
|
-
/* harmony import */ var
|
|
66029
|
-
/* harmony import */ var
|
|
66030
|
-
/* harmony import */ var
|
|
66031
|
-
/* harmony import */ var
|
|
66451
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(74916);
|
|
66452
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_20__);
|
|
66453
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(15306);
|
|
66454
|
+
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_21__);
|
|
66455
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(26699);
|
|
66456
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_22___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_22__);
|
|
66457
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(32023);
|
|
66458
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_23___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_23__);
|
|
66459
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(57658);
|
|
66460
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_24___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_24__);
|
|
66032
66461
|
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(69600);
|
|
66033
66462
|
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_25___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_25__);
|
|
66034
66463
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(40561);
|
|
@@ -66047,31 +66476,30 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
66047
66476
|
/* harmony import */ var _editor_events_DmouseEvent__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(48541);
|
|
66048
66477
|
/* harmony import */ var _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(8277);
|
|
66049
66478
|
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(2613);
|
|
66050
|
-
/* harmony import */ var
|
|
66051
|
-
/* harmony import */ var
|
|
66052
|
-
/* harmony import */ var
|
|
66053
|
-
/* harmony import */ var
|
|
66054
|
-
/* harmony import */ var
|
|
66055
|
-
/* harmony import */ var
|
|
66056
|
-
/* harmony import */ var
|
|
66057
|
-
/* harmony import */ var
|
|
66058
|
-
/* harmony import */ var
|
|
66059
|
-
/* harmony import */ var
|
|
66060
|
-
/* harmony import */ var
|
|
66061
|
-
/* harmony import */ var
|
|
66062
|
-
/* harmony import */ var
|
|
66063
|
-
/* harmony import */ var
|
|
66064
|
-
/* harmony import */ var
|
|
66065
|
-
/* harmony import */ var
|
|
66066
|
-
/* harmony import */ var
|
|
66067
|
-
/* harmony import */ var
|
|
66068
|
-
/* harmony import */ var
|
|
66069
|
-
/* harmony import */ var
|
|
66070
|
-
/* harmony import */ var
|
|
66071
|
-
/* harmony import */ var
|
|
66072
|
-
/* harmony import */ var
|
|
66073
|
-
/* harmony import */ var
|
|
66074
|
-
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_61__ = __webpack_require__(34910);
|
|
66479
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(74089);
|
|
66480
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(32629);
|
|
66481
|
+
/* harmony import */ var _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(29899);
|
|
66482
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(94639);
|
|
66483
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(42921);
|
|
66484
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__(4938);
|
|
66485
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__(62358);
|
|
66486
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_44__ = __webpack_require__(91105);
|
|
66487
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_45__ = __webpack_require__(92501);
|
|
66488
|
+
/* harmony import */ var _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_46__ = __webpack_require__(47088);
|
|
66489
|
+
/* harmony import */ var _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_47__ = __webpack_require__(59621);
|
|
66490
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_48__ = __webpack_require__(57727);
|
|
66491
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__ = __webpack_require__(80177);
|
|
66492
|
+
/* harmony import */ var _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_50__ = __webpack_require__(45836);
|
|
66493
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__ = __webpack_require__(67945);
|
|
66494
|
+
/* harmony import */ var _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_52__ = __webpack_require__(13307);
|
|
66495
|
+
/* harmony import */ var _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_53__ = __webpack_require__(11429);
|
|
66496
|
+
/* harmony import */ var _PupilMapNode__WEBPACK_IMPORTED_MODULE_54__ = __webpack_require__(19995);
|
|
66497
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_55__ = __webpack_require__(24701);
|
|
66498
|
+
/* harmony import */ var _TableFormula__WEBPACK_IMPORTED_MODULE_56__ = __webpack_require__(90832);
|
|
66499
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_57__ = __webpack_require__(5010);
|
|
66500
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_58__ = __webpack_require__(27198);
|
|
66501
|
+
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_59__ = __webpack_require__(12659);
|
|
66502
|
+
/* harmony import */ var _RareCharNode__WEBPACK_IMPORTED_MODULE_60__ = __webpack_require__(34910);
|
|
66075
66503
|
|
|
66076
66504
|
|
|
66077
66505
|
|
|
@@ -66107,7 +66535,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
66107
66535
|
/*
|
|
66108
66536
|
* @Author: your name
|
|
66109
66537
|
* @Date: 2020-11-03 15:17:54
|
|
66110
|
-
* @LastEditTime: 2023-
|
|
66538
|
+
* @LastEditTime: 2023-11-21 10:51:54
|
|
66111
66539
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
66112
66540
|
* @Description: In User Settings Edit
|
|
66113
66541
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -66140,7 +66568,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
66140
66568
|
|
|
66141
66569
|
|
|
66142
66570
|
|
|
66143
|
-
|
|
66144
66571
|
|
|
66145
66572
|
|
|
66146
66573
|
var ReadOnlyStatus;
|
|
@@ -66191,6 +66618,12 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
66191
66618
|
//列表项目分隔字符
|
|
66192
66619
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_mutexSelect", void 0);
|
|
66193
66620
|
// 列表选项互斥
|
|
66621
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_usePrefix", void 0);
|
|
66622
|
+
// 设置前缀字符文本
|
|
66623
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_selectPrefix", void 0);
|
|
66624
|
+
// 设置前缀字符文本
|
|
66625
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_12__/* ["default"] */ .Z)(this, "_unSelectPrefix", void 0);
|
|
66626
|
+
// 设置前缀字符文本
|
|
66194
66627
|
//private _dynamicLoadList!: boolean;//动态加载列表
|
|
66195
66628
|
// private _listContent!: string;//列表内容
|
|
66196
66629
|
//private _source!: string; //来源
|
|
@@ -66237,6 +66670,36 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
66237
66670
|
this._mutexSelect = value;
|
|
66238
66671
|
}
|
|
66239
66672
|
}
|
|
66673
|
+
}, {
|
|
66674
|
+
key: "usePrefix",
|
|
66675
|
+
get: function get() {
|
|
66676
|
+
return this._usePrefix;
|
|
66677
|
+
},
|
|
66678
|
+
set: function set(value) {
|
|
66679
|
+
if (this._usePrefix !== value) {
|
|
66680
|
+
this._usePrefix = value;
|
|
66681
|
+
}
|
|
66682
|
+
}
|
|
66683
|
+
}, {
|
|
66684
|
+
key: "selectPrefix",
|
|
66685
|
+
get: function get() {
|
|
66686
|
+
return this._selectPrefix;
|
|
66687
|
+
},
|
|
66688
|
+
set: function set(value) {
|
|
66689
|
+
if (this._selectPrefix !== value) {
|
|
66690
|
+
this._selectPrefix = value;
|
|
66691
|
+
}
|
|
66692
|
+
}
|
|
66693
|
+
}, {
|
|
66694
|
+
key: "unSelectPrefix",
|
|
66695
|
+
get: function get() {
|
|
66696
|
+
return this._unSelectPrefix;
|
|
66697
|
+
},
|
|
66698
|
+
set: function set(value) {
|
|
66699
|
+
if (this._unSelectPrefix !== value) {
|
|
66700
|
+
this._unSelectPrefix = value;
|
|
66701
|
+
}
|
|
66702
|
+
}
|
|
66240
66703
|
// get dynamicLoadList(): boolean {
|
|
66241
66704
|
// return this._dynamicLoadList;
|
|
66242
66705
|
// }
|
|
@@ -66283,6 +66746,9 @@ var DownListProperty = /*#__PURE__*/function () {
|
|
|
66283
66746
|
//ret._source = '';
|
|
66284
66747
|
ret._listItems = '';
|
|
66285
66748
|
ret._mutexSelect = false;
|
|
66749
|
+
ret._usePrefix = false;
|
|
66750
|
+
ret._selectPrefix = '有';
|
|
66751
|
+
ret._unSelectPrefix = '无';
|
|
66286
66752
|
//ret._specialFormat = SpecialFormat.none;
|
|
66287
66753
|
return ret;
|
|
66288
66754
|
}
|
|
@@ -66616,7 +67082,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
66616
67082
|
}
|
|
66617
67083
|
}
|
|
66618
67084
|
if (!_this._dataId) {
|
|
66619
|
-
_this._dataId =
|
|
67085
|
+
_this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
|
|
66620
67086
|
}
|
|
66621
67087
|
_this.node2DrawNodeRange(0, _this.text.length - 1);
|
|
66622
67088
|
//FIXME:正式使用时下面事件触发要注释掉,这里会在节点被删除后被卡死
|
|
@@ -67041,7 +67507,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67041
67507
|
} else {
|
|
67042
67508
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
67043
67509
|
var child = this.childNodes[i];
|
|
67044
|
-
if (child instanceof
|
|
67510
|
+
if (child instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && child.MarkNodeType == 1) {
|
|
67045
67511
|
return child;
|
|
67046
67512
|
}
|
|
67047
67513
|
}
|
|
@@ -67056,7 +67522,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67056
67522
|
key: "update",
|
|
67057
67523
|
value: function update(mode) {
|
|
67058
67524
|
var _this2 = this;
|
|
67059
|
-
var hoEditorFactory =
|
|
67525
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67060
67526
|
/**
|
|
67061
67527
|
* 内容为空,显示一个点位符
|
|
67062
67528
|
*/
|
|
@@ -67078,7 +67544,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67078
67544
|
case 0:
|
|
67079
67545
|
//由于在表格在放置输入域后会在绘制时触发输入域重绘,此时表格还未放置于舞台,造成报错,故暂时禁用此函数
|
|
67080
67546
|
//熊跃龙 2021-03-19
|
|
67081
|
-
changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID,
|
|
67547
|
+
changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(_this2.hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_38__/* .DocAction */ .gk.daModifyStyle, path1 || startPath, path2 || endPath);
|
|
67082
67548
|
changeEvent.oldEndPath = path2 || endPath;
|
|
67083
67549
|
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_33__/* .SelectRange */ .E(_this2.hoEditorFactoryID).getRangeDrawLines(path1 || startPath, path2 || endPath, true);
|
|
67084
67550
|
_context.next = 5;
|
|
@@ -67206,8 +67672,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67206
67672
|
var loopChildNodes = function loopChildNodes(node) {
|
|
67207
67673
|
var nodes = node.childNodes.slice(1);
|
|
67208
67674
|
nodes.forEach(function (childNode) {
|
|
67209
|
-
if (childNode instanceof
|
|
67210
|
-
var hoEditorFactory =
|
|
67675
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R) {
|
|
67676
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(_this3.hoEditorFactoryID);
|
|
67211
67677
|
var textStyle = hoEditorFactory.docTree.styles[childNode.styleIndex];
|
|
67212
67678
|
if (!textStyle) {
|
|
67213
67679
|
textStyle = hoEditorFactory.docTree.styles[0];
|
|
@@ -67222,36 +67688,36 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67222
67688
|
text += childNode.text;
|
|
67223
67689
|
}
|
|
67224
67690
|
}
|
|
67225
|
-
} else if (childNode instanceof
|
|
67226
|
-
if (childNode instanceof
|
|
67691
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_44__/* .ControlNode */ .w) {
|
|
67692
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_45__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
67227
67693
|
text += '';
|
|
67228
67694
|
} else {
|
|
67229
67695
|
text += childNode.text;
|
|
67230
67696
|
}
|
|
67231
|
-
} else if (childNode instanceof
|
|
67697
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_42__/* .BaseCombineNode */ .V) {
|
|
67232
67698
|
loopChildNodes(childNode);
|
|
67233
|
-
} else if (childNode instanceof
|
|
67699
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__/* .ParagraphNode */ .C) {
|
|
67234
67700
|
text += '\n';
|
|
67235
|
-
} else if (childNode instanceof
|
|
67701
|
+
} else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_49__/* .MedicalExpressionNode */ .H) {
|
|
67236
67702
|
var expressJson = JSON.parse('{}');
|
|
67237
67703
|
text += '<MedicalExpress>';
|
|
67238
|
-
if (childNode instanceof
|
|
67704
|
+
if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_50__/* .MenstrualHistoryNode */ .n) {
|
|
67239
67705
|
expressJson.expressStyle = childNode.expressStyle;
|
|
67240
67706
|
expressJson.menseDays = childNode.menseDays;
|
|
67241
67707
|
expressJson.cycleDays = childNode.cycleDays;
|
|
67242
67708
|
expressJson.menarcheAge = childNode.menarcheAge;
|
|
67243
67709
|
expressJson.menoPauseAge = childNode.menoPauseAge;
|
|
67244
|
-
} else if (childNode instanceof
|
|
67710
|
+
} else if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PupilMapNode */ .v || childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_47__/* .LightLocationMapNode */ .D || childNode instanceof _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_46__/* .FetalHeartMapNode */ .t) {
|
|
67245
67711
|
expressJson.value1 = childNode.value1;
|
|
67246
67712
|
expressJson.value2 = childNode.value2;
|
|
67247
67713
|
expressJson.value3 = childNode.value3;
|
|
67248
67714
|
expressJson.value4 = childNode.value4;
|
|
67249
67715
|
expressJson.value5 = childNode.value5;
|
|
67250
67716
|
expressJson.value6 = childNode.value6;
|
|
67251
|
-
if (childNode instanceof
|
|
67717
|
+
if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PupilMapNode */ .v) {
|
|
67252
67718
|
expressJson.expressStyle = 'PupilMapNode';
|
|
67253
67719
|
expressJson.value7 = childNode.value7;
|
|
67254
|
-
} else if (childNode instanceof
|
|
67720
|
+
} else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_47__/* .LightLocationMapNode */ .D) {
|
|
67255
67721
|
expressJson.expressStyle = 'LightLocationMapNode';
|
|
67256
67722
|
expressJson.value7 = childNode.value7;
|
|
67257
67723
|
expressJson.value8 = childNode.value8;
|
|
@@ -67259,12 +67725,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67259
67725
|
} else {
|
|
67260
67726
|
expressJson.expressStyle = 'FetalHeartMapNode';
|
|
67261
67727
|
}
|
|
67262
|
-
} else if (childNode instanceof
|
|
67263
|
-
if (childNode instanceof
|
|
67728
|
+
} else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_52__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PrimaryTeethMapNode */ .x) {
|
|
67729
|
+
if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_52__/* .PermanentTeethMapNode */ .f) {
|
|
67264
67730
|
expressJson.expressStyle = 'PermanentTeethMapNode';
|
|
67265
67731
|
expressJson.remark = childNode.remark;
|
|
67266
67732
|
}
|
|
67267
|
-
if (childNode instanceof
|
|
67733
|
+
if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PrimaryTeethMapNode */ .x) {
|
|
67268
67734
|
expressJson.expressStyle = 'PrimaryTeethMapNode';
|
|
67269
67735
|
}
|
|
67270
67736
|
expressJson.topLeftSelected = childNode.topLeftSelected;
|
|
@@ -67281,7 +67747,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67281
67747
|
var _this$downListPropert;
|
|
67282
67748
|
text = "";
|
|
67283
67749
|
loopChildNodes(this);
|
|
67284
|
-
if (text != this.text && isNeed && !this.text.includes("<span>") && !((_this$downListPropert = this.downListProperty.listItems) !== null && _this$downListPropert !== void 0 && _this$downListPropert.includes("<元素>")) && this.readType != 1) {
|
|
67750
|
+
if (text.replace(/\n/g, '') != this.text.replace(/\n/g, '') && isNeed && !this.text.includes("<span>") && !((_this$downListPropert = this.downListProperty.listItems) !== null && _this$downListPropert !== void 0 && _this$downListPropert.includes("<元素>")) && this.readType != 1) {
|
|
67285
67751
|
this.value = "";
|
|
67286
67752
|
this.keyValue = "";
|
|
67287
67753
|
return text;
|
|
@@ -67319,16 +67785,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67319
67785
|
key: "setFieldText",
|
|
67320
67786
|
value: function () {
|
|
67321
67787
|
var _setFieldText = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().mark(function _callee2(text, customProperty, keyValue, value) {
|
|
67322
|
-
var
|
|
67788
|
+
var hoEditorFactory, startPath, oldValue, endPath, aRange, anodes, i, anode, markNode;
|
|
67323
67789
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
67324
67790
|
while (1) switch (_context2.prev = _context2.next) {
|
|
67325
67791
|
case 0:
|
|
67326
|
-
if (!(text === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_49__/* .MarkNode */ .j)) {
|
|
67327
|
-
_context2.next = 2;
|
|
67328
|
-
break;
|
|
67329
|
-
}
|
|
67330
|
-
return _context2.abrupt("return");
|
|
67331
|
-
case 2:
|
|
67332
67792
|
if (customProperty) {
|
|
67333
67793
|
this.customProperty = customProperty;
|
|
67334
67794
|
}
|
|
@@ -67336,14 +67796,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67336
67796
|
if (value) {
|
|
67337
67797
|
this.value = value;
|
|
67338
67798
|
}
|
|
67799
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67800
|
+
startPath = this.StartMarkNode.getNodePath();
|
|
67801
|
+
if (!(text === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j)) {
|
|
67802
|
+
_context2.next = 12;
|
|
67803
|
+
break;
|
|
67804
|
+
}
|
|
67805
|
+
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
67806
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(startPath);
|
|
67807
|
+
hoEditorFactory.drawTree.caret.visible = true;
|
|
67808
|
+
hoEditorFactory.drawTree.editor.input.focus();
|
|
67809
|
+
hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
67810
|
+
return _context2.abrupt("return");
|
|
67811
|
+
case 12:
|
|
67339
67812
|
oldValue = this._canModifyContent.valueOf();
|
|
67340
67813
|
this._canModifyContent = true;
|
|
67341
|
-
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_38__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67342
|
-
startPath = this.StartMarkNode.getNodePath();
|
|
67343
67814
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 2]);
|
|
67344
|
-
aRange = new
|
|
67345
|
-
if (!(this.childNodes[1] instanceof
|
|
67346
|
-
anodes =
|
|
67815
|
+
aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_40__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath).normalize();
|
|
67816
|
+
if (!(this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) && this.inputFieldType === 0) {
|
|
67817
|
+
anodes = _DomRange__WEBPACK_IMPORTED_MODULE_40__/* .DomRange */ .a.getSelectDomNodesForDelete(this.hoEditorFactoryID, startPath, endPath);
|
|
67347
67818
|
for (i = 0; i < anodes.length; i++) {
|
|
67348
67819
|
anode = anodes[i];
|
|
67349
67820
|
if (anode instanceof TextInputFieldNode && anode.parentNode === this && anode.isAllowDelete === false) {
|
|
@@ -67355,26 +67826,30 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67355
67826
|
hoEditorFactory.docTree.curDomRange.setSamePath(startPath);
|
|
67356
67827
|
}
|
|
67357
67828
|
if (!(text === '')) {
|
|
67358
|
-
_context2.next =
|
|
67829
|
+
_context2.next = 30;
|
|
67359
67830
|
break;
|
|
67360
67831
|
}
|
|
67361
67832
|
this._childNodes.splice(1, this._childNodes.length - 2);
|
|
67362
|
-
markNode = new
|
|
67363
|
-
hoEditorFactory.undoService.
|
|
67364
|
-
hoEditorFactory.undoService.
|
|
67365
|
-
|
|
67833
|
+
markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, this.labelText, hoEditorFactory.docTree.curStyleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtContent); //hoEditorFactory.undoService.begin();
|
|
67834
|
+
//hoEditorFactory.undoService.add(new NodeInsertUndoUnit(this._hoEditorFactoryID, startPath, markNode));
|
|
67835
|
+
//hoEditorFactory.undoService.commit();
|
|
67836
|
+
this._childNodes.splice(1, 0, markNode);
|
|
67366
67837
|
if (this._childNodes2.length === 3) {
|
|
67367
67838
|
this._childNodes2.splice(1, 1);
|
|
67368
67839
|
}
|
|
67369
67840
|
this._childNodes2.splice(1, 0, markNode);
|
|
67370
67841
|
this._canModifyContent = oldValue;
|
|
67371
67842
|
this.update(0);
|
|
67843
|
+
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
67844
|
+
hoEditorFactory.drawTree.caret.visible = true;
|
|
67845
|
+
hoEditorFactory.drawTree.editor.input.focus();
|
|
67846
|
+
hoEditorFactory.drawTree.moveCaretToPath(startPath);
|
|
67372
67847
|
return _context2.abrupt("return");
|
|
67373
|
-
case
|
|
67848
|
+
case 30:
|
|
67374
67849
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, text, oldValue);
|
|
67375
67850
|
//this._canModifyContent = await oldValue;
|
|
67376
67851
|
//this.update(0);
|
|
67377
|
-
case
|
|
67852
|
+
case 31:
|
|
67378
67853
|
case "end":
|
|
67379
67854
|
return _context2.stop();
|
|
67380
67855
|
}
|
|
@@ -67418,7 +67893,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67418
67893
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
67419
67894
|
this.childNodes.length = 0;
|
|
67420
67895
|
this._childNodes2.length = 0;
|
|
67421
|
-
var hoEditorFactory =
|
|
67896
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67422
67897
|
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
67423
67898
|
var cbStyle = hoEditorFactory.docTree.styles[curStyleIndex].combineStyle;
|
|
67424
67899
|
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
@@ -67429,17 +67904,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67429
67904
|
// if (this.enableGlobalColor) {
|
|
67430
67905
|
// index = astyle.changeStyleString("fontBackColor", "transparent");
|
|
67431
67906
|
// }
|
|
67432
|
-
this.StartMarkNode = new
|
|
67907
|
+
this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtStart);
|
|
67433
67908
|
this.StartMarkNode.isReadOnly = true;
|
|
67434
|
-
this.StartMarkNode.MarkNodeType =
|
|
67435
|
-
this.EndMarkNode = new
|
|
67909
|
+
this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtStart;
|
|
67910
|
+
this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd);
|
|
67436
67911
|
this.EndMarkNode.isReadOnly = true;
|
|
67437
|
-
this.EndMarkNode.MarkNodeType =
|
|
67912
|
+
this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd;
|
|
67438
67913
|
this.StartMarkNode.pair = this.EndMarkNode;
|
|
67439
67914
|
this.EndMarkNode.pair = this.StartMarkNode;
|
|
67440
67915
|
this._childNodes2.push(this.StartMarkNode);
|
|
67441
67916
|
if (this.labelText.length != 0) {
|
|
67442
|
-
this._childNodes2.push(new
|
|
67917
|
+
this._childNodes2.push(new _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, this.labelText, index, _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtContent));
|
|
67443
67918
|
// this._labelNode = new MarkNode(this._rootNodes, this, NodeType.ntText, this.labelText, 0);
|
|
67444
67919
|
// this._childNodes2.push(this._labelNode);
|
|
67445
67920
|
}
|
|
@@ -67450,7 +67925,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67450
67925
|
if (this._childNodes2.length == 3) {
|
|
67451
67926
|
this.childNodes.splice(1, 1);
|
|
67452
67927
|
}
|
|
67453
|
-
this._childNodes.splice(1, 0, new
|
|
67928
|
+
this._childNodes.splice(1, 0, new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, this.text, index));
|
|
67454
67929
|
}
|
|
67455
67930
|
}
|
|
67456
67931
|
}, {
|
|
@@ -67483,12 +67958,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67483
67958
|
if (startIndex >= this.getLength()) {
|
|
67484
67959
|
return dline;
|
|
67485
67960
|
}
|
|
67486
|
-
var hoEditorFactory =
|
|
67961
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67487
67962
|
var endnode = hoEditorFactory.docTree.findNodePositionByPath(endPath).node;
|
|
67488
67963
|
var isEnd = false;
|
|
67489
67964
|
for (var index = 0; index < this.childNodes.length; index++) {
|
|
67490
67965
|
var value = this.childNodes[index];
|
|
67491
|
-
if (value instanceof
|
|
67966
|
+
if (value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__/* .ParagraphNode */ .C) {
|
|
67492
67967
|
if (aline.paragraphNode !== value) {
|
|
67493
67968
|
if (aline instanceof _editor_draw_DrawLine__WEBPACK_IMPORTED_MODULE_31__/* .DrawLine */ .a) {
|
|
67494
67969
|
aline.fitLines();
|
|
@@ -67503,7 +67978,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67503
67978
|
}
|
|
67504
67979
|
paraNode = value;
|
|
67505
67980
|
aline = paraNode.drawlines[0];
|
|
67506
|
-
} else if (value instanceof
|
|
67981
|
+
} else if (value instanceof _TableNode__WEBPACK_IMPORTED_MODULE_57__/* .TableNode */ .Fh) {
|
|
67507
67982
|
value.placeDNodeAfterDrawLine(paraNode, aline, endPath);
|
|
67508
67983
|
aline = value.drawTable;
|
|
67509
67984
|
} else {
|
|
@@ -67514,7 +67989,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67514
67989
|
aline = value.placeDNode2DrawLine(droots, paraNode, aline, start, start + value.getLength() - 1, endPath);
|
|
67515
67990
|
}
|
|
67516
67991
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(value);
|
|
67517
|
-
var cresult =
|
|
67992
|
+
var cresult = _NodePosition__WEBPACK_IMPORTED_MODULE_41__/* .NodePosition */ .F.treePathCompare(endPath, nodePath);
|
|
67518
67993
|
if (cresult <= 0) {
|
|
67519
67994
|
break;
|
|
67520
67995
|
}
|
|
@@ -67599,7 +68074,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67599
68074
|
}, {
|
|
67600
68075
|
key: "getReadyToEdit",
|
|
67601
68076
|
value: function getReadyToEdit(callback) {
|
|
67602
|
-
var hoEditorFactory =
|
|
68077
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67603
68078
|
if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psDesign) {
|
|
67604
68079
|
return [false, ''];
|
|
67605
68080
|
}
|
|
@@ -67607,7 +68082,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67607
68082
|
if (label) {
|
|
67608
68083
|
var prev = label.previousLeaf();
|
|
67609
68084
|
if (!prev) throw _editor_events_Exception__WEBPACK_IMPORTED_MODULE_35__/* .Exception */ .P.NodeNotFound();
|
|
67610
|
-
var path =
|
|
68085
|
+
var path = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(prev);
|
|
67611
68086
|
if (callback) callback(label);
|
|
67612
68087
|
return [true, path];
|
|
67613
68088
|
}
|
|
@@ -67630,14 +68105,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67630
68105
|
value: function getActualWidth() {
|
|
67631
68106
|
var w = 0;
|
|
67632
68107
|
this.childNodes.forEach(function (value) {
|
|
67633
|
-
if (!(value instanceof
|
|
68108
|
+
if (!(value instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__/* .ParagraphNode */ .C)) w += value.getActualWidth();
|
|
67634
68109
|
});
|
|
67635
68110
|
return w;
|
|
67636
68111
|
}
|
|
67637
68112
|
}, {
|
|
67638
68113
|
key: "delete",
|
|
67639
68114
|
value: function _delete(operType) {
|
|
67640
|
-
var hoEditorFactory =
|
|
68115
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this.hoEditorFactoryID);
|
|
67641
68116
|
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_32__/* .PaintState */ .Dh.psDesign || this.isAllowDelete) {
|
|
67642
68117
|
var record = hoEditorFactory.docTree.elementChangeRecords.get(this.id + "|" + this.dataId);
|
|
67643
68118
|
if (record && record.indexOf("add") >= 0) {
|
|
@@ -67648,7 +68123,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67648
68123
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67649
68124
|
} else {
|
|
67650
68125
|
if (operType !== 'update') {
|
|
67651
|
-
|
|
68126
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_61__/* ["default"] */ .Z.warn('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。');
|
|
67652
68127
|
} else {
|
|
67653
68128
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_7__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
|
|
67654
68129
|
}
|
|
@@ -67673,7 +68148,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67673
68148
|
return false;
|
|
67674
68149
|
} else {
|
|
67675
68150
|
for (var i = 0; i++; i < this.childNodes.length) {
|
|
67676
|
-
if (this.childNodes[i] instanceof
|
|
68151
|
+
if (this.childNodes[i] instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_42__/* .BaseCombineNode */ .V) {
|
|
67677
68152
|
if (this.childNodes[i].removeChild(node)) return true;
|
|
67678
68153
|
}
|
|
67679
68154
|
}
|
|
@@ -67691,9 +68166,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67691
68166
|
if (this.childNodes.length == 2) {
|
|
67692
68167
|
return true;
|
|
67693
68168
|
}
|
|
67694
|
-
if (this.childNodes.length == 3 && this.childNodes[1] instanceof
|
|
68169
|
+
if (this.childNodes.length == 3 && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) {
|
|
67695
68170
|
var markNode = this.childNodes[1];
|
|
67696
|
-
if (markNode.MarkNodeType ===
|
|
68171
|
+
if (markNode.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtContent) {
|
|
67697
68172
|
return true;
|
|
67698
68173
|
} else return false;
|
|
67699
68174
|
}
|
|
@@ -67724,7 +68199,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67724
68199
|
var ilen = arr.length;
|
|
67725
68200
|
for (var i = 1; i < ilen; i++) {
|
|
67726
68201
|
textInputFieldNode.insertText(arr[i].text, textInputFieldNode.text.length);
|
|
67727
|
-
|
|
68202
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.deleteNode(arr[i]);
|
|
67728
68203
|
}
|
|
67729
68204
|
return textInputFieldNode;
|
|
67730
68205
|
}
|
|
@@ -67742,10 +68217,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67742
68217
|
if (!range) {
|
|
67743
68218
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
67744
68219
|
var node = this.childNodes[i];
|
|
67745
|
-
if (!(node instanceof
|
|
67746
|
-
if (node instanceof
|
|
68220
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
68221
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_57__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
|
|
67747
68222
|
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
67748
|
-
} else if (node instanceof
|
|
68223
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
67749
68224
|
if (clearSign) {
|
|
67750
68225
|
if (node.isTemplate) {
|
|
67751
68226
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
@@ -67754,11 +68229,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67754
68229
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67755
68230
|
}
|
|
67756
68231
|
} else {
|
|
67757
|
-
if (node instanceof
|
|
68232
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R) {
|
|
67758
68233
|
if (node.text !== '') {
|
|
67759
68234
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
67760
68235
|
}
|
|
67761
|
-
} else if (node instanceof
|
|
68236
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_45__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_59__/* .QrcodeNode */ .d) {
|
|
67762
68237
|
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
67763
68238
|
} else {
|
|
67764
68239
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
@@ -67811,7 +68286,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67811
68286
|
canCopy = _node.checkPath(rec.from);
|
|
67812
68287
|
}
|
|
67813
68288
|
if (canCopy) {
|
|
67814
|
-
if (!(_node instanceof
|
|
68289
|
+
if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
|
|
67815
68290
|
childArray.push(_node.node2Json(rec, isCopy));
|
|
67816
68291
|
}
|
|
67817
68292
|
}
|
|
@@ -67983,7 +68458,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
67983
68458
|
}, {
|
|
67984
68459
|
key: "getLeftWidth",
|
|
67985
68460
|
value: function getLeftWidth() {
|
|
67986
|
-
var hoEditorFactory =
|
|
68461
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
67987
68462
|
if (this.alignWithBlocked && this.StartMarkNode && this.StartMarkNode.drawNodes.length > 0) {
|
|
67988
68463
|
var dNode = this.StartMarkNode.drawNodes[0];
|
|
67989
68464
|
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(dNode);
|
|
@@ -68039,7 +68514,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68039
68514
|
}], [{
|
|
68040
68515
|
key: "json2Node",
|
|
68041
68516
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
|
|
68042
|
-
var hoEditorFactory =
|
|
68517
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
68043
68518
|
var eachCount = 0;
|
|
68044
68519
|
var isErrorValid = false;
|
|
68045
68520
|
delete json.nodeType;
|
|
@@ -68061,6 +68536,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68061
68536
|
json.downListProperty._allowMultiSelected = json.downListProperty.allowMultiSelected ? json.downListProperty.allowMultiSelected : json.downListProperty._allowMultiSelected;
|
|
68062
68537
|
json.downListProperty._isMultiLinesDisplay = json.downListProperty.isMultiLinesDisplay ? json.downListProperty.isMultiLinesDisplay : json.downListProperty._isMultiLinesDisplay == "true" || json.downListProperty._isMultiLinesDisplay == true ? true : false;
|
|
68063
68538
|
json.downListProperty._mutexSelect = json.downListProperty.mutexSelect ? json.downListProperty.mutexSelect : json.downListProperty._mutexSelect == "true" || json.downListProperty._mutexSelect == true ? true : false;
|
|
68539
|
+
json.downListProperty._usePrefix = json.downListProperty.usePrefix ? json.downListProperty.usePrefix : json.downListProperty._usePrefix == "true" || json.downListProperty._usePrefix == true ? true : false;
|
|
68064
68540
|
}
|
|
68065
68541
|
json.alignWithBlocked = !json.alignWithBlocked ? false : json.alignWithBlocked;
|
|
68066
68542
|
json.isSynchro = !json.isSynchro ? false : json.isSynchro;
|
|
@@ -68071,7 +68547,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68071
68547
|
json.includesKeyword = !json.includesKeyword ? "[]" : json.includesKeyword;
|
|
68072
68548
|
json.valueArea = !json.valueArea ? "[]" : json.valueArea;
|
|
68073
68549
|
json.isElementLink = !json.isElementLink ? false : json.isElementLink;
|
|
68074
|
-
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
68550
|
+
var temp = new TextInputFieldNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntField, json);
|
|
68075
68551
|
// this.insertChild
|
|
68076
68552
|
if (json.childNodes) {
|
|
68077
68553
|
var nodes = new Array();
|
|
@@ -68091,10 +68567,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68091
68567
|
// console.timeEnd(`----${i}----1-1----${item[i].name}`);
|
|
68092
68568
|
// };
|
|
68093
68569
|
if (node) {
|
|
68094
|
-
if (node instanceof
|
|
68570
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R) {
|
|
68095
68571
|
if (node.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(node.text).length) {
|
|
68096
68572
|
//特殊处理生僻字
|
|
68097
|
-
var rareCharNode = new
|
|
68573
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_60__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, node.rootNodes, node.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntRareChar, node.text, node.styleIndex);
|
|
68098
68574
|
nodes.push(rareCharNode);
|
|
68099
68575
|
} else {
|
|
68100
68576
|
if (node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '' && node.text !== '') {
|
|
@@ -68107,7 +68583,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68107
68583
|
}
|
|
68108
68584
|
} else {
|
|
68109
68585
|
if (isClearSign) {
|
|
68110
|
-
if (node instanceof
|
|
68586
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
68111
68587
|
if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
|
|
68112
68588
|
nodes.push(node);
|
|
68113
68589
|
}
|
|
@@ -68115,7 +68591,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68115
68591
|
nodes.push(node);
|
|
68116
68592
|
}
|
|
68117
68593
|
} else {
|
|
68118
|
-
if (node instanceof
|
|
68594
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
68119
68595
|
if (!(node.number == 0 && node.type == 0 && node.name == "")) {
|
|
68120
68596
|
nodes.push(node);
|
|
68121
68597
|
}
|
|
@@ -68125,10 +68601,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68125
68601
|
}
|
|
68126
68602
|
}
|
|
68127
68603
|
}
|
|
68128
|
-
if (node instanceof
|
|
68604
|
+
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
|
|
68129
68605
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
68130
68606
|
}
|
|
68131
|
-
if (node instanceof
|
|
68607
|
+
if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(node.customProperty.bce01)) {
|
|
68132
68608
|
hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
68133
68609
|
}
|
|
68134
68610
|
}
|
|
@@ -68136,10 +68612,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68136
68612
|
//单个对象
|
|
68137
68613
|
var _node2 = hoEditorFactory.structureConvert.convertNode(item, rootNodes, temp, undefined, undefined, isClearSign);
|
|
68138
68614
|
if (_node2) {
|
|
68139
|
-
if (_node2 instanceof
|
|
68615
|
+
if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R) {
|
|
68140
68616
|
if (_node2.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(_node2.text).length) {
|
|
68141
68617
|
//特殊处理生僻字
|
|
68142
|
-
var _rareCharNode = new
|
|
68618
|
+
var _rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_60__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, _node2.rootNodes, _node2.parentNode, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntRareChar, _node2.text, _node2.styleIndex);
|
|
68143
68619
|
nodes.push(_rareCharNode);
|
|
68144
68620
|
} else {
|
|
68145
68621
|
if (_node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '' && _node2.text !== '') {
|
|
@@ -68153,7 +68629,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68153
68629
|
} else {
|
|
68154
68630
|
//nodes.push(node);
|
|
68155
68631
|
if (isClearSign) {
|
|
68156
|
-
if (_node2 instanceof
|
|
68632
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
68157
68633
|
if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
68158
68634
|
nodes.push(_node2);
|
|
68159
68635
|
}
|
|
@@ -68161,7 +68637,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68161
68637
|
nodes.push(_node2);
|
|
68162
68638
|
}
|
|
68163
68639
|
} else {
|
|
68164
|
-
if (_node2 instanceof
|
|
68640
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
68165
68641
|
if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
|
|
68166
68642
|
nodes.push(_node2);
|
|
68167
68643
|
}
|
|
@@ -68171,10 +68647,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68171
68647
|
}
|
|
68172
68648
|
}
|
|
68173
68649
|
}
|
|
68174
|
-
if (_node2 instanceof
|
|
68650
|
+
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
|
|
68175
68651
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
68176
68652
|
}
|
|
68177
|
-
if (_node2 instanceof
|
|
68653
|
+
if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
|
|
68178
68654
|
hoEditorFactory.structureConvert._superiorSign[0] = _node2;
|
|
68179
68655
|
}
|
|
68180
68656
|
}
|
|
@@ -68192,11 +68668,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68192
68668
|
}
|
|
68193
68669
|
// if(json.name === '1-1') console.timeEnd("1-1--0");
|
|
68194
68670
|
if (nodes.length > 0) {
|
|
68195
|
-
if (nodes[0] instanceof
|
|
68671
|
+
if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) {
|
|
68196
68672
|
var _temp$childNodes;
|
|
68197
68673
|
temp.childNodes.length = 0;
|
|
68198
68674
|
(_temp$childNodes = temp.childNodes).splice.apply(_temp$childNodes, [0, 0].concat(nodes));
|
|
68199
|
-
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof
|
|
68675
|
+
if (temp.childNodes.length === 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) {
|
|
68200
68676
|
temp._childNodes2.splice(1, 1);
|
|
68201
68677
|
temp._childNodes2.splice(1, 0, temp.childNodes[1]);
|
|
68202
68678
|
}
|
|
@@ -68211,24 +68687,24 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68211
68687
|
//if (hoEditorFactory.drawTree.paintStatus === PaintState.psDesign) {
|
|
68212
68688
|
var sChildNode = temp.childNodes[0];
|
|
68213
68689
|
var eChildNode = temp.childNodes[temp.childNodes.length - 1];
|
|
68214
|
-
if (!(sChildNode instanceof
|
|
68690
|
+
if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtStart) {
|
|
68215
68691
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
68216
68692
|
}
|
|
68217
|
-
if (!(eChildNode instanceof
|
|
68693
|
+
if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtEnd) {
|
|
68218
68694
|
throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
|
|
68219
68695
|
}
|
|
68220
|
-
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof
|
|
68696
|
+
if (temp.childNodes.length > 3 && temp.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j && temp.childNodes[1].MarkNodeType == _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtContent) {
|
|
68221
68697
|
temp.childNodes.splice(1, 1);
|
|
68222
68698
|
}
|
|
68223
68699
|
//}
|
|
68224
|
-
if (temp.childNodes[1] instanceof
|
|
68700
|
+
if (temp.childNodes[1] instanceof _TableFormula__WEBPACK_IMPORTED_MODULE_56__/* .TableFormula */ .N) {
|
|
68225
68701
|
return temp;
|
|
68226
68702
|
}
|
|
68227
68703
|
if (!isPaste) {
|
|
68228
68704
|
var childFields = [];
|
|
68229
68705
|
for (var c = 0; c < temp.childNodes.length; c++) {
|
|
68230
68706
|
var childNode = temp.childNodes[c];
|
|
68231
|
-
if (childNode instanceof TextInputFieldNode || childNode instanceof
|
|
68707
|
+
if (childNode instanceof TextInputFieldNode || childNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_55__/* .SignNode */ .N) {
|
|
68232
68708
|
childFields.push(childNode);
|
|
68233
68709
|
}
|
|
68234
68710
|
}
|
|
@@ -68251,10 +68727,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68251
68727
|
}
|
|
68252
68728
|
for (var i = 0; i < lineArr.length; i++) {
|
|
68253
68729
|
var lineText = lineArr[i];
|
|
68254
|
-
var textNode = new
|
|
68730
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, lineText, styleIndex);
|
|
68255
68731
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode);
|
|
68256
68732
|
if (i < lineArr.length - 1) {
|
|
68257
|
-
var paraNode = new
|
|
68733
|
+
var paraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
68258
68734
|
paraNode.styleIndex = styleIndex;
|
|
68259
68735
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paraNode);
|
|
68260
68736
|
}
|
|
@@ -68340,35 +68816,35 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68340
68816
|
if (resultArr[k].text != '') {
|
|
68341
68817
|
var newStyleIndex = styleIndex;
|
|
68342
68818
|
if (resultArr[k].mark == 1) {
|
|
68343
|
-
var textStyle = new
|
|
68819
|
+
var textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_39__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
68344
68820
|
textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], textStyle);
|
|
68345
68821
|
textStyle.script = 2;
|
|
68346
68822
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
|
|
68347
68823
|
}
|
|
68348
68824
|
if (resultArr[k].mark == 2) {
|
|
68349
|
-
var _textStyle = new
|
|
68825
|
+
var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_39__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
68350
68826
|
_textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
|
|
68351
68827
|
_textStyle.script = 1;
|
|
68352
68828
|
newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
|
|
68353
68829
|
}
|
|
68354
|
-
var textNode0 = new
|
|
68830
|
+
var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, resultArr[k].text, newStyleIndex);
|
|
68355
68831
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
|
|
68356
68832
|
}
|
|
68357
68833
|
}
|
|
68358
68834
|
} else {
|
|
68359
68835
|
if (textArr[0] != "") {
|
|
68360
68836
|
if (temp.text.length > (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(temp.text).length) {
|
|
68361
|
-
var rareCharNode = new
|
|
68837
|
+
var rareCharNode = new _RareCharNode__WEBPACK_IMPORTED_MODULE_60__/* .RareCharNode */ .Q(temp.hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntRareChar, textArr[0], styleIndex);
|
|
68362
68838
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, rareCharNode);
|
|
68363
68839
|
} else {
|
|
68364
|
-
var textNode1 = new
|
|
68840
|
+
var textNode1 = new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, textArr[0], styleIndex);
|
|
68365
68841
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode1);
|
|
68366
68842
|
}
|
|
68367
68843
|
}
|
|
68368
68844
|
}
|
|
68369
68845
|
if (textArr.length > 1) {
|
|
68370
68846
|
for (var _i2 = 1; _i2 < textArr.length; _i2++) {
|
|
68371
|
-
var paragraNode = new
|
|
68847
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_51__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, temp, 0);
|
|
68372
68848
|
paragraNode.styleIndex = styleIndex;
|
|
68373
68849
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
|
|
68374
68850
|
if (textArr[_i2] !== '') {
|
|
@@ -68379,17 +68855,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68379
68855
|
if (resultArr1[_k].text != '') {
|
|
68380
68856
|
var _newStyleIndex = styleIndex;
|
|
68381
68857
|
if (resultArr1[_k].mark == 1) {
|
|
68382
|
-
var _textStyle2 = new
|
|
68858
|
+
var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_39__/* .TextStyle */ .pn(hoEditorFactoryID);
|
|
68383
68859
|
_textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
|
|
68384
68860
|
_textStyle2.script = 2;
|
|
68385
68861
|
_newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
|
|
68386
68862
|
}
|
|
68387
|
-
var _textNode = new
|
|
68863
|
+
var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
|
|
68388
68864
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode);
|
|
68389
68865
|
}
|
|
68390
68866
|
}
|
|
68391
68867
|
} else {
|
|
68392
|
-
var _textNode2 = new
|
|
68868
|
+
var _textNode2 = new _TextNode__WEBPACK_IMPORTED_MODULE_58__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, textArr[_i2], styleIndex);
|
|
68393
68869
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, _textNode2);
|
|
68394
68870
|
}
|
|
68395
68871
|
}
|
|
@@ -68406,25 +68882,25 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68406
68882
|
var eIndex = expressArr[_i3].eIndex;
|
|
68407
68883
|
var expressJson = temp.text.substring(sIndex + 16, eIndex);
|
|
68408
68884
|
var expressObj = JSON.parse(expressJson);
|
|
68409
|
-
var expressStyle =
|
|
68885
|
+
var expressStyle = _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_50__/* .ExpressStyle */ .e[expressObj.expressStyle];
|
|
68410
68886
|
if (!expressStyle) {
|
|
68411
68887
|
expressStyle = expressObj.expressStyle;
|
|
68412
68888
|
}
|
|
68413
68889
|
var medicalExpressNode = void 0;
|
|
68414
68890
|
if (expressStyle.includes('style')) {
|
|
68415
68891
|
//经期史
|
|
68416
|
-
medicalExpressNode = new
|
|
68892
|
+
medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_50__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
|
|
68417
68893
|
} else {
|
|
68418
68894
|
if (expressStyle === 'PupilMapNode') {
|
|
68419
|
-
medicalExpressNode = new
|
|
68895
|
+
medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_54__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
|
|
68420
68896
|
} else if (expressStyle === 'LightLocationMapNode') {
|
|
68421
|
-
medicalExpressNode = new
|
|
68897
|
+
medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_47__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
|
|
68422
68898
|
} else if (expressStyle === 'FetalHeartMapNode') {
|
|
68423
|
-
medicalExpressNode = new
|
|
68899
|
+
medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_46__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
|
|
68424
68900
|
} else if (expressStyle === 'PermanentTeethMapNode') {
|
|
68425
|
-
medicalExpressNode = new
|
|
68901
|
+
medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_52__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected, expressObj.remark);
|
|
68426
68902
|
} else {
|
|
68427
|
-
medicalExpressNode = new
|
|
68903
|
+
medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_53__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
|
|
68428
68904
|
}
|
|
68429
68905
|
}
|
|
68430
68906
|
temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
|
|
@@ -68449,9 +68925,9 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68449
68925
|
}
|
|
68450
68926
|
} else {
|
|
68451
68927
|
temp._childNodes2.splice(1, temp._childNodes2.length - 2);
|
|
68452
|
-
var markNode = new
|
|
68928
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNode */ .j(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_43__/* .NodeType */ .Jq.ntText, temp.labelText,
|
|
68453
68929
|
//hoEditorFactory.docTree.curStyleIndex,
|
|
68454
|
-
styleIndex,
|
|
68930
|
+
styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_48__/* .MarkNodeType */ .q.mtContent);
|
|
68455
68931
|
temp._childNodes.splice(1, 0, markNode);
|
|
68456
68932
|
temp._childNodes2.splice(1, 0, markNode);
|
|
68457
68933
|
}
|
|
@@ -68474,18 +68950,18 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
68474
68950
|
}, {
|
|
68475
68951
|
key: "textInpubNodeRedraw",
|
|
68476
68952
|
value: function textInpubNodeRedraw(hoEditorFactoryID, node) {
|
|
68477
|
-
var hoEditorFactory =
|
|
68953
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_37__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
68478
68954
|
var startPath = node.StartMarkNode.getNodePath();
|
|
68479
68955
|
var paragraphNode = hoEditorFactory.docTree.getNodeParaNode(node.EndMarkNode);
|
|
68480
68956
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(paragraphNode);
|
|
68481
|
-
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(hoEditorFactoryID,
|
|
68957
|
+
var changeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .NodeChangeEvent */ .G(hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_38__/* .DocAction */ .gk.daModifyStyle, startPath, endPath);
|
|
68482
68958
|
changeEvent.oldEndPath = endPath;
|
|
68483
68959
|
changeEvent.oldDrawLines = new _editor_draw_SelectRange__WEBPACK_IMPORTED_MODULE_33__/* .SelectRange */ .E(hoEditorFactoryID).getRangeDrawLines(startPath, endPath, true);
|
|
68484
68960
|
hoEditorFactory.docTree.change(changeEvent);
|
|
68485
68961
|
}
|
|
68486
68962
|
}]);
|
|
68487
68963
|
return TextInputFieldNode;
|
|
68488
|
-
}(
|
|
68964
|
+
}(_BaseCombineNode__WEBPACK_IMPORTED_MODULE_42__/* .BaseCombineNode */ .V);
|
|
68489
68965
|
|
|
68490
68966
|
/***/ }),
|
|
68491
68967
|
|
|
@@ -177477,19 +177953,19 @@ var map = {
|
|
|
177477
177953
|
"./findReplace/FindReplace.vue": 98064,
|
|
177478
177954
|
"./gestation/Gestation.vue": 20329,
|
|
177479
177955
|
"./hoprint/HoPrint.vue": 79228,
|
|
177480
|
-
"./listsource/ListSource.vue":
|
|
177956
|
+
"./listsource/ListSource.vue": 46335,
|
|
177481
177957
|
"./localHistory/LocalHistory.vue": 60797,
|
|
177482
177958
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
177483
177959
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
177484
177960
|
"./poperSelect/PoperMark.vue": 20734,
|
|
177485
|
-
"./poperSelect/PoperSelect.vue":
|
|
177961
|
+
"./poperSelect/PoperSelect.vue": 28758,
|
|
177486
177962
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
177487
177963
|
"./popers/Poper.vue": 57937,
|
|
177488
177964
|
"./popers/Title.vue": 85516,
|
|
177489
177965
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
177490
177966
|
"./qrCode/QrCode.vue": 93973,
|
|
177491
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
177492
|
-
"./selectDialog/SelectDialog.vue":
|
|
177967
|
+
"./radioCheckBox/RadioCheckbox.vue": 16616,
|
|
177968
|
+
"./selectDialog/SelectDialog.vue": 32497,
|
|
177493
177969
|
"./sign/Sign.vue": 921,
|
|
177494
177970
|
"./table/TableCellPoper.vue": 2043,
|
|
177495
177971
|
"./table/TableCellProperty.vue": 63689,
|
|
@@ -177499,12 +177975,12 @@ var map = {
|
|
|
177499
177975
|
"./table/TableFormula.vue": 58585,
|
|
177500
177976
|
"./table/TableProperty.vue": 89305,
|
|
177501
177977
|
"./table/TableRowProperty.vue": 21568,
|
|
177502
|
-
"./textDialog/TextDialog.vue":
|
|
177978
|
+
"./textDialog/TextDialog.vue": 69812,
|
|
177503
177979
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
177504
|
-
"./textDialog/VerifyTip.vue":
|
|
177980
|
+
"./textDialog/VerifyTip.vue": 74618,
|
|
177505
177981
|
"./upload/CanvasImageDialog.vue": 40061,
|
|
177506
177982
|
"./upload/HoFabric.vue": 98447,
|
|
177507
|
-
"./upload/UploadImageDialog.vue":
|
|
177983
|
+
"./upload/UploadImageDialog.vue": 12625,
|
|
177508
177984
|
"./upload/hoFabricRight.vue": 94185,
|
|
177509
177985
|
"./verifyTip/VerifyTip.vue": 23664
|
|
177510
177986
|
};
|
|
@@ -214810,7 +215286,7 @@ Input.install = function (Vue) {
|
|
|
214810
215286
|
|
|
214811
215287
|
|
|
214812
215288
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
214813
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
215289
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=050216ec&
|
|
214814
215290
|
var render = function render() {
|
|
214815
215291
|
var _vm = this,
|
|
214816
215292
|
_c = _vm._self._c;
|
|
@@ -214937,8 +215413,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214937
215413
|
var es_number_constructor = __webpack_require__(9653);
|
|
214938
215414
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214939
215415
|
var es_json_stringify = __webpack_require__(38862);
|
|
214940
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
214941
|
-
var
|
|
215416
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=145d8080&
|
|
215417
|
+
var HoDocvue_type_template_id_145d8080_render = function render() {
|
|
214942
215418
|
var _vm = this,
|
|
214943
215419
|
_c = _vm._self._c;
|
|
214944
215420
|
return _c('div', {
|
|
@@ -215010,6 +215486,21 @@ var HoDocvue_type_template_id_388ed640_render = function render() {
|
|
|
215010
215486
|
}, [_vm._v("新增行")]) : _vm._e()];
|
|
215011
215487
|
},
|
|
215012
215488
|
proxy: true
|
|
215489
|
+
}, {
|
|
215490
|
+
key: "hoAddSelectMark",
|
|
215491
|
+
fn: function fn() {
|
|
215492
|
+
return [_c('a-icon', {
|
|
215493
|
+
staticClass: "ho-select-mark-icon",
|
|
215494
|
+
style: _vm.selectMarkStyle,
|
|
215495
|
+
attrs: {
|
|
215496
|
+
"type": "down-square"
|
|
215497
|
+
},
|
|
215498
|
+
on: {
|
|
215499
|
+
"click": _vm.selectMarkClick
|
|
215500
|
+
}
|
|
215501
|
+
})];
|
|
215502
|
+
},
|
|
215503
|
+
proxy: true
|
|
215013
215504
|
}], null, true)
|
|
215014
215505
|
})];
|
|
215015
215506
|
})], 2) : _vm._e(), _vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' ? _c('PoperSelectModal', {
|
|
@@ -215094,7 +215585,7 @@ var HoDocvue_type_template_id_388ed640_render = function render() {
|
|
|
215094
215585
|
}
|
|
215095
215586
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
215096
215587
|
};
|
|
215097
|
-
var
|
|
215588
|
+
var HoDocvue_type_template_id_145d8080_staticRenderFns = [];
|
|
215098
215589
|
|
|
215099
215590
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
215100
215591
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -215106,8 +215597,8 @@ var es_array_sort = __webpack_require__(2707);
|
|
|
215106
215597
|
var es_string_replace = __webpack_require__(15306);
|
|
215107
215598
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
215108
215599
|
var es_array_map = __webpack_require__(21249);
|
|
215109
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=
|
|
215110
|
-
var
|
|
215600
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=template&id=21b0a4d9&
|
|
215601
|
+
var HoPagevue_type_template_id_21b0a4d9_render = function render() {
|
|
215111
215602
|
var _vm = this,
|
|
215112
215603
|
_c = _vm._self._c;
|
|
215113
215604
|
return _c('div', {
|
|
@@ -215154,7 +215645,7 @@ var HoPagevue_type_template_id_486356cb_render = function render() {
|
|
|
215154
215645
|
attrs: {
|
|
215155
215646
|
"id": 'ho-comment-box-' + _vm.index
|
|
215156
215647
|
}
|
|
215157
|
-
}), [_vm._t("hoAddCellButton")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
215648
|
+
}), [_vm._t("hoAddCellButton")], [_vm._t("hoAddSelectMark")], _vm.index === _vm.aiInfo.pageIndex && _vm.aiInfo.aiText ? _c('AiModel', {
|
|
215158
215649
|
attrs: {
|
|
215159
215650
|
"textStyles": _vm.textStyles,
|
|
215160
215651
|
"scaleWidth": _vm.canvasWidth,
|
|
@@ -215181,7 +215672,7 @@ var HoPagevue_type_template_id_486356cb_render = function render() {
|
|
|
215181
215672
|
}], null, true)
|
|
215182
215673
|
}) : _vm._e()], 2);
|
|
215183
215674
|
};
|
|
215184
|
-
var
|
|
215675
|
+
var HoPagevue_type_template_id_21b0a4d9_staticRenderFns = [];
|
|
215185
215676
|
|
|
215186
215677
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
215187
215678
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -216489,10 +216980,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
216489
216980
|
});
|
|
216490
216981
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
216491
216982
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
216492
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
216983
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoPage.vue?vue&type=style&index=0&id=21b0a4d9&prod&lang=less&
|
|
216493
216984
|
// extracted by mini-css-extract-plugin
|
|
216494
216985
|
|
|
216495
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
216986
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=21b0a4d9&prod&lang=less&
|
|
216496
216987
|
|
|
216497
216988
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
216498
216989
|
|
|
@@ -216505,8 +216996,8 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
216505
216996
|
|
|
216506
216997
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
216507
216998
|
components_HoPagevue_type_script_lang_js_,
|
|
216508
|
-
|
|
216509
|
-
|
|
216999
|
+
HoPagevue_type_template_id_21b0a4d9_render,
|
|
217000
|
+
HoPagevue_type_template_id_21b0a4d9_staticRenderFns,
|
|
216510
217001
|
false,
|
|
216511
217002
|
null,
|
|
216512
217003
|
null,
|
|
@@ -216694,7 +217185,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
216694
217185
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
216695
217186
|
var plugins_util = __webpack_require__(62783);
|
|
216696
217187
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
216697
|
-
var PoperSelect = __webpack_require__(
|
|
217188
|
+
var PoperSelect = __webpack_require__(28758);
|
|
216698
217189
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
216699
217190
|
var PoperMark = __webpack_require__(20734);
|
|
216700
217191
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218099,7 +218590,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218099
218590
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218100
218591
|
var ParagraphNode = __webpack_require__(67945);
|
|
218101
218592
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218102
|
-
/* harmony default export */ var version = ('3.1.
|
|
218593
|
+
/* harmony default export */ var version = ('3.1.36');
|
|
218103
218594
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218104
218595
|
var PoperTipText = __webpack_require__(50987);
|
|
218105
218596
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218247,7 +218738,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218247
218738
|
textStyles: {
|
|
218248
218739
|
changeCount: 0
|
|
218249
218740
|
},
|
|
218250
|
-
cellButton: false
|
|
218741
|
+
cellButton: false,
|
|
218742
|
+
isAutoPoper: false,
|
|
218743
|
+
// 自动打开的弹窗
|
|
218744
|
+
selectMarkStyle: {}
|
|
218251
218745
|
};
|
|
218252
218746
|
},
|
|
218253
218747
|
computed: {
|
|
@@ -218302,6 +218796,26 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218302
218796
|
isUseTipText: function isUseTipText() {
|
|
218303
218797
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218304
218798
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
218799
|
+
},
|
|
218800
|
+
'hoEditorProvider.autoSelectElementId': {
|
|
218801
|
+
deep: true,
|
|
218802
|
+
handler: function handler(value) {
|
|
218803
|
+
var _this = this;
|
|
218804
|
+
setTimeout(function () {
|
|
218805
|
+
if (value) {
|
|
218806
|
+
_this.isAutoPoper = true;
|
|
218807
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this.hoEditorProvider.activeDocId);
|
|
218808
|
+
var node = hoEditorFactory.vueController.moveCaretToElement('main', value, 0, true);
|
|
218809
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
218810
|
+
var pageIndex = hoEditorFactory.drawTree.caret.pageIndex;
|
|
218811
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 1) {
|
|
218812
|
+
_this.createInputProper(node.childNodes[1], node, paintStatus, pageIndex);
|
|
218813
|
+
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218814
|
+
_this.createDownListProper(node, paintStatus, pageIndex);
|
|
218815
|
+
}
|
|
218816
|
+
}
|
|
218817
|
+
}, 300);
|
|
218818
|
+
}
|
|
218305
218819
|
}
|
|
218306
218820
|
},
|
|
218307
218821
|
inject: ['hoEditorProvider'],
|
|
@@ -218319,7 +218833,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218319
218833
|
});
|
|
218320
218834
|
},
|
|
218321
218835
|
mounted: function mounted() {
|
|
218322
|
-
var
|
|
218836
|
+
var _this2 = this;
|
|
218323
218837
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218324
218838
|
hoEditorFactory.pageProperty.canvasParams = this.canvasParams;
|
|
218325
218839
|
hoEditorFactory.nodeMouseMove.poperTipPos = this.poperTipPos;
|
|
@@ -218340,7 +218854,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218340
218854
|
hoEditorFactory.drawTree.addPage();
|
|
218341
218855
|
hoEditorFactory.drawTree.drawPageCount.count = hoEditorFactory.drawTree.drawPages.length;
|
|
218342
218856
|
hoEditorFactory.docTree.addEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
218343
|
-
return
|
|
218857
|
+
return _this2.mouseClickEvent(e);
|
|
218344
218858
|
});
|
|
218345
218859
|
hoEditorFactory.drawPageTree.changeInViewPage();
|
|
218346
218860
|
hoEditorFactory.drawTree.caret.aiInfo = this.aiInfo;
|
|
@@ -218358,19 +218872,19 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218358
218872
|
},
|
|
218359
218873
|
beforeDestroy: function beforeDestroy() {
|
|
218360
218874
|
var _this$viewableAreaObs,
|
|
218361
|
-
|
|
218875
|
+
_this3 = this;
|
|
218362
218876
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218363
218877
|
// this.mutationObserver?.disconnect();
|
|
218364
218878
|
(_this$viewableAreaObs = this.viewableAreaObserver) === null || _this$viewableAreaObs === void 0 ? void 0 : _this$viewableAreaObs.disconnect();
|
|
218365
218879
|
hoEditorFactory.docTree.removeEventListener(NodeNeedModifyEvent/* NodeNeedModifyEvent */.x.eventName, function (e) {
|
|
218366
|
-
return
|
|
218880
|
+
return _this3.mouseClickEvent(e);
|
|
218367
218881
|
});
|
|
218368
218882
|
},
|
|
218369
218883
|
/**
|
|
218370
218884
|
* 监听节点是否在可视区内
|
|
218371
218885
|
*/
|
|
218372
218886
|
pageIntersectionObserver: function pageIntersectionObserver() {
|
|
218373
|
-
var
|
|
218887
|
+
var _this4 = this;
|
|
218374
218888
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218375
218889
|
this.viewableAreaObserver = new intersection_observer_polyfill(function (entries) {
|
|
218376
218890
|
if (entries) {
|
|
@@ -218401,7 +218915,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218401
218915
|
return a < b;
|
|
218402
218916
|
});
|
|
218403
218917
|
});
|
|
218404
|
-
|
|
218918
|
+
_this4.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
218405
218919
|
hoEditorFactory.drawTree.inViewPages = (0,esm_toConsumableArray/* default */.Z)(inViewPages);
|
|
218406
218920
|
hoEditorFactory.drawPageTree.changeInViewPage();
|
|
218407
218921
|
}
|
|
@@ -218422,12 +218936,19 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218422
218936
|
poperClose: function poperClose() {
|
|
218423
218937
|
this.poperType = '';
|
|
218424
218938
|
this.nodeValue = '';
|
|
218939
|
+
if (this.isAutoPoper) {
|
|
218940
|
+
this.hoEditorProvider.autoSelectElementId = '';
|
|
218941
|
+
this.isAutoPoper = false;
|
|
218942
|
+
}
|
|
218943
|
+
if (this.selectMarkStyle.display == 'block') {
|
|
218944
|
+
this.updateSelectMark();
|
|
218945
|
+
}
|
|
218425
218946
|
},
|
|
218426
218947
|
/**
|
|
218427
218948
|
* 鼠标click事件
|
|
218428
218949
|
*/
|
|
218429
218950
|
mouseClickEvent: function mouseClickEvent(e) {
|
|
218430
|
-
var
|
|
218951
|
+
var _this5 = this;
|
|
218431
218952
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218432
218953
|
if (!e.clickType || e.clickType === 'move') return false;
|
|
218433
218954
|
var hoParagrapghTipElementNode = document.querySelector('#ho_paragrapgh_tip');
|
|
@@ -218436,16 +218957,20 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218436
218957
|
(_hoParagrapghTipEleme = hoParagrapghTipElementNode.parentNode) === null || _hoParagrapghTipEleme === void 0 ? void 0 : _hoParagrapghTipEleme.removeChild(hoParagrapghTipElementNode);
|
|
218437
218958
|
}
|
|
218438
218959
|
var node = e.node;
|
|
218960
|
+
this.selectMarkStyle.display = "none";
|
|
218439
218961
|
this.poperClose();
|
|
218440
218962
|
if (node && node !== null) {
|
|
218441
218963
|
var pageIndex = e.pageIndex;
|
|
218442
218964
|
if (e.clickType === 'dblclick') {
|
|
218443
218965
|
if (node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218444
218966
|
setTimeout(function () {
|
|
218445
|
-
|
|
218967
|
+
_this5.dblclickModal(node, 'dblclick', pageIndex);
|
|
218446
218968
|
}, 150);
|
|
218447
218969
|
}
|
|
218448
218970
|
} else if (e.clickType === 'leftclick' && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218971
|
+
this.selectMarkStyle = {
|
|
218972
|
+
display: 'none'
|
|
218973
|
+
};
|
|
218449
218974
|
if (hoEditorFactory.drawTree.paintStatus === 5) {
|
|
218450
218975
|
return false;
|
|
218451
218976
|
}
|
|
@@ -218478,6 +219003,9 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218478
219003
|
nodeType: node.parentNode.nodeType,
|
|
218479
219004
|
type: 'TextInputFieldNode'
|
|
218480
219005
|
});
|
|
219006
|
+
// this.$nextTick(() => {
|
|
219007
|
+
// this.createSelectMark(node, hoEditorFactory.drawTree.paintStatus, pageIndex);
|
|
219008
|
+
// })
|
|
218481
219009
|
}
|
|
218482
219010
|
}
|
|
218483
219011
|
} else if (e.clickType === 'rightClick') {
|
|
@@ -218506,7 +219034,6 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218506
219034
|
* dblclick 事件处理
|
|
218507
219035
|
*/
|
|
218508
219036
|
dblclickModal: function dblclickModal(node, type, pageIndex) {
|
|
218509
|
-
var _this5 = this;
|
|
218510
219037
|
if (this.poperType) return false;
|
|
218511
219038
|
if (type !== 'dblclick') return false;
|
|
218512
219039
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
@@ -218532,7 +219059,6 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218532
219059
|
return;
|
|
218533
219060
|
}
|
|
218534
219061
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218535
|
-
|
|
218536
219062
|
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.vaq01) return false;
|
|
218537
219063
|
this.$emit('dblNodeClick', {
|
|
218538
219064
|
setActiveDoc: this.setActiveDocIndex,
|
|
@@ -218572,33 +219098,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218572
219098
|
this.computedPoperPosition(node, pageIndex);
|
|
218573
219099
|
this.poperType = 'datePoper';
|
|
218574
219100
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218575
|
-
|
|
218576
|
-
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
218577
|
-
return;
|
|
218578
|
-
}
|
|
218579
|
-
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
218580
|
-
return;
|
|
218581
|
-
}
|
|
218582
|
-
var callback = function callback(list) {
|
|
218583
|
-
_this5.computedPoperPosition(node, pageIndex);
|
|
218584
|
-
if (Array.isArray(list) && list.length > 0) {
|
|
218585
|
-
_this5.poperSelectList = list;
|
|
218586
|
-
} else {
|
|
218587
|
-
_this5.poperSelectList = node.downListContent ? node.downListContent : [];
|
|
218588
|
-
}
|
|
218589
|
-
_this5.poperType = 'selectPoper';
|
|
218590
|
-
};
|
|
218591
|
-
if (node.customProperty && node.customProperty.hasThirdData == true) {
|
|
218592
|
-
this.$emit('dblNodeClick', {
|
|
218593
|
-
setActiveDoc: this.setActiveDocIndex,
|
|
218594
|
-
node: this.getCurrentSelectNode,
|
|
218595
|
-
type: 'downlist',
|
|
218596
|
-
callback: callback,
|
|
218597
|
-
paintStatus: paintStatus
|
|
218598
|
-
});
|
|
218599
|
-
} else {
|
|
218600
|
-
callback(undefined);
|
|
218601
|
-
}
|
|
219101
|
+
this.createDownListProper(node, paintStatus, pageIndex);
|
|
218602
219102
|
} else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
218603
219103
|
// 文本域
|
|
218604
219104
|
var _parentNode = node.parentNode;
|
|
@@ -218631,47 +219131,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218631
219131
|
}
|
|
218632
219132
|
this.poperType = 'datePoper';
|
|
218633
219133
|
} else if (Number(_parentNode.inputFieldType) === 1) {
|
|
218634
|
-
|
|
218635
|
-
if (paintStatus === 0) {
|
|
218636
|
-
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
218637
|
-
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
218638
|
-
return;
|
|
218639
|
-
}
|
|
218640
|
-
var text = node.text.replace(/ /g, '');
|
|
218641
|
-
var lists = (_parentNode$downListP = _parentNode.downListProperty) !== null && _parentNode$downListP !== void 0 && _parentNode$downListP.listItems ? JSON.parse((_parentNode$downListP2 = _parentNode.downListProperty) === null || _parentNode$downListP2 === void 0 ? void 0 : _parentNode$downListP2.listItems) : [];
|
|
218642
|
-
var allowMultiSelected = ((_parentNode$downListP3 = _parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.allowMultiSelected) || false;
|
|
218643
|
-
var childs = _parentNode.childNodes.filter(function (v) {
|
|
218644
|
-
return v.nodeType != 5 && v.nodeType != 2;
|
|
218645
|
-
});
|
|
218646
|
-
if (lists.filter(function (v) {
|
|
218647
|
-
return v.text.includes('<元素>');
|
|
218648
|
-
}).length > 0) {
|
|
218649
|
-
if (node.nodeType != 2 && childs.length > 0 && text != _parentNode.name && text !== '' && !allowMultiSelected) {
|
|
218650
|
-
return;
|
|
218651
|
-
}
|
|
218652
|
-
}
|
|
218653
|
-
var _callback = function _callback(list) {
|
|
218654
|
-
_this5.computedPoperPosition(node, pageIndex);
|
|
218655
|
-
if (Array.isArray(list) && list.length > 0) {
|
|
218656
|
-
_this5.poperSelectList = list;
|
|
218657
|
-
} else {
|
|
218658
|
-
_this5.poperSelectList = lists.filter(function (v) {
|
|
218659
|
-
return v.value || v.text;
|
|
218660
|
-
});
|
|
218661
|
-
}
|
|
218662
|
-
_this5.poperType = 'selectPoper';
|
|
218663
|
-
};
|
|
218664
|
-
if (_parentNode.customProperty && _parentNode.customProperty.hasThirdData == true) {
|
|
218665
|
-
this.$emit('dblNodeClick', {
|
|
218666
|
-
setActiveDoc: this.setActiveDocIndex,
|
|
218667
|
-
node: this.getCurrentSelectNode,
|
|
218668
|
-
type: 'textlist',
|
|
218669
|
-
callback: _callback,
|
|
218670
|
-
paintStatus: paintStatus
|
|
218671
|
-
});
|
|
218672
|
-
} else {
|
|
218673
|
-
_callback(undefined);
|
|
218674
|
-
}
|
|
219134
|
+
this.createInputProper(node, _parentNode, paintStatus, pageIndex);
|
|
218675
219135
|
}
|
|
218676
219136
|
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType */.Jq.ntImage) {
|
|
218677
219137
|
this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
|
|
@@ -218679,17 +219139,161 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218679
219139
|
this.handleForm('update');
|
|
218680
219140
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
218681
219141
|
this.poperType = '';
|
|
218682
|
-
|
|
218683
|
-
|
|
218684
|
-
|
|
218685
|
-
|
|
218686
|
-
|
|
218687
|
-
|
|
219142
|
+
if (!node.isBackFill) {
|
|
219143
|
+
this.$emit('dblNodeClick', {
|
|
219144
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
219145
|
+
node: this.getCurrentSelectNode,
|
|
219146
|
+
type: 'edit-image',
|
|
219147
|
+
paintStatus: paintStatus
|
|
219148
|
+
});
|
|
219149
|
+
}
|
|
218688
219150
|
} else {
|
|
218689
219151
|
this.hoEditorProvider.setDblclickNodeValue(node, 'dblclick');
|
|
218690
219152
|
}
|
|
218691
219153
|
}
|
|
218692
219154
|
},
|
|
219155
|
+
updateSelectMark: function updateSelectMark() {
|
|
219156
|
+
var _this6 = this;
|
|
219157
|
+
this.selectMarkStyle.display = 'none';
|
|
219158
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
219159
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
219160
|
+
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
219161
|
+
setTimeout(function () {
|
|
219162
|
+
_this6.createSelectMark(node, paintStatus, _this6.selectMarkStyle.pageIndex);
|
|
219163
|
+
}, 300);
|
|
219164
|
+
},
|
|
219165
|
+
getRootNode: function getRootNode(node) {
|
|
219166
|
+
var parentNode = null;
|
|
219167
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
219168
|
+
parentNode = node;
|
|
219169
|
+
} else {
|
|
219170
|
+
parentNode = node.parentNode;
|
|
219171
|
+
}
|
|
219172
|
+
var index = 5;
|
|
219173
|
+
var flag = true;
|
|
219174
|
+
while (flag && index >= 0) {
|
|
219175
|
+
var currentNode = parentNode.parentNode;
|
|
219176
|
+
index--;
|
|
219177
|
+
flag = parentNode.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.parentNode.inputFieldType == 1 && parentNode.parentNode.downListProperty.listItems.includes("<元素>");
|
|
219178
|
+
if (flag) {
|
|
219179
|
+
parentNode = parentNode.parentNode;
|
|
219180
|
+
}
|
|
219181
|
+
}
|
|
219182
|
+
return parentNode;
|
|
219183
|
+
},
|
|
219184
|
+
createSelectMark: function createSelectMark(node, paintStatus, pageIndex) {
|
|
219185
|
+
var parentNode = this.getRootNode(node);
|
|
219186
|
+
if (parentNode) {
|
|
219187
|
+
var _parentNode$downListP;
|
|
219188
|
+
var lists = (_parentNode$downListP = parentNode.downListProperty) === null || _parentNode$downListP === void 0 ? void 0 : _parentNode$downListP.listItems;
|
|
219189
|
+
if (lists && lists.includes("<元素>")) {
|
|
219190
|
+
var pos = this.computedPoperPosition(parentNode.childNodes[parentNode.childNodes.length - 1], pageIndex, true);
|
|
219191
|
+
this.selectMarkStyle = {
|
|
219192
|
+
display: 'block',
|
|
219193
|
+
left: pos.x + 'px',
|
|
219194
|
+
top: pos.y - pos.height + 'px',
|
|
219195
|
+
height: pos.height + 'px',
|
|
219196
|
+
dataid: parentNode.dataId,
|
|
219197
|
+
pageIndex: pageIndex
|
|
219198
|
+
};
|
|
219199
|
+
}
|
|
219200
|
+
}
|
|
219201
|
+
},
|
|
219202
|
+
selectMarkClick: function selectMarkClick() {
|
|
219203
|
+
if (this.poperType) return false;
|
|
219204
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorProvider.activeDocId);
|
|
219205
|
+
var paintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
219206
|
+
var node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
219207
|
+
if (node) {
|
|
219208
|
+
var _node$downListPropert, _node$downListPropert2;
|
|
219209
|
+
var lists = (_node$downListPropert = node.downListProperty) !== null && _node$downListPropert !== void 0 && _node$downListPropert.listItems ? JSON.parse((_node$downListPropert2 = node.downListProperty) === null || _node$downListPropert2 === void 0 ? void 0 : _node$downListPropert2.listItems) : [];
|
|
219210
|
+
this.computedPoperPosition(node.childNodes[node.childNodes.length - 1], this.selectMarkStyle.pageIndex);
|
|
219211
|
+
this.poperSelectList = lists.filter(function (v) {
|
|
219212
|
+
return v.value || v.text;
|
|
219213
|
+
});
|
|
219214
|
+
this.poperType = 'selectPoper';
|
|
219215
|
+
}
|
|
219216
|
+
},
|
|
219217
|
+
createDownListProper: function createDownListProper(node, paintStatus, pageIndex) {
|
|
219218
|
+
var _this7 = this;
|
|
219219
|
+
if (paintStatus === 0) {
|
|
219220
|
+
this.hoEditorProvider.setControlProperty('select', 'update', '');
|
|
219221
|
+
return;
|
|
219222
|
+
}
|
|
219223
|
+
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
219224
|
+
return;
|
|
219225
|
+
}
|
|
219226
|
+
var callback = function callback(list) {
|
|
219227
|
+
_this7.computedPoperPosition(node, pageIndex);
|
|
219228
|
+
if (Array.isArray(list) && list.length > 0) {
|
|
219229
|
+
_this7.poperSelectList = list;
|
|
219230
|
+
} else {
|
|
219231
|
+
_this7.poperSelectList = node.downListContent ? node.downListContent : [];
|
|
219232
|
+
}
|
|
219233
|
+
_this7.poperType = 'selectPoper';
|
|
219234
|
+
};
|
|
219235
|
+
if (node.customProperty && node.customProperty.hasThirdData == true) {
|
|
219236
|
+
this.$emit('dblNodeClick', {
|
|
219237
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
219238
|
+
node: this.getCurrentSelectNode,
|
|
219239
|
+
type: 'downlist',
|
|
219240
|
+
callback: callback,
|
|
219241
|
+
paintStatus: paintStatus
|
|
219242
|
+
});
|
|
219243
|
+
} else {
|
|
219244
|
+
callback(undefined);
|
|
219245
|
+
}
|
|
219246
|
+
},
|
|
219247
|
+
createInputProper: function createInputProper(node, parentNode, paintStatus, pageIndex) {
|
|
219248
|
+
var _this8 = this;
|
|
219249
|
+
if (paintStatus === 0) {
|
|
219250
|
+
this.hoEditorProvider.setControlProperty('text', 'update', '');
|
|
219251
|
+
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
219252
|
+
return;
|
|
219253
|
+
}
|
|
219254
|
+
var lists = [];
|
|
219255
|
+
if (parentNode) {
|
|
219256
|
+
var _parentNode$downListP2, _parentNode$downListP3, _parentNode$downListP4;
|
|
219257
|
+
var text = node.text.replace(/ /g, '');
|
|
219258
|
+
lists = (_parentNode$downListP2 = parentNode.downListProperty) !== null && _parentNode$downListP2 !== void 0 && _parentNode$downListP2.listItems ? JSON.parse((_parentNode$downListP3 = parentNode.downListProperty) === null || _parentNode$downListP3 === void 0 ? void 0 : _parentNode$downListP3.listItems) : [];
|
|
219259
|
+
var allowMultiSelected = ((_parentNode$downListP4 = parentNode.downListProperty) === null || _parentNode$downListP4 === void 0 ? void 0 : _parentNode$downListP4.allowMultiSelected) || false;
|
|
219260
|
+
var childs = parentNode.childNodes.filter(function (v) {
|
|
219261
|
+
return v.nodeType != 5 && v.nodeType != 2;
|
|
219262
|
+
});
|
|
219263
|
+
if (lists.filter(function (v) {
|
|
219264
|
+
return v.text.includes('<元素>');
|
|
219265
|
+
}).length > 0) {
|
|
219266
|
+
if (node.nodeType != 2 && childs.length > 0 && text != parentNode.name && text !== '' && !allowMultiSelected) {
|
|
219267
|
+
return;
|
|
219268
|
+
}
|
|
219269
|
+
}
|
|
219270
|
+
} else {
|
|
219271
|
+
var _node$downListPropert3, _node$downListPropert4;
|
|
219272
|
+
lists = (_node$downListPropert3 = node.downListProperty) !== null && _node$downListPropert3 !== void 0 && _node$downListPropert3.listItems ? JSON.parse((_node$downListPropert4 = node.downListProperty) === null || _node$downListPropert4 === void 0 ? void 0 : _node$downListPropert4.listItems) : [];
|
|
219273
|
+
}
|
|
219274
|
+
var callback = function callback(list) {
|
|
219275
|
+
_this8.computedPoperPosition(node, pageIndex);
|
|
219276
|
+
if (Array.isArray(list) && list.length > 0) {
|
|
219277
|
+
_this8.poperSelectList = list;
|
|
219278
|
+
} else {
|
|
219279
|
+
_this8.poperSelectList = lists.filter(function (v) {
|
|
219280
|
+
return v.value || v.text;
|
|
219281
|
+
});
|
|
219282
|
+
}
|
|
219283
|
+
_this8.poperType = 'selectPoper';
|
|
219284
|
+
};
|
|
219285
|
+
if (parentNode.customProperty && parentNode.customProperty.hasThirdData == true) {
|
|
219286
|
+
this.$emit('dblNodeClick', {
|
|
219287
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
219288
|
+
node: this.getCurrentSelectNode,
|
|
219289
|
+
type: 'textlist',
|
|
219290
|
+
callback: callback,
|
|
219291
|
+
paintStatus: paintStatus
|
|
219292
|
+
});
|
|
219293
|
+
} else {
|
|
219294
|
+
callback(undefined);
|
|
219295
|
+
}
|
|
219296
|
+
},
|
|
218693
219297
|
createAddCellButton: function createAddCellButton(node, pageIndex) {
|
|
218694
219298
|
var cell = null;
|
|
218695
219299
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
@@ -218767,13 +219371,13 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218767
219371
|
/**
|
|
218768
219372
|
* 计算控件位置 双击弹出层(datetime, select) move的tipText文本提示
|
|
218769
219373
|
*/
|
|
218770
|
-
computedPoperPosition: function computedPoperPosition(node, pageIndex) {
|
|
219374
|
+
computedPoperPosition: function computedPoperPosition(node, pageIndex, returnValue) {
|
|
218771
219375
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorId);
|
|
218772
219376
|
var nodePos = node.drawNodes[0];
|
|
218773
219377
|
var drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(nodePos);
|
|
218774
219378
|
var docPos = drawLine.localToGlobal(nodePos.x, nodePos.y === 0 ? drawLine.dHeight : nodePos.y);
|
|
218775
219379
|
var scaleXY = Math.max(DrawConfig/* DrawConfig */.f.instance().scaleXY, DrawConfig/* DrawConfig */.f.instance().transformScale);
|
|
218776
|
-
|
|
219380
|
+
var pos = {
|
|
218777
219381
|
x: docPos.x / scaleXY,
|
|
218778
219382
|
// 目标元素所在行的 x
|
|
218779
219383
|
y: docPos.y / scaleXY + 5,
|
|
@@ -218785,16 +219389,21 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218785
219389
|
// 目标元素所在页的 index
|
|
218786
219390
|
docIndex: this.docIndex ? this.docIndex : 0
|
|
218787
219391
|
};
|
|
219392
|
+
if (returnValue) {
|
|
219393
|
+
return pos;
|
|
219394
|
+
} else {
|
|
219395
|
+
this.poperPos = (0,objectSpread2/* default */.Z)({}, pos);
|
|
219396
|
+
}
|
|
218788
219397
|
},
|
|
218789
219398
|
/**
|
|
218790
219399
|
* 鼠标右键 打开右键菜单 并计算弹出位置
|
|
218791
219400
|
* 先关闭一次 再延迟打开 触发弹出层动画
|
|
218792
219401
|
*/
|
|
218793
219402
|
mouseRightClickEvent: function mouseRightClickEvent(e) {
|
|
218794
|
-
var
|
|
219403
|
+
var _this9 = this;
|
|
218795
219404
|
this.$nextTick(function () {
|
|
218796
219405
|
var _hoEditorFactory$docT;
|
|
218797
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(
|
|
219406
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this9.hoEditorId);
|
|
218798
219407
|
var rightPosition = {
|
|
218799
219408
|
clientX: e.clientX || e.pageX,
|
|
218800
219409
|
clientY: e.clientY || e.pageY
|
|
@@ -218808,25 +219417,25 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218808
219417
|
// psReview, // 审阅
|
|
218809
219418
|
// psReadOnly, // 预览
|
|
218810
219419
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState */.Dh.psEdit) {
|
|
218811
|
-
|
|
219420
|
+
_this9.isCreateRightMenuModal = true;
|
|
218812
219421
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview && node instanceof SignNode/* SignNode */.N) {
|
|
218813
|
-
|
|
218814
|
-
|
|
219422
|
+
_this9.isCreateRightMenuModal = false;
|
|
219423
|
+
_this9.hoEditorProvider.setRightClickNodeValue(node);
|
|
218815
219424
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
218816
|
-
|
|
219425
|
+
_this9.$emit('rightClickEventIn', rightPosition);
|
|
218817
219426
|
return;
|
|
218818
219427
|
} else {
|
|
218819
|
-
|
|
218820
|
-
|
|
219428
|
+
_this9.isHideComments = hoEditorFactory.isHideComments;
|
|
219429
|
+
_this9.showCommentsBtn = true;
|
|
218821
219430
|
}
|
|
218822
|
-
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY,
|
|
219431
|
+
(0,plugins_util/* createRightMenu */.GN)(rightPosition.clientX, rightPosition.clientY, _this9.$refs.rightMenuModal);
|
|
218823
219432
|
return;
|
|
218824
219433
|
}
|
|
218825
219434
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218826
|
-
|
|
219435
|
+
_this9.hoEditorProvider.setRightClickNodeValue(node);
|
|
218827
219436
|
}
|
|
218828
219437
|
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
218829
|
-
|
|
219438
|
+
_this9.$emit('rightClickEventIn', rightPosition);
|
|
218830
219439
|
});
|
|
218831
219440
|
},
|
|
218832
219441
|
hoCopy: function hoCopy(e) {
|
|
@@ -218870,10 +219479,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218870
219479
|
});
|
|
218871
219480
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
218872
219481
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
218873
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219482
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=145d8080&prod&lang=less&
|
|
218874
219483
|
// extracted by mini-css-extract-plugin
|
|
218875
219484
|
|
|
218876
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219485
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=145d8080&prod&lang=less&
|
|
218877
219486
|
|
|
218878
219487
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
218879
219488
|
|
|
@@ -218886,8 +219495,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
218886
219495
|
|
|
218887
219496
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218888
219497
|
components_HoDocvue_type_script_lang_js_,
|
|
218889
|
-
|
|
218890
|
-
|
|
219498
|
+
HoDocvue_type_template_id_145d8080_render,
|
|
219499
|
+
HoDocvue_type_template_id_145d8080_staticRenderFns,
|
|
218891
219500
|
false,
|
|
218892
219501
|
null,
|
|
218893
219502
|
null,
|
|
@@ -225310,6 +225919,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
225310
225919
|
(0,esm_classCallCheck/* default */.Z)(this, VueController);
|
|
225311
225920
|
(0,esm_defineProperty/* default */.Z)(this, "_combineStyle", void 0);
|
|
225312
225921
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
225922
|
+
(0,esm_defineProperty/* default */.Z)(this, "autoSelect", void 0);
|
|
225313
225923
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
225314
225924
|
// this.getCurTextStyle();
|
|
225315
225925
|
}
|
|
@@ -230503,7 +231113,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230503
231113
|
//type=1:根据dataid定位元素 type=其它:根据id定位元素
|
|
230504
231114
|
}, {
|
|
230505
231115
|
key: "moveCaretToElement",
|
|
230506
|
-
value: function moveCaretToElement(scope, id, type) {
|
|
231116
|
+
value: function moveCaretToElement(scope, id, type, returnValue) {
|
|
230507
231117
|
var node;
|
|
230508
231118
|
if (type == 1) {
|
|
230509
231119
|
node = this.getNodeByDataID(scope, id);
|
|
@@ -230533,6 +231143,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
230533
231143
|
hoEditorFactory.docTree.selectChange(selectChangeEvent);
|
|
230534
231144
|
}
|
|
230535
231145
|
}
|
|
231146
|
+
if (returnValue) {
|
|
231147
|
+
return node;
|
|
231148
|
+
}
|
|
230536
231149
|
}
|
|
230537
231150
|
/**
|
|
230538
231151
|
* 获取光标位置
|
|
@@ -232455,10 +233068,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232455
233068
|
/**
|
|
232456
233069
|
* 插入质量控制指标模板
|
|
232457
233070
|
* @param xml 模板xml
|
|
233071
|
+
* @param isAppend 是否追加
|
|
232458
233072
|
*/
|
|
232459
233073
|
}, {
|
|
232460
233074
|
key: "insertQualityIndex",
|
|
232461
|
-
value: function insertQualityIndex(xml) {
|
|
233075
|
+
value: function insertQualityIndex(xml, isAppend) {
|
|
232462
233076
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
232463
233077
|
xml = hoEditorFactory.structureConvert.replaceNodesName(xml);
|
|
232464
233078
|
var x2js = new (x2js_default())({
|
|
@@ -232469,8 +233083,31 @@ var VueController = /*#__PURE__*/function () {
|
|
|
232469
233083
|
var mainArray = json.main ? json.main.node : json.root.main.node;
|
|
232470
233084
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
232471
233085
|
var isError;
|
|
233086
|
+
var apath = "";
|
|
232472
233087
|
if (!curDomRange.isEmpty) {
|
|
232473
|
-
|
|
233088
|
+
if (isAppend) {
|
|
233089
|
+
var _curDomRange$npStart$;
|
|
233090
|
+
if (((_curDomRange$npStart$ = curDomRange.npStart.node) === null || _curDomRange$npStart$ === void 0 ? void 0 : _curDomRange$npStart$.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
233091
|
+
var _curDomRange$npStart$2;
|
|
233092
|
+
var anode = (_curDomRange$npStart$2 = curDomRange.npStart.node) === null || _curDomRange$npStart$2 === void 0 ? void 0 : _curDomRange$npStart$2.parentNode.EndMarkNode.previousLeaf();
|
|
233093
|
+
apath = hoEditorFactory.docTree.getNodeLastPath(anode);
|
|
233094
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(apath);
|
|
233095
|
+
} else {
|
|
233096
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(curDomRange.npStart.path);
|
|
233097
|
+
}
|
|
233098
|
+
} else {
|
|
233099
|
+
isError = hoEditorFactory.docController.deleteRange(curDomRange, true);
|
|
233100
|
+
}
|
|
233101
|
+
} else {
|
|
233102
|
+
if (isAppend) {
|
|
233103
|
+
var _curDomRange$npStart$3;
|
|
233104
|
+
if (((_curDomRange$npStart$3 = curDomRange.npStart.node) === null || _curDomRange$npStart$3 === void 0 ? void 0 : _curDomRange$npStart$3.parentNode) instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
233105
|
+
var _curDomRange$npStart$4;
|
|
233106
|
+
var _anode = (_curDomRange$npStart$4 = curDomRange.npStart.node) === null || _curDomRange$npStart$4 === void 0 ? void 0 : _curDomRange$npStart$4.parentNode.EndMarkNode.previousLeaf();
|
|
233107
|
+
apath = hoEditorFactory.docTree.getNodeLastPath(_anode);
|
|
233108
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(apath);
|
|
233109
|
+
}
|
|
233110
|
+
}
|
|
232474
233111
|
}
|
|
232475
233112
|
if (!isError) {
|
|
232476
233113
|
var nodes = [];
|
|
@@ -238480,11 +239117,11 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238480
239117
|
this._ho_web.keys().then(function (keys) {
|
|
238481
239118
|
keys.forEach(function (key) {
|
|
238482
239119
|
_this2._ho_web.getItem(key).then(function (value) {
|
|
238483
|
-
if (Array.isArray(value)) {
|
|
239120
|
+
if (Array.isArray(value) && value[0] && value[0].saveTime) {
|
|
238484
239121
|
if (new Date().getTime() - new Date(value[0].saveTime).getTime()) {
|
|
238485
239122
|
_this2._ho_web.removeItem(key);
|
|
238486
239123
|
}
|
|
238487
|
-
} else {
|
|
239124
|
+
} else if (value && value.saveTime) {
|
|
238488
239125
|
if (new Date().getTime() - new Date(value.saveTime).getTime()) {
|
|
238489
239126
|
_this2._ho_web.removeItem(key);
|
|
238490
239127
|
}
|
|
@@ -240195,7 +240832,6 @@ var commondata = __webpack_require__(76285);
|
|
|
240195
240832
|
// 页面滚动方向:1表示向下,-1表示向上
|
|
240196
240833
|
scrollTimer: null,
|
|
240197
240834
|
// 鼠标滑动时页面滚动定时器
|
|
240198
|
-
|
|
240199
240835
|
commentParams: {
|
|
240200
240836
|
// 批注相关参数监听
|
|
240201
240837
|
repaint: '0',
|
|
@@ -240624,6 +241260,7 @@ var commondata = __webpack_require__(76285);
|
|
|
240624
241260
|
if (!window.printController) {
|
|
240625
241261
|
window.printController = hoEditorFactory.printController;
|
|
240626
241262
|
}
|
|
241263
|
+
hoEditorFactory.vueController.autoSelect = this.autoSelect;
|
|
240627
241264
|
this.$emit('docReady', {
|
|
240628
241265
|
vueController: hoEditorFactory.vueController,
|
|
240629
241266
|
baseController: hoEditorFactory.baseController,
|
|
@@ -240939,15 +241576,22 @@ var commondata = __webpack_require__(76285);
|
|
|
240939
241576
|
}
|
|
240940
241577
|
}, this.mouseParams.speed);
|
|
240941
241578
|
}
|
|
241579
|
+
},
|
|
241580
|
+
/**
|
|
241581
|
+
* 元素联动后自动调起第一个下拉元素
|
|
241582
|
+
*/
|
|
241583
|
+
autoSelect: function autoSelect(id) {
|
|
241584
|
+
if (!id) return;
|
|
241585
|
+
this.hoEditorProvider.autoSelectElementId = id;
|
|
240942
241586
|
}
|
|
240943
241587
|
}
|
|
240944
241588
|
});
|
|
240945
241589
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
240946
241590
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
240947
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
241591
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=style&index=0&id=050216ec&prod&lang=less&media=print&
|
|
240948
241592
|
// extracted by mini-css-extract-plugin
|
|
240949
241593
|
|
|
240950
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
241594
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=050216ec&prod&lang=less&media=print&
|
|
240951
241595
|
|
|
240952
241596
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
240953
241597
|
|
|
@@ -247817,7 +248461,8 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247817
248461
|
endPath: ''
|
|
247818
248462
|
},
|
|
247819
248463
|
tableFormData: null,
|
|
247820
|
-
rightNode: null
|
|
248464
|
+
rightNode: null,
|
|
248465
|
+
autoSelectElementId: ''
|
|
247821
248466
|
};
|
|
247822
248467
|
},
|
|
247823
248468
|
methods: {
|
|
@@ -247921,7 +248566,9 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247921
248566
|
this.rightType = node.controlStyle;
|
|
247922
248567
|
// this.dataSource = node.bandDataSource;
|
|
247923
248568
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
247924
|
-
|
|
248569
|
+
if (!node.isBackFill) {
|
|
248570
|
+
this.rightType = 'edit-image';
|
|
248571
|
+
}
|
|
247925
248572
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
247926
248573
|
this.rightType = 'label';
|
|
247927
248574
|
} else if (node instanceof SignNode/* SignNode */.N) {
|
|
@@ -247985,6 +248632,7 @@ var HoRightMenu_component = (0,componentNormalizer/* default */.Z)(
|
|
|
247985
248632
|
|
|
247986
248633
|
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
247987
248634
|
var node = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
248635
|
+
|
|
247988
248636
|
// if (startPos) {
|
|
247989
248637
|
// const npNode = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
247990
248638
|
// if (npNode instanceof SignNode && npNode.type == 3) {
|