hoeditor-web 2.0.90 → 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 +878 -339
- package/lib/hoeditor.css +827 -2
- package/lib/hoeditor.umd.js +878 -339
- 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
|
|
|
@@ -11132,9 +11131,9 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11132
11131
|
this.isCanSearch = true;
|
|
11133
11132
|
}
|
|
11134
11133
|
|
|
11135
|
-
var _height = this.poperList.length * 36 + 36;
|
|
11134
|
+
var _height = this.poperList.length * 36 + 72; // if (this.isAllowMultiSelect) height += 36;
|
|
11135
|
+
|
|
11136
11136
|
|
|
11137
|
-
if (this.isAllowMultiSelect) _height += 36;
|
|
11138
11137
|
if (this.isCanSearch) _height += 28;
|
|
11139
11138
|
|
|
11140
11139
|
if (_height < 360) {
|
|
@@ -11287,10 +11286,10 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11287
11286
|
});
|
|
11288
11287
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11289
11288
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11290
|
-
;// 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&
|
|
11291
11290
|
// extracted by mini-css-extract-plugin
|
|
11292
11291
|
|
|
11293
|
-
;// 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&
|
|
11294
11293
|
|
|
11295
11294
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11296
11295
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11309,7 +11308,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11309
11308
|
staticRenderFns,
|
|
11310
11309
|
false,
|
|
11311
11310
|
null,
|
|
11312
|
-
"
|
|
11311
|
+
"7fecbf90",
|
|
11313
11312
|
null
|
|
11314
11313
|
|
|
11315
11314
|
)
|
|
@@ -12474,6 +12473,305 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
12474
12473
|
|
|
12475
12474
|
/***/ }),
|
|
12476
12475
|
|
|
12476
|
+
/***/ 45302:
|
|
12477
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12478
|
+
|
|
12479
|
+
"use strict";
|
|
12480
|
+
// ESM COMPAT FLAG
|
|
12481
|
+
__webpack_require__.r(__webpack_exports__);
|
|
12482
|
+
|
|
12483
|
+
// EXPORTS
|
|
12484
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
12485
|
+
"default": function() { return /* binding */ table_TableFormula; }
|
|
12486
|
+
});
|
|
12487
|
+
|
|
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)])}
|
|
12490
|
+
var staticRenderFns = []
|
|
12491
|
+
|
|
12492
|
+
|
|
12493
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
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);
|
|
12497
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
12498
|
+
var es_array_filter = __webpack_require__(57327);
|
|
12499
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.to-string.js
|
|
12500
|
+
var es_object_to_string = __webpack_require__(41539);
|
|
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);
|
|
12509
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
12510
|
+
var es_json_stringify = __webpack_require__(38862);
|
|
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
|
+
|
|
12515
|
+
|
|
12516
|
+
|
|
12517
|
+
|
|
12518
|
+
|
|
12519
|
+
|
|
12520
|
+
|
|
12521
|
+
|
|
12522
|
+
|
|
12523
|
+
//
|
|
12524
|
+
//
|
|
12525
|
+
//
|
|
12526
|
+
//
|
|
12527
|
+
//
|
|
12528
|
+
//
|
|
12529
|
+
//
|
|
12530
|
+
//
|
|
12531
|
+
//
|
|
12532
|
+
//
|
|
12533
|
+
//
|
|
12534
|
+
//
|
|
12535
|
+
//
|
|
12536
|
+
//
|
|
12537
|
+
//
|
|
12538
|
+
//
|
|
12539
|
+
//
|
|
12540
|
+
//
|
|
12541
|
+
//
|
|
12542
|
+
//
|
|
12543
|
+
//
|
|
12544
|
+
//
|
|
12545
|
+
//
|
|
12546
|
+
//
|
|
12547
|
+
//
|
|
12548
|
+
//
|
|
12549
|
+
//
|
|
12550
|
+
//
|
|
12551
|
+
//
|
|
12552
|
+
//
|
|
12553
|
+
//
|
|
12554
|
+
//
|
|
12555
|
+
//
|
|
12556
|
+
//
|
|
12557
|
+
//
|
|
12558
|
+
//
|
|
12559
|
+
//
|
|
12560
|
+
//
|
|
12561
|
+
//
|
|
12562
|
+
//
|
|
12563
|
+
//
|
|
12564
|
+
//
|
|
12565
|
+
//
|
|
12566
|
+
//
|
|
12567
|
+
//
|
|
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
|
+
|
|
12477
12775
|
/***/ 1527:
|
|
12478
12776
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
12479
12777
|
|
|
@@ -16036,6 +16334,36 @@ var HOEditorFactorys = /*#__PURE__*/function () {
|
|
|
16036
16334
|
return HOEditorFactorys;
|
|
16037
16335
|
}();
|
|
16038
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
|
+
|
|
16039
16367
|
/***/ }),
|
|
16040
16368
|
|
|
16041
16369
|
/***/ 11650:
|
|
@@ -26875,7 +27203,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26875
27203
|
aPromise = aPromise.then(function (res) {
|
|
26876
27204
|
strPath = res;
|
|
26877
27205
|
return new Promise(function (resolve, reject) {
|
|
26878
|
-
if (text === '') {
|
|
27206
|
+
if (text === '' && index < lines.length - 1) {
|
|
26879
27207
|
strPath = insertParagraph(strPath);
|
|
26880
27208
|
resolve(strPath);
|
|
26881
27209
|
} else {
|
|
@@ -54932,7 +55260,7 @@ var TextNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
54932
55260
|
this.styleIndex = 0;
|
|
54933
55261
|
}
|
|
54934
55262
|
|
|
54935
|
-
if (
|
|
55263
|
+
if (!isCopy && combineStyle.script !== 0) {
|
|
54936
55264
|
if (combineStyle.script === 1) {
|
|
54937
55265
|
copytxt = "<下标>" + copytxt + "</下标>";
|
|
54938
55266
|
}
|
|
@@ -59848,8 +60176,6 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59848
60176
|
// const dPage = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.drawPages[pageIndex];
|
|
59849
60177
|
// if (dPage && dPage.drawDomLevel) {
|
|
59850
60178
|
var cc = subDocArea.clone(true);
|
|
59851
|
-
var index = subDocArea.getChildIndex(subDocArea.borderShape);
|
|
59852
|
-
if (index >= 0) cc.removeChildAt(index);
|
|
59853
60179
|
var destSubDocArea;
|
|
59854
60180
|
|
|
59855
60181
|
if (destArea) {
|
|
@@ -59871,8 +60197,19 @@ var DrawCell = /*#__PURE__*/function (_DrawRect) {
|
|
|
59871
60197
|
this._cell.drawCell.drawPageCells.push(destSubDocArea);
|
|
59872
60198
|
}
|
|
59873
60199
|
|
|
60200
|
+
destSubDocArea.removeAllChildren();
|
|
59874
60201
|
destSubDocArea.children = cc.children;
|
|
59875
|
-
|
|
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
|
+
|
|
59876
60213
|
|
|
59877
60214
|
destSubDocArea.dHeight = subDocArea.dHeight;
|
|
59878
60215
|
destSubDocArea.dLeft = subDocArea.dLeft;
|
|
@@ -62169,6 +62506,16 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62169
62506
|
|
|
62170
62507
|
|
|
62171
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
|
+
}, {
|
|
62172
62519
|
key: "startDline",
|
|
62173
62520
|
get: function get() {
|
|
62174
62521
|
return this._startDline;
|
|
@@ -64336,16 +64683,15 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64336
64683
|
cellRestHeight = Math.min(cell.drawCell.getCellRestHeight(0), pageRestHeight);
|
|
64337
64684
|
}
|
|
64338
64685
|
|
|
64339
|
-
var destCell = cell.drawCell.copyPaintCell(this, r, aTop);
|
|
64340
|
-
|
|
64341
|
-
|
|
64342
|
-
|
|
64343
|
-
|
|
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){
|
|
64344
64691
|
// const dPage= this._table.hoEditorFactory.drawTree.getDrawPageByDomStage(this.stage);
|
|
64345
64692
|
// if (dPage){}
|
|
64346
64693
|
// }
|
|
64347
64694
|
// cell.drawCell.copyPaintCell(this.dPage.pageIndex, this, aTop);
|
|
64348
|
-
|
|
64349
64695
|
}
|
|
64350
64696
|
}
|
|
64351
64697
|
|
|
@@ -67193,6 +67539,8 @@ var SpecialCharsNode = __webpack_require__(99890);
|
|
|
67193
67539
|
var es_string_replace = __webpack_require__(15306);
|
|
67194
67540
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.error.cause.js
|
|
67195
67541
|
var es_error_cause = __webpack_require__(21703);
|
|
67542
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
67543
|
+
var commonParamList = __webpack_require__(33800);
|
|
67196
67544
|
// EXTERNAL MODULE: ./src/editor/utils/UnitConvert.ts
|
|
67197
67545
|
var UnitConvert = __webpack_require__(55479);
|
|
67198
67546
|
;// CONCATENATED MODULE: ./src/editor/utils/DrawText.ts
|
|
@@ -67204,6 +67552,7 @@ var UnitConvert = __webpack_require__(55479);
|
|
|
67204
67552
|
|
|
67205
67553
|
|
|
67206
67554
|
|
|
67555
|
+
|
|
67207
67556
|
var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
67208
67557
|
(0,inherits/* default */.Z)(DrawText, _createjs$Text);
|
|
67209
67558
|
|
|
@@ -67355,9 +67704,14 @@ var DrawText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
67355
67704
|
|
|
67356
67705
|
|
|
67357
67706
|
ctx.imageSmoothingEnabled = true;
|
|
67358
|
-
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();
|
|
67359
67712
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
67360
67713
|
|
|
67714
|
+
|
|
67361
67715
|
if (this.outline) {
|
|
67362
67716
|
ctx.strokeStyle = col;
|
|
67363
67717
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -71098,7 +71452,7 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71098
71452
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71099
71453
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71100
71454
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71101
|
-
var endIndex = alines.
|
|
71455
|
+
var endIndex = alines.length - 1; // if (paragraphNode.parentNode === null) {
|
|
71102
71456
|
// const darea = this.getDrawA(dline);
|
|
71103
71457
|
|
|
71104
71458
|
if (e.repaintImmediate) {
|
|
@@ -79592,7 +79946,7 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79592
79946
|
/* harmony export */ "b": function() { return /* binding */ DrawSimpleText; }
|
|
79593
79947
|
/* harmony export */ });
|
|
79594
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);
|
|
79595
|
-
/* 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);
|
|
79596
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);
|
|
79597
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);
|
|
79598
79952
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
@@ -79601,7 +79955,9 @@ var UndoService = /*#__PURE__*/function () {
|
|
|
79601
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__);
|
|
79602
79956
|
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
79603
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__);
|
|
79604
|
-
/* 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
|
+
|
|
79605
79961
|
|
|
79606
79962
|
|
|
79607
79963
|
|
|
@@ -79642,7 +79998,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79642
79998
|
return _this;
|
|
79643
79999
|
}
|
|
79644
80000
|
|
|
79645
|
-
(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, [{
|
|
79646
80002
|
key: "docWidth",
|
|
79647
80003
|
get: function get() {
|
|
79648
80004
|
return this._docWidth;
|
|
@@ -79687,9 +80043,15 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79687
80043
|
|
|
79688
80044
|
|
|
79689
80045
|
ctx.imageSmoothingEnabled = true;
|
|
79690
|
-
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();
|
|
79691
80052
|
// const isbold = strLowFont.indexOf("bold") >= 0;
|
|
79692
80053
|
|
|
80054
|
+
|
|
79693
80055
|
if (this.outline) {
|
|
79694
80056
|
ctx.strokeStyle = col;
|
|
79695
80057
|
ctx.lineWidth = this.outline * 1;
|
|
@@ -79886,7 +80248,7 @@ var DrawSimpleText = /*#__PURE__*/function (_createjs$Text) {
|
|
|
79886
80248
|
}
|
|
79887
80249
|
|
|
79888
80250
|
for (var j = 0, jlen = text.length; j < jlen; j++) {
|
|
79889
|
-
if (!
|
|
80251
|
+
if (!_UnitConvert__WEBPACK_IMPORTED_MODULE_7__/* .UnitConvert.isNumEnglish */ .P.isNumEnglish(text[j])) {
|
|
79890
80252
|
return false;
|
|
79891
80253
|
}
|
|
79892
80254
|
}
|
|
@@ -80694,7 +81056,7 @@ var isMap = function isMap(map) {
|
|
|
80694
81056
|
var isDate = function isDate(date) {
|
|
80695
81057
|
if (date === null || date === undefined) {
|
|
80696
81058
|
return false;
|
|
80697
|
-
} else if (typeof date ===
|
|
81059
|
+
} else if (typeof date === 'string') {
|
|
80698
81060
|
if (isNaN(new Date(date).getTime())) {
|
|
80699
81061
|
return false;
|
|
80700
81062
|
} else {
|
|
@@ -80726,35 +81088,35 @@ var toDate = function toDate(date) {
|
|
|
80726
81088
|
// };
|
|
80727
81089
|
|
|
80728
81090
|
|
|
80729
|
-
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'];
|
|
80730
81092
|
var dateFormatValueList = [{
|
|
80731
|
-
value:
|
|
81093
|
+
value: 'HH:mm'
|
|
80732
81094
|
}, {
|
|
80733
|
-
value:
|
|
81095
|
+
value: 'HH:mm:ss'
|
|
80734
81096
|
}, {
|
|
80735
|
-
value:
|
|
81097
|
+
value: 'yyyy/MM/dd'
|
|
80736
81098
|
}, {
|
|
80737
|
-
value:
|
|
81099
|
+
value: 'yyyy/MM/dd HH:mm'
|
|
80738
81100
|
}, {
|
|
80739
|
-
value:
|
|
81101
|
+
value: 'yyyy/MM/dd HH:mm:ss'
|
|
80740
81102
|
}, {
|
|
80741
|
-
value:
|
|
81103
|
+
value: 'HH时mm分'
|
|
80742
81104
|
}, {
|
|
80743
|
-
value:
|
|
81105
|
+
value: 'HH时mm分ss秒'
|
|
80744
81106
|
}, {
|
|
80745
|
-
value:
|
|
81107
|
+
value: 'yyyy年MM月dd日'
|
|
80746
81108
|
}, {
|
|
80747
|
-
value:
|
|
81109
|
+
value: 'yyyy年MM月dd日 HH时mm分'
|
|
80748
81110
|
}, {
|
|
80749
|
-
value:
|
|
81111
|
+
value: 'yyyy年MM月dd日 HH时mm分ss秒'
|
|
80750
81112
|
}, {
|
|
80751
|
-
value:
|
|
81113
|
+
value: 'MM-dd'
|
|
80752
81114
|
}, {
|
|
80753
|
-
value:
|
|
81115
|
+
value: 'yyyy-MM-dd'
|
|
80754
81116
|
}, {
|
|
80755
|
-
value:
|
|
81117
|
+
value: 'yyyy-MM-dd HH:mm'
|
|
80756
81118
|
}, {
|
|
80757
|
-
value:
|
|
81119
|
+
value: 'yyyy-MM-dd HH:mm:ss'
|
|
80758
81120
|
}];
|
|
80759
81121
|
/**
|
|
80760
81122
|
* 日期格式化
|
|
@@ -80765,23 +81127,23 @@ var dateFormatValueList = [{
|
|
|
80765
81127
|
var dateFormat = function dateFormat(date, format) {
|
|
80766
81128
|
var _date;
|
|
80767
81129
|
|
|
80768
|
-
if (date && typeof date ===
|
|
80769
|
-
var stringDate = date.replace(/[年|月|-]/g,
|
|
80770
|
-
stringDate = stringDate.replace(/[点|时|分]/g,
|
|
80771
|
-
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, '');
|
|
80772
81134
|
|
|
80773
81135
|
if (isNaN(new Date(stringDate).getTime())) {
|
|
80774
|
-
if (format && format.includes(
|
|
80775
|
-
stringDate =
|
|
81136
|
+
if (format && format.includes('MM') && !format.includes('yyyy')) {
|
|
81137
|
+
stringDate = '2021/' + stringDate;
|
|
80776
81138
|
}
|
|
80777
81139
|
|
|
80778
|
-
if (format && format.includes(
|
|
80779
|
-
stringDate = stringDate +
|
|
80780
|
-
stringDate = stringDate.replace(
|
|
81140
|
+
if (format && format.includes('HH') && !format.includes('ss')) {
|
|
81141
|
+
stringDate = stringDate + ':00';
|
|
81142
|
+
stringDate = stringDate.replace('::', ':');
|
|
80781
81143
|
}
|
|
80782
81144
|
|
|
80783
|
-
if (!stringDate.includes(
|
|
80784
|
-
stringDate =
|
|
81145
|
+
if (!stringDate.includes('/')) {
|
|
81146
|
+
stringDate = '2021/10/01 ' + stringDate;
|
|
80785
81147
|
}
|
|
80786
81148
|
}
|
|
80787
81149
|
|
|
@@ -80801,7 +81163,7 @@ var dateFormat = function dateFormat(date, format) {
|
|
|
80801
81163
|
if (minutes.length === 1) minutes = "0".concat(minutes);
|
|
80802
81164
|
var seconds = "".concat(_date.getSeconds());
|
|
80803
81165
|
if (seconds.length === 1) seconds = "0".concat(seconds);
|
|
80804
|
-
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);
|
|
80805
81167
|
};
|
|
80806
81168
|
/**
|
|
80807
81169
|
* 弹窗拖动
|
|
@@ -80815,18 +81177,18 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80815
81177
|
var y = 0;
|
|
80816
81178
|
|
|
80817
81179
|
var move = function move(event) {
|
|
80818
|
-
modalElement.style.left = event.pageX - x +
|
|
80819
|
-
modalElement.style.top = event.pageY - y +
|
|
81180
|
+
modalElement.style.left = event.pageX - x + 'px';
|
|
81181
|
+
modalElement.style.top = event.pageY - y + 'px';
|
|
80820
81182
|
};
|
|
80821
81183
|
|
|
80822
81184
|
var target = event.target;
|
|
80823
81185
|
|
|
80824
|
-
if (typeof target.className ===
|
|
81186
|
+
if (typeof target.className === 'string' && target.className.indexOf(openMoveClassName) !== -1) {
|
|
80825
81187
|
x = event.pageX - modalElement.offsetLeft;
|
|
80826
81188
|
y = event.pageY - modalElement.offsetTop;
|
|
80827
|
-
document.addEventListener(
|
|
80828
|
-
document.addEventListener(
|
|
80829
|
-
document.removeEventListener(
|
|
81189
|
+
document.addEventListener('mousemove', move);
|
|
81190
|
+
document.addEventListener('mouseup', function () {
|
|
81191
|
+
document.removeEventListener('mousemove', move);
|
|
80830
81192
|
});
|
|
80831
81193
|
} else {
|
|
80832
81194
|
return false;
|
|
@@ -80845,38 +81207,38 @@ var toolModalMove = function toolModalMove(event, modalElement, openMoveClassNam
|
|
|
80845
81207
|
*/
|
|
80846
81208
|
|
|
80847
81209
|
var computedPoperPosition = function computedPoperPosition(maxHeight, poperPos, offsetHeight) {
|
|
80848
|
-
var doc = Array.from(document.querySelectorAll(
|
|
81210
|
+
var doc = Array.from(document.querySelectorAll('.edit-area'))[poperPos.docIndex];
|
|
80849
81211
|
var offsetHeights = offsetHeight ? offsetHeight : 0;
|
|
80850
81212
|
var pos = {
|
|
80851
|
-
left:
|
|
80852
|
-
top:
|
|
80853
|
-
right:
|
|
80854
|
-
bottom:
|
|
80855
|
-
height: maxHeight +
|
|
81213
|
+
left: '',
|
|
81214
|
+
top: '',
|
|
81215
|
+
right: '',
|
|
81216
|
+
bottom: '',
|
|
81217
|
+
height: maxHeight + 'px'
|
|
80856
81218
|
};
|
|
80857
|
-
var selectCanvas = Array.from(doc.querySelectorAll(
|
|
81219
|
+
var selectCanvas = Array.from(doc.querySelectorAll('.selectcanvas'))[poperPos.pageIndex];
|
|
80858
81220
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80859
81221
|
var screenHeight = document.documentElement.clientHeight || document.body.clientHeight;
|
|
80860
81222
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80861
81223
|
var y = selectCanvasSize.top + poperPos.y;
|
|
80862
|
-
pos.left = x +
|
|
81224
|
+
pos.left = x + 'px';
|
|
80863
81225
|
|
|
80864
81226
|
if (screenHeight - y - poperPos.height + 30 < maxHeight) {
|
|
80865
81227
|
if (y + poperPos.height < maxHeight) {
|
|
80866
81228
|
// 可用高度不足时,暂定遮挡元素内容,保证控件能显示完整
|
|
80867
|
-
pos.bottom =
|
|
81229
|
+
pos.bottom = '0px';
|
|
80868
81230
|
} else {
|
|
80869
|
-
pos.bottom = screenHeight - y - offsetHeights + poperPos.height +
|
|
81231
|
+
pos.bottom = screenHeight - y - offsetHeights + poperPos.height + 'px';
|
|
80870
81232
|
}
|
|
80871
81233
|
} else {
|
|
80872
|
-
pos.top = y + offsetHeights +
|
|
81234
|
+
pos.top = y + offsetHeights + 'px';
|
|
80873
81235
|
}
|
|
80874
81236
|
|
|
80875
81237
|
return pos;
|
|
80876
81238
|
};
|
|
80877
81239
|
var generateGetBoundingClientRect = function generateGetBoundingClientRect(poperPos, offsetHeight) {
|
|
80878
|
-
var doc = Array.from(document.querySelectorAll(
|
|
80879
|
-
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];
|
|
80880
81242
|
var selectCanvasSize = selectCanvas.getBoundingClientRect();
|
|
80881
81243
|
var x = selectCanvasSize.left + poperPos.x;
|
|
80882
81244
|
var y = selectCanvasSize.top + poperPos.y;
|
|
@@ -80898,7 +81260,7 @@ var generateGetBoundingClientRect = function generateGetBoundingClientRect(poper
|
|
|
80898
81260
|
|
|
80899
81261
|
var generateID = function generateID(type) {
|
|
80900
81262
|
if (type === undefined) {
|
|
80901
|
-
type =
|
|
81263
|
+
type = '';
|
|
80902
81264
|
}
|
|
80903
81265
|
|
|
80904
81266
|
var date = new Date();
|
|
@@ -80910,23 +81272,23 @@ var generateID = function generateID(type) {
|
|
|
80910
81272
|
var second = date.getSeconds().toString();
|
|
80911
81273
|
|
|
80912
81274
|
if (month.length === 1) {
|
|
80913
|
-
month =
|
|
81275
|
+
month = '0' + month;
|
|
80914
81276
|
}
|
|
80915
81277
|
|
|
80916
81278
|
if (day.length === 1) {
|
|
80917
|
-
day =
|
|
81279
|
+
day = '0' + day;
|
|
80918
81280
|
}
|
|
80919
81281
|
|
|
80920
81282
|
if (hour.length === 1) {
|
|
80921
|
-
hour =
|
|
81283
|
+
hour = '0' + hour;
|
|
80922
81284
|
}
|
|
80923
81285
|
|
|
80924
81286
|
if (minute.length === 1) {
|
|
80925
|
-
minute =
|
|
81287
|
+
minute = '0' + minute;
|
|
80926
81288
|
}
|
|
80927
81289
|
|
|
80928
81290
|
if (second.length === 1) {
|
|
80929
|
-
second =
|
|
81291
|
+
second = '0' + second;
|
|
80930
81292
|
}
|
|
80931
81293
|
|
|
80932
81294
|
var randomNumber = Math.floor(Math.random() * 1000000).toString();
|
|
@@ -80955,11 +81317,11 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80955
81317
|
getBoundingClientRect: generateGetBoundingClientRect(clientX, clientY)
|
|
80956
81318
|
};
|
|
80957
81319
|
(0,_popperjs_core__WEBPACK_IMPORTED_MODULE_12__/* .createPopper */ .fi)(virtualElement, rightMenuModal, {
|
|
80958
|
-
placement:
|
|
81320
|
+
placement: 'bottom-start',
|
|
80959
81321
|
modifiers: [{
|
|
80960
|
-
name:
|
|
81322
|
+
name: 'flip',
|
|
80961
81323
|
options: {
|
|
80962
|
-
fallbackPlacements: [
|
|
81324
|
+
fallbackPlacements: ['bottom-start', 'bottom', 'right', 'left'],
|
|
80963
81325
|
padding: 10
|
|
80964
81326
|
}
|
|
80965
81327
|
}]
|
|
@@ -80971,10 +81333,10 @@ var createRightMenu = function createRightMenu(clientX, clientY, rightMenuModal)
|
|
|
80971
81333
|
*/
|
|
80972
81334
|
|
|
80973
81335
|
var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation) {
|
|
80974
|
-
var printStyle = document.createElement(
|
|
81336
|
+
var printStyle = document.createElement('style'); // css打印设置 size中 纸张尺寸暂时无法生效 打印方向生效
|
|
80975
81337
|
|
|
80976
|
-
printStyle.type =
|
|
80977
|
-
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 ");
|
|
80978
81340
|
return printStyle;
|
|
80979
81341
|
};
|
|
80980
81342
|
/**
|
|
@@ -80985,23 +81347,23 @@ var createPrintHTMLStyle = function createPrintHTMLStyle(pageSize, orientation)
|
|
|
80985
81347
|
var createPrintHTMLIframe = function createPrintHTMLIframe(printStyle) {
|
|
80986
81348
|
var _printIframe$contentW;
|
|
80987
81349
|
|
|
80988
|
-
var printIframe = document.createElement(
|
|
80989
|
-
printIframe.id =
|
|
80990
|
-
printIframe.style.position =
|
|
80991
|
-
printIframe.style.margin =
|
|
80992
|
-
printIframe.style.padding =
|
|
80993
|
-
printIframe.style.width =
|
|
80994
|
-
printIframe.style.height =
|
|
80995
|
-
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';
|
|
80996
81358
|
document.body.appendChild(printIframe);
|
|
80997
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);
|
|
80998
81360
|
return printIframe;
|
|
80999
81361
|
};
|
|
81000
81362
|
var resetScale = function resetScale() {
|
|
81001
|
-
var bodyElement = document.querySelector(
|
|
81363
|
+
var bodyElement = document.querySelector('body');
|
|
81002
81364
|
|
|
81003
|
-
if (Object.prototype.hasOwnProperty.call(bodyElement.style,
|
|
81004
|
-
bodyElement.style.zoom =
|
|
81365
|
+
if (Object.prototype.hasOwnProperty.call(bodyElement.style, 'zoom')) {
|
|
81366
|
+
bodyElement.style.zoom = 'reset';
|
|
81005
81367
|
}
|
|
81006
81368
|
|
|
81007
81369
|
document.onkeydown = function (event) {
|
|
@@ -81017,12 +81379,12 @@ var resetScale = function resetScale() {
|
|
|
81017
81379
|
//Firefox滑轮事件
|
|
81018
81380
|
if (e.detail > 0) {
|
|
81019
81381
|
//当滑轮向上滚动时
|
|
81020
|
-
alert(
|
|
81382
|
+
alert('滑轮向下滚动');
|
|
81021
81383
|
}
|
|
81022
81384
|
|
|
81023
81385
|
if (e.detail < 0) {
|
|
81024
81386
|
//当滑轮向下滚动时
|
|
81025
|
-
alert(
|
|
81387
|
+
alert('滑轮向上滚动');
|
|
81026
81388
|
}
|
|
81027
81389
|
}
|
|
81028
81390
|
};
|
|
@@ -81030,29 +81392,29 @@ var resetScale = function resetScale() {
|
|
|
81030
81392
|
var getBrowser = function getBrowser() {
|
|
81031
81393
|
var sUsrAg = window.navigator.userAgent;
|
|
81032
81394
|
|
|
81033
|
-
if (sUsrAg.indexOf(
|
|
81034
|
-
return
|
|
81035
|
-
} else if (sUsrAg.indexOf(
|
|
81036
|
-
return
|
|
81037
|
-
} else if (sUsrAg.indexOf(
|
|
81038
|
-
return
|
|
81039
|
-
} else if (sUsrAg.indexOf(
|
|
81040
|
-
return
|
|
81041
|
-
} else if (sUsrAg.indexOf(
|
|
81042
|
-
return
|
|
81043
|
-
} else if (sUsrAg.indexOf(
|
|
81044
|
-
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'
|
|
81045
81407
|
} else {
|
|
81046
|
-
return
|
|
81408
|
+
return 'unknown';
|
|
81047
81409
|
}
|
|
81048
81410
|
}; //给页面绑定滑轮滚动事件
|
|
81049
81411
|
|
|
81050
81412
|
|
|
81051
|
-
if (getBrowser() ===
|
|
81413
|
+
if (getBrowser() === 'Mozilla Firefox') {
|
|
81052
81414
|
//火狐使用DOMMouseScroll绑定
|
|
81053
|
-
document.addEventListener(
|
|
81415
|
+
document.addEventListener('DOMMouseScroll', windowAddMouseWheel, false);
|
|
81054
81416
|
} else {
|
|
81055
|
-
document.addEventListener(
|
|
81417
|
+
document.addEventListener('onmousewheel', windowAddMouseWheel, false);
|
|
81056
81418
|
}
|
|
81057
81419
|
};
|
|
81058
81420
|
var getUserIP = function getUserIP(onNewIP) {
|
|
@@ -81061,7 +81423,7 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81061
81423
|
var myPeerConnection = window.RTCPeerConnection;
|
|
81062
81424
|
var pc = new myPeerConnection({
|
|
81063
81425
|
iceServers: [{
|
|
81064
|
-
urls:
|
|
81426
|
+
urls: 'stun:stun.l.google.com:19302'
|
|
81065
81427
|
}]
|
|
81066
81428
|
});
|
|
81067
81429
|
var localIPs = {};
|
|
@@ -81072,13 +81434,13 @@ var getUserIP = function getUserIP(onNewIP) {
|
|
|
81072
81434
|
localIPs[ip] = true;
|
|
81073
81435
|
};
|
|
81074
81436
|
|
|
81075
|
-
pc.createDataChannel(
|
|
81437
|
+
pc.createDataChannel('');
|
|
81076
81438
|
pc.createOffer().then(function (sdp) {
|
|
81077
81439
|
if (sdp && sdp.sdp) {
|
|
81078
|
-
sdp.sdp.split(
|
|
81440
|
+
sdp.sdp.split('\n').forEach(function (line) {
|
|
81079
81441
|
var _line$match;
|
|
81080
81442
|
|
|
81081
|
-
if (line.indexOf(
|
|
81443
|
+
if (line.indexOf('candidate') < 0) return;
|
|
81082
81444
|
(_line$match = line.match(ipRegex)) === null || _line$match === void 0 ? void 0 : _line$match.forEach(iterateIP);
|
|
81083
81445
|
});
|
|
81084
81446
|
}
|
|
@@ -81099,15 +81461,15 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81099
81461
|
var newImage = new Image();
|
|
81100
81462
|
var quality = qualitys ? qualitys : 1;
|
|
81101
81463
|
newImage.src = base64;
|
|
81102
|
-
newImage.setAttribute(
|
|
81464
|
+
newImage.setAttribute('crossOrigin', 'Anonymous'); //url为外域时需要
|
|
81103
81465
|
|
|
81104
81466
|
var imgWidth, imgHeight;
|
|
81105
81467
|
|
|
81106
81468
|
newImage.onload = function () {
|
|
81107
81469
|
imgWidth = newImage.naturalWidth;
|
|
81108
81470
|
imgHeight = newImage.naturalHeight;
|
|
81109
|
-
var canvas = document.createElement(
|
|
81110
|
-
var ctx = canvas.getContext(
|
|
81471
|
+
var canvas = document.createElement('canvas');
|
|
81472
|
+
var ctx = canvas.getContext('2d');
|
|
81111
81473
|
|
|
81112
81474
|
if (img) {
|
|
81113
81475
|
canvas.width = img[0] * 2;
|
|
@@ -81117,19 +81479,19 @@ var dealImage = function dealImage(base64, callback, qualitys, size, img) {
|
|
|
81117
81479
|
canvas.height = imgHeight * 2;
|
|
81118
81480
|
}
|
|
81119
81481
|
|
|
81120
|
-
canvas.style.width = canvas.width / 2 +
|
|
81121
|
-
canvas.style.height = canvas.height / 2 +
|
|
81482
|
+
canvas.style.width = canvas.width / 2 + 'px';
|
|
81483
|
+
canvas.style.height = canvas.height / 2 + 'px';
|
|
81122
81484
|
ctx.clearRect(0, 0, canvas.width, canvas.height);
|
|
81123
|
-
ctx.fillStyle =
|
|
81485
|
+
ctx.fillStyle = '#FFFFFF';
|
|
81124
81486
|
ctx.fillRect(0, 0, canvas.width, canvas.height);
|
|
81125
81487
|
ctx.drawImage(newImage, 0, 0, canvas.width, canvas.height);
|
|
81126
|
-
var base64 = canvas.toDataURL(
|
|
81488
|
+
var base64 = canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
81127
81489
|
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
81128
81490
|
|
|
81129
81491
|
if (size) {
|
|
81130
81492
|
while (base64.length / 1024 > size) {
|
|
81131
81493
|
quality -= 0.01;
|
|
81132
|
-
base64 = canvas.toDataURL(
|
|
81494
|
+
base64 = canvas.toDataURL('image/jpeg', quality);
|
|
81133
81495
|
}
|
|
81134
81496
|
}
|
|
81135
81497
|
|
|
@@ -212379,7 +212741,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
212379
212741
|
/***/ (function(module, __unused_webpack_exports, __webpack_require__) {
|
|
212380
212742
|
|
|
212381
212743
|
var map = {
|
|
212382
|
-
"./ControlModal.vue":
|
|
212744
|
+
"./ControlModal.vue": 71885,
|
|
212383
212745
|
"./barCode/BarCodes.vue": 35996,
|
|
212384
212746
|
"./colorPicker/HoColorPicker.vue": 59552,
|
|
212385
212747
|
"./commentDialog/CommentDialog.vue": 79019,
|
|
@@ -212396,7 +212758,7 @@ var map = {
|
|
|
212396
212758
|
"./pageInfoes/PageInfoes.vue": 65562,
|
|
212397
212759
|
"./paragraph/ParagraphDialog.vue": 43433,
|
|
212398
212760
|
"./poperSelect/PoperMark.vue": 39959,
|
|
212399
|
-
"./poperSelect/PoperSelect.vue":
|
|
212761
|
+
"./poperSelect/PoperSelect.vue": 10460,
|
|
212400
212762
|
"./poperTipText/PoperTipText.vue": 97824,
|
|
212401
212763
|
"./popers/Poper.vue": 79783,
|
|
212402
212764
|
"./popers/Title.vue": 95196,
|
|
@@ -212405,9 +212767,10 @@ var map = {
|
|
|
212405
212767
|
"./radioCheckBox/RadioCheckbox.vue": 29385,
|
|
212406
212768
|
"./selectDialog/SelectDialog.vue": 32949,
|
|
212407
212769
|
"./sign/Sign.vue": 54089,
|
|
212408
|
-
"./table/TableCellPoper.vue":
|
|
212770
|
+
"./table/TableCellPoper.vue": 89778,
|
|
212409
212771
|
"./table/TableCellProperty.vue": 84650,
|
|
212410
212772
|
"./table/TableColProperty.vue": 59243,
|
|
212773
|
+
"./table/TableFormula.vue": 45302,
|
|
212411
212774
|
"./table/TableProperty.vue": 1527,
|
|
212412
212775
|
"./table/TableRowProperty.vue": 52032,
|
|
212413
212776
|
"./textDialog/TextDialog.vue": 87847,
|
|
@@ -213924,7 +214287,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
213924
214287
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
213925
214288
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
213926
214289
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
213927
|
-
;// 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&
|
|
213928
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()}
|
|
213929
214292
|
var staticRenderFns = []
|
|
213930
214293
|
|
|
@@ -213951,14 +214314,11 @@ var es_string_match = __webpack_require__(4723);
|
|
|
213951
214314
|
var es_number_constructor = __webpack_require__(9653);
|
|
213952
214315
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
213953
214316
|
var es_json_stringify = __webpack_require__(38862);
|
|
213954
|
-
;// 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=
|
|
213955
|
-
var
|
|
213956
|
-
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 = []
|
|
213957
214320
|
|
|
213958
214321
|
|
|
213959
|
-
// EXTERNAL MODULE: ./node_modules/element-ui/lib/message-box.js
|
|
213960
|
-
var message_box = __webpack_require__(86769);
|
|
213961
|
-
var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
213962
214322
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
213963
214323
|
var es_array_filter = __webpack_require__(57327);
|
|
213964
214324
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -214833,14 +215193,6 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214833
215193
|
this._domStage.scaleY = DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
214834
215194
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
214835
215195
|
|
|
214836
|
-
this._domStage.addChild(dPage.drawDocContainer);
|
|
214837
|
-
|
|
214838
|
-
dPage.paintBackGround();
|
|
214839
|
-
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
214840
|
-
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawHeader, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
214841
|
-
hoeditorfactory.subDocManger.paintSubDoc(dPage.pageIndex, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
214842
|
-
hoeditorfactory.subDocManger.repaintPageMarkNodes(dPage.drawFooter, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
214843
|
-
|
|
214844
215196
|
var keys = (0,toConsumableArray/* default */.Z)(hoeditorfactory.drawPageTree.needUpdateMainDocInfo.keys()).sort(function (a, b) {
|
|
214845
215197
|
if (a > b) {
|
|
214846
215198
|
return 1;
|
|
@@ -214860,8 +215212,15 @@ var DrawDomLevel = /*#__PURE__*/function () {
|
|
|
214860
215212
|
(_hoeditorfactory$draw = hoeditorfactory.drawPageTree.needUpdateMainDocInfo.get(index)) === null || _hoeditorfactory$draw === void 0 ? void 0 : _hoeditorfactory$draw.callUpdate();
|
|
214861
215213
|
hoeditorfactory.drawPageTree.needUpdateMainDocInfo.delete(index);
|
|
214862
215214
|
}
|
|
214863
|
-
}
|
|
215215
|
+
}
|
|
215216
|
+
|
|
215217
|
+
this._domStage.addChild(dPage.drawDocContainer);
|
|
214864
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);
|
|
214865
215224
|
|
|
214866
215225
|
dPage.drawHeader.x = hoeditorfactory.pageProperty.leftMarginPixes; // dPage.drawHeader.y = hoeditorfactory.pageProperty.headerYPixes;
|
|
214867
215226
|
// // this._domStage.addChildAt(this._drawMainDoc, 0);
|
|
@@ -215286,9 +215645,9 @@ var NodeMouseMoveEvent = /*#__PURE__*/function () {
|
|
|
215286
215645
|
return NodeMouseMoveEvent;
|
|
215287
215646
|
}();
|
|
215288
215647
|
NodeMouseMoveEvent.eventName = "nodeMouseMove";
|
|
215289
|
-
;// 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=
|
|
215290
|
-
var
|
|
215291
|
-
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 = []
|
|
215292
215651
|
|
|
215293
215652
|
|
|
215294
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&
|
|
@@ -215308,6 +215667,7 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215308
215667
|
//
|
|
215309
215668
|
//
|
|
215310
215669
|
//
|
|
215670
|
+
|
|
215311
215671
|
/* harmony default export */ var HoHeadFootvue_type_script_lang_js_ = ({
|
|
215312
215672
|
name: 'HoHeadFoot',
|
|
215313
215673
|
props: {
|
|
@@ -215322,10 +215682,10 @@ var HoHeadFootvue_type_template_id_0312460a_staticRenderFns = []
|
|
|
215322
215682
|
},
|
|
215323
215683
|
computed: {
|
|
215324
215684
|
headTop: function headTop() {
|
|
215325
|
-
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;';
|
|
215326
215686
|
},
|
|
215327
215687
|
footerTop: function footerTop() {
|
|
215328
|
-
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;';
|
|
215329
215689
|
}
|
|
215330
215690
|
}
|
|
215331
215691
|
});
|
|
@@ -215349,8 +215709,8 @@ var componentNormalizer = __webpack_require__(1001);
|
|
|
215349
215709
|
|
|
215350
215710
|
var component = (0,componentNormalizer/* default */.Z)(
|
|
215351
215711
|
components_HoHeadFootvue_type_script_lang_js_,
|
|
215352
|
-
|
|
215353
|
-
|
|
215712
|
+
HoHeadFootvue_type_template_id_47bfb5b0_render,
|
|
215713
|
+
HoHeadFootvue_type_template_id_47bfb5b0_staticRenderFns,
|
|
215354
215714
|
false,
|
|
215355
215715
|
null,
|
|
215356
215716
|
null,
|
|
@@ -215885,7 +216245,7 @@ var DrawPage = __webpack_require__(62530);
|
|
|
215885
216245
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
215886
216246
|
var util = __webpack_require__(17987);
|
|
215887
216247
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
215888
|
-
var PoperSelect = __webpack_require__(
|
|
216248
|
+
var PoperSelect = __webpack_require__(10460);
|
|
215889
216249
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
215890
216250
|
var PoperMark = __webpack_require__(39959);
|
|
215891
216251
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -215893,7 +216253,7 @@ var PoperMark = __webpack_require__(39959);
|
|
|
215893
216253
|
|
|
215894
216254
|
|
|
215895
216255
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
215896
|
-
var TableCellPoper = __webpack_require__(
|
|
216256
|
+
var TableCellPoper = __webpack_require__(89778);
|
|
215897
216257
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
215898
216258
|
var DateTimeNode = __webpack_require__(40253);
|
|
215899
216259
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -217597,7 +217957,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217597
217957
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217598
217958
|
var ParagraphNode = __webpack_require__(13880);
|
|
217599
217959
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217600
|
-
/* harmony default export */ var version = ('2.0.
|
|
217960
|
+
/* harmony default export */ var version = ('2.0.91');
|
|
217601
217961
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217602
217962
|
var PoperTipText = __webpack_require__(97824);
|
|
217603
217963
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -217619,9 +217979,6 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217619
217979
|
|
|
217620
217980
|
|
|
217621
217981
|
|
|
217622
|
-
|
|
217623
|
-
|
|
217624
|
-
|
|
217625
217982
|
//
|
|
217626
217983
|
//
|
|
217627
217984
|
//
|
|
@@ -217815,6 +218172,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217815
218172
|
drawPageLength: 0,
|
|
217816
218173
|
isCreateRightMenuModal: false,
|
|
217817
218174
|
// 是否创建右键弹窗 只显示编辑器版本
|
|
218175
|
+
showDeleteSignMenu: false,
|
|
218176
|
+
// 审阅模式显示删除签名菜单
|
|
217818
218177
|
version: version,
|
|
217819
218178
|
isHideComments: false,
|
|
217820
218179
|
showCommentsBtn: false,
|
|
@@ -217873,7 +218232,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217873
218232
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
217874
218233
|
}
|
|
217875
218234
|
},
|
|
217876
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue',
|
|
218235
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
217877
218236
|
created: function created() {
|
|
217878
218237
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
217879
218238
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -217920,26 +218279,17 @@ var ImageNode = __webpack_require__(23778);
|
|
|
217920
218279
|
},
|
|
217921
218280
|
methods: {
|
|
217922
218281
|
deleteSignNode: function deleteSignNode() {
|
|
217923
|
-
var
|
|
217924
|
-
// if (hoEditorFactory.userInfo.id != signUserId) {
|
|
217925
|
-
// MessageBox.alert("不是本人签名,不允许删除!");
|
|
217926
|
-
// this.eleNode = null;
|
|
217927
|
-
// this.currentNode = null;
|
|
217928
|
-
// this.isCreateRightMenuModal = false;
|
|
217929
|
-
// return;
|
|
217930
|
-
// }
|
|
218282
|
+
var _this$getRightClickNo;
|
|
217931
218283
|
|
|
217932
|
-
|
|
217933
|
-
|
|
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();
|
|
217934
218286
|
|
|
217935
|
-
|
|
218287
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218288
|
+
hoEditorFactory.elementController.deleteNode(node);
|
|
217936
218289
|
}
|
|
217937
218290
|
|
|
217938
|
-
hoEditorFactory.elementController.deleteNode(this.currentNode); // hoEditorFactory.vueController.forceDelete();
|
|
217939
|
-
|
|
217940
|
-
this.eleNode = null;
|
|
217941
|
-
this.currentNode = null;
|
|
217942
218291
|
this.isCreateRightMenuModal = false;
|
|
218292
|
+
this.showDeleteSignMenu = false;
|
|
217943
218293
|
},
|
|
217944
218294
|
beforeDestroy: function beforeDestroy() {
|
|
217945
218295
|
var _this$viewableAreaObs,
|
|
@@ -218061,7 +218411,9 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218061
218411
|
|
|
218062
218412
|
if (node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
218063
218413
|
value = node.parentNode;
|
|
218064
|
-
}
|
|
218414
|
+
}
|
|
218415
|
+
|
|
218416
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
218065
218417
|
value = node;
|
|
218066
218418
|
} else if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
218067
218419
|
value = node;
|
|
@@ -218283,28 +218635,42 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218283
218635
|
var _hoEditorFactory$vueC2;
|
|
218284
218636
|
|
|
218285
218637
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218286
|
-
var path = hoEditorFactory.vueController.getCaretPosition();
|
|
218287
|
-
var node = (_hoEditorFactory$vueC2 = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC2 === void 0 ? void 0 : _hoEditorFactory$vueC2.node;
|
|
218288
|
-
this.setRightClickNodeValue(node);
|
|
218289
|
-
this.eleNode = this.getRightClickNodeValue();
|
|
218290
|
-
this.currentNode = node;
|
|
218291
218638
|
var rightPosition = {
|
|
218292
218639
|
clientX: e.clientX || e.pageX,
|
|
218293
218640
|
clientY: e.clientY || e.pageY
|
|
218294
|
-
};
|
|
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, // 设计状态
|
|
218295
218655
|
// psEdit, // 编辑状态
|
|
218296
218656
|
// psPreview, // 打印预览
|
|
218297
218657
|
// psPrint, // 打印
|
|
218298
218658
|
// psReview, // 审阅
|
|
218299
218659
|
// psReadOnly, // 预览
|
|
218300
218660
|
|
|
218301
|
-
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218302
|
-
var _hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218303
218661
|
|
|
218662
|
+
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psEdit */.Dh.psEdit) {
|
|
218304
218663
|
this.isCreateRightMenuModal = true;
|
|
218305
218664
|
|
|
218306
|
-
if (
|
|
218307
|
-
|
|
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;
|
|
218308
218674
|
this.showCommentsBtn = true;
|
|
218309
218675
|
}
|
|
218310
218676
|
|
|
@@ -218312,18 +218678,6 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218312
218678
|
return;
|
|
218313
218679
|
}
|
|
218314
218680
|
|
|
218315
|
-
var startPos = hoEditorFactory.drawTree.selectRange.spStart;
|
|
218316
|
-
|
|
218317
|
-
if (startPos) {
|
|
218318
|
-
var _hoEditorFactory$docT;
|
|
218319
|
-
|
|
218320
|
-
var npNode = (_hoEditorFactory$docT = hoEditorFactory.docTree.findNodePositionByPath(startPos.path)) === null || _hoEditorFactory$docT === void 0 ? void 0 : _hoEditorFactory$docT.node;
|
|
218321
|
-
|
|
218322
|
-
if (npNode instanceof SignNode/* SignNode */.N && npNode.type == 3) {
|
|
218323
|
-
node = npNode;
|
|
218324
|
-
}
|
|
218325
|
-
}
|
|
218326
|
-
|
|
218327
218681
|
if (node && node !== null && node instanceof BaseNode/* BaseNode */.Hd) {
|
|
218328
218682
|
this.setRightClickNodeValue(node);
|
|
218329
218683
|
}
|
|
@@ -218337,6 +218691,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218337
218691
|
*/
|
|
218338
218692
|
hideComments: function hideComments() {
|
|
218339
218693
|
this.isCreateRightMenuModal = false;
|
|
218694
|
+
this.showDeleteSignMenu = false;
|
|
218340
218695
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218341
218696
|
hoEditorFactory.vueController.hideComments(!hoEditorFactory.isHideComments);
|
|
218342
218697
|
},
|
|
@@ -218380,8 +218735,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218380
218735
|
|
|
218381
218736
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218382
218737
|
components_HoDocvue_type_script_lang_js_,
|
|
218383
|
-
|
|
218384
|
-
|
|
218738
|
+
HoDocvue_type_template_id_7f445433_render,
|
|
218739
|
+
HoDocvue_type_template_id_7f445433_staticRenderFns,
|
|
218385
218740
|
false,
|
|
218386
218741
|
null,
|
|
218387
218742
|
null,
|
|
@@ -218611,6 +218966,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218611
218966
|
value: function getNextDrawArea(drawArea, singlePage) {
|
|
218612
218967
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218613
218968
|
var ret = drawArea;
|
|
218969
|
+
var isNew = false;
|
|
218614
218970
|
|
|
218615
218971
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
218616
218972
|
var index = this._drawMainDocs.indexOf(drawArea);
|
|
@@ -218619,6 +218975,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218619
218975
|
ret = this._drawMainDocs[index + 1];
|
|
218620
218976
|
} else {
|
|
218621
218977
|
var dMainDocArea = new DrawPageMainDoc/* DrawPageMainDoc */.$(this._hoEditorFactoryID, "main", index + 1, 0);
|
|
218978
|
+
isNew = true;
|
|
218622
218979
|
|
|
218623
218980
|
this._drawMainDocs.push(dMainDocArea);
|
|
218624
218981
|
|
|
@@ -218633,9 +218990,20 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218633
218990
|
}
|
|
218634
218991
|
}
|
|
218635
218992
|
|
|
218636
|
-
return ret;
|
|
218993
|
+
return [ret, isNew];
|
|
218637
218994
|
} //拆分成页
|
|
218638
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
|
+
}
|
|
218639
219007
|
}, {
|
|
218640
219008
|
key: "paint",
|
|
218641
219009
|
value: function paint(aDrawArea, dRoots, startLine, endLine) {
|
|
@@ -218656,6 +219024,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218656
219024
|
var aline = dRoots[startLine];
|
|
218657
219025
|
var dLine;
|
|
218658
219026
|
var dTop = 0;
|
|
219027
|
+
var mainDTop = 0;
|
|
218659
219028
|
|
|
218660
219029
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
218661
219030
|
if (aline.drawPageTables.length > 0) {
|
|
@@ -218706,6 +219075,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218706
219075
|
return;
|
|
218707
219076
|
}
|
|
218708
219077
|
|
|
219078
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
218709
219079
|
var nextLine = startLine;
|
|
218710
219080
|
var pageIsFull = new Map();
|
|
218711
219081
|
|
|
@@ -218721,7 +219091,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218721
219091
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218722
219092
|
hoEditorFactory.subDocManger.updateSubDocPageIndexByPath(drawArea.pageIndex + 1, dline.paragraphNode.docId);
|
|
218723
219093
|
pageIsFull.set(drawArea.index, true);
|
|
218724
|
-
drawArea = this.getNextDrawArea(drawArea, true);
|
|
219094
|
+
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
218725
219095
|
dTop = 0;
|
|
218726
219096
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
218727
219097
|
}
|
|
@@ -218747,12 +219117,23 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218747
219117
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218748
219118
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218749
219119
|
pageIsFull.set(drawArea.index, true);
|
|
218750
|
-
|
|
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];
|
|
218751
219128
|
dTop = 0;
|
|
218752
219129
|
|
|
218753
219130
|
if (drawArea.allowAcrossPage) {
|
|
218754
219131
|
restHeight = drawArea.maxHeight - dTop;
|
|
218755
219132
|
}
|
|
219133
|
+
|
|
219134
|
+
if (!isNew) {
|
|
219135
|
+
break;
|
|
219136
|
+
}
|
|
218756
219137
|
}
|
|
218757
219138
|
}
|
|
218758
219139
|
|
|
@@ -218791,7 +219172,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218791
219172
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218792
219173
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218793
219174
|
pageIsFull.set(drawArea.index, true);
|
|
218794
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219175
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218795
219176
|
dTop = 0;
|
|
218796
219177
|
|
|
218797
219178
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218813,7 +219194,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218813
219194
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218814
219195
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage); // drawArea.stage.update();
|
|
218815
219196
|
|
|
218816
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219197
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218817
219198
|
dTop = 0;
|
|
218818
219199
|
|
|
218819
219200
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218837,7 +219218,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218837
219218
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
218838
219219
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
218839
219220
|
pageIsFull.set(drawArea.index, true);
|
|
218840
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219221
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
218841
219222
|
dTop = 0;
|
|
218842
219223
|
|
|
218843
219224
|
if (drawArea.allowAcrossPage) {
|
|
@@ -218917,7 +219298,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
218917
219298
|
var index = this._drawMainDocs.indexOf(mainArea);
|
|
218918
219299
|
|
|
218919
219300
|
if (index === this._drawMainDocs.length - 1) {
|
|
218920
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219301
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
218921
219302
|
} else {
|
|
218922
219303
|
mainArea = this._drawMainDocs[index + 1];
|
|
218923
219304
|
}
|
|
@@ -219158,7 +219539,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219158
219539
|
var _index = this._drawMainDocs.indexOf(mainArea);
|
|
219159
219540
|
|
|
219160
219541
|
if (_index === this._drawMainDocs.length - 1) {
|
|
219161
|
-
mainArea = this.getNextDrawArea(mainArea);
|
|
219542
|
+
mainArea = this.getNextDrawArea(mainArea)[0];
|
|
219162
219543
|
} else {
|
|
219163
219544
|
this.updateDrawPage(drawArea.index);
|
|
219164
219545
|
mainArea = this._drawMainDocs[_index + 1];
|
|
@@ -219260,13 +219641,17 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219260
219641
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
219261
219642
|
|
|
219262
219643
|
|
|
219263
|
-
if (
|
|
219264
|
-
|
|
219265
|
-
|
|
219266
|
-
|
|
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
|
+
}
|
|
219267
219651
|
}
|
|
219268
219652
|
}
|
|
219269
219653
|
|
|
219654
|
+
this.clearAfterDTop(drawArea, dTop);
|
|
219270
219655
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219271
219656
|
this.afterAreaFinishPaint(drawArea);
|
|
219272
219657
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -219296,7 +219681,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219296
219681
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219297
219682
|
if (startIndex <= aEndLine) {
|
|
219298
219683
|
prevArea = drawArea;
|
|
219299
|
-
drawArea = this.getNextDrawArea(drawArea);
|
|
219684
|
+
drawArea = this.getNextDrawArea(drawArea)[0];
|
|
219300
219685
|
dTop = 0;
|
|
219301
219686
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight;
|
|
219302
219687
|
}
|
|
@@ -220024,6 +220409,9 @@ var GenerateCode = /*#__PURE__*/function () {
|
|
|
220024
220409
|
|
|
220025
220410
|
return GenerateCode;
|
|
220026
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);
|
|
220027
220415
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.ends-with.js
|
|
220028
220416
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220029
220417
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -220428,7 +220816,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220428
220816
|
key: "TransHTMLIMG",
|
|
220429
220817
|
value: function TransHTMLIMG(jnode, style) {
|
|
220430
220818
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style);
|
|
220431
|
-
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地提示无法从本地加载
|
|
220432
220824
|
//TODO:图片转base64
|
|
220433
220825
|
// const getImgToBase64 = (url: any, callback: any) => {//将图片转换为Base64
|
|
220434
220826
|
// const canvas = document.createElement('canvas');
|
|
@@ -220451,6 +220843,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
220451
220843
|
// console.log(data);
|
|
220452
220844
|
// });
|
|
220453
220845
|
|
|
220846
|
+
|
|
220454
220847
|
var width = styleobj.width ? styleobj.width.replace("px", "") : 20;
|
|
220455
220848
|
var height = styleobj.height ? styleobj.height.replace("px", "") : 20;
|
|
220456
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));
|
|
@@ -224883,6 +225276,8 @@ var NodeInsertUndoUnit = __webpack_require__(11438);
|
|
|
224883
225276
|
var MedicalExpressionNode = __webpack_require__(43977);
|
|
224884
225277
|
// EXTERNAL MODULE: ./src/editor/draw/StagePosition.ts
|
|
224885
225278
|
var StagePosition = __webpack_require__(80691);
|
|
225279
|
+
// EXTERNAL MODULE: ./src/commonParamList.ts
|
|
225280
|
+
var commonParamList = __webpack_require__(33800);
|
|
224886
225281
|
;// CONCATENATED MODULE: ./src/editor/VueController.ts
|
|
224887
225282
|
|
|
224888
225283
|
|
|
@@ -224969,6 +225364,7 @@ var StagePosition = __webpack_require__(80691);
|
|
|
224969
225364
|
|
|
224970
225365
|
|
|
224971
225366
|
|
|
225367
|
+
|
|
224972
225368
|
|
|
224973
225369
|
|
|
224974
225370
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -231202,11 +231598,20 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231202
231598
|
}
|
|
231203
231599
|
}, {
|
|
231204
231600
|
key: "setHoEditorFactoryParams",
|
|
231205
|
-
value: function setHoEditorFactoryParams(params) {
|
|
231206
|
-
|
|
231207
|
-
|
|
231208
|
-
|
|
231209
|
-
|
|
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
|
+
}
|
|
231210
231615
|
}
|
|
231211
231616
|
}]);
|
|
231212
231617
|
|
|
@@ -234418,6 +234823,8 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
234418
234823
|
|
|
234419
234824
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
234420
234825
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
234826
|
+
var _window, _window$chrome, _window$chrome$webvie;
|
|
234827
|
+
|
|
234421
234828
|
(0,classCallCheck/* default */.Z)(this, HoLocalStorage);
|
|
234422
234829
|
|
|
234423
234830
|
this._intervalsTime = 30000; // 间隔时间 ms
|
|
@@ -234426,6 +234833,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234426
234833
|
|
|
234427
234834
|
this._storeName = 'web_list'; // 当前 key
|
|
234428
234835
|
|
|
234836
|
+
this._localXmlContent = ''; //当前缓存的xml文件列表
|
|
234837
|
+
|
|
234838
|
+
var _this = this;
|
|
234839
|
+
|
|
234429
234840
|
this._hoEditorFactoryID = hoEditorFactoryID; // 设置今天的 storeName
|
|
234430
234841
|
// this._storeName = String(new Date().getTime());
|
|
234431
234842
|
// 创建当前时段
|
|
@@ -234433,6 +234844,32 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234433
234844
|
// name: "_ho_web",
|
|
234434
234845
|
// storeName: this._storeName,
|
|
234435
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
|
+
});
|
|
234436
234873
|
} // set ho_web(value: any) {
|
|
234437
234874
|
// this._ho_web = value;
|
|
234438
234875
|
// }
|
|
@@ -234442,17 +234879,37 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234442
234879
|
key: "initHoWebSql",
|
|
234443
234880
|
value: function initHoWebSql() {
|
|
234444
234881
|
this._ho_web = localforage_default().createInstance({
|
|
234445
|
-
name:
|
|
234882
|
+
name: '_ho_web',
|
|
234446
234883
|
storeName: this._storeName
|
|
234447
234884
|
});
|
|
234448
234885
|
this._print_font = localforage_default().createInstance({
|
|
234449
|
-
name:
|
|
234450
|
-
storeName:
|
|
234886
|
+
name: '_ho_web',
|
|
234887
|
+
storeName: '_print_font'
|
|
234451
234888
|
});
|
|
234452
234889
|
this._cache_clear_time = localforage_default().createInstance({
|
|
234453
|
-
name:
|
|
234454
|
-
storeName:
|
|
234890
|
+
name: '_ho_web',
|
|
234891
|
+
storeName: '_cache_clear_time'
|
|
234455
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);
|
|
234456
234913
|
} // 获取key的数据 => { data, keyInfo }
|
|
234457
234914
|
|
|
234458
234915
|
}, {
|
|
@@ -234461,22 +234918,41 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234461
234918
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234462
234919
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234463
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);
|
|
234464
234940
|
}
|
|
234465
234941
|
}, {
|
|
234466
234942
|
key: "removeLocalStorage",
|
|
234467
234943
|
value: function removeLocalStorage(lastClearTime) {
|
|
234468
|
-
var
|
|
234944
|
+
var _this2 = this;
|
|
234469
234945
|
|
|
234470
234946
|
this._ho_web.keys().then(function (keys) {
|
|
234471
234947
|
keys.forEach(function (key) {
|
|
234472
|
-
|
|
234948
|
+
_this2._ho_web.getItem(key).then(function (value) {
|
|
234473
234949
|
if (Array.isArray(value)) {
|
|
234474
234950
|
if (new Date().getTime() - new Date(value[0].saveTime).getTime()) {
|
|
234475
|
-
|
|
234951
|
+
_this2._ho_web.removeItem(key);
|
|
234476
234952
|
}
|
|
234477
234953
|
} else {
|
|
234478
234954
|
if (new Date().getTime() - new Date(value.saveTime).getTime()) {
|
|
234479
|
-
|
|
234955
|
+
_this2._ho_web.removeItem(key);
|
|
234480
234956
|
}
|
|
234481
234957
|
}
|
|
234482
234958
|
});
|
|
@@ -234486,93 +234962,114 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234486
234962
|
}, {
|
|
234487
234963
|
key: "clearLocalStorage",
|
|
234488
234964
|
value: function clearLocalStorage() {
|
|
234489
|
-
var
|
|
234965
|
+
var _this3 = this;
|
|
234490
234966
|
|
|
234491
234967
|
this._ho_web.clear().then(function () {});
|
|
234492
234968
|
}
|
|
234493
234969
|
}, {
|
|
234494
234970
|
key: "autoSaveLocalStorage",
|
|
234495
234971
|
value: function autoSaveLocalStorage() {
|
|
234496
|
-
var
|
|
234972
|
+
var _window4,
|
|
234973
|
+
_window4$chrome,
|
|
234974
|
+
_this4 = this;
|
|
234497
234975
|
|
|
234498
234976
|
if (this._lastSaveTime && new Date().getTime() - this._lastSaveTime <= this._intervalsTime) {
|
|
234499
234977
|
return;
|
|
234500
234978
|
}
|
|
234501
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());
|
|
234502
234982
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234503
234983
|
this._key = hoEitfactory.userInfo.id + hoEitfactory.docTree.docProperty.patientID + hoEitfactory.docTree.docProperty.title;
|
|
234504
234984
|
|
|
234505
|
-
|
|
234506
|
-
|
|
234507
|
-
|
|
234508
|
-
if (
|
|
234509
|
-
|
|
234510
|
-
|
|
234511
|
-
|
|
234512
|
-
|
|
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();
|
|
234513
235006
|
} else {
|
|
234514
|
-
|
|
234515
|
-
|
|
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
|
+
}
|
|
234516
235012
|
|
|
234517
|
-
|
|
234518
|
-
|
|
235013
|
+
if (new Date().getTime() - _this4._lastSaveTime <= _this4._intervalsTime) {
|
|
235014
|
+
return;
|
|
235015
|
+
}
|
|
234519
235016
|
}
|
|
234520
|
-
}
|
|
234521
235017
|
|
|
234522
|
-
|
|
235018
|
+
var logs = (0,toConsumableArray/* default */.Z)(hoEitfactory.domController.getLogs());
|
|
234523
235019
|
|
|
234524
|
-
|
|
234525
|
-
|
|
234526
|
-
|
|
234527
|
-
|
|
234528
|
-
|
|
234529
|
-
|
|
234530
|
-
|
|
234531
|
-
|
|
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();
|
|
235028
|
+
|
|
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);
|
|
234532
235038
|
|
|
234533
|
-
|
|
235039
|
+
_this4._ho_web.setItem(_this4._key, arr);
|
|
235040
|
+
}
|
|
234534
235041
|
} else {
|
|
234535
|
-
var
|
|
234536
|
-
|
|
234537
|
-
|
|
235042
|
+
var _arr = [];
|
|
235043
|
+
|
|
235044
|
+
_arr.push({
|
|
235045
|
+
xml: hoEitfactory.structureConvert.doc2Xml('xml', true),
|
|
234538
235046
|
saveTime: saveTime,
|
|
234539
235047
|
logs: logs
|
|
234540
235048
|
});
|
|
234541
|
-
arr.push(historyLogs);
|
|
234542
235049
|
|
|
234543
|
-
|
|
235050
|
+
_this4._ho_web.setItem(_this4._key, _arr);
|
|
234544
235051
|
}
|
|
234545
|
-
}
|
|
234546
|
-
|
|
234547
|
-
|
|
234548
|
-
_arr.push({
|
|
234549
|
-
xml: hoEitfactory.structureConvert.doc2Xml("xml", true),
|
|
234550
|
-
saveTime: saveTime,
|
|
234551
|
-
logs: logs
|
|
234552
|
-
});
|
|
234553
|
-
|
|
234554
|
-
_this3._ho_web.setItem(_this3._key, _arr);
|
|
234555
|
-
}
|
|
235052
|
+
});
|
|
235053
|
+
}
|
|
234556
235054
|
|
|
234557
|
-
|
|
234558
|
-
|
|
235055
|
+
this._cache_clear_time.getItem('_cache_clear_time').then(function (lastClearTime) {
|
|
235056
|
+
var _lastClearTime = lastClearTime;
|
|
234559
235057
|
|
|
234560
|
-
|
|
234561
|
-
|
|
235058
|
+
if (!lastClearTime) {
|
|
235059
|
+
_lastClearTime = new Date().getTime();
|
|
234562
235060
|
|
|
234563
|
-
|
|
234564
|
-
|
|
235061
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', _lastClearTime);
|
|
235062
|
+
}
|
|
234565
235063
|
|
|
234566
|
-
|
|
235064
|
+
_this4._lastClearTime = _lastClearTime;
|
|
234567
235065
|
|
|
234568
|
-
|
|
234569
|
-
|
|
235066
|
+
if (new Date().getTime() - lastClearTime >= _this4._expirationTime) {
|
|
235067
|
+
_this4.removeLocalStorage(lastClearTime);
|
|
234570
235068
|
|
|
234571
|
-
|
|
234572
|
-
|
|
234573
|
-
|
|
234574
|
-
|
|
234575
|
-
});
|
|
235069
|
+
setTimeout(function () {
|
|
235070
|
+
_this4._cache_clear_time.setItem('_cache_clear_time', new Date().getTime());
|
|
235071
|
+
}, 0);
|
|
235072
|
+
}
|
|
234576
235073
|
});
|
|
234577
235074
|
}
|
|
234578
235075
|
}, {
|
|
@@ -234640,6 +235137,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234640
235137
|
|
|
234641
235138
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
234642
235139
|
|
|
235140
|
+
this._isUseDrawingOptimization = true; // 是否启用绘制优化 默认启用
|
|
235141
|
+
|
|
234643
235142
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
234644
235143
|
|
|
234645
235144
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -235409,6 +235908,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235409
235908
|
this._isCanUseTableProperty = value;
|
|
235410
235909
|
}
|
|
235411
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
|
+
}
|
|
235412
235921
|
}, {
|
|
235413
235922
|
key: "clear",
|
|
235414
235923
|
value: function clear() {
|
|
@@ -235570,7 +236079,7 @@ var HoFooter_component = (0,componentNormalizer/* default */.Z)(
|
|
|
235570
236079
|
|
|
235571
236080
|
/* harmony default export */ var HoFooter = (HoFooter_component.exports);
|
|
235572
236081
|
// EXTERNAL MODULE: ./src/components/controls/ControlModal.vue + 3 modules
|
|
235573
|
-
var ControlModal = __webpack_require__(
|
|
236082
|
+
var ControlModal = __webpack_require__(71885);
|
|
235574
236083
|
// EXTERNAL MODULE: ./src/components/controls/findReplace/FindReplace.vue + 5 modules
|
|
235575
236084
|
var FindReplace = __webpack_require__(80568);
|
|
235576
236085
|
;// CONCATENATED MODULE: ./src/components/controls/findReplace/index.ts
|
|
@@ -236628,10 +237137,14 @@ var json_font_namespaceObject = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun",
|
|
|
236628
237137
|
default: undefined
|
|
236629
237138
|
},
|
|
236630
237139
|
customProperty: {
|
|
236631
|
-
default: function _default() {
|
|
237140
|
+
default: function _default() {
|
|
237141
|
+
return {};
|
|
237142
|
+
}
|
|
236632
237143
|
},
|
|
236633
237144
|
paragraphCustomProperty: {
|
|
236634
|
-
default: function _default() {
|
|
237145
|
+
default: function _default() {
|
|
237146
|
+
return {};
|
|
237147
|
+
}
|
|
236635
237148
|
},
|
|
236636
237149
|
deleteImageNodeList: {
|
|
236637
237150
|
default: undefined
|
|
@@ -237399,9 +237912,9 @@ var HoDocs_component = (0,componentNormalizer/* default */.Z)(
|
|
|
237399
237912
|
)
|
|
237400
237913
|
|
|
237401
237914
|
/* harmony default export */ var HoDocs = (HoDocs_component.exports);
|
|
237402
|
-
;// 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=
|
|
237403
|
-
var
|
|
237404
|
-
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 = []
|
|
237405
237918
|
|
|
237406
237919
|
|
|
237407
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&
|
|
@@ -240346,9 +240859,9 @@ var UpdateDocument_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240346
240859
|
)
|
|
240347
240860
|
|
|
240348
240861
|
/* harmony default export */ var UpdateDocument = (UpdateDocument_component.exports);
|
|
240349
|
-
;// 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=
|
|
240350
|
-
var
|
|
240351
|
-
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 = []
|
|
240352
240865
|
|
|
240353
240866
|
|
|
240354
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&
|
|
@@ -240570,7 +241083,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240570
241083
|
rows: 1,
|
|
240571
241084
|
columns: 1
|
|
240572
241085
|
};
|
|
240573
|
-
_this.formLabelWidth =
|
|
241086
|
+
_this.formLabelWidth = '72px';
|
|
240574
241087
|
return _this;
|
|
240575
241088
|
}
|
|
240576
241089
|
|
|
@@ -240600,7 +241113,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240600
241113
|
value: function mouse(e) {
|
|
240601
241114
|
var target = e.target;
|
|
240602
241115
|
|
|
240603
|
-
if (target.nodeName ===
|
|
241116
|
+
if (target.nodeName === 'SPAN') {
|
|
240604
241117
|
var data = target.dataset;
|
|
240605
241118
|
this.rows = parseInt(data.row);
|
|
240606
241119
|
this.columns = parseInt(data.column);
|
|
@@ -240615,7 +241128,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240615
241128
|
value: function touch(e) {
|
|
240616
241129
|
var ele = document.elementFromPoint(e.changedTouches[0].pageX, e.changedTouches[0].pageY);
|
|
240617
241130
|
|
|
240618
|
-
if (ele.nodeName ===
|
|
241131
|
+
if (ele.nodeName === 'SPAN') {
|
|
240619
241132
|
var data = ele.dataset;
|
|
240620
241133
|
this.rows = parseInt(data.row);
|
|
240621
241134
|
this.columns = parseInt(data.column);
|
|
@@ -240636,7 +241149,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240636
241149
|
}, {
|
|
240637
241150
|
key: "closeMenu",
|
|
240638
241151
|
value: function closeMenu() {
|
|
240639
|
-
this.$emit(
|
|
241152
|
+
this.$emit('closeMenu');
|
|
240640
241153
|
}
|
|
240641
241154
|
}]);
|
|
240642
241155
|
|
|
@@ -240650,7 +241163,7 @@ var ToolTables = /*#__PURE__*/function (_Vue) {
|
|
|
240650
241163
|
(0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Prop */.fI)()], ToolTables.prototype, "isOpen", void 0);
|
|
240651
241164
|
|
|
240652
241165
|
ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Component */.wA)({
|
|
240653
|
-
name:
|
|
241166
|
+
name: 'ToolTables',
|
|
240654
241167
|
components: {
|
|
240655
241168
|
TableFeatures: toolbar_TableFeatures
|
|
240656
241169
|
}
|
|
@@ -240674,8 +241187,8 @@ ToolTables = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Compo
|
|
|
240674
241187
|
|
|
240675
241188
|
var ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
240676
241189
|
toolbar_ToolTablevue_type_script_lang_ts_,
|
|
240677
|
-
|
|
240678
|
-
|
|
241190
|
+
ToolTablevue_type_template_id_7df5f581_render,
|
|
241191
|
+
ToolTablevue_type_template_id_7df5f581_staticRenderFns,
|
|
240679
241192
|
false,
|
|
240680
241193
|
null,
|
|
240681
241194
|
null,
|
|
@@ -240975,9 +241488,9 @@ var UploadFile_component = (0,componentNormalizer/* default */.Z)(
|
|
|
240975
241488
|
)
|
|
240976
241489
|
|
|
240977
241490
|
/* harmony default export */ var toolbar_UploadFile = (UploadFile_component.exports);
|
|
240978
|
-
;// 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=
|
|
240979
|
-
var
|
|
240980
|
-
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 = []
|
|
240981
241494
|
|
|
240982
241495
|
|
|
240983
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&
|
|
@@ -241005,12 +241518,12 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241005
241518
|
_this = _super.apply(this, arguments);
|
|
241006
241519
|
_this.showHistoryLogs = false;
|
|
241007
241520
|
_this.historyLog = null;
|
|
241521
|
+
_this.xmlLog = null;
|
|
241522
|
+
_this.xmlContent = '';
|
|
241008
241523
|
_this.dateFormat = util/* dateFormat */.vc;
|
|
241009
241524
|
return _this;
|
|
241010
241525
|
} // created() {
|
|
241011
|
-
//
|
|
241012
|
-
// console.log(e);
|
|
241013
|
-
// });
|
|
241526
|
+
// console.log(this.logs);
|
|
241014
241527
|
// }
|
|
241015
241528
|
// 撤销恢复
|
|
241016
241529
|
// public cancelManualSaveLocalStorage(auto_save_index: number) {
|
|
@@ -241029,6 +241542,17 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241029
241542
|
_this2.vueController.openXml(historyLog[auto_save_index].xml);
|
|
241030
241543
|
});
|
|
241031
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
|
+
}
|
|
241032
241556
|
}, {
|
|
241033
241557
|
key: "getLocalStorage",
|
|
241034
241558
|
value: function getLocalStorage() {
|
|
@@ -241036,7 +241560,7 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241036
241560
|
|
|
241037
241561
|
this.historyLog = [];
|
|
241038
241562
|
this.vueController.hoLocalStorage().getLocalStorage().then(function (historyLog) {
|
|
241039
|
-
historyLog.forEach(function (log) {
|
|
241563
|
+
historyLog === null || historyLog === void 0 ? void 0 : historyLog.forEach(function (log) {
|
|
241040
241564
|
_this3.historyLog.push({
|
|
241041
241565
|
saveTime: log.saveTime,
|
|
241042
241566
|
logs: log.logs
|
|
@@ -241047,8 +241571,20 @@ var HistoryLogs = /*#__PURE__*/function (_Mixins) {
|
|
|
241047
241571
|
}, {
|
|
241048
241572
|
key: "openHistoryLogs",
|
|
241049
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;
|
|
241050
241579
|
this.showHistoryLogs = !this.showHistoryLogs;
|
|
241051
|
-
|
|
241580
|
+
|
|
241581
|
+
if (HoBrowser) {
|
|
241582
|
+
this.vueController.hoLocalStorage().getLocalXmlList(function (logs) {
|
|
241583
|
+
_this4.xmlLog = logs;
|
|
241584
|
+
});
|
|
241585
|
+
} else {
|
|
241586
|
+
this.getLocalStorage();
|
|
241587
|
+
}
|
|
241052
241588
|
}
|
|
241053
241589
|
}, {
|
|
241054
241590
|
key: "closeHistoryLogs",
|
|
@@ -241069,10 +241605,10 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241069
241605
|
/* harmony default export */ var HistoryLogsvue_type_script_lang_ts_ = (HistoryLogs);
|
|
241070
241606
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue?vue&type=script&lang=ts&
|
|
241071
241607
|
/* harmony default export */ var insert_HistoryLogsvue_type_script_lang_ts_ = (HistoryLogsvue_type_script_lang_ts_);
|
|
241072
|
-
;// 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&
|
|
241073
241609
|
// extracted by mini-css-extract-plugin
|
|
241074
241610
|
|
|
241075
|
-
;// 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&
|
|
241076
241612
|
|
|
241077
241613
|
;// CONCATENATED MODULE: ./src/components/toolbar/insert/HistoryLogs.vue
|
|
241078
241614
|
|
|
@@ -241085,11 +241621,11 @@ HistoryLogs = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Comp
|
|
|
241085
241621
|
|
|
241086
241622
|
var HistoryLogs_component = (0,componentNormalizer/* default */.Z)(
|
|
241087
241623
|
insert_HistoryLogsvue_type_script_lang_ts_,
|
|
241088
|
-
|
|
241089
|
-
|
|
241624
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_render,
|
|
241625
|
+
HistoryLogsvue_type_template_id_8d9c8a42_scoped_true_staticRenderFns,
|
|
241090
241626
|
false,
|
|
241091
241627
|
null,
|
|
241092
|
-
"
|
|
241628
|
+
"8d9c8a42",
|
|
241093
241629
|
null
|
|
241094
241630
|
|
|
241095
241631
|
)
|
|
@@ -242494,14 +243030,14 @@ var ToolControl_component = (0,componentNormalizer/* default */.Z)(
|
|
|
242494
243030
|
)
|
|
242495
243031
|
|
|
242496
243032
|
/* harmony default export */ var insert_ToolControl = (ToolControl_component.exports);
|
|
242497
|
-
;// 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=
|
|
242498
|
-
var
|
|
242499
|
-
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 = []
|
|
242500
243036
|
|
|
242501
243037
|
|
|
242502
|
-
;// 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=
|
|
242503
|
-
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)}
|
|
242504
|
-
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 = []
|
|
242505
243041
|
|
|
242506
243042
|
|
|
242507
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&
|
|
@@ -242713,7 +243249,6 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242713
243249
|
data: function data() {
|
|
242714
243250
|
return {
|
|
242715
243251
|
hoTableFeatures: null,
|
|
242716
|
-
tableFormulaValue: [],
|
|
242717
243252
|
tableCellCode: false,
|
|
242718
243253
|
dialogFormVisible: false,
|
|
242719
243254
|
dialogFormTitle: '',
|
|
@@ -242829,9 +243364,10 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242829
243364
|
},
|
|
242830
243365
|
// 打开计算公式熟入弹窗
|
|
242831
243366
|
openFormula: function openFormula(params) {
|
|
242832
|
-
this.dialogFormVisible = true;
|
|
242833
|
-
this.dialogFormTitle = params[0];
|
|
242834
|
-
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]);
|
|
242835
243371
|
},
|
|
242836
243372
|
// 计算公式
|
|
242837
243373
|
sure: function sure() {
|
|
@@ -242905,8 +243441,8 @@ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
|
242905
243441
|
|
|
242906
243442
|
var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
242907
243443
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
242908
|
-
|
|
242909
|
-
|
|
243444
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_render,
|
|
243445
|
+
HoTableFeaturesvue_type_template_id_2e225ab7_staticRenderFns,
|
|
242910
243446
|
false,
|
|
242911
243447
|
null,
|
|
242912
243448
|
null,
|
|
@@ -243050,6 +243586,9 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243050
243586
|
},
|
|
243051
243587
|
closeMenu: function closeMenu() {
|
|
243052
243588
|
this.$emit('closeMenu');
|
|
243589
|
+
},
|
|
243590
|
+
setModalStatus: function setModalStatus(str) {
|
|
243591
|
+
this.$emit('setModalStatus', str);
|
|
243053
243592
|
}
|
|
243054
243593
|
}
|
|
243055
243594
|
});
|
|
@@ -243071,8 +243610,8 @@ var HoTableFeatures_component = (0,componentNormalizer/* default */.Z)(
|
|
|
243071
243610
|
|
|
243072
243611
|
var insert_ToolTable_component = (0,componentNormalizer/* default */.Z)(
|
|
243073
243612
|
insert_ToolTablevue_type_script_lang_js_,
|
|
243074
|
-
|
|
243075
|
-
|
|
243613
|
+
ToolTablevue_type_template_id_3884e3aa_render,
|
|
243614
|
+
ToolTablevue_type_template_id_3884e3aa_staticRenderFns,
|
|
243076
243615
|
false,
|
|
243077
243616
|
null,
|
|
243078
243617
|
null,
|
|
@@ -243728,8 +244267,8 @@ ToolBar = (0,tslib_es6/* __decorate */.gn)([(0,vue_property_decorator/* Componen
|
|
|
243728
244267
|
|
|
243729
244268
|
var ToolBar_component = (0,componentNormalizer/* default */.Z)(
|
|
243730
244269
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
243731
|
-
|
|
243732
|
-
|
|
244270
|
+
ToolBarvue_type_template_id_8cc7b3e4_render,
|
|
244271
|
+
ToolBarvue_type_template_id_8cc7b3e4_staticRenderFns,
|
|
243733
244272
|
false,
|
|
243734
244273
|
null,
|
|
243735
244274
|
null,
|