hoeditor-web 2.0.88 → 2.0.91
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.common.js +1289 -709
- package/lib/hoeditor.css +4 -3
- package/lib/hoeditor.umd.js +1289 -709
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -2094,7 +2094,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
2094
2094
|
|
|
2095
2095
|
/***/ }),
|
|
2096
2096
|
|
|
2097
|
-
/***/
|
|
2097
|
+
/***/ 71885:
|
|
2098
2098
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
2099
2099
|
|
|
2100
2100
|
"use strict";
|
|
@@ -2106,7 +2106,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
2106
2106
|
"default": function() { return /* binding */ ControlModal; }
|
|
2107
2107
|
});
|
|
2108
2108
|
|
|
2109
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
2109
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=013d7f13&
|
|
2110
2110
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[_c(_vm.modalComponent.component,{tag:"component",attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"uploadImageParams":_vm.uploadImageParams,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true},{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true},{key:"hoParagraph",fn:function(){return [_vm._t("hoParagraphModal")]},proxy:true}],null,true)}),_c(_vm.otherComponent.component,{tag:"component",attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}})],1)}
|
|
2111
2111
|
var staticRenderFns = []
|
|
2112
2112
|
|
|
@@ -2217,6 +2217,7 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
2217
2217
|
'table-row': 'table/TableRowProperty',
|
|
2218
2218
|
'table-col': 'table/TableColProperty',
|
|
2219
2219
|
'table-cell': 'table/TableCellProperty',
|
|
2220
|
+
'table-formula': "table/TableFormula",
|
|
2220
2221
|
comment: 'commentDialog/CommentDialog',
|
|
2221
2222
|
pageInfoes: 'pageInfoes/PageInfoes',
|
|
2222
2223
|
delimiter: 'delimiter/Delimiter',
|
|
@@ -6009,7 +6010,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6009
6010
|
|
|
6010
6011
|
/***/ }),
|
|
6011
6012
|
|
|
6012
|
-
/***/
|
|
6013
|
+
/***/ 10460:
|
|
6013
6014
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6014
6015
|
|
|
6015
6016
|
"use strict";
|
|
@@ -6021,7 +6022,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6021
6022
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6022
6023
|
});
|
|
6023
6024
|
|
|
6024
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
6025
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=1331ab94&scoped=true&
|
|
6025
6026
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
6026
6027
|
var item = ref.item;
|
|
6027
6028
|
return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
@@ -8719,6 +8720,7 @@ var popper = __webpack_require__(14519);
|
|
|
8719
8720
|
sureSelect: function sureSelect() {
|
|
8720
8721
|
var _this8 = this;
|
|
8721
8722
|
|
|
8723
|
+
console.time("下拉选中时间");
|
|
8722
8724
|
var text = '';
|
|
8723
8725
|
var keyValue = '';
|
|
8724
8726
|
var currentPoperNode = this.getCurrentPoperNode();
|
|
@@ -8824,11 +8826,8 @@ var popper = __webpack_require__(14519);
|
|
|
8824
8826
|
this.poppernIstance && this.poppernIstance.update();
|
|
8825
8827
|
},
|
|
8826
8828
|
handleClose: function handleClose() {
|
|
8827
|
-
|
|
8828
|
-
|
|
8829
|
-
this.$nextTick(function () {
|
|
8830
|
-
return _this9.$emit('poperClose');
|
|
8831
|
-
});
|
|
8829
|
+
this.$emit('poperClose');
|
|
8830
|
+
console.timeEnd("下拉选中时间"); // this.$nextTick(() => this.$emit('poperClose'));
|
|
8832
8831
|
},
|
|
8833
8832
|
beforeDestroy: function beforeDestroy() {
|
|
8834
8833
|
var _document$querySelect2;
|
|
@@ -8840,10 +8839,10 @@ var popper = __webpack_require__(14519);
|
|
|
8840
8839
|
});
|
|
8841
8840
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
8842
8841
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
8843
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].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=
|
|
8842
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].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=1331ab94&lang=scss&scoped=true&
|
|
8844
8843
|
// extracted by mini-css-extract-plugin
|
|
8845
8844
|
|
|
8846
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8845
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=1331ab94&lang=scss&scoped=true&
|
|
8847
8846
|
|
|
8848
8847
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8849
8848
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -8862,7 +8861,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8862
8861
|
staticRenderFns,
|
|
8863
8862
|
false,
|
|
8864
8863
|
null,
|
|
8865
|
-
"
|
|
8864
|
+
"1331ab94",
|
|
8866
8865
|
null
|
|
8867
8866
|
|
|
8868
8867
|
)
|
|
@@ -10808,7 +10807,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10808
10807
|
|
|
10809
10808
|
/***/ }),
|
|
10810
10809
|
|
|
10811
|
-
/***/
|
|
10810
|
+
/***/ 89778:
|
|
10812
10811
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10813
10812
|
|
|
10814
10813
|
"use strict";
|
|
@@ -10820,8 +10819,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10820
10819
|
"default": function() { return /* binding */ TableCellPoper; }
|
|
10821
10820
|
});
|
|
10822
10821
|
|
|
10823
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=
|
|
10824
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cell-poper-selected-modal animation-in",style:(_vm.posStyle)},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch)?_c('el-input',{attrs:{"placeholder":"可搜索","size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}}):_vm._e(),(_vm.editorProperty === 1)?_c('div',{staticClass:"select-poper"},[_c('ul',{staticClass:"list"},[_vm._l((_vm.currentList),function(item,index){return _c('li',{key:item.id,class:item.default ? 'selected' : '',on:{"click":function($event){return _vm.selectItems(item, index)}}},[_c('span',[_vm._v(_vm._s(item.text.split("<元素>")[0]))]),_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#selected"}})])])}),(_vm.currentList.length === 0)?_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")]):_vm._e()],2),(_vm.isAllowMultiSelect)?_c('footer',{
|
|
10822
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=template&id=7fecbf90&scoped=true&
|
|
10823
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"cell-poper-selected-modal animation-in",style:(_vm.posStyle)},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch)?_c('el-input',{attrs:{"placeholder":"可搜索","size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}}):_vm._e(),(_vm.editorProperty === 1)?_c('div',{staticClass:"select-poper"},[_c('ul',{staticClass:"list"},[_vm._l((_vm.currentList),function(item,index){return _c('li',{key:item.id,class:item.default ? 'selected' : '',on:{"click":function($event){return _vm.selectItems(item, index)}}},[_c('span',[_vm._v(_vm._s(item.text.split("<元素>")[0]))]),_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('use',{attrs:{"xlink:href":"#selected"}})])])}),(_vm.currentList.length === 0)?_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")]):_vm._e()],2),(_vm.isAllowMultiSelect)?_c('footer',{staticStyle:{"bottom":"-43px","padding":"10px","text-align":"center"}},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){_vm.selected = []}}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_c('footer',{staticStyle:{"bottom":"-43px","padding":"10px","text-align":"center"}},[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1)]):_vm._e(),(_vm.editorProperty === 2)?_c('div',{staticClass:"date-poper"},[(_vm.inputStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('MM') && !_vm.inputStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('yyyy') && !_vm.inputStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.inputStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v(_vm._s(_vm.inputStyle.indexOf('HH') !== -1 ? '此刻' : '今天'))]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":function($event){return _vm.handleClose('cancel')}}},[_vm._v("取消")])],1)],1):_vm._e()],1)}
|
|
10825
10824
|
var staticRenderFns = []
|
|
10826
10825
|
|
|
10827
10826
|
|
|
@@ -10926,6 +10925,8 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
10926
10925
|
//
|
|
10927
10926
|
//
|
|
10928
10927
|
//
|
|
10928
|
+
//
|
|
10929
|
+
//
|
|
10929
10930
|
|
|
10930
10931
|
|
|
10931
10932
|
|
|
@@ -11130,9 +11131,9 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11130
11131
|
this.isCanSearch = true;
|
|
11131
11132
|
}
|
|
11132
11133
|
|
|
11133
|
-
var _height = this.poperList.length * 36 + 36;
|
|
11134
|
+
var _height = this.poperList.length * 36 + 72; // if (this.isAllowMultiSelect) height += 36;
|
|
11135
|
+
|
|
11134
11136
|
|
|
11135
|
-
if (this.isAllowMultiSelect) _height += 36;
|
|
11136
11137
|
if (this.isCanSearch) _height += 28;
|
|
11137
11138
|
|
|
11138
11139
|
if (_height < 360) {
|
|
@@ -11285,10 +11286,10 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11285
11286
|
});
|
|
11286
11287
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11287
11288
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11288
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11289
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7fecbf90&lang=scss&scoped=true&
|
|
11289
11290
|
// extracted by mini-css-extract-plugin
|
|
11290
11291
|
|
|
11291
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11292
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=7fecbf90&lang=scss&scoped=true&
|
|
11292
11293
|
|
|
11293
11294
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11294
11295
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11307,7 +11308,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11307
11308
|
staticRenderFns,
|
|
11308
11309
|
false,
|
|
11309
11310
|
null,
|
|
11310
|
-
"
|
|
11311
|
+
"7fecbf90",
|
|
11311
11312
|
null
|
|
11312
11313
|
|
|
11313
11314
|
)
|
|
@@ -12472,7 +12473,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12472
12473
|
|
|
12473
12474
|
/***/ }),
|
|
12474
12475
|
|
|
12475
|
-
/***/
|
|
12476
|
+
/***/ 45302:
|
|
12476
12477
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12477
12478
|
|
|
12478
12479
|
"use strict";
|
|
@@ -12481,39 +12482,36 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
12481
12482
|
|
|
12482
12483
|
// EXPORTS
|
|
12483
12484
|
__webpack_require__.d(__webpack_exports__, {
|
|
12484
|
-
"default": function() { return /* binding */
|
|
12485
|
+
"default": function() { return /* binding */ table_TableFormula; }
|
|
12485
12486
|
});
|
|
12486
12487
|
|
|
12487
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/
|
|
12488
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(
|
|
12488
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=template&id=31dfdc04&
|
|
12489
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-formula-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v(_vm._s(_vm.dialogFormTitle))]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v("请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234...")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"152px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
12489
12490
|
var staticRenderFns = []
|
|
12490
12491
|
|
|
12491
12492
|
|
|
12492
12493
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
12493
12494
|
var toConsumableArray = __webpack_require__(13767);
|
|
12495
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12496
|
+
var es_array_concat = __webpack_require__(92222);
|
|
12494
12497
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12495
12498
|
var es_array_filter = __webpack_require__(57327);
|
|
12496
12499
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12497
12500
|
var es_object_to_string = __webpack_require__(41539);
|
|
12498
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12499
|
-
var
|
|
12500
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12501
|
-
var
|
|
12502
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.
|
|
12503
|
-
var
|
|
12504
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.
|
|
12505
|
-
var
|
|
12501
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
12502
|
+
var es_array_map = __webpack_require__(21249);
|
|
12503
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
12504
|
+
var es_regexp_exec = __webpack_require__(74916);
|
|
12505
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
12506
|
+
var es_string_replace = __webpack_require__(15306);
|
|
12507
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.join.js
|
|
12508
|
+
var es_array_join = __webpack_require__(69600);
|
|
12506
12509
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12507
12510
|
var es_json_stringify = __webpack_require__(38862);
|
|
12508
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/
|
|
12509
|
-
var
|
|
12510
|
-
|
|
12511
|
-
|
|
12512
|
-
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
12513
|
-
var getCellNode = __webpack_require__(28547);
|
|
12514
|
-
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
12515
|
-
var CellNode = __webpack_require__(69088);
|
|
12516
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
12511
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableFormula.ts
|
|
12512
|
+
var TableFormula = __webpack_require__(72330);
|
|
12513
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
|
|
12514
|
+
|
|
12517
12515
|
|
|
12518
12516
|
|
|
12519
12517
|
|
|
@@ -12567,241 +12565,543 @@ var CellNode = __webpack_require__(69088);
|
|
|
12567
12565
|
//
|
|
12568
12566
|
//
|
|
12569
12567
|
//
|
|
12570
|
-
|
|
12571
|
-
|
|
12572
|
-
|
|
12573
|
-
|
|
12574
|
-
|
|
12575
|
-
|
|
12576
|
-
|
|
12577
|
-
|
|
12578
|
-
|
|
12579
|
-
|
|
12580
|
-
|
|
12581
|
-
|
|
12582
|
-
|
|
12583
|
-
|
|
12584
|
-
|
|
12585
|
-
|
|
12586
|
-
|
|
12587
|
-
|
|
12588
|
-
|
|
12589
|
-
|
|
12590
|
-
|
|
12591
|
-
|
|
12592
|
-
|
|
12593
|
-
|
|
12594
|
-
|
|
12595
|
-
|
|
12596
|
-
|
|
12597
|
-
|
|
12598
|
-
|
|
12599
|
-
|
|
12600
|
-
|
|
12601
|
-
|
|
12602
|
-
|
|
12603
|
-
|
|
12604
|
-
|
|
12605
|
-
|
|
12606
|
-
|
|
12607
|
-
|
|
12608
|
-
|
|
12609
|
-
|
|
12610
|
-
|
|
12611
|
-
|
|
12612
|
-
|
|
12613
|
-
|
|
12614
|
-
|
|
12615
|
-
|
|
12616
|
-
|
|
12617
|
-
|
|
12618
|
-
|
|
12619
|
-
|
|
12620
|
-
|
|
12621
|
-
}
|
|
12622
|
-
|
|
12623
|
-
|
|
12624
|
-
|
|
12625
|
-
|
|
12626
|
-
|
|
12627
|
-
|
|
12628
|
-
|
|
12629
|
-
|
|
12630
|
-
|
|
12631
|
-
|
|
12632
|
-
|
|
12633
|
-
|
|
12634
|
-
|
|
12635
|
-
|
|
12636
|
-
|
|
12637
|
-
|
|
12638
|
-
|
|
12639
|
-
|
|
12640
|
-
|
|
12641
|
-
|
|
12642
|
-
|
|
12643
|
-
|
|
12644
|
-
|
|
12645
|
-
|
|
12646
|
-
|
|
12647
|
-
|
|
12648
|
-
|
|
12649
|
-
|
|
12650
|
-
|
|
12651
|
-
|
|
12652
|
-
|
|
12653
|
-
|
|
12654
|
-
|
|
12655
|
-
|
|
12656
|
-
|
|
12657
|
-
|
|
12658
|
-
|
|
12659
|
-
|
|
12660
|
-
|
|
12661
|
-
|
|
12662
|
-
|
|
12663
|
-
|
|
12664
|
-
|
|
12665
|
-
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
|
|
12672
|
-
|
|
12673
|
-
|
|
12674
|
-
|
|
12675
|
-
|
|
12676
|
-
|
|
12677
|
-
|
|
12678
|
-
|
|
12679
|
-
|
|
12680
|
-
|
|
12681
|
-
|
|
12682
|
-
|
|
12683
|
-
|
|
12684
|
-
|
|
12685
|
-
|
|
12686
|
-
|
|
12687
|
-
|
|
12688
|
-
|
|
12689
|
-
|
|
12690
|
-
|
|
12691
|
-
|
|
12692
|
-
|
|
12693
|
-
|
|
12694
|
-
|
|
12695
|
-
|
|
12696
|
-
|
|
12697
|
-
|
|
12698
|
-
|
|
12699
|
-
|
|
12700
|
-
|
|
12701
|
-
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
|
|
12705
|
-
}
|
|
12706
|
-
|
|
12707
|
-
|
|
12708
|
-
|
|
12709
|
-
|
|
12710
|
-
|
|
12711
|
-
|
|
12712
|
-
|
|
12713
|
-
|
|
12714
|
-
|
|
12715
|
-
|
|
12716
|
-
|
|
12717
|
-
|
|
12718
|
-
|
|
12719
|
-
|
|
12720
|
-
|
|
12721
|
-
|
|
12722
|
-
|
|
12723
|
-
|
|
12724
|
-
|
|
12725
|
-
|
|
12726
|
-
|
|
12727
|
-
|
|
12728
|
-
|
|
12729
|
-
|
|
12730
|
-
|
|
12731
|
-
|
|
12732
|
-
|
|
12733
|
-
|
|
12734
|
-
|
|
12735
|
-
|
|
12736
|
-
|
|
12737
|
-
|
|
12738
|
-
|
|
12739
|
-
|
|
12740
|
-
|
|
12741
|
-
|
|
12742
|
-
|
|
12743
|
-
|
|
12744
|
-
|
|
12745
|
-
|
|
12746
|
-
|
|
12747
|
-
|
|
12748
|
-
|
|
12749
|
-
|
|
12750
|
-
|
|
12751
|
-
|
|
12752
|
-
|
|
12753
|
-
|
|
12754
|
-
|
|
12755
|
-
|
|
12756
|
-
|
|
12757
|
-
|
|
12758
|
-
|
|
12759
|
-
|
|
12760
|
-
|
|
12761
|
-
|
|
12762
|
-
|
|
12763
|
-
|
|
12764
|
-
|
|
12765
|
-
|
|
12766
|
-
|
|
12767
|
-
|
|
12768
|
-
|
|
12769
|
-
|
|
12770
|
-
|
|
12771
|
-
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12778
|
-
|
|
12779
|
-
|
|
12780
|
-
|
|
12781
|
-
//
|
|
12782
|
-
|
|
12783
|
-
|
|
12784
|
-
|
|
12785
|
-
|
|
12786
|
-
|
|
12787
|
-
|
|
12788
|
-
|
|
12789
|
-
|
|
12790
|
-
var
|
|
12791
|
-
|
|
12792
|
-
|
|
12793
|
-
|
|
12794
|
-
|
|
12795
|
-
|
|
12796
|
-
|
|
12797
|
-
|
|
12798
|
-
|
|
12799
|
-
|
|
12800
|
-
|
|
12801
|
-
|
|
12802
|
-
|
|
12803
|
-
|
|
12804
|
-
|
|
12568
|
+
//
|
|
12569
|
+
//
|
|
12570
|
+
//
|
|
12571
|
+
//
|
|
12572
|
+
//
|
|
12573
|
+
//
|
|
12574
|
+
//
|
|
12575
|
+
//
|
|
12576
|
+
//
|
|
12577
|
+
//
|
|
12578
|
+
//
|
|
12579
|
+
//
|
|
12580
|
+
//
|
|
12581
|
+
//
|
|
12582
|
+
//
|
|
12583
|
+
//
|
|
12584
|
+
//
|
|
12585
|
+
//
|
|
12586
|
+
//
|
|
12587
|
+
//
|
|
12588
|
+
//
|
|
12589
|
+
//
|
|
12590
|
+
//
|
|
12591
|
+
//
|
|
12592
|
+
//
|
|
12593
|
+
//
|
|
12594
|
+
//
|
|
12595
|
+
//
|
|
12596
|
+
//
|
|
12597
|
+
//
|
|
12598
|
+
//
|
|
12599
|
+
//
|
|
12600
|
+
//
|
|
12601
|
+
//
|
|
12602
|
+
//
|
|
12603
|
+
//
|
|
12604
|
+
//
|
|
12605
|
+
//
|
|
12606
|
+
//
|
|
12607
|
+
//
|
|
12608
|
+
//
|
|
12609
|
+
//
|
|
12610
|
+
|
|
12611
|
+
/* harmony default export */ var TableFormulavue_type_script_lang_js_ = ({
|
|
12612
|
+
name: 'TablePoperty',
|
|
12613
|
+
props: {
|
|
12614
|
+
vueController: {
|
|
12615
|
+
default: function _default() {}
|
|
12616
|
+
},
|
|
12617
|
+
hoEditorFactoryId: {
|
|
12618
|
+
default: ''
|
|
12619
|
+
},
|
|
12620
|
+
controlProperty: {
|
|
12621
|
+
required: true
|
|
12622
|
+
}
|
|
12623
|
+
},
|
|
12624
|
+
data: function data() {
|
|
12625
|
+
return {
|
|
12626
|
+
simpleFormula: '',
|
|
12627
|
+
isCellSplitModal: false,
|
|
12628
|
+
row: 1,
|
|
12629
|
+
column: 1,
|
|
12630
|
+
topRows: 1,
|
|
12631
|
+
bottomRows: 1,
|
|
12632
|
+
leftRows: 1,
|
|
12633
|
+
rightRows: 1,
|
|
12634
|
+
// bmi
|
|
12635
|
+
height: '',
|
|
12636
|
+
weight: '',
|
|
12637
|
+
// 产程
|
|
12638
|
+
laborType: 1,
|
|
12639
|
+
labor1: '',
|
|
12640
|
+
labor2: '',
|
|
12641
|
+
labor3: '',
|
|
12642
|
+
// 预产期 孕周 孕周天
|
|
12643
|
+
expectedDate: '',
|
|
12644
|
+
isHideZero: true,
|
|
12645
|
+
isOnceClick: false,
|
|
12646
|
+
ftScoreMapping: {
|
|
12647
|
+
cell: '',
|
|
12648
|
+
item: [{
|
|
12649
|
+
text: '',
|
|
12650
|
+
range: []
|
|
12651
|
+
}, {
|
|
12652
|
+
text: '',
|
|
12653
|
+
range: []
|
|
12654
|
+
}, {
|
|
12655
|
+
text: '',
|
|
12656
|
+
range: []
|
|
12657
|
+
}]
|
|
12658
|
+
}
|
|
12659
|
+
};
|
|
12660
|
+
},
|
|
12661
|
+
inject: [],
|
|
12662
|
+
computed: {
|
|
12663
|
+
dialogFormTitle: function dialogFormTitle() {
|
|
12664
|
+
if (this.controlProperty && Array.isArray(this.controlProperty.expressStyle)) {
|
|
12665
|
+
return this.controlProperty.expressStyle[0];
|
|
12666
|
+
}
|
|
12667
|
+
|
|
12668
|
+
return '';
|
|
12669
|
+
},
|
|
12670
|
+
formula: function formula() {
|
|
12671
|
+
if (this.controlProperty && Array.isArray(this.controlProperty.expressStyle)) {
|
|
12672
|
+
return this.controlProperty.expressStyle[1];
|
|
12673
|
+
}
|
|
12674
|
+
|
|
12675
|
+
return '';
|
|
12676
|
+
}
|
|
12677
|
+
},
|
|
12678
|
+
methods: {
|
|
12679
|
+
sure: function sure() {
|
|
12680
|
+
if (this.formula === 'bmi') {
|
|
12681
|
+
// bmi计算公式
|
|
12682
|
+
this.vueController.insertTableFormula("".concat(this.weight, ",").concat(this.height).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftBMI */.a.ftBMI);
|
|
12683
|
+
} else if (this.formula === 'a1: a2') {
|
|
12684
|
+
// 求和公式
|
|
12685
|
+
this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftSum */.a.ftSum);
|
|
12686
|
+
} else if (this.formula === '(a1 + a2) * 2') {
|
|
12687
|
+
// 四则运算公式
|
|
12688
|
+
this.vueController.insertTableFormula(this.simpleFormula.toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftFormular */.a.ftFormular);
|
|
12689
|
+
} else if (this.formula === 'labor') {
|
|
12690
|
+
// 产程公式
|
|
12691
|
+
if (this.laborType === 0) {
|
|
12692
|
+
this.vueController.insertTableFormula("".concat(this.labor1, ",").concat(this.labor2, ",").concat(this.labor3).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess);
|
|
12693
|
+
} else {
|
|
12694
|
+
this.vueController.insertTableFormula("".concat(this.labor1, ",").concat(this.labor2).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess);
|
|
12695
|
+
}
|
|
12696
|
+
} else if (this.formula === 'expectedDate') {
|
|
12697
|
+
// 预产期公式
|
|
12698
|
+
this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate);
|
|
12699
|
+
} else if (this.formula === 'pregnantWeeks') {
|
|
12700
|
+
// 孕周公式
|
|
12701
|
+
this.vueController.insertTableFormula("".concat(this.expectedDate).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks);
|
|
12702
|
+
} else if (this.formula === 'pregnantDays') {// this.vueController.insertTableFormula(`${this.expectedDate}`.toLocaleLowerCase(), this.isHideZero, FormularType.ftPregnantDays)
|
|
12703
|
+
} else if (this.formula === 'ftScoreMapping') {
|
|
12704
|
+
var item = (0,toConsumableArray/* default */.Z)(this.ftScoreMapping.item);
|
|
12705
|
+
|
|
12706
|
+
var ftScoreMapping = {
|
|
12707
|
+
cell: this.ftScoreMapping.cell,
|
|
12708
|
+
items: item.map(function (v) {
|
|
12709
|
+
if (v.text.replace(/\s*/g, '') === '') {
|
|
12710
|
+
return '';
|
|
12711
|
+
}
|
|
12712
|
+
|
|
12713
|
+
return {
|
|
12714
|
+
text: v.text,
|
|
12715
|
+
range: v.range.join('-')
|
|
12716
|
+
};
|
|
12717
|
+
}).filter(function (v) {
|
|
12718
|
+
return v;
|
|
12719
|
+
})
|
|
12720
|
+
};
|
|
12721
|
+
this.vueController.insertTableFormula(JSON.stringify(ftScoreMapping).toLocaleLowerCase(), this.isHideZero, TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping);
|
|
12722
|
+
}
|
|
12723
|
+
|
|
12724
|
+
this.handleClose();
|
|
12725
|
+
},
|
|
12726
|
+
handleClose: function handleClose() {
|
|
12727
|
+
this.$emit('closed');
|
|
12728
|
+
},
|
|
12729
|
+
addFtScoreMappingItem: function addFtScoreMappingItem() {
|
|
12730
|
+
this.ftScoreMapping.item.push({
|
|
12731
|
+
text: '',
|
|
12732
|
+
range: []
|
|
12733
|
+
});
|
|
12734
|
+
},
|
|
12735
|
+
laborTypeChange: function laborTypeChange() {
|
|
12736
|
+
this.labor1 = '';
|
|
12737
|
+
this.labor2 = '';
|
|
12738
|
+
this.labor3 = '';
|
|
12739
|
+
}
|
|
12740
|
+
}
|
|
12741
|
+
});
|
|
12742
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=script&lang=js&
|
|
12743
|
+
/* harmony default export */ var table_TableFormulavue_type_script_lang_js_ = (TableFormulavue_type_script_lang_js_);
|
|
12744
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&lang=scss&
|
|
12745
|
+
// extracted by mini-css-extract-plugin
|
|
12746
|
+
|
|
12747
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue?vue&type=style&index=0&lang=scss&
|
|
12748
|
+
|
|
12749
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12750
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
12751
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableFormula.vue
|
|
12752
|
+
|
|
12753
|
+
|
|
12754
|
+
|
|
12755
|
+
;
|
|
12756
|
+
|
|
12757
|
+
|
|
12758
|
+
/* normalize component */
|
|
12759
|
+
|
|
12760
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
12761
|
+
table_TableFormulavue_type_script_lang_js_,
|
|
12762
|
+
render,
|
|
12763
|
+
staticRenderFns,
|
|
12764
|
+
false,
|
|
12765
|
+
null,
|
|
12766
|
+
null,
|
|
12767
|
+
null
|
|
12768
|
+
|
|
12769
|
+
)
|
|
12770
|
+
|
|
12771
|
+
/* harmony default export */ var table_TableFormula = (component.exports);
|
|
12772
|
+
|
|
12773
|
+
/***/ }),
|
|
12774
|
+
|
|
12775
|
+
/***/ 1527:
|
|
12776
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12777
|
+
|
|
12778
|
+
"use strict";
|
|
12779
|
+
// ESM COMPAT FLAG
|
|
12780
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12781
|
+
|
|
12782
|
+
// EXPORTS
|
|
12783
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12784
|
+
"default": function() { return /* binding */ TableProperty; }
|
|
12785
|
+
});
|
|
12786
|
+
|
|
12787
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=template&id=e8367174&scoped=true&
|
|
12788
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowHeight),callback:function ($$v) {_vm.canAdjustRowHeight=$$v},expression:"canAdjustRowHeight"}},[_vm._v("用户可调整行高")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAdjustRowWidth),callback:function ($$v) {_vm.canAdjustRowWidth=$$v},expression:"canAdjustRowWidth"}},[_vm._v("用户可调整列宽")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canAddRow),callback:function ($$v) {_vm.canAddRow=$$v},expression:"canAddRow"}},[_vm._v("用户可新增表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteRow),callback:function ($$v) {_vm.canDeleteRow=$$v},expression:"canDeleteRow"}},[_vm._v("用户可删除表格行列")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.canDeleteTable),callback:function ($$v) {_vm.canDeleteTable=$$v},expression:"canDeleteTable"}},[_vm._v("用户可删除表格")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.continuePrintBorders),callback:function ($$v) {_vm.continuePrintBorders=$$v},expression:"continuePrintBorders"}},[_vm._v("续打时打印所有单元格边框")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.isAutoChangeLine),callback:function ($$v) {_vm.isAutoChangeLine=$$v},expression:"isAutoChangeLine"}},[_vm._v("表格内自动换行")])],1),_c('div',{staticStyle:{"width":"50%"}},[_c('el-checkbox',{model:{value:(_vm.fixedOnePage),callback:function ($$v) {_vm.fixedOnePage=$$v},expression:"fixedOnePage"}},[_vm._v("表格固定在一页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('span',{staticStyle:{"padding":"0 10px 0 23px"}},[_vm._v("表格内自动换行行高")]),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isAutoChangeLine,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.autoLineHeight),callback:function ($$v) {_vm.autoLineHeight=$$v},expression:"autoLineHeight"}}),_c('span',{staticStyle:{"padding-left":"6px"}},[_vm._v(" 厘米")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('span',{staticStyle:{"padding":"0 10px 0 23px"}},[_vm._v("当前光标所在行行高 "+_vm._s(_vm.rowHeightMm)+" 厘米")])])])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
12789
|
+
var staticRenderFns = []
|
|
12790
|
+
|
|
12791
|
+
|
|
12792
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
12793
|
+
var toConsumableArray = __webpack_require__(13767);
|
|
12794
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12795
|
+
var es_array_filter = __webpack_require__(57327);
|
|
12796
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12797
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
12798
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
12799
|
+
var es_function_name = __webpack_require__(68309);
|
|
12800
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
12801
|
+
var es_number_constructor = __webpack_require__(9653);
|
|
12802
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
12803
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
12804
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
12805
|
+
var es_array_concat = __webpack_require__(92222);
|
|
12806
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12807
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
12808
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
12809
|
+
var TableNode = __webpack_require__(59530);
|
|
12810
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
12811
|
+
var HOEditorFactorys = __webpack_require__(28831);
|
|
12812
|
+
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
12813
|
+
var getCellNode = __webpack_require__(28547);
|
|
12814
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
12815
|
+
var CellNode = __webpack_require__(69088);
|
|
12816
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
12817
|
+
|
|
12818
|
+
|
|
12819
|
+
|
|
12820
|
+
|
|
12821
|
+
|
|
12822
|
+
|
|
12823
|
+
|
|
12824
|
+
|
|
12825
|
+
//
|
|
12826
|
+
//
|
|
12827
|
+
//
|
|
12828
|
+
//
|
|
12829
|
+
//
|
|
12830
|
+
//
|
|
12831
|
+
//
|
|
12832
|
+
//
|
|
12833
|
+
//
|
|
12834
|
+
//
|
|
12835
|
+
//
|
|
12836
|
+
//
|
|
12837
|
+
//
|
|
12838
|
+
//
|
|
12839
|
+
//
|
|
12840
|
+
//
|
|
12841
|
+
//
|
|
12842
|
+
//
|
|
12843
|
+
//
|
|
12844
|
+
//
|
|
12845
|
+
//
|
|
12846
|
+
//
|
|
12847
|
+
//
|
|
12848
|
+
//
|
|
12849
|
+
//
|
|
12850
|
+
//
|
|
12851
|
+
//
|
|
12852
|
+
//
|
|
12853
|
+
//
|
|
12854
|
+
//
|
|
12855
|
+
//
|
|
12856
|
+
//
|
|
12857
|
+
//
|
|
12858
|
+
//
|
|
12859
|
+
//
|
|
12860
|
+
//
|
|
12861
|
+
//
|
|
12862
|
+
//
|
|
12863
|
+
//
|
|
12864
|
+
//
|
|
12865
|
+
//
|
|
12866
|
+
//
|
|
12867
|
+
//
|
|
12868
|
+
//
|
|
12869
|
+
//
|
|
12870
|
+
|
|
12871
|
+
|
|
12872
|
+
|
|
12873
|
+
|
|
12874
|
+
/* harmony default export */ var TablePropertyvue_type_script_lang_js_ = ({
|
|
12875
|
+
name: 'TablePoperty',
|
|
12876
|
+
props: {
|
|
12877
|
+
vueController: {
|
|
12878
|
+
default: function _default() {}
|
|
12879
|
+
},
|
|
12880
|
+
hoEditorFactoryId: {
|
|
12881
|
+
default: ''
|
|
12882
|
+
}
|
|
12883
|
+
},
|
|
12884
|
+
data: function data() {
|
|
12885
|
+
return {
|
|
12886
|
+
id: '',
|
|
12887
|
+
// 编号
|
|
12888
|
+
canAdjustRowHeight: false,
|
|
12889
|
+
//用户可调整行高
|
|
12890
|
+
canAdjustRowWidth: false,
|
|
12891
|
+
//用户可调整列宽
|
|
12892
|
+
canAddRow: true,
|
|
12893
|
+
//用户可新增表格行列
|
|
12894
|
+
canDeleteRow: true,
|
|
12895
|
+
//用户可删除表格行列
|
|
12896
|
+
canDeleteTable: true,
|
|
12897
|
+
//用户可删除表格
|
|
12898
|
+
continuePrintBorders: false,
|
|
12899
|
+
//续打时打印所有单元格边框
|
|
12900
|
+
layoutFullLine: true,
|
|
12901
|
+
//排版时占据整行
|
|
12902
|
+
tightLineSpace: false,
|
|
12903
|
+
//压缩表格上下行间距
|
|
12904
|
+
isAutoChangeLine: false,
|
|
12905
|
+
//表格内自动换行
|
|
12906
|
+
fixedOnePage: false,
|
|
12907
|
+
//表格固定在一页
|
|
12908
|
+
autoLineHeight: 0,
|
|
12909
|
+
// 表格内自动换行行高
|
|
12910
|
+
rowHeightMm: 0,
|
|
12911
|
+
// 当前光标所在行行高
|
|
12912
|
+
endPath: ''
|
|
12913
|
+
};
|
|
12914
|
+
},
|
|
12915
|
+
inject: ['setIsCustoms', 'getCustomsValue', 'setCustomsValue', 'getActiveDocId'],
|
|
12916
|
+
computed: {
|
|
12917
|
+
customProperties: function customProperties() {
|
|
12918
|
+
return this.getCustomsValue().filter(function (v) {
|
|
12919
|
+
if (v.name || v.value) return v;
|
|
12920
|
+
});
|
|
12921
|
+
}
|
|
12922
|
+
},
|
|
12923
|
+
created: function created() {
|
|
12924
|
+
var activeDocId = this.getActiveDocId();
|
|
12925
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(activeDocId);
|
|
12926
|
+
this.endPath = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
12927
|
+
var tableNode = this.getTableNodes();
|
|
12928
|
+
|
|
12929
|
+
if (tableNode) {
|
|
12930
|
+
this.id = tableNode.tableProperty.id ? tableNode.tableProperty.id : this.vueController.generateID('TB');
|
|
12931
|
+
this.canAdjustRowHeight = tableNode.tableProperty.canAdjustRowHeight;
|
|
12932
|
+
this.canAdjustRowWidth = tableNode.tableProperty.canAdjustRowWidth;
|
|
12933
|
+
this.canAddRow = tableNode.tableProperty.canAddRow;
|
|
12934
|
+
this.canDeleteRow = tableNode.tableProperty.canDeleteRow;
|
|
12935
|
+
this.canDeleteTable = tableNode.tableProperty.canDeleteTable;
|
|
12936
|
+
this.continuePrintBorders = tableNode.tableProperty.continuePrintBorders;
|
|
12937
|
+
this.layoutFullLine = tableNode.tableProperty.layoutFullLine;
|
|
12938
|
+
this.tightLineSpace = tableNode.tableProperty.tightLineSpace;
|
|
12939
|
+
this.isAutoChangeLine = tableNode.tableProperty.isAutoChangeLine;
|
|
12940
|
+
this.fixedOnePage = tableNode.tableProperty.fixedOnePage;
|
|
12941
|
+
this.autoLineHeight = tableNode.tableProperty.autoLineHeight;
|
|
12942
|
+
}
|
|
12943
|
+
},
|
|
12944
|
+
methods: {
|
|
12945
|
+
getTableNodes: function getTableNodes() {
|
|
12946
|
+
var _tableNode$tablePrope;
|
|
12947
|
+
|
|
12948
|
+
var nodes = this.vueController.findNodebyPath(this.endPath).node;
|
|
12949
|
+
var cellNode = (0,getCellNode/* getCellNode */.p)(nodes);
|
|
12950
|
+
var tableNode = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table;
|
|
12951
|
+
var currentRows = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table.rows.indexOf(cellNode === null || cellNode === void 0 ? void 0 : cellNode.row);
|
|
12952
|
+
|
|
12953
|
+
if (currentRows !== undefined) {
|
|
12954
|
+
var rowInfoes = cellNode === null || cellNode === void 0 ? void 0 : cellNode.table.rowInfos[currentRows];
|
|
12955
|
+
|
|
12956
|
+
if (rowInfoes) {
|
|
12957
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
12958
|
+
|
|
12959
|
+
if (rowInfoes.rowProperty.rowHeight) {
|
|
12960
|
+
this.rowHeightMm = Number(rowInfoes.rowProperty.rowHeight.toFixed(2));
|
|
12961
|
+
} else {
|
|
12962
|
+
this.rowHeightMm = Number((hoEditorFactory.unitConvert.pxConversionMm(rowInfoes.rowHeight, false) / 10).toFixed(2));
|
|
12963
|
+
}
|
|
12964
|
+
}
|
|
12965
|
+
}
|
|
12966
|
+
|
|
12967
|
+
var customProperties = tableNode === null || tableNode === void 0 ? void 0 : (_tableNode$tablePrope = tableNode.tableProperty) === null || _tableNode$tablePrope === void 0 ? void 0 : _tableNode$tablePrope.customProperties;
|
|
12968
|
+
|
|
12969
|
+
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
12970
|
+
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
12971
|
+
name: '',
|
|
12972
|
+
value: ''
|
|
12973
|
+
}]));
|
|
12974
|
+
} else if (customProperties && Array.isArray(customProperties.customProperty) && customProperties.customProperty.length > 0) {
|
|
12975
|
+
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties.customProperty), [{
|
|
12976
|
+
name: '',
|
|
12977
|
+
value: '',
|
|
12978
|
+
description: ''
|
|
12979
|
+
}]));
|
|
12980
|
+
}
|
|
12981
|
+
|
|
12982
|
+
return tableNode;
|
|
12983
|
+
},
|
|
12984
|
+
// 打开自定义属性弹窗
|
|
12985
|
+
openCustomsModal: function openCustomsModal() {
|
|
12986
|
+
this.setIsCustoms(true, true);
|
|
12987
|
+
},
|
|
12988
|
+
sure: function sure() {
|
|
12989
|
+
var _this = this;
|
|
12990
|
+
|
|
12991
|
+
var params = {
|
|
12992
|
+
id: this.id,
|
|
12993
|
+
customProperties: this.customProperties,
|
|
12994
|
+
canAdjustRowHeight: this.canAdjustRowHeight,
|
|
12995
|
+
canAdjustRowWidth: this.canAdjustRowWidth,
|
|
12996
|
+
canAddRow: this.canAddRow,
|
|
12997
|
+
canDeleteRow: this.canDeleteRow,
|
|
12998
|
+
canDeleteTable: this.canDeleteTable,
|
|
12999
|
+
continuePrintBorders: this.continuePrintBorders,
|
|
13000
|
+
layoutFullLine: this.layoutFullLine,
|
|
13001
|
+
tightLineSpace: this.tightLineSpace,
|
|
13002
|
+
isAutoChangeLine: this.isAutoChangeLine,
|
|
13003
|
+
fixedOnePage: this.fixedOnePage,
|
|
13004
|
+
autoLineHeight: this.autoLineHeight
|
|
13005
|
+
};
|
|
13006
|
+
var tableNode = this.getTableNodes();
|
|
13007
|
+
this.vueController.tableProperty(JSON.stringify(params), tableNode);
|
|
13008
|
+
this.$nextTick(function () {
|
|
13009
|
+
return _this.handleClose();
|
|
13010
|
+
});
|
|
13011
|
+
},
|
|
13012
|
+
handleClose: function handleClose() {
|
|
13013
|
+
this.$emit('closed');
|
|
13014
|
+
}
|
|
13015
|
+
}
|
|
13016
|
+
});
|
|
13017
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=script&lang=js&
|
|
13018
|
+
/* harmony default export */ var table_TablePropertyvue_type_script_lang_js_ = (TablePropertyvue_type_script_lang_js_);
|
|
13019
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=e8367174&lang=scss&scoped=true&
|
|
13020
|
+
// extracted by mini-css-extract-plugin
|
|
13021
|
+
|
|
13022
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue?vue&type=style&index=0&id=e8367174&lang=scss&scoped=true&
|
|
13023
|
+
|
|
13024
|
+
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13025
|
+
var componentNormalizer = __webpack_require__(1001);
|
|
13026
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableProperty.vue
|
|
13027
|
+
|
|
13028
|
+
|
|
13029
|
+
|
|
13030
|
+
;
|
|
13031
|
+
|
|
13032
|
+
|
|
13033
|
+
/* normalize component */
|
|
13034
|
+
|
|
13035
|
+
var component = (0,componentNormalizer/* default */.Z)(
|
|
13036
|
+
table_TablePropertyvue_type_script_lang_js_,
|
|
13037
|
+
render,
|
|
13038
|
+
staticRenderFns,
|
|
13039
|
+
false,
|
|
13040
|
+
null,
|
|
13041
|
+
"e8367174",
|
|
13042
|
+
null
|
|
13043
|
+
|
|
13044
|
+
)
|
|
13045
|
+
|
|
13046
|
+
/* harmony default export */ var TableProperty = (component.exports);
|
|
13047
|
+
|
|
13048
|
+
/***/ }),
|
|
13049
|
+
|
|
13050
|
+
/***/ 52032:
|
|
13051
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13052
|
+
|
|
13053
|
+
"use strict";
|
|
13054
|
+
// ESM COMPAT FLAG
|
|
13055
|
+
__webpack_require__.r(__webpack_exports__);
|
|
13056
|
+
|
|
13057
|
+
// EXPORTS
|
|
13058
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
13059
|
+
"default": function() { return /* binding */ TableRowProperty; }
|
|
13060
|
+
});
|
|
13061
|
+
|
|
13062
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=3bd61b91&scoped=true&
|
|
13063
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格行属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyHeight),callback:function ($$v) {_vm.isSpecifyHeight=$$v},expression:"isSpecifyHeight"}},[_vm._v("指定高度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyHeight,"precision":2,"step":1,"min":0,"controls":false,"controls-position":"right"},model:{value:(_vm.rowHeight),callback:function ($$v) {_vm.rowHeight=$$v},expression:"rowHeight"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示高度 "+_vm._s(_vm.rowHeightMm)+" 厘米")])],1),_c('li',{staticClass:"control-item",staticStyle:{"padding":"0 0 0 10px"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.isSpecifyHeight},model:{value:(_vm.isLockRowHeight),callback:function ($$v) {_vm.isLockRowHeight=$$v},expression:"isLockRowHeight"}},[_vm._v("锁定行高")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.repeatAsTitleAtPageTop),callback:function ($$v) {_vm.repeatAsTitleAtPageTop=$$v},expression:"repeatAsTitleAtPageTop"}},[_vm._v("在隔页顶端以标题行形式重复出现")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.sameLineCanAcrossPages),callback:function ($$v) {_vm.sameLineCanAcrossPages=$$v},expression:"sameLineCanAcrossPages"}},[_vm._v("同行内容能跨页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.forcedPageBreak),callback:function ($$v) {_vm.forcedPageBreak=$$v},expression:"forcedPageBreak"}},[_vm._v("强制分页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBorders),callback:function ($$v) {_vm.printCellBorders=$$v},expression:"printCellBorders"}},[_vm._v("打印单元格边框线")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBg),callback:function ($$v) {_vm.printCellBg=$$v},expression:"printCellBg"}},[_vm._v("打印单元格背景")])],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
13064
|
+
var staticRenderFns = []
|
|
13065
|
+
|
|
13066
|
+
|
|
13067
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
13068
|
+
var toConsumableArray = __webpack_require__(13767);
|
|
13069
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
13070
|
+
var es_array_filter = __webpack_require__(57327);
|
|
13071
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
13072
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
13073
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13074
|
+
var es_function_name = __webpack_require__(68309);
|
|
13075
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
13076
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
13077
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
13078
|
+
var es_array_concat = __webpack_require__(92222);
|
|
13079
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/web.dom-collections.for-each.js
|
|
13080
|
+
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
13081
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
13082
|
+
var es_object_keys = __webpack_require__(47941);
|
|
13083
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
13084
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
13085
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/CellNode.ts
|
|
13086
|
+
var CellNode = __webpack_require__(69088);
|
|
13087
|
+
// EXTERNAL MODULE: ./src/editor/dom/TableProperty.ts
|
|
13088
|
+
var TableProperty = __webpack_require__(74004);
|
|
13089
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
13090
|
+
var HOEditorFactorys = __webpack_require__(28831);
|
|
13091
|
+
// EXTERNAL MODULE: ./src/components/controls/table/getCellNode.ts
|
|
13092
|
+
var getCellNode = __webpack_require__(28547);
|
|
13093
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/TableNode.ts
|
|
13094
|
+
var TableNode = __webpack_require__(59530);
|
|
13095
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
13096
|
+
|
|
13097
|
+
|
|
13098
|
+
|
|
13099
|
+
|
|
13100
|
+
|
|
13101
|
+
|
|
13102
|
+
|
|
13103
|
+
|
|
13104
|
+
|
|
12805
13105
|
//
|
|
12806
13106
|
//
|
|
12807
13107
|
//
|
|
@@ -16034,6 +16334,36 @@ var HOEditorFactorys = /*#__PURE__*/function () {
|
|
|
16034
16334
|
return HOEditorFactorys;
|
|
16035
16335
|
}();
|
|
16036
16336
|
|
|
16337
|
+
/***/ }),
|
|
16338
|
+
|
|
16339
|
+
/***/ 33800:
|
|
16340
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16341
|
+
|
|
16342
|
+
"use strict";
|
|
16343
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
16344
|
+
/* harmony export */ "G": function() { return /* binding */ commonParamList; }
|
|
16345
|
+
/* harmony export */ });
|
|
16346
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(66992);
|
|
16347
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
16348
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(51532);
|
|
16349
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
16350
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(41539);
|
|
16351
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_2__);
|
|
16352
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(78783);
|
|
16353
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
16354
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(33948);
|
|
16355
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
16356
|
+
|
|
16357
|
+
|
|
16358
|
+
|
|
16359
|
+
|
|
16360
|
+
|
|
16361
|
+
var commonParamList = new Map();
|
|
16362
|
+
["viewBlack"].forEach(function (key) {
|
|
16363
|
+
commonParamList.set(key, false);
|
|
16364
|
+
});
|
|
16365
|
+
|
|
16366
|
+
|
|
16037
16367
|
/***/ }),
|
|
16038
16368
|
|
|
16039
16369
|
/***/ 11650:
|
|
@@ -26873,7 +27203,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26873
27203
|
aPromise = aPromise.then(function (res) {
|
|
26874
27204
|
strPath = res;
|
|
26875
27205
|
return new Promise(function (resolve, reject) {
|
|
26876
|
-
if (text === '') {
|
|
27206
|
+
if (text === '' && index < lines.length - 1) {
|
|
26877
27207
|
strPath = insertParagraph(strPath);
|
|
26878
27208
|
resolve(strPath);
|
|
26879
27209
|
} else {
|
|
@@ -54930,7 +55260,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
54930
55260
|
this.styleIndex = 0;
|
|
54931
55261
|
}
|
|
54932
55262
|
|
|
54933
|
-
if (
|
|
55263
|
+
if (!isCopy && combineStyle.script !== 0) {
|
|
54934
55264
|
if (combineStyle.script === 1) {
|
|
54935
55265
|
copytxt = "<下标>" + copytxt + "</下标>";
|
|
54936
55266
|
}
|
|
@@ -59846,8 +60176,6 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59846
60176
|
// const dPage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[pageIndex];
|
|
59847
60177
|
// if (dPage && dPage.drawDomLevel) {
|
|
59848
60178
|
var cc = subDocArea.clone(true);
|
|
59849
|
-
var index = subDocArea.getChildIndex(subDocArea.borderShape);
|
|
59850
|
-
if (index >= 0) cc.removeChildAt(index);
|
|
59851
60179
|
var destSubDocArea;
|
|
59852
60180
|
|
|
59853
60181
|
if (destArea) {
|
|
@@ -59869,8 +60197,19 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59869
60197
|
this._cell.drawCell.drawPageCells.push(destSubDocArea);
|
|
59870
60198
|
}
|
|
59871
60199
|
|
|
60200
|
+
destSubDocArea.removeAllChildren();
|
|
59872
60201
|
destSubDocArea.children = cc.children;
|
|
59873
|
-
|
|
60202
|
+
var tindex = subDocArea.getChildIndex(subDocArea.touchArea);
|
|
60203
|
+
|
|
60204
|
+
if (tindex >= 0) {
|
|
60205
|
+
destSubDocArea.removeChildAt(tindex);
|
|
60206
|
+
} // const index = subDocArea.getChildIndex(subDocArea.backImage);
|
|
60207
|
+
// if (index >= 0){
|
|
60208
|
+
// destSubDocArea.removeChildAt(index);
|
|
60209
|
+
// }
|
|
60210
|
+
// destSubDocArea.removeChildAt(0);
|
|
60211
|
+
// destSubDocArea.drawLines = subDocArea.drawLines;
|
|
60212
|
+
|
|
59874
60213
|
|
|
59875
60214
|
destSubDocArea.dHeight = subDocArea.dHeight;
|
|
59876
60215
|
destSubDocArea.dLeft = subDocArea.dLeft;
|
|
@@ -62167,6 +62506,16 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62167
62506
|
|
|
62168
62507
|
|
|
62169
62508
|
(0,createClass/* default */.Z)(DrawPageCell, [{
|
|
62509
|
+
key: "backImage",
|
|
62510
|
+
get: function get() {
|
|
62511
|
+
return this._backImg;
|
|
62512
|
+
}
|
|
62513
|
+
}, {
|
|
62514
|
+
key: "touchArea",
|
|
62515
|
+
get: function get() {
|
|
62516
|
+
return this._touchArea;
|
|
62517
|
+
}
|
|
62518
|
+
}, {
|
|
62170
62519
|
key: "startDline",
|
|
62171
62520
|
get: function get() {
|
|
62172
62521
|
return this._startDline;
|
|
@@ -62416,7 +62765,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62416
62765
|
// return true;
|
|
62417
62766
|
// }
|
|
62418
62767
|
|
|
62419
|
-
if (this._startDline >= this.cell.drawCell.drawLines.length) {
|
|
62768
|
+
if (this._startDline >= this.cell.drawCell.drawLines.length || index == -1) {
|
|
62420
62769
|
return true;
|
|
62421
62770
|
} // if (this._lastDrawLine instanceof DrawPageTable) {
|
|
62422
62771
|
// index = this._cell.drawCell.drawLines.indexOf(
|
|
@@ -62573,14 +62922,14 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62573
62922
|
// const markerLine1 = new createjs.Shape();
|
|
62574
62923
|
// const markerLine2 = new createjs.Shape();
|
|
62575
62924
|
// const markerLine3 = new createjs.Shape();
|
|
62576
|
-
// const markerLine4 = new createjs.Shape();
|
|
62925
|
+
// const markerLine4 = new createjs.Shape();
|
|
62577
62926
|
var width = this.dWidth;
|
|
62578
62927
|
var height = this.dHeight; // markerLine1.name = "markline1";
|
|
62579
62928
|
// markerLine2.name = "markline2";
|
|
62580
62929
|
// markerLine3.name = "markline3";
|
|
62581
62930
|
// markerLine4.name = "markline4";
|
|
62582
62931
|
|
|
62583
|
-
this._backImg.graphics.beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
62932
|
+
this._backImg.graphics.clear().beginStroke(color).moveTo(width - 7, height - 0.5).lineTo(width - 0.5, height - 7).moveTo(width - 5, height - 0.5).lineTo(width - 0.5, height - 5).moveTo(width - 3, height - 0.5).lineTo(width - 0.5, height - 3).moveTo(width - 2, height - 0.5).lineTo(width - 0.5, height - 2);
|
|
62584
62933
|
|
|
62585
62934
|
this._backImg.graphics.endStroke(); // this.addChild(markerLine1);
|
|
62586
62935
|
|
|
@@ -63598,7 +63947,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63598
63947
|
var colInfo = this._table.colInfos[c];
|
|
63599
63948
|
|
|
63600
63949
|
if (partCell.cell.cellProperty.editorProperty !== 0 || colInfo.colProperty.editorProperty !== 0) {
|
|
63601
|
-
partCell.paintMarker("#
|
|
63950
|
+
partCell.paintMarker("#FF0000");
|
|
63602
63951
|
}
|
|
63603
63952
|
|
|
63604
63953
|
var isHasTableFormula = false;
|
|
@@ -63621,7 +63970,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
63621
63970
|
loopNodes(partCell.cell.childNodes);
|
|
63622
63971
|
|
|
63623
63972
|
if (isHasTableFormula) {
|
|
63624
|
-
partCell.paintMarker("#
|
|
63973
|
+
partCell.paintMarker("#0000FF");
|
|
63625
63974
|
}
|
|
63626
63975
|
|
|
63627
63976
|
partCell.paintCellBackground(newHeight, r, c);
|
|
@@ -64334,16 +64683,15 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64334
64683
|
cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
|
|
64335
64684
|
}
|
|
64336
64685
|
|
|
64337
|
-
var destCell = cell.drawCell.copyPaintCell(this, r, aTop);
|
|
64338
|
-
|
|
64339
|
-
|
|
64340
|
-
|
|
64341
|
-
|
|
64686
|
+
var destCell = cell.drawCell.copyPaintCell(this, r, aTop); // if (destCell) {
|
|
64687
|
+
// destCell.paintCellBackground(destCell.dHeight, mr, mc);
|
|
64688
|
+
// // destCell.updateTouchArea(newHeight);}
|
|
64689
|
+
// }
|
|
64690
|
+
// if (this.stage){
|
|
64342
64691
|
// const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
|
|
64343
64692
|
// if (dPage){}
|
|
64344
64693
|
// }
|
|
64345
64694
|
// cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
|
|
64346
|
-
|
|
64347
64695
|
}
|
|
64348
64696
|
}
|
|
64349
64697
|
|
|
@@ -65393,7 +65741,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65393
65741
|
/*
|
|
65394
65742
|
* @Author: your name
|
|
65395
65743
|
* @Date: 2021-09-01 16:51:49
|
|
65396
|
-
* @LastEditTime: 2022-08-
|
|
65744
|
+
* @LastEditTime: 2022-08-18 14:08:29
|
|
65397
65745
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65398
65746
|
* @Description: In User Settings Edit
|
|
65399
65747
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -65507,7 +65855,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65507
65855
|
}
|
|
65508
65856
|
}
|
|
65509
65857
|
|
|
65510
|
-
if (
|
|
65858
|
+
if ((imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
65511
65859
|
_this.drawWriteSignNode(node);
|
|
65512
65860
|
} else {
|
|
65513
65861
|
_this.drawSignNode();
|
|
@@ -67191,6 +67539,8 @@ var SpecialCharsNode = __webpack_require__(99890);
|
|
|
67191
67539
|
var es_string_replace = __webpack_require__(15306);
|
|
67192
67540
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
67193
67541
|
var es_error_cause = __webpack_require__(21703);
|
|
67542
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
67543
|
+
var commonParamList = __webpack_require__(33800);
|
|
67194
67544
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
67195
67545
|
var UnitConvert = __webpack_require__(55479);
|
|
67196
67546
|
;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
@@ -67202,6 +67552,7 @@ var UnitConvert = __webpack_require__(55479);
|
|
|
67202
67552
|
|
|
67203
67553
|
|
|
67204
67554
|
|
|
67555
|
+
|
|
67205
67556
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
67206
67557
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
67207
67558
|
|
|
@@ -67353,9 +67704,14 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
67353
67704
|
|
|
67354
67705
|
|
|
67355
67706
|
ctx.imageSmoothingEnabled = true;
|
|
67356
|
-
var col = this.color || "#000";
|
|
67707
|
+
var col = this.color || "#000";
|
|
67708
|
+
|
|
67709
|
+
if (commonParamList/* commonParamList.get */.G.get('viewBlack')) {
|
|
67710
|
+
col = "#000";
|
|
67711
|
+
} // const strLowFont = this.font.toLowerCase();
|
|
67357
67712
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
67358
67713
|
|
|
67714
|
+
|
|
67359
67715
|
if (this.outline) {
|
|
67360
67716
|
ctx.strokeStyle = col;
|
|
67361
67717
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -71096,7 +71452,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71096
71452
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71097
71453
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71098
71454
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71099
|
-
var endIndex = alines.
|
|
71455
|
+
var endIndex = alines.length - 1; // if (paragraphNode.parentNode === null) {
|
|
71100
71456
|
// const darea = this.getDrawA(dline);
|
|
71101
71457
|
|
|
71102
71458
|
if (e.repaintImmediate) {
|
|
@@ -75314,7 +75670,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
75314
75670
|
/*
|
|
75315
75671
|
* @Author: your name
|
|
75316
75672
|
* @Date: 2020-09-24 15:56:09
|
|
75317
|
-
* @LastEditTime: 2022-
|
|
75673
|
+
* @LastEditTime: 2022-08-17 09:27:01
|
|
75318
75674
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
75319
75675
|
* @Description: In User Settings Edit
|
|
75320
75676
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
@@ -75505,19 +75861,23 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
75505
75861
|
|
|
75506
75862
|
if (this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNodeType.mtContent */ .q.mtContent) {//变更文本域时,删除原内容插入标题时不移动光标
|
|
75507
75863
|
} else {
|
|
75508
|
-
setTimeout(
|
|
75509
|
-
|
|
75510
|
-
|
|
75511
|
-
|
|
75864
|
+
// setTimeout(
|
|
75865
|
+
// () => {
|
|
75866
|
+
// //等待变更完成
|
|
75867
|
+
hoEditorFactory.drawTree.moveCaretToPath(strAfterPath); // },
|
|
75868
|
+
// this.node.rootPath.startsWith(gMainPath) ? 0 : 110
|
|
75869
|
+
// );
|
|
75512
75870
|
}
|
|
75513
75871
|
|
|
75514
|
-
|
|
75872
|
+
_context2.next = 9;
|
|
75873
|
+
return this.ParentRepaint();
|
|
75515
75874
|
|
|
75875
|
+
case 9:
|
|
75516
75876
|
if (this.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_12__/* .TextNode */ .R) {
|
|
75517
75877
|
hoEditorFactory.timeStamp.update();
|
|
75518
75878
|
}
|
|
75519
75879
|
|
|
75520
|
-
case
|
|
75880
|
+
case 10:
|
|
75521
75881
|
case "end":
|
|
75522
75882
|
return _context2.stop();
|
|
75523
75883
|
}
|
|
@@ -76153,9 +76513,9 @@ var NodeStyleUndoUnit = /*#__PURE__*/function () {
|
|
|
76153
76513
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
76154
76514
|
/* harmony export */ "F": function() { return /* binding */ NodesDeleteUndoUnit; }
|
|
76155
76515
|
/* harmony export */ });
|
|
76156
|
-
/* harmony import */ var
|
|
76157
|
-
/* harmony import */ var
|
|
76158
|
-
/* harmony import */ var
|
|
76516
|
+
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86769);
|
|
76517
|
+
/* harmony import */ var element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0__);
|
|
76518
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(87461);
|
|
76159
76519
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60199);
|
|
76160
76520
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(91347);
|
|
76161
76521
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(42015);
|
|
@@ -76286,73 +76646,96 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76286
76646
|
}
|
|
76287
76647
|
}, {
|
|
76288
76648
|
key: "doUndo",
|
|
76289
|
-
value: function
|
|
76290
|
-
var
|
|
76291
|
-
|
|
76292
|
-
|
|
76293
|
-
|
|
76649
|
+
value: function () {
|
|
76650
|
+
var _doUndo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee() {
|
|
76651
|
+
var arr, i, prevIsTable, hoEditorFactory, value, np, aendPaht, changeEvent, newRange, cgEvent;
|
|
76652
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
76653
|
+
while (1) {
|
|
76654
|
+
switch (_context.prev = _context.next) {
|
|
76655
|
+
case 0:
|
|
76656
|
+
arr = Array.from(this._undoNodes).reverse();
|
|
76657
|
+
i = 0;
|
|
76658
|
+
prevIsTable = false;
|
|
76659
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_29__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
76294
76660
|
|
|
76295
|
-
|
|
76296
|
-
|
|
76661
|
+
while (i < arr.length) {
|
|
76662
|
+
value = arr[i];
|
|
76297
76663
|
|
|
76298
|
-
|
|
76299
|
-
|
|
76300
|
-
|
|
76301
|
-
|
|
76302
|
-
|
|
76303
|
-
|
|
76304
|
-
|
|
76664
|
+
if (value[1] instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_26__/* .CellNode */ .D) {// (value[1] as CellNode).redrawCell(true, DocAction.daInsert);
|
|
76665
|
+
} else {
|
|
76666
|
+
if (prevIsTable) {
|
|
76667
|
+
hoEditorFactory.docTree.insertNodeAfterNode(arr[i - 1][1], arr[i][1]);
|
|
76668
|
+
} else {
|
|
76669
|
+
hoEditorFactory.docTree.insertNodeAfterPath(value[0], value[1]);
|
|
76670
|
+
}
|
|
76305
76671
|
|
|
76306
|
-
|
|
76307
|
-
|
|
76308
|
-
|
|
76672
|
+
if (value[1] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_28__/* .TableNode */ .Fh) {
|
|
76673
|
+
prevIsTable = true; // value[1].clearDrawNodes();
|
|
76674
|
+
// value[1].drawTable.drawPageTables.length = 0;
|
|
76309
76675
|
|
|
76310
|
-
|
|
76311
|
-
|
|
76312
|
-
|
|
76313
|
-
|
|
76314
|
-
|
|
76315
|
-
|
|
76676
|
+
np = hoEditorFactory.docTree.findNodePositionByPath(value[0]);
|
|
76677
|
+
if (np && np.node && np.node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_25__/* .ParagraphNode */ .C) value[1].drawTable.paragraphNode = np.node;
|
|
76678
|
+
} else {
|
|
76679
|
+
prevIsTable = false;
|
|
76680
|
+
}
|
|
76681
|
+
}
|
|
76316
76682
|
|
|
76317
|
-
|
|
76318
|
-
|
|
76683
|
+
i += 1;
|
|
76684
|
+
}
|
|
76319
76685
|
|
|
76320
|
-
|
|
76321
|
-
|
|
76322
|
-
|
|
76686
|
+
aendPaht = hoEditorFactory.docTree.getNodeLastPath(arr[arr.length - 1][1]);
|
|
76687
|
+
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daInsert */ .gk.daInsert, arr[0][0], aendPaht);
|
|
76688
|
+
_context.next = 9;
|
|
76689
|
+
return hoEditorFactory.docTree.change(changeEvent);
|
|
76323
76690
|
|
|
76324
|
-
|
|
76325
|
-
|
|
76326
|
-
|
|
76327
|
-
|
|
76328
|
-
|
|
76329
|
-
|
|
76330
|
-
|
|
76331
|
-
|
|
76332
|
-
|
|
76333
|
-
|
|
76334
|
-
|
|
76335
|
-
|
|
76336
|
-
|
|
76337
|
-
|
|
76338
|
-
|
|
76339
|
-
|
|
76340
|
-
|
|
76341
|
-
|
|
76342
|
-
|
|
76343
|
-
|
|
76344
|
-
|
|
76345
|
-
|
|
76346
|
-
|
|
76691
|
+
case 9:
|
|
76692
|
+
//3.合并拆分节点
|
|
76693
|
+
while (!this._undo.atBottom()) {
|
|
76694
|
+
this._undo.undo();
|
|
76695
|
+
} // let startPath = this._startPath;
|
|
76696
|
+
// let endPath = this._endPath;
|
|
76697
|
+
// if (NodePosition.treePathCompare(this._startPath, this._endPath) > 0) {
|
|
76698
|
+
// startPath = this._endPath;
|
|
76699
|
+
// endPath = this._startPath;
|
|
76700
|
+
// }
|
|
76701
|
+
// if (startPath !== "" && endPath !== "") {
|
|
76702
|
+
// const arange = new DomRange(
|
|
76703
|
+
// this._hoEditorFactoryID,
|
|
76704
|
+
// startPath,
|
|
76705
|
+
// endPath
|
|
76706
|
+
// ).normalize();
|
|
76707
|
+
// const changeEvent = new NodeChangeEvent(
|
|
76708
|
+
// this._hoEditorFactoryID,
|
|
76709
|
+
// DocAction.daInsert,
|
|
76710
|
+
// arange.startPath,
|
|
76711
|
+
// arange.endPath
|
|
76712
|
+
// );
|
|
76713
|
+
// hoEditorFactory.docTree.change(changeEvent);
|
|
76714
|
+
// }
|
|
76715
|
+
//选中范围变化事件
|
|
76347
76716
|
|
|
76348
76717
|
|
|
76349
|
-
|
|
76350
|
-
|
|
76351
|
-
|
|
76352
|
-
|
|
76718
|
+
newRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
76719
|
+
hoEditorFactory.docTree.curDomRange = newRange;
|
|
76720
|
+
cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_20__/* .SelectionChangeEvent */ .r(hoEditorFactory.docTree.curDomRange, newRange);
|
|
76721
|
+
hoEditorFactory.docTree.selectChange(cgEvent); //光标定位
|
|
76353
76722
|
|
|
76354
|
-
|
|
76355
|
-
|
|
76723
|
+
hoEditorFactory.drawTree.moveCaretToPath(newRange.endPath);
|
|
76724
|
+
|
|
76725
|
+
case 15:
|
|
76726
|
+
case "end":
|
|
76727
|
+
return _context.stop();
|
|
76728
|
+
}
|
|
76729
|
+
}
|
|
76730
|
+
}, _callee, this);
|
|
76731
|
+
}));
|
|
76732
|
+
|
|
76733
|
+
function doUndo() {
|
|
76734
|
+
return _doUndo.apply(this, arguments);
|
|
76735
|
+
}
|
|
76736
|
+
|
|
76737
|
+
return doUndo;
|
|
76738
|
+
}()
|
|
76356
76739
|
/**
|
|
76357
76740
|
* @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
|
|
76358
76741
|
*/
|
|
@@ -76724,14 +77107,14 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76724
77107
|
}, {
|
|
76725
77108
|
key: "doRedo",
|
|
76726
77109
|
value: function () {
|
|
76727
|
-
var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,
|
|
77110
|
+
var _doRedo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().mark(function _callee2() {
|
|
76728
77111
|
var _currRange$npEnd$node;
|
|
76729
77112
|
|
|
76730
77113
|
var currRange, hoEditorFactory, textStyle, nodes, n, node, tip, pnode, pTiNode, _res, changeEvent, startPath, endPath, res, cgEvent, aNode;
|
|
76731
77114
|
|
|
76732
|
-
return (0,
|
|
77115
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)().wrap(function _callee2$(_context2) {
|
|
76733
77116
|
while (1) {
|
|
76734
|
-
switch (
|
|
77117
|
+
switch (_context2.prev = _context2.next) {
|
|
76735
77118
|
case 0:
|
|
76736
77119
|
this.initParam();
|
|
76737
77120
|
currRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
@@ -76739,26 +77122,26 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76739
77122
|
hoEditorFactory.docTree.curDomRange = currRange;
|
|
76740
77123
|
|
|
76741
77124
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psReview */ .Dh.psReview)) {
|
|
76742
|
-
|
|
77125
|
+
_context2.next = 11;
|
|
76743
77126
|
break;
|
|
76744
77127
|
}
|
|
76745
77128
|
|
|
76746
77129
|
if (!(currRange.npEnd.node && currRange.npEnd.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_15__/* .TextNode */ .R)) {
|
|
76747
|
-
|
|
77130
|
+
_context2.next = 11;
|
|
76748
77131
|
break;
|
|
76749
77132
|
}
|
|
76750
77133
|
|
|
76751
77134
|
textStyle = hoEditorFactory.docTree.styles[currRange.npEnd.node.styleIndex];
|
|
76752
77135
|
|
|
76753
77136
|
if (!(textStyle.strikeout && currRange.npEnd.node.text.length > 0)) {
|
|
76754
|
-
|
|
77137
|
+
_context2.next = 11;
|
|
76755
77138
|
break;
|
|
76756
77139
|
}
|
|
76757
77140
|
|
|
76758
|
-
|
|
77141
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该内容当前已处于删除状态!");
|
|
76759
77142
|
|
|
76760
77143
|
this._isError = true;
|
|
76761
|
-
return
|
|
77144
|
+
return _context2.abrupt("return");
|
|
76762
77145
|
|
|
76763
77146
|
case 11:
|
|
76764
77147
|
nodes = _dom_DomRange__WEBPACK_IMPORTED_MODULE_18__/* .DomRange.getSelectDomNodesForDelete */ .a.getSelectDomNodesForDelete(this._hoEditorFactoryID, this._startPath, this._endPath); // const npFirst = hoEditorFactory.docTree.findNodePositionByPath(this._startPath);
|
|
@@ -76773,7 +77156,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76773
77156
|
//if(nodes.length == 0) return;
|
|
76774
77157
|
|
|
76775
77158
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_17__/* .PaintState.psDesign */ .Dh.psDesign && !this._isForceDelete)) {
|
|
76776
|
-
|
|
77159
|
+
_context2.next = 38;
|
|
76777
77160
|
break;
|
|
76778
77161
|
}
|
|
76779
77162
|
|
|
@@ -76781,21 +77164,21 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76781
77164
|
|
|
76782
77165
|
case 14:
|
|
76783
77166
|
if (!(n < nodes.length)) {
|
|
76784
|
-
|
|
77167
|
+
_context2.next = 38;
|
|
76785
77168
|
break;
|
|
76786
77169
|
}
|
|
76787
77170
|
|
|
76788
77171
|
node = nodes[n];
|
|
76789
77172
|
|
|
76790
77173
|
if (!(node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j && node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && node.MarkNodeType === 1 && !node.parentNode.isAllowDelete)) {
|
|
76791
|
-
|
|
77174
|
+
_context2.next = 20;
|
|
76792
77175
|
break;
|
|
76793
77176
|
}
|
|
76794
77177
|
|
|
76795
|
-
|
|
77178
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
76796
77179
|
|
|
76797
77180
|
this._isError = true;
|
|
76798
|
-
return
|
|
77181
|
+
return _context2.abrupt("return");
|
|
76799
77182
|
|
|
76800
77183
|
case 20:
|
|
76801
77184
|
if (nodes.length === 1 && nodes[0] instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && nodes[0].childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_23__/* .MarkNode */ .j) {
|
|
@@ -76803,12 +77186,12 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76803
77186
|
}
|
|
76804
77187
|
|
|
76805
77188
|
if (!(node instanceof _dom_treeNode_ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w || node instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re)) {
|
|
76806
|
-
|
|
77189
|
+
_context2.next = 31;
|
|
76807
77190
|
break;
|
|
76808
77191
|
}
|
|
76809
77192
|
|
|
76810
77193
|
if (node.isAllowDelete) {
|
|
76811
|
-
|
|
77194
|
+
_context2.next = 31;
|
|
76812
77195
|
break;
|
|
76813
77196
|
}
|
|
76814
77197
|
|
|
@@ -76830,32 +77213,32 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76830
77213
|
tip = "下拉列表";
|
|
76831
77214
|
}
|
|
76832
77215
|
|
|
76833
|
-
|
|
77216
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert(tip + "元素已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
|
|
76834
77217
|
|
|
76835
77218
|
this._isError = true;
|
|
76836
|
-
return
|
|
77219
|
+
return _context2.abrupt("return");
|
|
76837
77220
|
|
|
76838
77221
|
case 31:
|
|
76839
77222
|
if (!(node instanceof _dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
76840
|
-
|
|
77223
|
+
_context2.next = 35;
|
|
76841
77224
|
break;
|
|
76842
77225
|
}
|
|
76843
77226
|
|
|
76844
|
-
|
|
77227
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("该签名元素不允许删除!", "系统提示");
|
|
76845
77228
|
|
|
76846
77229
|
this._isError = true;
|
|
76847
|
-
return
|
|
77230
|
+
return _context2.abrupt("return");
|
|
76848
77231
|
|
|
76849
77232
|
case 35:
|
|
76850
77233
|
n++;
|
|
76851
|
-
|
|
77234
|
+
_context2.next = 14;
|
|
76852
77235
|
break;
|
|
76853
77236
|
|
|
76854
77237
|
case 38:
|
|
76855
77238
|
pnode = (_currRange$npEnd$node = currRange.npEnd.node) === null || _currRange$npEnd$node === void 0 ? void 0 : _currRange$npEnd$node.parentNode;
|
|
76856
77239
|
|
|
76857
77240
|
if (!(pnode && pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_22__/* .TextInputFieldNode */ .re && currRange.npEnd.path != hoEditorFactory.docTree.getNodeLastPath(pnode))) {
|
|
76858
|
-
|
|
77241
|
+
_context2.next = 44;
|
|
76859
77242
|
break;
|
|
76860
77243
|
}
|
|
76861
77244
|
|
|
@@ -76868,18 +77251,18 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76868
77251
|
});
|
|
76869
77252
|
|
|
76870
77253
|
if (_res[0]) {
|
|
76871
|
-
|
|
77254
|
+
_context2.next = 44;
|
|
76872
77255
|
break;
|
|
76873
77256
|
}
|
|
76874
77257
|
|
|
76875
|
-
return
|
|
77258
|
+
return _context2.abrupt("return");
|
|
76876
77259
|
|
|
76877
77260
|
case 44:
|
|
76878
77261
|
changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_16__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_14__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, currRange.startPath, ""); //FIXME:deleteRange函数完成后调用这个
|
|
76879
77262
|
// hoEditorFactory.docTree.deleteRange(arange.startPath, arange.endPath);
|
|
76880
77263
|
|
|
76881
77264
|
if (currRange.npStart.node && currRange.npEnd.node) {
|
|
76882
|
-
|
|
77265
|
+
_context2.next = 47;
|
|
76883
77266
|
break;
|
|
76884
77267
|
}
|
|
76885
77268
|
|
|
@@ -76898,13 +77281,13 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76898
77281
|
res = this.deleteRange(currRange.endPath, currRange.startPath);
|
|
76899
77282
|
|
|
76900
77283
|
if (!(res == 1)) {
|
|
76901
|
-
|
|
77284
|
+
_context2.next = 59;
|
|
76902
77285
|
break;
|
|
76903
77286
|
}
|
|
76904
77287
|
|
|
76905
77288
|
changeEvent.beforeChangePath = startPath;
|
|
76906
77289
|
changeEvent.afterChangePath = this._tmp.start;
|
|
76907
|
-
|
|
77290
|
+
_context2.next = 57;
|
|
76908
77291
|
return hoEditorFactory.docTree.change(changeEvent);
|
|
76909
77292
|
|
|
76910
77293
|
case 57:
|
|
@@ -76917,19 +77300,19 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
76917
77300
|
aNode = currRange.npStart.node;
|
|
76918
77301
|
|
|
76919
77302
|
if (!(aNode && pnode)) {
|
|
76920
|
-
|
|
77303
|
+
_context2.next = 65;
|
|
76921
77304
|
break;
|
|
76922
77305
|
}
|
|
76923
77306
|
|
|
76924
|
-
|
|
77307
|
+
_context2.next = 65;
|
|
76925
77308
|
return this.ParentRepaint(pnode);
|
|
76926
77309
|
|
|
76927
77310
|
case 65:
|
|
76928
77311
|
case "end":
|
|
76929
|
-
return
|
|
77312
|
+
return _context2.stop();
|
|
76930
77313
|
}
|
|
76931
77314
|
}
|
|
76932
|
-
},
|
|
77315
|
+
}, _callee2, this);
|
|
76933
77316
|
}));
|
|
76934
77317
|
|
|
76935
77318
|
function doRedo() {
|
|
@@ -79563,7 +79946,7 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79563
79946
|
/* harmony export */ "b": function() { return /* binding */ DrawSimpleText; }
|
|
79564
79947
|
/* harmony export */ });
|
|
79565
79948
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42015);
|
|
79566
|
-
/* harmony import */ var
|
|
79949
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(16296);
|
|
79567
79950
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83964);
|
|
79568
79951
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46455);
|
|
79569
79952
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
@@ -79572,7 +79955,9 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79572
79955
|
/* harmony import */ var core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_replace_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
79573
79956
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
79574
79957
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
79575
|
-
/* harmony import */ var
|
|
79958
|
+
/* harmony import */ var _commonParamList__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(33800);
|
|
79959
|
+
/* harmony import */ var _UnitConvert__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(55479);
|
|
79960
|
+
|
|
79576
79961
|
|
|
79577
79962
|
|
|
79578
79963
|
|
|
@@ -79613,7 +79998,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79613
79998
|
return _this;
|
|
79614
79999
|
}
|
|
79615
80000
|
|
|
79616
|
-
(0,
|
|
80001
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)(DrawSimpleText, [{
|
|
79617
80002
|
key: "docWidth",
|
|
79618
80003
|
get: function get() {
|
|
79619
80004
|
return this._docWidth;
|
|
@@ -79658,9 +80043,15 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79658
80043
|
|
|
79659
80044
|
|
|
79660
80045
|
ctx.imageSmoothingEnabled = true;
|
|
79661
|
-
var col = this.color || "#000";
|
|
80046
|
+
var col = this.color || "#000";
|
|
80047
|
+
|
|
80048
|
+
if (_commonParamList__WEBPACK_IMPORTED_MODULE_6__/* .commonParamList.get */ .G.get('viewBlack')) {
|
|
80049
|
+
// 预览时设置全部
|
|
80050
|
+
col = "#000";
|
|
80051
|
+
} // const strLowFont = this.font.toLowerCase();
|
|
79662
80052
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
79663
80053
|
|
|
80054
|
+
|
|
79664
80055
|
if (this.outline) {
|
|
79665
80056
|
ctx.strokeStyle = col;
|
|
79666
80057
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -79857,7 +80248,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79857
80248
|
}
|
|
79858
80249
|
|
|
79859
80250
|
for (var j = 0, jlen = text.length; j < jlen; j++) {
|
|
79860
|
-
if (!
|
|
80251
|
+
if (!_UnitConvert__WEBPACK_IMPORTED_MODULE_7__/* .UnitConvert.isNumEnglish */ .P.isNumEnglish(text[j])) {
|
|
79861
80252
|
return false;
|
|
79862
80253
|
}
|
|
79863
80254
|
}
|
|
@@ -80665,7 +81056,7 @@ var isMap = function isMap(map) {
|
|
|
80665
81056
|
var isDate = function isDate(date) {
|
|
80666
81057
|
if (date === null || date === undefined) {
|
|
80667
81058
|
return false;
|
|
80668
|
-
} else if (typeof date ===
|
|
81059
|
+
} else if (typeof date === 'string') {
|
|
80669
81060
|
if (isNaN(new Date(date).getTime())) {
|
|
80670
81061
|
return false;
|
|
80671
81062
|
} else {
|
|
@@ -80697,35 +81088,35 @@ var toDate = function toDate(date) {
|
|
|
80697
81088
|
// };
|
|
80698
81089
|
|
|
80699
81090
|
|
|
80700
|
-
var dateFormatList = [
|
|
81091
|
+
var dateFormatList = ['HH:mm', 'HH:mm:ss', 'MM/dd', 'yyyy/MM/dd', 'yyyy/MM/dd HH:mm', 'yyyy/MM/dd HH:mm:ss', 'HH时mm分', 'HH时mm分ss秒', 'MM月dd日', 'yyyy年MM月dd日', 'yyyy年MM月dd日 HH时mm分', 'yyyy年MM月dd日 HH时mm分ss秒', 'MM-dd', 'yyyy-MM-dd', 'yyyy-MM-dd HH:mm', 'yyyy-MM-dd HH:mm:ss'];
|
|
80701
81092
|
var dateFormatValueList = [{
|
|
80702
|
-
value:
|
|
81093
|
+
value: 'HH:mm'
|
|
80703
81094
|
}, {
|
|
80704
|
-
value:
|
|
81095
|
+
value: 'HH:mm:ss'
|
|
80705
81096
|
}, {
|
|
80706
|
-
value:
|
|
81097
|
+
value: 'yyyy/MM/dd'
|
|
80707
81098
|
}, {
|
|
80708
|
-
value:
|
|
81099
|
+
value: 'yyyy/MM/dd HH:mm'
|
|
80709
81100
|
}, {
|
|
80710
|
-
value:
|
|
81101
|
+
value: 'yyyy/MM/dd HH:mm:ss'
|
|
80711
81102
|
}, {
|
|
80712
|
-
value:
|
|
81103
|
+
value: 'HH时mm分'
|
|
80713
81104
|
}, {
|
|
80714
|
-
value:
|
|
81105
|
+
value: 'HH时mm分ss秒'
|
|
80715
81106
|
}, {
|
|
80716
|
-
value:
|
|
81107
|
+
value: 'yyyy年MM月dd日'
|
|
80717
81108
|
}, {
|
|
80718
|
-
value:
|
|
81109
|
+
value: 'yyyy年MM月dd日 HH时mm分'
|
|
80719
81110
|
}, {
|
|
80720
|
-
value:
|
|
81111
|
+
value: 'yyyy年MM月dd日 HH时mm分ss秒'
|
|
80721
81112
|
}, {
|
|
80722
|
-
value:
|
|
81113
|
+
value: 'MM-dd'
|
|
80723
81114
|
}, {
|
|
80724
|
-
value:
|
|
81115
|
+
value: 'yyyy-MM-dd'
|
|
80725
81116
|
}, {
|
|
80726
|
-
value:
|
|
81117
|
+
value: 'yyyy-MM-dd HH:mm'
|
|
80727
81118
|
}, {
|
|
80728
|
-
value:
|
|
81119
|
+
value: 'yyyy-MM-dd HH:mm:ss'
|
|
80729
81120
|
}];
|
|
80730
81121
|
/**
|
|
80731
81122
|
* 日期格式化
|
|
@@ -80736,23 +81127,23 @@ var dateFormatValueList = [{
|
|
|
80736
81127
|
var dateFormat = function dateFormat(date, format) {
|
|
80737
81128
|
var _date;
|
|
80738
81129
|
|
|
80739
|
-
if (date && typeof date ===
|
|
80740
|
-
var stringDate = date.replace(/[年|月|-]/g,
|
|
80741
|
-
stringDate = stringDate.replace(/[点|时|分]/g,
|
|
80742
|
-
stringDate = stringDate.replace(/[日|秒]/g,
|
|
81130
|
+
if (date && typeof date === 'string') {
|
|
81131
|
+
var stringDate = date.replace(/[年|月|-]/g, '/');
|
|
81132
|
+
stringDate = stringDate.replace(/[点|时|分]/g, ':');
|
|
81133
|
+
stringDate = stringDate.replace(/[日|秒]/g, '');
|
|
80743
81134
|
|
|
80744
81135
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
80745
|
-
if (format && format.includes(
|
|
80746
|
-
stringDate =
|
|
81136
|
+
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
81137
|
+
stringDate = '2021/' + stringDate;
|
|
80747
81138
|
}
|
|
80748
81139
|
|
|
80749
|
-
if (format && format.includes(
|
|
80750
|
-
stringDate = stringDate +
|
|
80751
|
-
stringDate = stringDate.replace(
|
|
81140
|
+
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
81141
|
+
stringDate = stringDate + ':00';
|
|
81142
|
+
stringDate = stringDate.replace('::', ':');
|
|
80752
81143
|
}
|
|
80753
81144
|
|
|
80754
|
-
if (!stringDate.includes(
|
|
80755
|
-
stringDate =
|
|
81145
|
+
if (!stringDate.includes('/')) {
|
|
81146
|
+
stringDate = '2021/10/01 ' + stringDate;
|
|
80756
81147
|
}
|
|
80757
81148
|
}
|
|
80758
81149
|
|
|
@@ -80772,7 +81163,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
80772
81163
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
80773
81164
|
var seconds = "".concat(_date.getSeconds());
|
|
80774
81165
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
80775
|
-
return (format ||
|
|
81166
|
+
return (format || 'yyyy-MM-dd HH:mm:ss').replace(/yyyy/g, year).replace(/MM/g, month).replace(/dd/g, day).replace(/HH|hh/g, hours).replace(/mm/g, minutes).replace(/ss/g, seconds);
|
|
80776
81167
|
};
|
|
80777
81168
|
/**
|
|
80778
81169
|
* 弹窗拖动
|
|
@@ -80786,18 +81177,18 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80786
81177
|
var y = 0;
|
|
80787
81178
|
|
|
80788
81179
|
var move = function move(event) {
|
|
80789
|
-
modalElement.style.left = event.pageX - x +
|
|
80790
|
-
modalElement.style.top = event.pageY - y +
|
|
81180
|
+
modalElement.style.left = event.pageX - x + 'px';
|
|
81181
|
+
modalElement.style.top = event.pageY - y + 'px';
|
|
80791
81182
|
};
|
|
80792
81183
|
|
|
80793
81184
|
var target = event.target;
|
|
80794
81185
|
|
|
80795
|
-
if (typeof target.className ===
|
|
81186
|
+
if (typeof target.className === 'string' && target.className.indexOf(openMoveClassName) !== -1) {
|
|
80796
81187
|
x = event.pageX - modalElement.offsetLeft;
|
|
80797
81188
|
y = event.pageY - modalElement.offsetTop;
|
|
80798
|
-
document.addEventListener(
|
|
80799
|
-
document.addEventListener(
|
|
80800
|
-
document.removeEventListener(
|
|
81189
|
+
document.addEventListener('mousemove', move);
|
|
81190
|
+
document.addEventListener('mouseup', function () {
|
|
81191
|
+
document.removeEventListener('mousemove', move);
|
|
80801
81192
|
});
|
|
80802
81193
|
} else {
|
|
80803
81194
|
return false;
|
|
@@ -80816,38 +81207,38 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80816
81207
|
*/
|
|
80817
81208
|
|
|
80818
81209
|
var computedPoperPosition = function computedPoperPosition(maxHeight, poperPos, offsetHeight) {
|
|
80819
|
-
var doc = Array.from(document.querySelectorAll(
|
|
81210
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
80820
81211
|
var offsetHeights = offsetHeight ? offsetHeight : 0;
|
|
80821
81212
|
var pos = {
|
|
80822
|
-
left:
|
|
80823
|
-
top:
|
|
80824
|
-
right:
|
|
80825
|
-
bottom:
|
|
80826
|
-
height: maxHeight +
|
|
81213
|
+
left: '',
|
|
81214
|
+
top: '',
|
|
81215
|
+
right: '',
|
|
81216
|
+
bottom: '',
|
|
81217
|
+
height: maxHeight + 'px'
|
|
80827
81218
|
};
|
|
80828
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81219
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80829
81220
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80830
81221
|
var screenHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
80831
81222
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80832
81223
|
var y = selectCanvasSize.top + poperPos.y;
|
|
80833
|
-
pos.left = x +
|
|
81224
|
+
pos.left = x + 'px';
|
|
80834
81225
|
|
|
80835
81226
|
if (screenHeight - y - poperPos.height + 30 < maxHeight) {
|
|
80836
81227
|
if (y + poperPos.height < maxHeight) {
|
|
80837
81228
|
// 可用高度不足时,暂定遮挡元素内容,保证控件能显示完整
|
|
80838
|
-
pos.bottom =
|
|
81229
|
+
pos.bottom = '0px';
|
|
80839
81230
|
} else {
|
|
80840
|
-
pos.bottom = screenHeight - y - offsetHeights + poperPos.height +
|
|
81231
|
+
pos.bottom = screenHeight - y - offsetHeights + poperPos.height + 'px';
|
|
80841
81232
|
}
|
|
80842
81233
|
} else {
|
|
80843
|
-
pos.top = y + offsetHeights +
|
|
81234
|
+
pos.top = y + offsetHeights + 'px';
|
|
80844
81235
|
}
|
|
80845
81236
|
|
|
80846
81237
|
return pos;
|
|
80847
81238
|
};
|
|
80848
81239
|
var generateGetBoundingClientRect = function generateGetBoundingClientRect(poperPos, offsetHeight) {
|
|
80849
|
-
var doc = Array.from(document.querySelectorAll(
|
|
80850
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81240
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
81241
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80851
81242
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80852
81243
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80853
81244
|
var y = selectCanvasSize.top + poperPos.y;
|
|
@@ -80869,7 +81260,7 @@ var generateGetBoundingClientRect = function generateGetBoundingClientRect(poper
|
|
|
80869
81260
|
|
|
80870
81261
|
var generateID = function generateID(type) {
|
|
80871
81262
|
if (type === undefined) {
|
|
80872
|
-
type =
|
|
81263
|
+
type = '';
|
|
80873
81264
|
}
|
|
80874
81265
|
|
|
80875
81266
|
var date = new Date();
|
|
@@ -80881,23 +81272,23 @@ var generateID = function generateID(type) {
|
|
|
80881
81272
|
var second = date.getSeconds().toString();
|
|
80882
81273
|
|
|
80883
81274
|
if (month.length === 1) {
|
|
80884
|
-
month =
|
|
81275
|
+
month = '0' + month;
|
|
80885
81276
|
}
|
|
80886
81277
|
|
|
80887
81278
|
if (day.length === 1) {
|
|
80888
|
-
day =
|
|
81279
|
+
day = '0' + day;
|
|
80889
81280
|
}
|
|
80890
81281
|
|
|
80891
81282
|
if (hour.length === 1) {
|
|
80892
|
-
hour =
|
|
81283
|
+
hour = '0' + hour;
|
|
80893
81284
|
}
|
|
80894
81285
|
|
|
80895
81286
|
if (minute.length === 1) {
|
|
80896
|
-
minute =
|
|
81287
|
+
minute = '0' + minute;
|
|
80897
81288
|
}
|
|
80898
81289
|
|
|
80899
81290
|
if (second.length === 1) {
|
|
80900
|
-
second =
|
|
81291
|
+
second = '0' + second;
|
|
80901
81292
|
}
|
|
80902
81293
|
|
|
80903
81294
|
var randomNumber = Math.floor(Math.random() * 1000000).toString();
|
|
@@ -80926,11 +81317,11 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80926
81317
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
80927
81318
|
};
|
|
80928
81319
|
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_12__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
80929
|
-
placement:
|
|
81320
|
+
placement: 'bottom-start',
|
|
80930
81321
|
modifiers: [{
|
|
80931
|
-
name:
|
|
81322
|
+
name: 'flip',
|
|
80932
81323
|
options: {
|
|
80933
|
-
fallbackPlacements: [
|
|
81324
|
+
fallbackPlacements: ['bottom-start', 'bottom', 'right', 'left'],
|
|
80934
81325
|
padding: 10
|
|
80935
81326
|
}
|
|
80936
81327
|
}]
|
|
@@ -80942,10 +81333,10 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80942
81333
|
*/
|
|
80943
81334
|
|
|
80944
81335
|
var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation) {
|
|
80945
|
-
var printStyle = document.createElement(
|
|
81336
|
+
var printStyle = document.createElement('style'); // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
80946
81337
|
|
|
80947
|
-
printStyle.type =
|
|
80948
|
-
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation ===
|
|
81338
|
+
printStyle.type = 'text/css';
|
|
81339
|
+
printStyle.innerHTML = "\n @media print {\n @page {\n margin: 0;\n border: 0 solid transparent;\n size: ".concat(pageSize, " ").concat(orientation === 'l' ? 'landscape' : 'portrait', ";\n }\n\n body, html {\n padding: 0;\n margin: 0;\n background: #fff;\n }\n }\n body, html {\n margin: 0;\n background: #eee;\n text-align: center;\n }\n .ho-print-svg-list {\n margin: 0 auto;\n }\n .ho-print-svg-box {\n margin: 0 auto;\n position: relative;\n }\n svg {\n display: block;\n margin: 0 auto;\n border: 0;\n }\n ");
|
|
80949
81340
|
return printStyle;
|
|
80950
81341
|
};
|
|
80951
81342
|
/**
|
|
@@ -80956,23 +81347,23 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
|
|
|
80956
81347
|
var createPrintHTMLIframe = function createPrintHTMLIframe(printStyle) {
|
|
80957
81348
|
var _printIframe$contentW;
|
|
80958
81349
|
|
|
80959
|
-
var printIframe = document.createElement(
|
|
80960
|
-
printIframe.id =
|
|
80961
|
-
printIframe.style.position =
|
|
80962
|
-
printIframe.style.margin =
|
|
80963
|
-
printIframe.style.padding =
|
|
80964
|
-
printIframe.style.width =
|
|
80965
|
-
printIframe.style.height =
|
|
80966
|
-
printIframe.style.visibility =
|
|
81350
|
+
var printIframe = document.createElement('iframe');
|
|
81351
|
+
printIframe.id = 'ho-print-svg-boxIframe';
|
|
81352
|
+
printIframe.style.position = 'fixed';
|
|
81353
|
+
printIframe.style.margin = '0';
|
|
81354
|
+
printIframe.style.padding = '0';
|
|
81355
|
+
printIframe.style.width = '0px';
|
|
81356
|
+
printIframe.style.height = '0px';
|
|
81357
|
+
printIframe.style.visibility = 'hidden';
|
|
80967
81358
|
document.body.appendChild(printIframe);
|
|
80968
81359
|
printIframe === null || printIframe === void 0 ? void 0 : (_printIframe$contentW = printIframe.contentWindow) === null || _printIframe$contentW === void 0 ? void 0 : _printIframe$contentW.document.head.appendChild(printStyle);
|
|
80969
81360
|
return printIframe;
|
|
80970
81361
|
};
|
|
80971
81362
|
var resetScale = function resetScale() {
|
|
80972
|
-
var bodyElement = document.querySelector(
|
|
81363
|
+
var bodyElement = document.querySelector('body');
|
|
80973
81364
|
|
|
80974
|
-
if (Object.prototype.hasOwnProperty.call(bodyElement.style,
|
|
80975
|
-
bodyElement.style.zoom =
|
|
81365
|
+
if (Object.prototype.hasOwnProperty.call(bodyElement.style, 'zoom')) {
|
|
81366
|
+
bodyElement.style.zoom = 'reset';
|
|
80976
81367
|
}
|
|
80977
81368
|
|
|
80978
81369
|
document.onkeydown = function (event) {
|
|
@@ -80988,12 +81379,12 @@ var resetScale = function resetScale() {
|
|
|
80988
81379
|
//Firefox滑轮事件
|
|
80989
81380
|
if (e.detail > 0) {
|
|
80990
81381
|
//当滑轮向上滚动时
|
|
80991
|
-
alert(
|
|
81382
|
+
alert('滑轮向下滚动');
|
|
80992
81383
|
}
|
|
80993
81384
|
|
|
80994
81385
|
if (e.detail < 0) {
|
|
80995
81386
|
//当滑轮向下滚动时
|
|
80996
|
-
alert(
|
|
81387
|
+
alert('滑轮向上滚动');
|
|
80997
81388
|
}
|
|
80998
81389
|
}
|
|
80999
81390
|
};
|
|
@@ -81001,29 +81392,29 @@ var resetScale = function resetScale() {
|
|
|
81001
81392
|
var getBrowser = function getBrowser() {
|
|
81002
81393
|
var sUsrAg = window.navigator.userAgent;
|
|
81003
81394
|
|
|
81004
|
-
if (sUsrAg.indexOf(
|
|
81005
|
-
return
|
|
81006
|
-
} else if (sUsrAg.indexOf(
|
|
81007
|
-
return
|
|
81008
|
-
} else if (sUsrAg.indexOf(
|
|
81009
|
-
return
|
|
81010
|
-
} else if (sUsrAg.indexOf(
|
|
81011
|
-
return
|
|
81012
|
-
} else if (sUsrAg.indexOf(
|
|
81013
|
-
return
|
|
81014
|
-
} else if (sUsrAg.indexOf(
|
|
81015
|
-
return
|
|
81395
|
+
if (sUsrAg.indexOf('Firefox') > -1) {
|
|
81396
|
+
return 'Mozilla Firefox'; // 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:61.0) Gecko/20100101 Firefox/61.0'
|
|
81397
|
+
} else if (sUsrAg.indexOf('Opera') > -1 || sUsrAg.indexOf('OPR') > -1) {
|
|
81398
|
+
return 'Opera'; // 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_0) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 OPR/57.0.3098.106'
|
|
81399
|
+
} else if (sUsrAg.indexOf('Trident') > -1) {
|
|
81400
|
+
return 'Microsoft Internet Explorer'; // 'Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; .NET4.0C; .NET4.0E; Zoom 3.6.0; wbx 1.0.0; rv:11.0) like Gecko'
|
|
81401
|
+
} else if (sUsrAg.indexOf('Edge') > -1) {
|
|
81402
|
+
return 'Microsoft Edge'; // 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36 Edge/16.16299'
|
|
81403
|
+
} else if (sUsrAg.indexOf('Chrome') > -1) {
|
|
81404
|
+
return 'Google Chrome or Chromium'; // 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/66.0.3359.181 Chrome/66.0.3359.181 Safari/537.36'
|
|
81405
|
+
} else if (sUsrAg.indexOf('Safari') > -1) {
|
|
81406
|
+
return 'Apple Safari'; // 'Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 Mobile/15E148 Safari/604.1 980x1306'
|
|
81016
81407
|
} else {
|
|
81017
|
-
return
|
|
81408
|
+
return 'unknown';
|
|
81018
81409
|
}
|
|
81019
81410
|
}; //给页面绑定滑轮滚动事件
|
|
81020
81411
|
|
|
81021
81412
|
|
|
81022
|
-
if (getBrowser() ===
|
|
81413
|
+
if (getBrowser() === 'Mozilla Firefox') {
|
|
81023
81414
|
//火狐使用DOMMouseScroll绑定
|
|
81024
|
-
document.addEventListener(
|
|
81415
|
+
document.addEventListener('DOMMouseScroll', windowAddMouseWheel, false);
|
|
81025
81416
|
} else {
|
|
81026
|
-
document.addEventListener(
|
|
81417
|
+
document.addEventListener('onmousewheel', windowAddMouseWheel, false);
|
|
81027
81418
|
}
|
|
81028
81419
|
};
|
|
81029
81420
|
var getUserIP = function getUserIP(onNewIP) {
|
|
@@ -81032,7 +81423,7 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81032
81423
|
var myPeerConnection = window.RTCPeerConnection;
|
|
81033
81424
|
var pc = new myPeerConnection({
|
|
81034
81425
|
iceServers: [{
|
|
81035
|
-
urls:
|
|
81426
|
+
urls: 'stun:stun.l.google.com:19302'
|
|
81036
81427
|
}]
|
|
81037
81428
|
});
|
|
81038
81429
|
var localIPs = {};
|
|
@@ -81043,13 +81434,13 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81043
81434
|
localIPs[ip] = true;
|
|
81044
81435
|
};
|
|
81045
81436
|
|
|
81046
|
-
pc.createDataChannel(
|
|
81437
|
+
pc.createDataChannel('');
|
|
81047
81438
|
pc.createOffer().then(function (sdp) {
|
|
81048
81439
|
if (sdp && sdp.sdp) {
|
|
81049
|
-
sdp.sdp.split(
|
|
81440
|
+
sdp.sdp.split('\n').forEach(function (line) {
|
|
81050
81441
|
var _line$match;
|
|
81051
81442
|
|
|
81052
|
-
if (line.indexOf(
|
|
81443
|
+
if (line.indexOf('candidate') < 0) return;
|
|
81053
81444
|
(_line$match = line.match(ipRegex)) === null || _line$match === void 0 ? void 0 : _line$match.forEach(iterateIP);
|
|
81054
81445
|
});
|
|
81055
81446
|
}
|
|
@@ -81070,15 +81461,15 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81070
81461
|
var newImage = new Image();
|
|
81071
81462
|
var quality = qualitys ? qualitys : 1;
|
|
81072
81463
|
newImage.src = base64;
|
|
81073
|
-
newImage.setAttribute(
|
|
81464
|
+
newImage.setAttribute('crossOrigin', 'Anonymous'); //url为外域时需要
|
|
81074
81465
|
|
|
81075
81466
|
var imgWidth, imgHeight;
|
|
81076
81467
|
|
|
81077
81468
|
newImage.onload = function () {
|
|
81078
81469
|
imgWidth = newImage.naturalWidth;
|
|
81079
81470
|
imgHeight = newImage.naturalHeight;
|
|
81080
|
-
var canvas = document.createElement(
|
|
81081
|
-
var ctx = canvas.getContext(
|
|
81471
|
+
var canvas = document.createElement('canvas');
|
|
81472
|
+
var ctx = canvas.getContext('2d');
|
|
81082
81473
|
|
|
81083
81474
|
if (img) {
|
|
81084
81475
|
canvas.width = img[0] * 2;
|
|
@@ -81088,19 +81479,19 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81088
81479
|
canvas.height = imgHeight * 2;
|
|
81089
81480
|
}
|
|
81090
81481
|
|
|
81091
|
-
canvas.style.width = canvas.width / 2 +
|
|
81092
|
-
canvas.style.height = canvas.height / 2 +
|
|
81482
|
+
canvas.style.width = canvas.width / 2 + 'px';
|
|
81483
|
+
canvas.style.height = canvas.height / 2 + 'px';
|
|
81093
81484
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
81094
|
-
ctx.fillStyle =
|
|
81485
|
+
ctx.fillStyle = '#FFFFFF';
|
|
81095
81486
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
81096
81487
|
ctx.drawImage(newImage, 0, 0, canvas.width, canvas.height);
|
|
81097
|
-
var base64 = canvas.toDataURL(
|
|
81488
|
+
var base64 = canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
81098
81489
|
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
81099
81490
|
|
|
81100
81491
|
if (size) {
|
|
81101
81492
|
while (base64.length / 1024 > size) {
|
|
81102
81493
|
quality -= 0.01;
|
|
81103
|
-
base64 = canvas.toDataURL(
|
|
81494
|
+
base64 = canvas.toDataURL('image/jpeg', quality);
|
|
81104
81495
|
}
|
|
81105
81496
|
}
|
|
81106
81497
|
|
|
@@ -212350,7 +212741,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
212350
212741
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
212351
212742
|
|
|
212352
212743
|
var map = {
|
|
212353
|
-
"./ControlModal.vue":
|
|
212744
|
+
"./ControlModal.vue": 71885,
|
|
212354
212745
|
"./barCode/BarCodes.vue": 35996,
|
|
212355
212746
|
"./colorPicker/HoColorPicker.vue": 59552,
|
|
212356
212747
|
"./commentDialog/CommentDialog.vue": 79019,
|
|
@@ -212367,7 +212758,7 @@ var map = {
|
|
|
212367
212758
|
"./pageInfoes/PageInfoes.vue": 65562,
|
|
212368
212759
|
"./paragraph/ParagraphDialog.vue": 43433,
|
|
212369
212760
|
"./poperSelect/PoperMark.vue": 39959,
|
|
212370
|
-
"./poperSelect/PoperSelect.vue":
|
|
212761
|
+
"./poperSelect/PoperSelect.vue": 10460,
|
|
212371
212762
|
"./poperTipText/PoperTipText.vue": 97824,
|
|
212372
212763
|
"./popers/Poper.vue": 79783,
|
|
212373
212764
|
"./popers/Title.vue": 95196,
|
|
@@ -212376,9 +212767,10 @@ var map = {
|
|
|
212376
212767
|
"./radioCheckBox/RadioCheckbox.vue": 29385,
|
|
212377
212768
|
"./selectDialog/SelectDialog.vue": 32949,
|
|
212378
212769
|
"./sign/Sign.vue": 54089,
|
|
212379
|
-
"./table/TableCellPoper.vue":
|
|
212770
|
+
"./table/TableCellPoper.vue": 89778,
|
|
212380
212771
|
"./table/TableCellProperty.vue": 84650,
|
|
212381
212772
|
"./table/TableColProperty.vue": 59243,
|
|
212773
|
+
"./table/TableFormula.vue": 45302,
|
|
212382
212774
|
"./table/TableProperty.vue": 1527,
|
|
212383
212775
|
"./table/TableRowProperty.vue": 52032,
|
|
212384
212776
|
"./textDialog/TextDialog.vue": 87847,
|
|
@@ -213895,7 +214287,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213895
214287
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213896
214288
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
213897
214289
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213898
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
214290
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=2edbffe6&
|
|
213899
214291
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
213900
214292
|
var staticRenderFns = []
|
|
213901
214293
|
|
|
@@ -213922,14 +214314,11 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213922
214314
|
var es_number_constructor = __webpack_require__(9653);
|
|
213923
214315
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213924
214316
|
var es_json_stringify = __webpack_require__(38862);
|
|
213925
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
213926
|
-
var
|
|
213927
|
-
var
|
|
214317
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=7f445433&
|
|
214318
|
+
var HoDocvue_type_template_id_7f445433_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
214319
|
+
var HoDocvue_type_template_id_7f445433_staticRenderFns = []
|
|
213928
214320
|
|
|
213929
214321
|
|
|
213930
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
213931
|
-
var message_box = __webpack_require__(86769);
|
|
213932
|
-
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
213933
214322
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
213934
214323
|
var es_array_filter = __webpack_require__(57327);
|
|
213935
214324
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -214804,15 +215193,13 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214804
215193
|
this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
214805
215194
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
214806
215195
|
|
|
214807
|
-
|
|
214808
|
-
|
|
214809
|
-
|
|
214810
|
-
|
|
214811
|
-
|
|
214812
|
-
|
|
214813
|
-
|
|
214814
|
-
|
|
214815
|
-
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort();
|
|
215196
|
+
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
|
|
215197
|
+
if (a > b) {
|
|
215198
|
+
return 1;
|
|
215199
|
+
} else {
|
|
215200
|
+
return -1;
|
|
215201
|
+
}
|
|
215202
|
+
});
|
|
214816
215203
|
|
|
214817
215204
|
if (keys.length > 0) {
|
|
214818
215205
|
for (var index = keys[0]; index <= keys[keys.length - 1]; index++) {
|
|
@@ -214825,8 +215212,15 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214825
215212
|
(_hoeditorfactory$draw = hoeditorfactory.drawPageTree.needUpdateMainDocInfo.get(index)) === null || _hoeditorfactory$draw === void 0 ? void 0 : _hoeditorfactory$draw.callUpdate();
|
|
214826
215213
|
hoeditorfactory.drawPageTree.needUpdateMainDocInfo.delete(index);
|
|
214827
215214
|
}
|
|
214828
|
-
}
|
|
215215
|
+
}
|
|
215216
|
+
|
|
215217
|
+
this._domStage.addChild(dPage.drawDocContainer);
|
|
214829
215218
|
|
|
215219
|
+
dPage.paintBackGround();
|
|
215220
|
+
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
215221
|
+
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawHeader, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
215222
|
+
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
215223
|
+
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot); // dPage.drawDocContainer.addChild(dPage.drawHeader);
|
|
214830
215224
|
|
|
214831
215225
|
dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes; // dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
|
|
214832
215226
|
// // this._domStage.addChildAt(this._drawMainDoc, 0);
|
|
@@ -215251,9 +215645,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
215251
215645
|
return NodeMouseMoveEvent;
|
|
215252
215646
|
}();
|
|
215253
215647
|
NodeMouseMoveEvent.eventName = "nodeMouseMove";
|
|
215254
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=template&id=
|
|
215255
|
-
var
|
|
215256
|
-
var
|
|
215648
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=template&id=47bfb5b0&
|
|
215649
|
+
var HoHeadFootvue_type_template_id_47bfb5b0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.headTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页眉")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("head")],2),_c('ul',{staticClass:"ho-headfoot-list ho-head-list",style:(_vm.footerTop)},[_c('li',{staticClass:"ho-headfoot-item"},[_vm._v("页脚")]),_c('span',{staticStyle:{"flex":"1"}}),_vm._t("foot")],2)])}
|
|
215650
|
+
var HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns = []
|
|
215257
215651
|
|
|
215258
215652
|
|
|
215259
215653
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoHeadFoot.vue?vue&type=script&lang=js&
|
|
@@ -215273,6 +215667,7 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215273
215667
|
//
|
|
215274
215668
|
//
|
|
215275
215669
|
//
|
|
215670
|
+
|
|
215276
215671
|
/* harmony default export */ var HoHeadFootvue_type_script_lang_js_ = ({
|
|
215277
215672
|
name: 'HoHeadFoot',
|
|
215278
215673
|
props: {
|
|
@@ -215287,10 +215682,10 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215287
215682
|
},
|
|
215288
215683
|
computed: {
|
|
215289
215684
|
headTop: function headTop() {
|
|
215290
|
-
return 'top: ' + (this.headerFooterPosition.headerY + 1) + 'px;border-top: 2px dotted #66b3ff;';
|
|
215685
|
+
return 'top: ' + (this.headerFooterPosition.headerY * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 1) + 'px;border-top: 2px dotted #66b3ff;';
|
|
215291
215686
|
},
|
|
215292
215687
|
footerTop: function footerTop() {
|
|
215293
|
-
return 'bottom: ' + (this.headerFooterPosition.footerY + 1) + 'px;border-bottom: 2px dotted #66b3ff;';
|
|
215688
|
+
return 'bottom: ' + (this.headerFooterPosition.footerY * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY + 1) + 'px;border-bottom: 2px dotted #66b3ff;';
|
|
215294
215689
|
}
|
|
215295
215690
|
}
|
|
215296
215691
|
});
|
|
@@ -215314,8 +215709,8 @@ var componentNormalizer = __webpack_require__(1001);
|
|
|
215314
215709
|
|
|
215315
215710
|
var component = (0,componentNormalizer/* default */.Z)(
|
|
215316
215711
|
components_HoHeadFootvue_type_script_lang_js_,
|
|
215317
|
-
|
|
215318
|
-
|
|
215712
|
+
HoHeadFootvue_type_template_id_47bfb5b0_render,
|
|
215713
|
+
HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns,
|
|
215319
215714
|
false,
|
|
215320
215715
|
null,
|
|
215321
215716
|
null,
|
|
@@ -215850,7 +216245,7 @@ var DrawPage = __webpack_require__(62530);
|
|
|
215850
216245
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215851
216246
|
var util = __webpack_require__(17987);
|
|
215852
216247
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
215853
|
-
var PoperSelect = __webpack_require__(
|
|
216248
|
+
var PoperSelect = __webpack_require__(10460);
|
|
215854
216249
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215855
216250
|
var PoperMark = __webpack_require__(39959);
|
|
215856
216251
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -215858,7 +216253,7 @@ var PoperMark = __webpack_require__(39959);
|
|
|
215858
216253
|
|
|
215859
216254
|
|
|
215860
216255
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
215861
|
-
var TableCellPoper = __webpack_require__(
|
|
216256
|
+
var TableCellPoper = __webpack_require__(89778);
|
|
215862
216257
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
215863
216258
|
var DateTimeNode = __webpack_require__(40253);
|
|
215864
216259
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -217562,7 +217957,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217562
217957
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217563
217958
|
var ParagraphNode = __webpack_require__(13880);
|
|
217564
217959
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217565
|
-
/* harmony default export */ var version = ('2.0.
|
|
217960
|
+
/* harmony default export */ var version = ('2.0.91');
|
|
217566
217961
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217567
217962
|
var PoperTipText = __webpack_require__(97824);
|
|
217568
217963
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217584,9 +217979,6 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217584
217979
|
|
|
217585
217980
|
|
|
217586
217981
|
|
|
217587
|
-
|
|
217588
|
-
|
|
217589
|
-
|
|
217590
217982
|
//
|
|
217591
217983
|
//
|
|
217592
217984
|
//
|
|
@@ -217780,6 +218172,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217780
218172
|
drawPageLength: 0,
|
|
217781
218173
|
isCreateRightMenuModal: false,
|
|
217782
218174
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
218175
|
+
showDeleteSignMenu: false,
|
|
218176
|
+
// 审阅模式显示删除签名菜单
|
|
217783
218177
|
version: version,
|
|
217784
218178
|
isHideComments: false,
|
|
217785
218179
|
showCommentsBtn: false,
|
|
@@ -217838,7 +218232,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217838
218232
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
217839
218233
|
}
|
|
217840
218234
|
},
|
|
217841
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue',
|
|
218235
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
217842
218236
|
created: function created() {
|
|
217843
218237
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217844
218238
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -217885,23 +218279,17 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217885
218279
|
},
|
|
217886
218280
|
methods: {
|
|
217887
218281
|
deleteSignNode: function deleteSignNode() {
|
|
217888
|
-
var
|
|
217889
|
-
var signUserId = this.currentNode.customProperty.bce01 || '';
|
|
218282
|
+
var _this$getRightClickNo;
|
|
217890
218283
|
|
|
217891
|
-
|
|
217892
|
-
|
|
217893
|
-
|
|
217894
|
-
this.eleNode = null;
|
|
217895
|
-
this.currentNode = null;
|
|
217896
|
-
this.isCreateRightMenuModal = false;
|
|
217897
|
-
return;
|
|
217898
|
-
} // hoEditorFactory.elementController.deleteNode(this.eleNode.node());
|
|
218284
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218285
|
+
var node = (_this$getRightClickNo = this.getRightClickNodeValue()) === null || _this$getRightClickNo === void 0 ? void 0 : _this$getRightClickNo.node();
|
|
217899
218286
|
|
|
218287
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218288
|
+
hoEditorFactory.elementController.deleteNode(node);
|
|
218289
|
+
}
|
|
217900
218290
|
|
|
217901
|
-
hoEditorFactory.vueController.forceDelete();
|
|
217902
|
-
this.eleNode = null;
|
|
217903
|
-
this.currentNode = null;
|
|
217904
218291
|
this.isCreateRightMenuModal = false;
|
|
218292
|
+
this.showDeleteSignMenu = false;
|
|
217905
218293
|
},
|
|
217906
218294
|
beforeDestroy: function beforeDestroy() {
|
|
217907
218295
|
var _this$viewableAreaObs,
|
|
@@ -217938,7 +218326,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217938
218326
|
|
|
217939
218327
|
if (v.intersectionRatio === 0) {
|
|
217940
218328
|
inViewPages = inViewPages.filter(function (v) {
|
|
217941
|
-
return
|
|
218329
|
+
return v !== pageIndex;
|
|
217942
218330
|
});
|
|
217943
218331
|
} else {
|
|
217944
218332
|
inViewPages.includes(dPage.pageIndex) ? null : inViewPages.push(dPage.pageIndex);
|
|
@@ -218023,7 +218411,9 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218023
218411
|
|
|
218024
218412
|
if (node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
218025
218413
|
value = node.parentNode;
|
|
218026
|
-
}
|
|
218414
|
+
}
|
|
218415
|
+
|
|
218416
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218027
218417
|
value = node;
|
|
218028
218418
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218029
218419
|
value = node;
|
|
@@ -218245,28 +218635,42 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218245
218635
|
var _hoEditorFactory$vueC2;
|
|
218246
218636
|
|
|
218247
218637
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218248
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218249
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218250
|
-
this.setRightClickNodeValue(node);
|
|
218251
|
-
this.eleNode = this.getRightClickNodeValue();
|
|
218252
|
-
this.currentNode = node;
|
|
218253
218638
|
var rightPosition = {
|
|
218254
218639
|
clientX: e.clientX || e.pageX,
|
|
218255
218640
|
clientY: e.clientY || e.pageY
|
|
218256
|
-
};
|
|
218641
|
+
};
|
|
218642
|
+
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218643
|
+
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218644
|
+
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218645
|
+
|
|
218646
|
+
if (startPos) {
|
|
218647
|
+
var _hoEditorFactory$docT;
|
|
218648
|
+
|
|
218649
|
+
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218650
|
+
|
|
218651
|
+
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218652
|
+
node = npNode;
|
|
218653
|
+
}
|
|
218654
|
+
} // psDesign, // 设计状态
|
|
218257
218655
|
// psEdit, // 编辑状态
|
|
218258
218656
|
// psPreview, // 打印预览
|
|
218259
218657
|
// psPrint, // 打印
|
|
218260
218658
|
// psReview, // 审阅
|
|
218261
218659
|
// psReadOnly, // 预览
|
|
218262
218660
|
|
|
218263
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218264
|
-
var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218265
218661
|
|
|
218662
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218266
218663
|
this.isCreateRightMenuModal = true;
|
|
218267
218664
|
|
|
218268
|
-
if (
|
|
218269
|
-
|
|
218665
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psReview */.Dh.psReview) {
|
|
218666
|
+
if (node instanceof SignNode/* SignNode */.N && node.number > 0) {
|
|
218667
|
+
this.showDeleteSignMenu = true;
|
|
218668
|
+
this.setRightClickNodeValue(node);
|
|
218669
|
+
} else {
|
|
218670
|
+
this.showDeleteSignMenu = false;
|
|
218671
|
+
}
|
|
218672
|
+
} else {
|
|
218673
|
+
this.isHideComments = hoEditorFactory.isHideComments;
|
|
218270
218674
|
this.showCommentsBtn = true;
|
|
218271
218675
|
}
|
|
218272
218676
|
|
|
@@ -218274,18 +218678,6 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218274
218678
|
return;
|
|
218275
218679
|
}
|
|
218276
218680
|
|
|
218277
|
-
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218278
|
-
|
|
218279
|
-
if (startPos) {
|
|
218280
|
-
var _hoEditorFactory$docT;
|
|
218281
|
-
|
|
218282
|
-
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218283
|
-
|
|
218284
|
-
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218285
|
-
node = npNode;
|
|
218286
|
-
}
|
|
218287
|
-
}
|
|
218288
|
-
|
|
218289
218681
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218290
218682
|
this.setRightClickNodeValue(node);
|
|
218291
218683
|
}
|
|
@@ -218299,6 +218691,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218299
218691
|
*/
|
|
218300
218692
|
hideComments: function hideComments() {
|
|
218301
218693
|
this.isCreateRightMenuModal = false;
|
|
218694
|
+
this.showDeleteSignMenu = false;
|
|
218302
218695
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218303
218696
|
hoEditorFactory.vueController.hideComments(!hoEditorFactory.isHideComments);
|
|
218304
218697
|
},
|
|
@@ -218342,8 +218735,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218342
218735
|
|
|
218343
218736
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218344
218737
|
components_HoDocvue_type_script_lang_js_,
|
|
218345
|
-
|
|
218346
|
-
|
|
218738
|
+
HoDocvue_type_template_id_7f445433_render,
|
|
218739
|
+
HoDocvue_type_template_id_7f445433_staticRenderFns,
|
|
218347
218740
|
false,
|
|
218348
218741
|
null,
|
|
218349
218742
|
null,
|
|
@@ -218573,6 +218966,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218573
218966
|
value: function getNextDrawArea(drawArea, singlePage) {
|
|
218574
218967
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218575
218968
|
var ret = drawArea;
|
|
218969
|
+
var isNew = false;
|
|
218576
218970
|
|
|
218577
218971
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
218578
218972
|
var index = this._drawMainDocs.indexOf(drawArea);
|
|
@@ -218581,6 +218975,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218581
218975
|
ret = this._drawMainDocs[index + 1];
|
|
218582
218976
|
} else {
|
|
218583
218977
|
var dMainDocArea = new DrawPageMainDoc/* DrawPageMainDoc */.$(this._hoEditorFactoryID, "main", index + 1, 0);
|
|
218978
|
+
isNew = true;
|
|
218584
218979
|
|
|
218585
218980
|
this._drawMainDocs.push(dMainDocArea);
|
|
218586
218981
|
|
|
@@ -218595,9 +218990,20 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218595
218990
|
}
|
|
218596
218991
|
}
|
|
218597
218992
|
|
|
218598
|
-
return ret;
|
|
218993
|
+
return [ret, isNew];
|
|
218599
218994
|
} //拆分成页
|
|
218600
218995
|
|
|
218996
|
+
}, {
|
|
218997
|
+
key: "clearAfterDTop",
|
|
218998
|
+
value: function clearAfterDTop(dDrawArea, dTop) {
|
|
218999
|
+
var numChildren = dDrawArea.children.length - 1;
|
|
219000
|
+
|
|
219001
|
+
for (var i = numChildren; i >= 0; i--) {
|
|
219002
|
+
if (dDrawArea.children[i].y > dTop) {
|
|
219003
|
+
dDrawArea.removeChildAt(i);
|
|
219004
|
+
}
|
|
219005
|
+
}
|
|
219006
|
+
}
|
|
218601
219007
|
}, {
|
|
218602
219008
|
key: "paint",
|
|
218603
219009
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -218618,6 +219024,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218618
219024
|
var aline = dRoots[startLine];
|
|
218619
219025
|
var dLine;
|
|
218620
219026
|
var dTop = 0;
|
|
219027
|
+
var mainDTop = 0;
|
|
218621
219028
|
|
|
218622
219029
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
218623
219030
|
if (aline.drawPageTables.length > 0) {
|
|
@@ -218668,6 +219075,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218668
219075
|
return;
|
|
218669
219076
|
}
|
|
218670
219077
|
|
|
219078
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
218671
219079
|
var nextLine = startLine;
|
|
218672
219080
|
var pageIsFull = new Map();
|
|
218673
219081
|
|
|
@@ -218683,7 +219091,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218683
219091
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218684
219092
|
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
218685
219093
|
pageIsFull.set(drawArea.index, true);
|
|
218686
|
-
drawArea = this.getNextDrawArea(drawArea, true);
|
|
219094
|
+
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
218687
219095
|
dTop = 0;
|
|
218688
219096
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
218689
219097
|
}
|
|
@@ -218709,12 +219117,23 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218709
219117
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218710
219118
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218711
219119
|
pageIsFull.set(drawArea.index, true);
|
|
218712
|
-
|
|
219120
|
+
var isNew = false;
|
|
219121
|
+
|
|
219122
|
+
var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
|
|
219123
|
+
|
|
219124
|
+
var _this$getNextDrawArea2 = (0,slicedToArray/* default */.Z)(_this$getNextDrawArea, 2);
|
|
219125
|
+
|
|
219126
|
+
drawArea = _this$getNextDrawArea2[0];
|
|
219127
|
+
isNew = _this$getNextDrawArea2[1];
|
|
218713
219128
|
dTop = 0;
|
|
218714
219129
|
|
|
218715
219130
|
if (drawArea.allowAcrossPage) {
|
|
218716
219131
|
restHeight = drawArea.maxHeight - dTop;
|
|
218717
219132
|
}
|
|
219133
|
+
|
|
219134
|
+
if (!isNew) {
|
|
219135
|
+
break;
|
|
219136
|
+
}
|
|
218718
219137
|
}
|
|
218719
219138
|
}
|
|
218720
219139
|
|
|
@@ -218753,7 +219172,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218753
219172
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218754
219173
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218755
219174
|
pageIsFull.set(drawArea.index, true);
|
|
218756
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219175
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218757
219176
|
dTop = 0;
|
|
218758
219177
|
|
|
218759
219178
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218775,7 +219194,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218775
219194
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218776
219195
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage); // drawArea.stage.update();
|
|
218777
219196
|
|
|
218778
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219197
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218779
219198
|
dTop = 0;
|
|
218780
219199
|
|
|
218781
219200
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218799,7 +219218,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218799
219218
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218800
219219
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218801
219220
|
pageIsFull.set(drawArea.index, true);
|
|
218802
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219221
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218803
219222
|
dTop = 0;
|
|
218804
219223
|
|
|
218805
219224
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218879,7 +219298,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218879
219298
|
var index = this._drawMainDocs.indexOf(mainArea);
|
|
218880
219299
|
|
|
218881
219300
|
if (index === this._drawMainDocs.length - 1) {
|
|
218882
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219301
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
218883
219302
|
} else {
|
|
218884
219303
|
mainArea = this._drawMainDocs[index + 1];
|
|
218885
219304
|
}
|
|
@@ -219120,7 +219539,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219120
219539
|
var _index = this._drawMainDocs.indexOf(mainArea);
|
|
219121
219540
|
|
|
219122
219541
|
if (_index === this._drawMainDocs.length - 1) {
|
|
219123
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219542
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
219124
219543
|
} else {
|
|
219125
219544
|
this.updateDrawPage(drawArea.index);
|
|
219126
219545
|
mainArea = this._drawMainDocs[_index + 1];
|
|
@@ -219222,13 +219641,17 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219222
219641
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
219223
219642
|
|
|
219224
219643
|
|
|
219225
|
-
if (
|
|
219226
|
-
|
|
219227
|
-
|
|
219228
|
-
|
|
219644
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219645
|
+
// 启用绘制优化 默认开启
|
|
219646
|
+
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && !(hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPreview */.Dh.psPreview || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState.psPrint */.Dh.psPrint)) {
|
|
219647
|
+
if (drawArea.pageIndex > imaxViewPage) {
|
|
219648
|
+
this.addNeedUpdateArea(drawArea.pageIndex, drawArea, dRoots, dTop, startIndex, dRoots.length - 1);
|
|
219649
|
+
return;
|
|
219650
|
+
}
|
|
219229
219651
|
}
|
|
219230
219652
|
}
|
|
219231
219653
|
|
|
219654
|
+
this.clearAfterDTop(drawArea, dTop);
|
|
219232
219655
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219233
219656
|
this.afterAreaFinishPaint(drawArea);
|
|
219234
219657
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -219258,7 +219681,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219258
219681
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219259
219682
|
if (startIndex <= aEndLine) {
|
|
219260
219683
|
prevArea = drawArea;
|
|
219261
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219684
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
219262
219685
|
dTop = 0;
|
|
219263
219686
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight;
|
|
219264
219687
|
}
|
|
@@ -219643,16 +220066,15 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219643
220066
|
}
|
|
219644
220067
|
|
|
219645
220068
|
for (var j = 0; j < hoEditorFactory.drawTree.inViewPages.length; j++) {
|
|
219646
|
-
var
|
|
220069
|
+
var aPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.inViewPages[j]];
|
|
219647
220070
|
|
|
219648
|
-
if (
|
|
219649
|
-
|
|
219650
|
-
|
|
219651
|
-
this.updateDrawPage(_dPage.pageIndex);
|
|
220071
|
+
if (aPage.drawDomLevel && !aPage.drawDomLevel.stage) {
|
|
220072
|
+
aPage.drawDomLevel.bindStage();
|
|
220073
|
+
this.updateDrawPage(aPage.pageIndex);
|
|
219652
220074
|
}
|
|
219653
220075
|
|
|
219654
|
-
if (
|
|
219655
|
-
|
|
220076
|
+
if (aPage.drawSelectLevel && !aPage.drawSelectLevel.stage) {
|
|
220077
|
+
aPage.drawSelectLevel.bindStage();
|
|
219656
220078
|
}
|
|
219657
220079
|
}
|
|
219658
220080
|
}
|
|
@@ -219987,6 +220409,9 @@ var GenerateCode = /*#__PURE__*/function () {
|
|
|
219987
220409
|
|
|
219988
220410
|
return GenerateCode;
|
|
219989
220411
|
}();
|
|
220412
|
+
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
220413
|
+
var message_box = __webpack_require__(86769);
|
|
220414
|
+
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
219990
220415
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
219991
220416
|
var es_string_ends_with = __webpack_require__(27852);
|
|
219992
220417
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -220391,7 +220816,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220391
220816
|
key: "TransHTMLIMG",
|
|
220392
220817
|
value: function TransHTMLIMG(jnode, style) {
|
|
220393
220818
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
220394
|
-
var src = jquery_default()(jnode).attr("src") || "";
|
|
220819
|
+
var src = jquery_default()(jnode).attr("src") || "";
|
|
220820
|
+
|
|
220821
|
+
if (src.toString().substring(0, 5) == "file:") {
|
|
220822
|
+
return [];
|
|
220823
|
+
} //FIXME:这里测试从本地转入文件后转base64地提示无法从本地加载
|
|
220395
220824
|
//TODO:图片转base64
|
|
220396
220825
|
// const getImgToBase64 = (url: any, callback: any) => {//将图片转换为Base64
|
|
220397
220826
|
// const canvas = document.createElement('canvas');
|
|
@@ -220414,6 +220843,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220414
220843
|
// console.log(data);
|
|
220415
220844
|
// });
|
|
220416
220845
|
|
|
220846
|
+
|
|
220417
220847
|
var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
|
|
220418
220848
|
var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
|
|
220419
220849
|
var node = new ImageNode/* ImageNode */.H(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, null, BaseNode/* NodeType.ntImage */.Jq.ntImage, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).gernerateCode.generateID("IMG"), jquery_default()(jnode).attr("src") || "", Number(width), Number(height));
|
|
@@ -222599,8 +223029,11 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222599
223029
|
}
|
|
222600
223030
|
|
|
222601
223031
|
this._comments = [];
|
|
222602
|
-
|
|
222603
|
-
|
|
223032
|
+
|
|
223033
|
+
if (!isClearSign) {
|
|
223034
|
+
var comments = xx.comments;
|
|
223035
|
+
this._comments = comments.comment;
|
|
223036
|
+
} // if (xx.logs) {
|
|
222604
223037
|
// const logs = xx.logs;
|
|
222605
223038
|
// let logsArr = [];
|
|
222606
223039
|
// if (logs.log.length === undefined) {
|
|
@@ -222618,6 +223051,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
222618
223051
|
// }
|
|
222619
223052
|
// }
|
|
222620
223053
|
|
|
223054
|
+
|
|
222621
223055
|
hoEditorFactory.docTree.userHistories = [];
|
|
222622
223056
|
var histories = xx.userHistories;
|
|
222623
223057
|
var historiesArr = histories.userHistory;
|
|
@@ -224842,6 +225276,8 @@ var NodeInsertUndoUnit = __webpack_require__(11438);
|
|
|
224842
225276
|
var MedicalExpressionNode = __webpack_require__(43977);
|
|
224843
225277
|
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
224844
225278
|
var StagePosition = __webpack_require__(80691);
|
|
225279
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
225280
|
+
var commonParamList = __webpack_require__(33800);
|
|
224845
225281
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
224846
225282
|
|
|
224847
225283
|
|
|
@@ -224928,6 +225364,7 @@ var StagePosition = __webpack_require__(80691);
|
|
|
224928
225364
|
|
|
224929
225365
|
|
|
224930
225366
|
|
|
225367
|
+
|
|
224931
225368
|
|
|
224932
225369
|
|
|
224933
225370
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -231161,11 +231598,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231161
231598
|
}
|
|
231162
231599
|
}, {
|
|
231163
231600
|
key: "setHoEditorFactoryParams",
|
|
231164
|
-
value: function setHoEditorFactoryParams(params) {
|
|
231165
|
-
|
|
231166
|
-
|
|
231167
|
-
|
|
231168
|
-
|
|
231601
|
+
value: function setHoEditorFactoryParams(params, commonParams) {
|
|
231602
|
+
if (params) {
|
|
231603
|
+
var _hoEditorFactory4 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231604
|
+
|
|
231605
|
+
Object.keys(params).forEach(function (key) {
|
|
231606
|
+
_hoEditorFactory4[key] = params[key];
|
|
231607
|
+
});
|
|
231608
|
+
}
|
|
231609
|
+
|
|
231610
|
+
if (commonParams) {
|
|
231611
|
+
Object.keys(commonParams).forEach(function (key) {
|
|
231612
|
+
commonParamList/* commonParamList.set */.G.set(key, commonParams[key]);
|
|
231613
|
+
});
|
|
231614
|
+
}
|
|
231169
231615
|
}
|
|
231170
231616
|
}]);
|
|
231171
231617
|
|
|
@@ -234377,6 +234823,8 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
234377
234823
|
|
|
234378
234824
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
234379
234825
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
234826
|
+
var _window, _window$chrome, _window$chrome$webvie;
|
|
234827
|
+
|
|
234380
234828
|
(0,classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
234381
234829
|
|
|
234382
234830
|
this._intervalsTime = 30000; // 间隔时间 ms
|
|
@@ -234385,6 +234833,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234385
234833
|
|
|
234386
234834
|
this._storeName = 'web_list'; // 当前 key
|
|
234387
234835
|
|
|
234836
|
+
this._localXmlContent = ''; //当前缓存的xml文件列表
|
|
234837
|
+
|
|
234838
|
+
var _this = this;
|
|
234839
|
+
|
|
234388
234840
|
this._hoEditorFactoryID = hoEditorFactoryID; // 设置今天的 storeName
|
|
234389
234841
|
// this._storeName = String(new Date().getTime());
|
|
234390
234842
|
// 创建当前时段
|
|
@@ -234392,6 +234844,32 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234392
234844
|
// name: "_ho_web",
|
|
234393
234845
|
// storeName: this._storeName,
|
|
234394
234846
|
// });
|
|
234847
|
+
|
|
234848
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener("message", function (e) {
|
|
234849
|
+
var res = JSON.parse(e.data);
|
|
234850
|
+
|
|
234851
|
+
if (res.result == true && res.res.cmd == "GetList") {
|
|
234852
|
+
var _this$callBack;
|
|
234853
|
+
|
|
234854
|
+
_this._localXmlList = res.res.EMR;
|
|
234855
|
+
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
234856
|
+
}
|
|
234857
|
+
|
|
234858
|
+
;
|
|
234859
|
+
|
|
234860
|
+
if (res.result == true && res.res.cmd == "Load") {
|
|
234861
|
+
var _this$callBackForLoad;
|
|
234862
|
+
|
|
234863
|
+
_this._localXmlContent = res.res.EMR;
|
|
234864
|
+
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
234865
|
+
}
|
|
234866
|
+
|
|
234867
|
+
;
|
|
234868
|
+
|
|
234869
|
+
if (res.res.cmd == "save") {} else {
|
|
234870
|
+
return false;
|
|
234871
|
+
}
|
|
234872
|
+
});
|
|
234395
234873
|
} // set ho_web(value: any) {
|
|
234396
234874
|
// this._ho_web = value;
|
|
234397
234875
|
// }
|
|
@@ -234401,17 +234879,37 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234401
234879
|
key: "initHoWebSql",
|
|
234402
234880
|
value: function initHoWebSql() {
|
|
234403
234881
|
this._ho_web = localforage_default().createInstance({
|
|
234404
|
-
name:
|
|
234882
|
+
name: '_ho_web',
|
|
234405
234883
|
storeName: this._storeName
|
|
234406
234884
|
});
|
|
234407
234885
|
this._print_font = localforage_default().createInstance({
|
|
234408
|
-
name:
|
|
234409
|
-
storeName:
|
|
234886
|
+
name: '_ho_web',
|
|
234887
|
+
storeName: '_print_font'
|
|
234410
234888
|
});
|
|
234411
234889
|
this._cache_clear_time = localforage_default().createInstance({
|
|
234412
|
-
name:
|
|
234413
|
-
storeName:
|
|
234890
|
+
name: '_ho_web',
|
|
234891
|
+
storeName: '_cache_clear_time'
|
|
234414
234892
|
});
|
|
234893
|
+
} //获取localXmlList
|
|
234894
|
+
|
|
234895
|
+
}, {
|
|
234896
|
+
key: "getLocalXmlList",
|
|
234897
|
+
value: function getLocalXmlList(callBack) {
|
|
234898
|
+
var _window2, _window2$chrome, _window2$chrome$webvi;
|
|
234899
|
+
|
|
234900
|
+
this.callBack = callBack;
|
|
234901
|
+
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234902
|
+
var data = {
|
|
234903
|
+
exec: "emr",
|
|
234904
|
+
data: {
|
|
234905
|
+
cmd: "getlist",
|
|
234906
|
+
content: {
|
|
234907
|
+
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
234908
|
+
EMRName: hoEitfactory.docTree.docProperty.title
|
|
234909
|
+
}
|
|
234910
|
+
}
|
|
234911
|
+
};
|
|
234912
|
+
(_window2 = window) === null || _window2 === void 0 ? void 0 : (_window2$chrome = _window2.chrome) === null || _window2$chrome === void 0 ? void 0 : (_window2$chrome$webvi = _window2$chrome.webview) === null || _window2$chrome$webvi === void 0 ? void 0 : _window2$chrome$webvi.postMessage(data);
|
|
234415
234913
|
} // 获取key的数据 => { data, keyInfo }
|
|
234416
234914
|
|
|
234417
234915
|
}, {
|
|
@@ -234420,22 +234918,41 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234420
234918
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234421
234919
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234422
234920
|
return this._ho_web.getItem(this._key);
|
|
234921
|
+
} //获取Xml
|
|
234922
|
+
|
|
234923
|
+
}, {
|
|
234924
|
+
key: "loadLocalXml",
|
|
234925
|
+
value: function loadLocalXml(item, callBack) {
|
|
234926
|
+
var _window3, _window3$chrome, _window3$chrome$webvi;
|
|
234927
|
+
|
|
234928
|
+
this.callBackForLoad = callBack;
|
|
234929
|
+
var data = {
|
|
234930
|
+
exec: "emr",
|
|
234931
|
+
data: {
|
|
234932
|
+
cmd: "load",
|
|
234933
|
+
content: {
|
|
234934
|
+
PatientID: item.PatientID,
|
|
234935
|
+
FileName: item.FileName
|
|
234936
|
+
}
|
|
234937
|
+
}
|
|
234938
|
+
};
|
|
234939
|
+
(_window3 = window) === null || _window3 === void 0 ? void 0 : (_window3$chrome = _window3.chrome) === null || _window3$chrome === void 0 ? void 0 : (_window3$chrome$webvi = _window3$chrome.webview) === null || _window3$chrome$webvi === void 0 ? void 0 : _window3$chrome$webvi.postMessage(data);
|
|
234423
234940
|
}
|
|
234424
234941
|
}, {
|
|
234425
234942
|
key: "removeLocalStorage",
|
|
234426
234943
|
value: function removeLocalStorage(lastClearTime) {
|
|
234427
|
-
var
|
|
234944
|
+
var _this2 = this;
|
|
234428
234945
|
|
|
234429
234946
|
this._ho_web.keys().then(function (keys) {
|
|
234430
234947
|
keys.forEach(function (key) {
|
|
234431
|
-
|
|
234948
|
+
_this2._ho_web.getItem(key).then(function (value) {
|
|
234432
234949
|
if (Array.isArray(value)) {
|
|
234433
234950
|
if (new Date().getTime() - new Date(value[0].saveTime).getTime()) {
|
|
234434
|
-
|
|
234951
|
+
_this2._ho_web.removeItem(key);
|
|
234435
234952
|
}
|
|
234436
234953
|
} else {
|
|
234437
234954
|
if (new Date().getTime() - new Date(value.saveTime).getTime()) {
|
|
234438
|
-
|
|
234955
|
+
_this2._ho_web.removeItem(key);
|
|
234439
234956
|
}
|
|
234440
234957
|
}
|
|
234441
234958
|
});
|
|
@@ -234445,93 +234962,114 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234445
234962
|
}, {
|
|
234446
234963
|
key: "clearLocalStorage",
|
|
234447
234964
|
value: function clearLocalStorage() {
|
|
234448
|
-
var
|
|
234965
|
+
var _this3 = this;
|
|
234449
234966
|
|
|
234450
234967
|
this._ho_web.clear().then(function () {});
|
|
234451
234968
|
}
|
|
234452
234969
|
}, {
|
|
234453
234970
|
key: "autoSaveLocalStorage",
|
|
234454
234971
|
value: function autoSaveLocalStorage() {
|
|
234455
|
-
var
|
|
234972
|
+
var _window4,
|
|
234973
|
+
_window4$chrome,
|
|
234974
|
+
_this4 = this;
|
|
234456
234975
|
|
|
234457
234976
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
234458
234977
|
return;
|
|
234459
234978
|
}
|
|
234460
234979
|
|
|
234980
|
+
var HoBrowser = (_window4 = window) === null || _window4 === void 0 ? void 0 : (_window4$chrome = _window4.chrome) === null || _window4$chrome === void 0 ? void 0 : _window4$chrome.webview;
|
|
234981
|
+
var saveTime = (0,util/* dateFormat */.vc)(new Date());
|
|
234461
234982
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234462
234983
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234463
234984
|
|
|
234464
|
-
|
|
234465
|
-
|
|
234466
|
-
|
|
234467
|
-
if (
|
|
234468
|
-
|
|
234469
|
-
|
|
234470
|
-
|
|
234471
|
-
|
|
234985
|
+
if (HoBrowser) {
|
|
234986
|
+
this._lastSaveTime = new Date(saveTime).getTime();
|
|
234987
|
+
|
|
234988
|
+
if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
|
|
234989
|
+
var data = {
|
|
234990
|
+
exec: "emr",
|
|
234991
|
+
data: {
|
|
234992
|
+
cmd: "save",
|
|
234993
|
+
content: {
|
|
234994
|
+
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
234995
|
+
EMRName: hoEitfactory.docTree.docProperty.title,
|
|
234996
|
+
EMR: hoEitfactory.structureConvert.doc2Xml('xml', true)
|
|
234997
|
+
}
|
|
234998
|
+
}
|
|
234999
|
+
};
|
|
235000
|
+
window.chrome.webview.postMessage(data);
|
|
235001
|
+
}
|
|
235002
|
+
} else {
|
|
235003
|
+
this._ho_web.getItem(this._key).then(function (historyLogs) {
|
|
235004
|
+
if (!historyLogs) {
|
|
235005
|
+
_this4._lastSaveTime = new Date(saveTime).getTime();
|
|
234472
235006
|
} else {
|
|
234473
|
-
|
|
234474
|
-
|
|
235007
|
+
if (Array.isArray(historyLogs)) {
|
|
235008
|
+
_this4._lastSaveTime = new Date(historyLogs[0].saveTime).getTime();
|
|
235009
|
+
} else {
|
|
235010
|
+
_this4._lastSaveTime = new Date(historyLogs.saveTime).getTime();
|
|
235011
|
+
}
|
|
234475
235012
|
|
|
234476
|
-
|
|
234477
|
-
|
|
235013
|
+
if (new Date().getTime() - _this4._lastSaveTime <= _this4._intervalsTime) {
|
|
235014
|
+
return;
|
|
235015
|
+
}
|
|
234478
235016
|
}
|
|
234479
|
-
}
|
|
234480
235017
|
|
|
234481
|
-
|
|
235018
|
+
var logs = (0,toConsumableArray/* default */.Z)(hoEitfactory.domController.getLogs());
|
|
234482
235019
|
|
|
234483
|
-
|
|
234484
|
-
|
|
234485
|
-
|
|
234486
|
-
|
|
234487
|
-
|
|
234488
|
-
|
|
234489
|
-
|
|
234490
|
-
|
|
235020
|
+
if (historyLogs) {
|
|
235021
|
+
if (Array.isArray(historyLogs)) {
|
|
235022
|
+
historyLogs.unshift({
|
|
235023
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
235024
|
+
saveTime: saveTime,
|
|
235025
|
+
logs: logs
|
|
235026
|
+
});
|
|
235027
|
+
if (historyLogs.length === 3) historyLogs.pop();
|
|
234491
235028
|
|
|
234492
|
-
|
|
235029
|
+
_this4._ho_web.setItem(_this4._key, historyLogs);
|
|
235030
|
+
} else {
|
|
235031
|
+
var arr = [];
|
|
235032
|
+
arr.push({
|
|
235033
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
235034
|
+
saveTime: saveTime,
|
|
235035
|
+
logs: logs
|
|
235036
|
+
});
|
|
235037
|
+
arr.push(historyLogs);
|
|
235038
|
+
|
|
235039
|
+
_this4._ho_web.setItem(_this4._key, arr);
|
|
235040
|
+
}
|
|
234493
235041
|
} else {
|
|
234494
|
-
var
|
|
234495
|
-
|
|
234496
|
-
|
|
235042
|
+
var _arr = [];
|
|
235043
|
+
|
|
235044
|
+
_arr.push({
|
|
235045
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
234497
235046
|
saveTime: saveTime,
|
|
234498
235047
|
logs: logs
|
|
234499
235048
|
});
|
|
234500
|
-
arr.push(historyLogs);
|
|
234501
235049
|
|
|
234502
|
-
|
|
235050
|
+
_this4._ho_web.setItem(_this4._key, _arr);
|
|
234503
235051
|
}
|
|
234504
|
-
}
|
|
234505
|
-
|
|
234506
|
-
|
|
234507
|
-
_arr.push({
|
|
234508
|
-
xml: hoEitfactory.structureConvert.doc2Xml("xml", true),
|
|
234509
|
-
saveTime: saveTime,
|
|
234510
|
-
logs: logs
|
|
234511
|
-
});
|
|
234512
|
-
|
|
234513
|
-
_this3._ho_web.setItem(_this3._key, _arr);
|
|
234514
|
-
}
|
|
235052
|
+
});
|
|
235053
|
+
}
|
|
234515
235054
|
|
|
234516
|
-
|
|
234517
|
-
|
|
235055
|
+
this._cache_clear_time.getItem('_cache_clear_time').then(function (lastClearTime) {
|
|
235056
|
+
var _lastClearTime = lastClearTime;
|
|
234518
235057
|
|
|
234519
|
-
|
|
234520
|
-
|
|
235058
|
+
if (!lastClearTime) {
|
|
235059
|
+
_lastClearTime = new Date().getTime();
|
|
234521
235060
|
|
|
234522
|
-
|
|
234523
|
-
|
|
235061
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', _lastClearTime);
|
|
235062
|
+
}
|
|
234524
235063
|
|
|
234525
|
-
|
|
235064
|
+
_this4._lastClearTime = _lastClearTime;
|
|
234526
235065
|
|
|
234527
|
-
|
|
234528
|
-
|
|
235066
|
+
if (new Date().getTime() - lastClearTime >= _this4._expirationTime) {
|
|
235067
|
+
_this4.removeLocalStorage(lastClearTime);
|
|
234529
235068
|
|
|
234530
|
-
|
|
234531
|
-
|
|
234532
|
-
|
|
234533
|
-
|
|
234534
|
-
});
|
|
235069
|
+
setTimeout(function () {
|
|
235070
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', new Date().getTime());
|
|
235071
|
+
}, 0);
|
|
235072
|
+
}
|
|
234535
235073
|
});
|
|
234536
235074
|
}
|
|
234537
235075
|
}, {
|
|
@@ -234599,6 +235137,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234599
235137
|
|
|
234600
235138
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
234601
235139
|
|
|
235140
|
+
this._isUseDrawingOptimization = true; // 是否启用绘制优化 默认启用
|
|
235141
|
+
|
|
234602
235142
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
234603
235143
|
|
|
234604
235144
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -235368,6 +235908,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235368
235908
|
this._isCanUseTableProperty = value;
|
|
235369
235909
|
}
|
|
235370
235910
|
}
|
|
235911
|
+
}, {
|
|
235912
|
+
key: "isUseDrawingOptimization",
|
|
235913
|
+
get: function get() {
|
|
235914
|
+
return this._isUseDrawingOptimization;
|
|
235915
|
+
},
|
|
235916
|
+
set: function set(value) {
|
|
235917
|
+
if (this._isUseDrawingOptimization !== value) {
|
|
235918
|
+
this._isUseDrawingOptimization = value;
|
|
235919
|
+
}
|
|
235920
|
+
}
|
|
235371
235921
|
}, {
|
|
235372
235922
|
key: "clear",
|
|
235373
235923
|
value: function clear() {
|
|
@@ -235529,7 +236079,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
235529
236079
|
|
|
235530
236080
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
235531
236081
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
235532
|
-
var ControlModal = __webpack_require__(
|
|
236082
|
+
var ControlModal = __webpack_require__(71885);
|
|
235533
236083
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
235534
236084
|
var FindReplace = __webpack_require__(80568);
|
|
235535
236085
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -236587,10 +237137,14 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236587
237137
|
default: undefined
|
|
236588
237138
|
},
|
|
236589
237139
|
customProperty: {
|
|
236590
|
-
default: function _default() {
|
|
237140
|
+
default: function _default() {
|
|
237141
|
+
return {};
|
|
237142
|
+
}
|
|
236591
237143
|
},
|
|
236592
237144
|
paragraphCustomProperty: {
|
|
236593
|
-
default: function _default() {
|
|
237145
|
+
default: function _default() {
|
|
237146
|
+
return {};
|
|
237147
|
+
}
|
|
236594
237148
|
},
|
|
236595
237149
|
deleteImageNodeList: {
|
|
236596
237150
|
default: undefined
|
|
@@ -237358,9 +237912,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
237358
237912
|
)
|
|
237359
237913
|
|
|
237360
237914
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
237361
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
237362
|
-
var
|
|
237363
|
-
var
|
|
237915
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=8cc7b3e4&
|
|
237916
|
+
var ToolBarvue_type_template_id_8cc7b3e4_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "显示批注" : "隐藏批注"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
|
|
237917
|
+
var ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns = []
|
|
237364
237918
|
|
|
237365
237919
|
|
|
237366
237920
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=beffa98c&scoped=true&
|
|
@@ -240305,9 +240859,9 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240305
240859
|
)
|
|
240306
240860
|
|
|
240307
240861
|
/* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
|
|
240308
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolTable.vue?vue&type=template&id=
|
|
240309
|
-
var
|
|
240310
|
-
var
|
|
240862
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolTable.vue?vue&type=template&id=7df5f581&
|
|
240863
|
+
var ToolTablevue_type_template_id_7df5f581_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('el-submenu',{attrs:{"popper-class":"insert-menus","index":"tables"}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("表格")])]),_c('el-submenu',{attrs:{"index":"insertTable","popper-append-to-body":true}},[_c('template',{slot:"title"},[_c('svg',{attrs:{"xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16","viewBox":"0 0 16 16"}},[_c('g',{attrs:{"fill-rule":"evenodd","transform":"translate(-4 -4)"}},[_c('path',{attrs:{"stroke":"none","d":"M4,7 C4,5.34314575 5.34314575,4 7,4 L17,4 C18.6568542,4 20,5.34314575 20,7 L20,17 C20,18.6568542 18.6568542,20 17,20 L7,20 C5.34314575,20 4,18.6568542 4,17 L4,7 Z M7,6 C6.44771525,6 6,6.44771525 6,7 L6,11 L11,11 L11,6 L7,6 Z M13,6 L13,11 L18,11 L18,7 C18,6.44771525 17.5522847,6 17,6 L13,6 Z M18,13 L13,13 L13,18 L17,18 C17.5522847,18 18,17.5522847 18,17 L18,13 Z M11,18 L11,13 L6,13 L6,17 C6,17.5522847 6.44771525,18 7,18 L11,18 Z"}})])]),_c('span',[_vm._v("插入表格")])]),_c('el-menu-item',{staticClass:"table-menus",attrs:{"index":"0"}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(_vm._s(_vm.rows ? _vm.rows + ' x ' + _vm.columns : '插入')+" 表格")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)}),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v("自定义行列数")])],2)])],2),(_vm.isOpen)?_c('TableFeatures',{attrs:{"className":"insert-rows-columns-menu","vueController":_vm.vueController,"table":_vm.table},on:{"closeMenu":_vm.closeMenu}}):_vm._e(),_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"200px","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")]),_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")])],1)],1)],2)}
|
|
240864
|
+
var ToolTablevue_type_template_id_7df5f581_staticRenderFns = []
|
|
240311
240865
|
|
|
240312
240866
|
|
|
240313
240867
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/TableFeatures.vue?vue&type=template&id=624de6d8&
|
|
@@ -240529,7 +241083,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240529
241083
|
rows: 1,
|
|
240530
241084
|
columns: 1
|
|
240531
241085
|
};
|
|
240532
|
-
_this.formLabelWidth =
|
|
241086
|
+
_this.formLabelWidth = '72px';
|
|
240533
241087
|
return _this;
|
|
240534
241088
|
}
|
|
240535
241089
|
|
|
@@ -240559,7 +241113,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240559
241113
|
value: function mouse(e) {
|
|
240560
241114
|
var target = e.target;
|
|
240561
241115
|
|
|
240562
|
-
if (target.nodeName ===
|
|
241116
|
+
if (target.nodeName === 'SPAN') {
|
|
240563
241117
|
var data = target.dataset;
|
|
240564
241118
|
this.rows = parseInt(data.row);
|
|
240565
241119
|
this.columns = parseInt(data.column);
|
|
@@ -240574,7 +241128,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240574
241128
|
value: function touch(e) {
|
|
240575
241129
|
var ele = document.elementFromPoint(e.changedTouches[0].pageX, e.changedTouches[0].pageY);
|
|
240576
241130
|
|
|
240577
|
-
if (ele.nodeName ===
|
|
241131
|
+
if (ele.nodeName === 'SPAN') {
|
|
240578
241132
|
var data = ele.dataset;
|
|
240579
241133
|
this.rows = parseInt(data.row);
|
|
240580
241134
|
this.columns = parseInt(data.column);
|
|
@@ -240595,7 +241149,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240595
241149
|
}, {
|
|
240596
241150
|
key: "closeMenu",
|
|
240597
241151
|
value: function closeMenu() {
|
|
240598
|
-
this.$emit(
|
|
241152
|
+
this.$emit('closeMenu');
|
|
240599
241153
|
}
|
|
240600
241154
|
}]);
|
|
240601
241155
|
|
|
@@ -240609,7 +241163,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240609
241163
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolTables.prototype, "isOpen", void 0);
|
|
240610
241164
|
|
|
240611
241165
|
ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
240612
|
-
name:
|
|
241166
|
+
name: 'ToolTables',
|
|
240613
241167
|
components: {
|
|
240614
241168
|
TableFeatures: toolbar_TableFeatures
|
|
240615
241169
|
}
|
|
@@ -240633,8 +241187,8 @@ ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Compo
|
|
|
240633
241187
|
|
|
240634
241188
|
var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
240635
241189
|
toolbar_ToolTablevue_type_script_lang_ts_,
|
|
240636
|
-
|
|
240637
|
-
|
|
241190
|
+
ToolTablevue_type_template_id_7df5f581_render,
|
|
241191
|
+
ToolTablevue_type_template_id_7df5f581_staticRenderFns,
|
|
240638
241192
|
false,
|
|
240639
241193
|
null,
|
|
240640
241194
|
null,
|
|
@@ -240934,9 +241488,9 @@ var UploadFile_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240934
241488
|
)
|
|
240935
241489
|
|
|
240936
241490
|
/* harmony default export */ var toolbar_UploadFile = (UploadFile_component.exports);
|
|
240937
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=template&id=
|
|
240938
|
-
var
|
|
240939
|
-
var
|
|
241491
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=template&id=8d9c8a42&scoped=true&
|
|
241492
|
+
var HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{staticClass:"sub-bar-items item-history-logs"},[_c('span',{staticStyle:{"padding":"0 10px"},on:{"click":_vm.openHistoryLogs}},[_vm._v("历史记录")]),(_vm.showHistoryLogs && (_vm.historyLog || _vm.xmlLog))?_c('div',{staticClass:"document-item animation-in"},[_c('p',{staticStyle:{"text-align":"left","border-bottom":"1px solid #ccc"}},[_c('i',{staticClass:"el-icon-circle-close"}),_c('span',{on:{"click":_vm.closeHistoryLogs}},[_vm._v("关闭历史记录")])]),(Array.isArray(_vm.historyLog) && _vm.historyLog.length > 0)?_c('ul',_vm._l((_vm.historyLog),function(history,auto_save_index){return _c('li',{key:history.saveTime + Math.random(0, 1)},[_c('div',[_c('p',{staticClass:"flex-rows"},[_c('span',{staticStyle:{"padding-left":"4px"}},[_vm._v("缓存时间:"+_vm._s(history.saveTime))]),_c('span',{staticClass:"cover",on:{"click":function($event){return _vm.manualSaveLocalStorage(auto_save_index)}}},[_vm._v("恢复")])]),_vm._l((history.logs),function(logs){return [_c('p',{key:logs.operTime},[_c('span',[_vm._v("操作类型:"+_vm._s(logs._operType))]),_c('span',[_vm._v("操作时间:"+_vm._s(_vm.dateFormat(logs._operTime)))]),_c('span',[_vm._v("操作内容:"+_vm._s(logs._operText))])])]})],2)])}),0):(Array.isArray(_vm.xmlLog) && _vm.xmlLog.length > 0)?_c('ul',_vm._l((_vm.xmlLog),function(xml){return _c('li',{key:xml.SaveDate + Math.random(0, 1)},[_c('div',[_c('p',{staticClass:"flex-rows",staticStyle:{"display":"flex","align-items":"center"}},[_c('span',{staticStyle:{"padding-left":"4px"}},[_c('p',[_vm._v("文件名称:"+_vm._s(xml.FileName))]),_c('p',[_vm._v("缓存时间:"+_vm._s(xml.SaveDate))])]),_c('span',{staticClass:"cover",on:{"click":function($event){return _vm.manualSaveLocalXml(xml)}}},[_vm._v("恢复")])])])])}),0):_vm._e()]):_vm._e()])}
|
|
241493
|
+
var HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns = []
|
|
240940
241494
|
|
|
240941
241495
|
|
|
240942
241496
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
@@ -240964,12 +241518,12 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240964
241518
|
_this = _super.apply(this, arguments);
|
|
240965
241519
|
_this.showHistoryLogs = false;
|
|
240966
241520
|
_this.historyLog = null;
|
|
241521
|
+
_this.xmlLog = null;
|
|
241522
|
+
_this.xmlContent = '';
|
|
240967
241523
|
_this.dateFormat = util/* dateFormat */.vc;
|
|
240968
241524
|
return _this;
|
|
240969
241525
|
} // created() {
|
|
240970
|
-
//
|
|
240971
|
-
// console.log(e);
|
|
240972
|
-
// });
|
|
241526
|
+
// console.log(this.logs);
|
|
240973
241527
|
// }
|
|
240974
241528
|
// 撤销恢复
|
|
240975
241529
|
// public cancelManualSaveLocalStorage(auto_save_index: number) {
|
|
@@ -240988,6 +241542,17 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240988
241542
|
_this2.vueController.openXml(historyLog[auto_save_index].xml);
|
|
240989
241543
|
});
|
|
240990
241544
|
}
|
|
241545
|
+
}, {
|
|
241546
|
+
key: "manualSaveLocalXml",
|
|
241547
|
+
value: function manualSaveLocalXml(item) {
|
|
241548
|
+
this.vueController.hoLocalStorage().loadLocalXml(item, this.getXmlContent);
|
|
241549
|
+
}
|
|
241550
|
+
}, {
|
|
241551
|
+
key: "getXmlContent",
|
|
241552
|
+
value: function getXmlContent(xmlContent) {
|
|
241553
|
+
this.xmlContent = xmlContent;
|
|
241554
|
+
this.vueController.openXml(this.xmlContent);
|
|
241555
|
+
}
|
|
240991
241556
|
}, {
|
|
240992
241557
|
key: "getLocalStorage",
|
|
240993
241558
|
value: function getLocalStorage() {
|
|
@@ -240995,7 +241560,7 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
240995
241560
|
|
|
240996
241561
|
this.historyLog = [];
|
|
240997
241562
|
this.vueController.hoLocalStorage().getLocalStorage().then(function (historyLog) {
|
|
240998
|
-
historyLog.forEach(function (log) {
|
|
241563
|
+
historyLog === null || historyLog === void 0 ? void 0 : historyLog.forEach(function (log) {
|
|
240999
241564
|
_this3.historyLog.push({
|
|
241000
241565
|
saveTime: log.saveTime,
|
|
241001
241566
|
logs: log.logs
|
|
@@ -241006,8 +241571,20 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241006
241571
|
}, {
|
|
241007
241572
|
key: "openHistoryLogs",
|
|
241008
241573
|
value: function openHistoryLogs() {
|
|
241574
|
+
var _window,
|
|
241575
|
+
_window$chrome,
|
|
241576
|
+
_this4 = this;
|
|
241577
|
+
|
|
241578
|
+
var HoBrowser = (_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : _window$chrome.webview;
|
|
241009
241579
|
this.showHistoryLogs = !this.showHistoryLogs;
|
|
241010
|
-
|
|
241580
|
+
|
|
241581
|
+
if (HoBrowser) {
|
|
241582
|
+
this.vueController.hoLocalStorage().getLocalXmlList(function (logs) {
|
|
241583
|
+
_this4.xmlLog = logs;
|
|
241584
|
+
});
|
|
241585
|
+
} else {
|
|
241586
|
+
this.getLocalStorage();
|
|
241587
|
+
}
|
|
241011
241588
|
}
|
|
241012
241589
|
}, {
|
|
241013
241590
|
key: "closeHistoryLogs",
|
|
@@ -241028,10 +241605,10 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241028
241605
|
/* harmony default export */ var HistoryLogsvue_type_script_lang_ts_ = (HistoryLogs);
|
|
241029
241606
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
241030
241607
|
/* harmony default export */ var insert_HistoryLogsvue_type_script_lang_ts_ = (HistoryLogsvue_type_script_lang_ts_);
|
|
241031
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=
|
|
241608
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=8d9c8a42&lang=scss&scoped=true&
|
|
241032
241609
|
// extracted by mini-css-extract-plugin
|
|
241033
241610
|
|
|
241034
|
-
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=
|
|
241611
|
+
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=style&index=0&id=8d9c8a42&lang=scss&scoped=true&
|
|
241035
241612
|
|
|
241036
241613
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue
|
|
241037
241614
|
|
|
@@ -241044,11 +241621,11 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241044
241621
|
|
|
241045
241622
|
var HistoryLogs_component = (0,componentNormalizer/* default */.Z)(
|
|
241046
241623
|
insert_HistoryLogsvue_type_script_lang_ts_,
|
|
241047
|
-
|
|
241048
|
-
|
|
241624
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render,
|
|
241625
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns,
|
|
241049
241626
|
false,
|
|
241050
241627
|
null,
|
|
241051
|
-
"
|
|
241628
|
+
"8d9c8a42",
|
|
241052
241629
|
null
|
|
241053
241630
|
|
|
241054
241631
|
)
|
|
@@ -242453,14 +243030,14 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242453
243030
|
)
|
|
242454
243031
|
|
|
242455
243032
|
/* harmony default export */ var insert_ToolControl = (ToolControl_component.exports);
|
|
242456
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=
|
|
242457
|
-
var
|
|
242458
|
-
var
|
|
243033
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/ToolTable.vue?vue&type=template&id=3884e3aa&
|
|
243034
|
+
var ToolTablevue_type_template_id_3884e3aa_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('ul',{staticClass:"sub-bar table-bar"},[_c('el-dialog',{attrs:{"title":"自定义表格行列","width":"320px","visible":_vm.dialogFormVisible,"top":"200px","append-to-body":"","center":""},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('el-form',{attrs:{"model":_vm.form}},[_c('el-form-item',{attrs:{"label":"行数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.rows),callback:function ($$v) {_vm.$set(_vm.form, "rows", $$v)},expression:"form.rows"}})],1),_c('el-form-item',{attrs:{"label":"列数","label-width":_vm.formLabelWidth}},[_c('el-input-number',{attrs:{"precision":0,"min":1,"controls":false,"autocomplete":"off"},model:{value:(_vm.form.columns),callback:function ($$v) {_vm.$set(_vm.form, "columns", $$v)},expression:"form.columns"}})],1)],1),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)],1),_vm._t("insertBefore"),(_vm.table.insertTable)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("插入表格")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{staticClass:"ho-insert-table-item",attrs:{"disabled":""}},[_c('div',{staticClass:"columns",on:{"mouseleave":_vm.clearData}},[_c('p',{staticClass:"table-title"},[_vm._v(_vm._s(_vm.rows ? _vm.rows + ' x ' + _vm.columns : '插入')+" 表格")]),_vm._l((10),function(row_index){return _c('div',{key:'row_' + row_index,staticClass:"rows",on:{"mousemove":_vm.mouse,"click":_vm.createdTables}},_vm._l((10),function(column_index){return _c('span',{key:'column_index' + column_index,class:row_index <= _vm.rows && column_index <= _vm.columns ? 'selected' : '',attrs:{"data-column":column_index,"data-row":row_index},on:{"touchstart":_vm.touch,"touchmove":_vm.touch,"touchend":_vm.touchend}})}),0)})],2),_c('p',{staticClass:"table-bottom-title",on:{"click":function($event){_vm.dialogFormVisible = true}}},[_vm._v("自定义行列数")])])],1)],1)],1):_vm._e(),_c('HoTableFeatures',{attrs:{"vueController":_vm.vueController,"tableProperty":_vm.tableProperty,"dropdownClassName":_vm.dropdownClassName,"table":_vm.table},on:{"setModalStatus":_vm.setModalStatus}}),_vm._t("hoTableItem")],2)}
|
|
243035
|
+
var ToolTablevue_type_template_id_3884e3aa_staticRenderFns = []
|
|
242459
243036
|
|
|
242460
243037
|
|
|
242461
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=
|
|
242462
|
-
var HoTableFeaturesvue_type_template_id_02d0c560_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
242463
|
-
var
|
|
243038
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=template&id=2e225ab7&
|
|
243039
|
+
var HoTableFeaturesvue_type_template_id_2e225ab7_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
243040
|
+
var HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns = []
|
|
242464
243041
|
|
|
242465
243042
|
|
|
242466
243043
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
|
|
@@ -242672,7 +243249,6 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242672
243249
|
data: function data() {
|
|
242673
243250
|
return {
|
|
242674
243251
|
hoTableFeatures: null,
|
|
242675
|
-
tableFormulaValue: [],
|
|
242676
243252
|
tableCellCode: false,
|
|
242677
243253
|
dialogFormVisible: false,
|
|
242678
243254
|
dialogFormTitle: '',
|
|
@@ -242788,9 +243364,10 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242788
243364
|
},
|
|
242789
243365
|
// 打开计算公式熟入弹窗
|
|
242790
243366
|
openFormula: function openFormula(params) {
|
|
242791
|
-
this.dialogFormVisible = true;
|
|
242792
|
-
this.dialogFormTitle = params[0];
|
|
242793
|
-
this.formula = params[1];
|
|
243367
|
+
// this.dialogFormVisible = true;
|
|
243368
|
+
// this.dialogFormTitle = params[0];
|
|
243369
|
+
// this.formula = params[1];
|
|
243370
|
+
this.$emit('setModalStatus', ['table-formula', 'add', params]);
|
|
242794
243371
|
},
|
|
242795
243372
|
// 计算公式
|
|
242796
243373
|
sure: function sure() {
|
|
@@ -242864,8 +243441,8 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242864
243441
|
|
|
242865
243442
|
var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
242866
243443
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
242867
|
-
|
|
242868
|
-
|
|
243444
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_render,
|
|
243445
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns,
|
|
242869
243446
|
false,
|
|
242870
243447
|
null,
|
|
242871
243448
|
null,
|
|
@@ -243009,6 +243586,9 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243009
243586
|
},
|
|
243010
243587
|
closeMenu: function closeMenu() {
|
|
243011
243588
|
this.$emit('closeMenu');
|
|
243589
|
+
},
|
|
243590
|
+
setModalStatus: function setModalStatus(str) {
|
|
243591
|
+
this.$emit('setModalStatus', str);
|
|
243012
243592
|
}
|
|
243013
243593
|
}
|
|
243014
243594
|
});
|
|
@@ -243030,8 +243610,8 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243030
243610
|
|
|
243031
243611
|
var insert_ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
243032
243612
|
insert_ToolTablevue_type_script_lang_js_,
|
|
243033
|
-
|
|
243034
|
-
|
|
243613
|
+
ToolTablevue_type_template_id_3884e3aa_render,
|
|
243614
|
+
ToolTablevue_type_template_id_3884e3aa_staticRenderFns,
|
|
243035
243615
|
false,
|
|
243036
243616
|
null,
|
|
243037
243617
|
null,
|
|
@@ -243687,8 +244267,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
243687
244267
|
|
|
243688
244268
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
243689
244269
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
243690
|
-
|
|
243691
|
-
|
|
244270
|
+
ToolBarvue_type_template_id_8cc7b3e4_render,
|
|
244271
|
+
ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns,
|
|
243692
244272
|
false,
|
|
243693
244273
|
null,
|
|
243694
244274
|
null,
|