hoeditor-web 2.0.98 → 2.0.100
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 +270 -116
- package/lib/hoeditor.css +3 -3
- package/lib/hoeditor.umd.js +270 -116
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -6000,7 +6000,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6000
6000
|
|
|
6001
6001
|
/***/ }),
|
|
6002
6002
|
|
|
6003
|
-
/***/
|
|
6003
|
+
/***/ 2706:
|
|
6004
6004
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6005
6005
|
|
|
6006
6006
|
"use strict";
|
|
@@ -6012,7 +6012,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6012
6012
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6013
6013
|
});
|
|
6014
6014
|
|
|
6015
|
-
;// 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=
|
|
6015
|
+
;// 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=39dd7333&scoped=true&
|
|
6016
6016
|
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){
|
|
6017
6017
|
var item = ref.item;
|
|
6018
6018
|
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()])}
|
|
@@ -8408,7 +8408,7 @@ var popper = __webpack_require__(14519);
|
|
|
8408
8408
|
if (_this2.poppernIstance) {
|
|
8409
8409
|
_this2.poppernIstance.update();
|
|
8410
8410
|
}
|
|
8411
|
-
},
|
|
8411
|
+
}, 100);
|
|
8412
8412
|
}
|
|
8413
8413
|
},
|
|
8414
8414
|
methods: {
|
|
@@ -8829,10 +8829,10 @@ var popper = __webpack_require__(14519);
|
|
|
8829
8829
|
});
|
|
8830
8830
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
8831
8831
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
8832
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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=
|
|
8832
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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=39dd7333&lang=scss&scoped=true&
|
|
8833
8833
|
// extracted by mini-css-extract-plugin
|
|
8834
8834
|
|
|
8835
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8835
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
|
|
8836
8836
|
|
|
8837
8837
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8838
8838
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -8851,7 +8851,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8851
8851
|
staticRenderFns,
|
|
8852
8852
|
false,
|
|
8853
8853
|
null,
|
|
8854
|
-
"
|
|
8854
|
+
"39dd7333",
|
|
8855
8855
|
null
|
|
8856
8856
|
|
|
8857
8857
|
)
|
|
@@ -10518,7 +10518,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10518
10518
|
|
|
10519
10519
|
/***/ }),
|
|
10520
10520
|
|
|
10521
|
-
/***/
|
|
10521
|
+
/***/ 76060:
|
|
10522
10522
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10523
10523
|
|
|
10524
10524
|
"use strict";
|
|
@@ -10530,11 +10530,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10530
10530
|
"default": function() { return /* binding */ Sign; }
|
|
10531
10531
|
});
|
|
10532
10532
|
|
|
10533
|
-
;// 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/sign/Sign.vue?vue&type=template&id=
|
|
10533
|
+
;// 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/sign/Sign.vue?vue&type=template&id=5a3cdcd6&
|
|
10534
10534
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":3},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义CA签名")])],1)]),(_vm.signType == 2)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("连接符")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.connectChar),callback:function ($$v) {_vm.connectChar=$$v},expression:"connectChar"}})],1):_vm._e(),(_vm.signType >= 3)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数: 医师签名 / "),_c('br'),_vm._v(" 勾选参数: / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType >= 3)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
10535
10535
|
var staticRenderFns = []
|
|
10536
10536
|
|
|
10537
10537
|
|
|
10538
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
10539
|
+
var es_function_name = __webpack_require__(68309);
|
|
10538
10540
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
10539
10541
|
var es_regexp_exec = __webpack_require__(74916);
|
|
10540
10542
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -10555,10 +10557,10 @@ var es_array_concat = __webpack_require__(92222);
|
|
|
10555
10557
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
10556
10558
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
10557
10559
|
var es_array_slice = __webpack_require__(47042);
|
|
10558
|
-
// EXTERNAL MODULE: ./
|
|
10559
|
-
var
|
|
10560
|
-
// EXTERNAL MODULE: ./src/
|
|
10561
|
-
var
|
|
10560
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
10561
|
+
var HOEditorFactorys = __webpack_require__(41005);
|
|
10562
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
10563
|
+
var SignNode = __webpack_require__(34450);
|
|
10562
10564
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
|
|
10563
10565
|
|
|
10564
10566
|
|
|
@@ -10677,14 +10679,18 @@ var HoColorPicker = __webpack_require__(47328);
|
|
|
10677
10679
|
//
|
|
10678
10680
|
//
|
|
10679
10681
|
|
|
10682
|
+
|
|
10680
10683
|
/* harmony default export */ var Signvue_type_script_lang_js_ = ({
|
|
10681
10684
|
name: 'Sign',
|
|
10682
|
-
components: {
|
|
10683
|
-
HoColorPicker: HoColorPicker["default"]
|
|
10684
|
-
},
|
|
10685
10685
|
props: {
|
|
10686
10686
|
vueController: {
|
|
10687
10687
|
default: function _default() {}
|
|
10688
|
+
},
|
|
10689
|
+
controlStatus: {
|
|
10690
|
+
default: 'add'
|
|
10691
|
+
},
|
|
10692
|
+
hoEditorFactoryId: {
|
|
10693
|
+
default: ''
|
|
10688
10694
|
}
|
|
10689
10695
|
},
|
|
10690
10696
|
data: function data() {
|
|
@@ -10703,7 +10709,41 @@ var HoColorPicker = __webpack_require__(47328);
|
|
|
10703
10709
|
animationClassNames: 'control-modal-contents sign-modal animation-in'
|
|
10704
10710
|
};
|
|
10705
10711
|
},
|
|
10712
|
+
mounted: function mounted() {
|
|
10713
|
+
if (this.controlStatus === 'update') {
|
|
10714
|
+
var node = this.getCurrentSelectNode();
|
|
10715
|
+
|
|
10716
|
+
if (node) {
|
|
10717
|
+
this.name = node.name;
|
|
10718
|
+
this.signType = node.signType == 0 && node.connectMode ? 3 : node.signType;
|
|
10719
|
+
this.signFormat = node.signFormat;
|
|
10720
|
+
this.connectMode = node.connectMode;
|
|
10721
|
+
this.connectChar = node.connectChar;
|
|
10722
|
+
this.isFront = node.isFront;
|
|
10723
|
+
this.signTimeFormat = node.signTimeFormat;
|
|
10724
|
+
this.customFormatContent = node.customFormatContent;
|
|
10725
|
+
this.customSignFormatList = node.customSignFormatList;
|
|
10726
|
+
}
|
|
10727
|
+
}
|
|
10728
|
+
},
|
|
10706
10729
|
methods: {
|
|
10730
|
+
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
10731
|
+
var _hoEditorFactory$vueC;
|
|
10732
|
+
|
|
10733
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
10734
|
+
var domRange = {
|
|
10735
|
+
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
10736
|
+
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
10737
|
+
};
|
|
10738
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
10739
|
+
if (!node) return undefined;
|
|
10740
|
+
|
|
10741
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
10742
|
+
return node;
|
|
10743
|
+
}
|
|
10744
|
+
|
|
10745
|
+
return null;
|
|
10746
|
+
},
|
|
10707
10747
|
// 创建自定义签名格式
|
|
10708
10748
|
createSignFormat: function createSignFormat() {
|
|
10709
10749
|
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
@@ -10796,7 +10836,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10796
10836
|
|
|
10797
10837
|
/***/ }),
|
|
10798
10838
|
|
|
10799
|
-
/***/
|
|
10839
|
+
/***/ 91192:
|
|
10800
10840
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10801
10841
|
|
|
10802
10842
|
"use strict";
|
|
@@ -10808,7 +10848,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10808
10848
|
"default": function() { return /* binding */ TableCellPoper; }
|
|
10809
10849
|
});
|
|
10810
10850
|
|
|
10811
|
-
;// 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=
|
|
10851
|
+
;// 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=958de66c&scoped=true&
|
|
10812
10852
|
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","justify-content":"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)}
|
|
10813
10853
|
var staticRenderFns = []
|
|
10814
10854
|
|
|
@@ -11275,10 +11315,10 @@ var HOEditorFactorys = __webpack_require__(41005);
|
|
|
11275
11315
|
});
|
|
11276
11316
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11277
11317
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11278
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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=
|
|
11318
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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=958de66c&lang=scss&scoped=true&
|
|
11279
11319
|
// extracted by mini-css-extract-plugin
|
|
11280
11320
|
|
|
11281
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11321
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=958de66c&lang=scss&scoped=true&
|
|
11282
11322
|
|
|
11283
11323
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11284
11324
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11297,7 +11337,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11297
11337
|
staticRenderFns,
|
|
11298
11338
|
false,
|
|
11299
11339
|
null,
|
|
11300
|
-
"
|
|
11340
|
+
"958de66c",
|
|
11301
11341
|
null
|
|
11302
11342
|
|
|
11303
11343
|
)
|
|
@@ -11958,7 +11998,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11958
11998
|
|
|
11959
11999
|
/***/ }),
|
|
11960
12000
|
|
|
11961
|
-
/***/
|
|
12001
|
+
/***/ 17479:
|
|
11962
12002
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11963
12003
|
|
|
11964
12004
|
"use strict";
|
|
@@ -11970,7 +12010,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11970
12010
|
"default": function() { return /* binding */ TableColProperty; }
|
|
11971
12011
|
});
|
|
11972
12012
|
|
|
11973
|
-
;// 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/TableColProperty.vue?vue&type=template&id=
|
|
12013
|
+
;// 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/TableColProperty.vue?vue&type=template&id=384a329a&
|
|
11974
12014
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格列属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编号")]),_c('span',{staticClass:"readonly-value"},[_vm._v(_vm._s(_vm.id))])]),_c('li',{staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1)]),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyWidth),callback:function ($$v) {_vm.isSpecifyWidth=$$v},expression:"isSpecifyWidth"}},[_vm._v("指定宽度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyWidth,"step":1,"min":0,"precision":2,"controls":false},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示宽度 "+_vm._s(_vm.colWidth)+" 厘米")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("垂直对齐方式")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"垂直对齐方式","size":"mini"},model:{value:(_vm.align),callback:function ($$v) {_vm.align=$$v},expression:"align"}},[_c('el-option',{attrs:{"label":"靠上","value":0}}),_c('el-option',{attrs:{"label":"居中","value":1}}),_c('el-option',{attrs:{"label":"靠下","value":2}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("编辑器属性")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"编辑器属性","size":"mini"},on:{"change":_vm.editorPropertyChange},model:{value:(_vm.editorProperty),callback:function ($$v) {_vm.editorProperty=$$v},expression:"editorProperty"}},[_c('el-option',{attrs:{"label":"无","value":0}}),_c('el-option',{attrs:{"label":"下拉列表","value":1}}),_c('el-option',{attrs:{"label":"日期","value":2}}),_c('el-option',{attrs:{"label":"数值","value":3}}),_c('el-option',{attrs:{"label":"签名","value":4}})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 4),expression:"editorProperty === 4"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("分隔符")]),_c('el-select',{staticStyle:{"text-align":"left","font-size":"20px"},attrs:{"placeholder":"分隔符","size":"mini"},model:{value:(_vm.splitCharacter),callback:function ($$v) {_vm.splitCharacter=$$v},expression:"splitCharacter"}},[_c('el-option',{attrs:{"label":",","value":","}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"-","value":"-"}})],1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.allowMultiSelected),callback:function ($$v) {_vm.allowMultiSelected=$$v},expression:"allowMultiSelected"}},[_vm._v("允许多选")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.isAllowDel),callback:function ($$v) {_vm.isAllowDel=$$v},expression:"isAllowDel"}},[_vm._v("允许被删除")])],1),_c('div',{staticClass:"control-item"},[_c('el-checkbox',{model:{value:(_vm.canModifyContent),callback:function ($$v) {_vm.canModifyContent=$$v},expression:"canModifyContent"}},[_vm._v("用户可以直接编辑修改内容")])],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("来源")]),_c('el-input',{attrs:{"size":"mini"},model:{value:(_vm.source),callback:function ($$v) {_vm.source=$$v},expression:"source"}})],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 1),expression:"editorProperty === 1"}],staticClass:"control-item"},[_c('el-table',{staticStyle:{"width":"100%"},attrs:{"data":_vm.listItems,"max-height":"210px"}},[_c('el-table-column',{staticStyle:{"text-align":"center"},attrs:{"label":"","width":"32"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('i',{directives:[{name:"show",rawName:"v-show",value:(scope.$index === _vm.focusIndexs),expression:"scope.$index === focusIndexs"}],staticClass:"el-icon-edit",staticStyle:{"transform":"translateX(6px)"}})]}}])}),_c('el-table-column',{attrs:{"label":"文本","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{class:_vm.errorIndex.includes(scope.row.id) ? 'error' : '',attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.text),callback:function ($$v) {_vm.$set(scope.row, "text", $$v)},expression:"scope.row.text"}})]}}])}),_c('el-table-column',{attrs:{"label":"值","width":"130"},scopedSlots:_vm._u([{key:"default",fn:function(scope){return [_c('el-input',{attrs:{"size":"small"},on:{"focus":function($event){return _vm.focusIndex(scope.$index)},"input":function($event){return _vm.inputIndex(scope.$index)},"blur":function($event){return _vm.blurIndex(scope.$index)}},model:{value:(scope.row.value),callback:function ($$v) {_vm.$set(scope.row, "value", $$v)},expression:"scope.row.value"}})]}}])}),_c('el-table-column',{scopedSlots:_vm._u([{key:"default",fn:function(scope){return (scope.$index !== _vm.listItems.length - 1 && _vm.focusIndexs === scope.$index)?[_c('el-button',{attrs:{"size":"mini"},on:{"click":function($event){$event.stopPropagation();return _vm.deleteCurrentRow(scope.row.id)}}},[_vm._v("删除")])]:undefined}}],null,true)})],1)],1),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 2),expression:"editorProperty === 2"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("日期格式")]),_c('el-select',{attrs:{"placeholder":"输入样式","size":"mini"},model:{value:(_vm.inputStyle),callback:function ($$v) {_vm.inputStyle=$$v},expression:"inputStyle"}},_vm._l((_vm.dateFormatList),function(item){return _c('el-option',{key:item,attrs:{"label":item,"value":item}})}),1)],1)]),_c('li',{directives:[{name:"show",rawName:"v-show",value:(_vm.editorProperty === 3),expression:"editorProperty === 3"}],staticClass:"control-item"},[_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最小值")]),_c('el-input-number',{attrs:{"size":"mini","max":Number(_vm.maxNumVal),"min":0,"step":10,"controls":false},model:{value:(_vm.minNumVal),callback:function ($$v) {_vm.minNumVal=$$v},expression:"minNumVal"}})],1),_c('div',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("最大值")]),_c('el-input-number',{attrs:{"size":"mini","min":Number(_vm.minNumVal),"step":10,"controls":false},model:{value:(_vm.maxNumVal),callback:function ($$v) {_vm.maxNumVal=$$v},expression:"maxNumVal"}})],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
11975
12015
|
var staticRenderFns = []
|
|
11976
12016
|
|
|
@@ -12238,13 +12278,14 @@ var getCellNode = __webpack_require__(86257);
|
|
|
12238
12278
|
},
|
|
12239
12279
|
created: function created() {
|
|
12240
12280
|
var cellNode = this.getCellNodes();
|
|
12281
|
+
var colInfoes = null;
|
|
12241
12282
|
|
|
12242
12283
|
if (cellNode !== null) {
|
|
12243
|
-
var
|
|
12284
|
+
var _colInfoes;
|
|
12244
12285
|
|
|
12245
12286
|
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12246
|
-
|
|
12247
|
-
var customProperties = (
|
|
12287
|
+
colInfoes = cellNode.table.colInfos[currentCols];
|
|
12288
|
+
var customProperties = (_colInfoes = colInfoes) === null || _colInfoes === void 0 ? void 0 : _colInfoes.colProperty.customProperties;
|
|
12248
12289
|
|
|
12249
12290
|
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
12250
12291
|
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
@@ -12260,11 +12301,11 @@ var getCellNode = __webpack_require__(86257);
|
|
|
12260
12301
|
}
|
|
12261
12302
|
}
|
|
12262
12303
|
|
|
12263
|
-
if (
|
|
12304
|
+
if (colInfoes !== null) {
|
|
12264
12305
|
var _colProperty$dateTime, _colProperty$dateTime2;
|
|
12265
12306
|
|
|
12266
12307
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
12267
|
-
var colProperty =
|
|
12308
|
+
var colProperty = colInfoes.colProperty;
|
|
12268
12309
|
this.id = colProperty.id ? colProperty.id : this.vueController.generateID('TB');
|
|
12269
12310
|
this.editorProperty = colProperty.editorProperty ? colProperty.editorProperty : 0;
|
|
12270
12311
|
this.align = colProperty.align ? colProperty.align : 0;
|
|
@@ -12284,7 +12325,7 @@ var getCellNode = __webpack_require__(86257);
|
|
|
12284
12325
|
this.maxNumVal = colProperty.numberProperty ? colProperty.numberProperty.maxNumVal : 0;
|
|
12285
12326
|
this.minNumVal = colProperty.numberProperty ? colProperty.numberProperty.minNumVal : 100;
|
|
12286
12327
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
12287
|
-
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
12328
|
+
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
12288
12329
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
12289
12330
|
}
|
|
12290
12331
|
},
|
|
@@ -12418,14 +12459,16 @@ var getCellNode = __webpack_require__(86257);
|
|
|
12418
12459
|
param[key] = _this[key];
|
|
12419
12460
|
}
|
|
12420
12461
|
});
|
|
12421
|
-
this.
|
|
12462
|
+
var cellNode = this.getCellNodes();
|
|
12463
|
+
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12464
|
+
var colInfoes = cellNode.table.colInfos[currentCols];
|
|
12465
|
+
this.vueController.colProperty(JSON.stringify(param), colInfoes);
|
|
12422
12466
|
this.$nextTick(function () {
|
|
12423
12467
|
return _this.handleClose();
|
|
12424
12468
|
});
|
|
12425
12469
|
},
|
|
12426
12470
|
handleClose: function handleClose() {
|
|
12427
12471
|
this.$emit('closed');
|
|
12428
|
-
this.colInfoes = null;
|
|
12429
12472
|
}
|
|
12430
12473
|
}
|
|
12431
12474
|
});
|
|
@@ -13036,7 +13079,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13036
13079
|
|
|
13037
13080
|
/***/ }),
|
|
13038
13081
|
|
|
13039
|
-
/***/
|
|
13082
|
+
/***/ 9046:
|
|
13040
13083
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13041
13084
|
|
|
13042
13085
|
"use strict";
|
|
@@ -13048,7 +13091,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13048
13091
|
"default": function() { return /* binding */ TableRowProperty; }
|
|
13049
13092
|
});
|
|
13050
13093
|
|
|
13051
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=
|
|
13094
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=f923cecc&scoped=true&
|
|
13052
13095
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("表格行属性")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("自定义属性")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyHeight),callback:function ($$v) {_vm.isSpecifyHeight=$$v},expression:"isSpecifyHeight"}},[_vm._v("指定高度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyHeight,"precision":2,"step":1,"min":0,"controls":false,"controls-position":"right"},model:{value:(_vm.rowHeight),callback:function ($$v) {_vm.rowHeight=$$v},expression:"rowHeight"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示高度 "+_vm._s(_vm.rowHeightMm)+" 厘米")])],1),_c('li',{staticClass:"control-item",staticStyle:{"padding":"0 0 0 10px"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.isSpecifyHeight},model:{value:(_vm.isLockRowHeight),callback:function ($$v) {_vm.isLockRowHeight=$$v},expression:"isLockRowHeight"}},[_vm._v("锁定行高")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.repeatAsTitleAtPageTop),callback:function ($$v) {_vm.repeatAsTitleAtPageTop=$$v},expression:"repeatAsTitleAtPageTop"}},[_vm._v("在隔页顶端以标题行形式重复出现")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.sameLineCanAcrossPages),callback:function ($$v) {_vm.sameLineCanAcrossPages=$$v},expression:"sameLineCanAcrossPages"}},[_vm._v("同行内容能跨页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.forcedPageBreak),callback:function ($$v) {_vm.forcedPageBreak=$$v},expression:"forcedPageBreak"}},[_vm._v("强制分页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBorders),callback:function ($$v) {_vm.printCellBorders=$$v},expression:"printCellBorders"}},[_vm._v("打印单元格边框线")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBg),callback:function ($$v) {_vm.printCellBg=$$v},expression:"printCellBg"}},[_vm._v("打印单元格背景")])],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
13053
13096
|
var staticRenderFns = []
|
|
13054
13097
|
|
|
@@ -13225,17 +13268,18 @@ var TableNode = __webpack_require__(95883);
|
|
|
13225
13268
|
methods: {
|
|
13226
13269
|
init: function init() {
|
|
13227
13270
|
var cellNode = this.getCellNodes();
|
|
13271
|
+
var rowInfos = null;
|
|
13228
13272
|
|
|
13229
13273
|
if (cellNode !== null) {
|
|
13230
13274
|
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13231
|
-
|
|
13275
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13232
13276
|
}
|
|
13233
13277
|
|
|
13234
|
-
if (
|
|
13235
|
-
this.rowProperty =
|
|
13278
|
+
if (rowInfos !== null) {
|
|
13279
|
+
this.rowProperty = rowInfos.rowProperty;
|
|
13236
13280
|
}
|
|
13237
13281
|
|
|
13238
|
-
if (this.rowProperty !== null &&
|
|
13282
|
+
if (this.rowProperty !== null && rowInfos !== null) {
|
|
13239
13283
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
13240
13284
|
this.id = this.rowProperty.id ? this.rowProperty.id : this.vueController.generateID('TB');
|
|
13241
13285
|
this.isSpecifyHeight = this.rowProperty.isSpecifyHeight;
|
|
@@ -13247,7 +13291,7 @@ var TableNode = __webpack_require__(95883);
|
|
|
13247
13291
|
this.printCellBorders = this.rowProperty.printCellBorders;
|
|
13248
13292
|
this.printCellBg = this.rowProperty.printCellBg;
|
|
13249
13293
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
13250
|
-
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
13294
|
+
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
13251
13295
|
}
|
|
13252
13296
|
},
|
|
13253
13297
|
getCellNodes: function getCellNodes() {
|
|
@@ -13328,7 +13372,15 @@ var TableNode = __webpack_require__(95883);
|
|
|
13328
13372
|
param[key] = _this[key];
|
|
13329
13373
|
}
|
|
13330
13374
|
});
|
|
13331
|
-
this.
|
|
13375
|
+
var cellNode = this.getCellNodes();
|
|
13376
|
+
var rowInfos = null;
|
|
13377
|
+
|
|
13378
|
+
if (cellNode !== null) {
|
|
13379
|
+
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13380
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13381
|
+
}
|
|
13382
|
+
|
|
13383
|
+
this.vueController.rowProperty(JSON.stringify(param), rowInfos);
|
|
13332
13384
|
this.$nextTick(function () {
|
|
13333
13385
|
return _this.handleClose();
|
|
13334
13386
|
});
|
|
@@ -13342,10 +13394,10 @@ var TableNode = __webpack_require__(95883);
|
|
|
13342
13394
|
});
|
|
13343
13395
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
13344
13396
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js_ = (TableRowPropertyvue_type_script_lang_js_);
|
|
13345
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13397
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13346
13398
|
// extracted by mini-css-extract-plugin
|
|
13347
13399
|
|
|
13348
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13400
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13349
13401
|
|
|
13350
13402
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13351
13403
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -13364,7 +13416,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13364
13416
|
staticRenderFns,
|
|
13365
13417
|
false,
|
|
13366
13418
|
null,
|
|
13367
|
-
"
|
|
13419
|
+
"f923cecc",
|
|
13368
13420
|
null
|
|
13369
13421
|
|
|
13370
13422
|
)
|
|
@@ -26820,10 +26872,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26820
26872
|
|
|
26821
26873
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
26822
26874
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26875
|
+
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26823
26876
|
|
|
26824
26877
|
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
26825
|
-
var
|
|
26826
|
-
curRange.endPath =
|
|
26878
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26879
|
+
curRange.endPath = ePath;
|
|
26880
|
+
}
|
|
26881
|
+
|
|
26882
|
+
if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26883
|
+
var _ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26884
|
+
|
|
26885
|
+
curRange.startPath = firstPath;
|
|
26886
|
+
curRange.endPath = _ePath;
|
|
26827
26887
|
}
|
|
26828
26888
|
}
|
|
26829
26889
|
|
|
@@ -27042,13 +27102,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27042
27102
|
});
|
|
27043
27103
|
}
|
|
27044
27104
|
} else {
|
|
27105
|
+
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
27106
|
+
|
|
27045
27107
|
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
27046
27108
|
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
|
|
27047
27109
|
var textNode = node;
|
|
27048
27110
|
|
|
27049
|
-
_this.insertNodeText(textNode, strPath, aText);
|
|
27111
|
+
_this.insertNodeText(textNode, strPath, aText); //strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
27050
27112
|
|
|
27051
|
-
|
|
27113
|
+
|
|
27114
|
+
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
27052
27115
|
} else {
|
|
27053
27116
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
27054
27117
|
|
|
@@ -49636,15 +49699,17 @@ var RowInfos = /*#__PURE__*/function () {
|
|
|
49636
49699
|
|
|
49637
49700
|
var r = this._table.rowInfos.indexOf(this);
|
|
49638
49701
|
|
|
49639
|
-
|
|
49640
|
-
var
|
|
49641
|
-
|
|
49642
|
-
|
|
49643
|
-
|
|
49644
|
-
|
|
49702
|
+
if (r >= 0) {
|
|
49703
|
+
for (var i = 0; i < this._table.colCount; i++) {
|
|
49704
|
+
var _this$_table$getMainC = this._table.getMainCell(r, i),
|
|
49705
|
+
_this$_table$getMainC2 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this$_table$getMainC, 3),
|
|
49706
|
+
mainCell = _this$_table$getMainC2[0],
|
|
49707
|
+
mr = _this$_table$getMainC2[1],
|
|
49708
|
+
mc = _this$_table$getMainC2[2];
|
|
49645
49709
|
|
|
49646
|
-
|
|
49647
|
-
|
|
49710
|
+
if (mainCell.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_30__/* .VAlign.vatop */ .TR.vatop) {
|
|
49711
|
+
mainCell.drawCell.needUpdate = true;
|
|
49712
|
+
}
|
|
49648
49713
|
}
|
|
49649
49714
|
}
|
|
49650
49715
|
}
|
|
@@ -58103,6 +58168,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58103
58168
|
|
|
58104
58169
|
if (!canfit && this._allowAcrossPage) {
|
|
58105
58170
|
this._endDline = nextDline - 1;
|
|
58171
|
+
|
|
58172
|
+
if (this._endDline == -1) {
|
|
58173
|
+
this._endDline = -2;
|
|
58174
|
+
}
|
|
58175
|
+
|
|
58106
58176
|
this.clearOverDitem(dlines, nextDline);
|
|
58107
58177
|
isFull = true;
|
|
58108
58178
|
bFinishedPaint = false;
|
|
@@ -58268,6 +58338,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58268
58338
|
if (!canfit && dTop > 0 && this._allowAcrossPage) {
|
|
58269
58339
|
var nextArea = this.getNextDrawArea();
|
|
58270
58340
|
this._endDline = nextDline - 1;
|
|
58341
|
+
|
|
58342
|
+
if (this._endDline == -1) {
|
|
58343
|
+
this._endDline = -2;
|
|
58344
|
+
}
|
|
58345
|
+
|
|
58271
58346
|
isFull = true; // this.clearOverDitem(dlines, nextDline);
|
|
58272
58347
|
|
|
58273
58348
|
return [isFull, dTop, restHeight];
|
|
@@ -62965,6 +63040,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
62965
63040
|
}, {
|
|
62966
63041
|
key: "paintArea",
|
|
62967
63042
|
value: function paintArea(dlines, startIndex, dTop) {
|
|
63043
|
+
startIndex = startIndex < -1 ? 0 : startIndex;
|
|
63044
|
+
|
|
62968
63045
|
var _get$call = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "paintArea", this).call(this, dlines, startIndex, dTop),
|
|
62969
63046
|
_get$call2 = (0,slicedToArray/* default */.Z)(_get$call, 3),
|
|
62970
63047
|
bret = _get$call2[0],
|
|
@@ -63370,9 +63447,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63370
63447
|
// }
|
|
63371
63448
|
|
|
63372
63449
|
|
|
63373
|
-
this._startDline = startIndex;
|
|
63450
|
+
this._startDline = startIndex < -1 ? 0 : startIndex;
|
|
63374
63451
|
|
|
63375
|
-
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines,
|
|
63452
|
+
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, this._startDline, valignTop, restHeight);
|
|
63376
63453
|
|
|
63377
63454
|
this._docHeight = Math.max(0, this._docHeight - valignTop);
|
|
63378
63455
|
this.updateDHeight();
|
|
@@ -64387,7 +64464,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64387
64464
|
dHeight = _cell.drawCell.getCellRestHeight(_cell.drawCell.drawPageCells.indexOf(dPartCell) - 1);
|
|
64388
64465
|
|
|
64389
64466
|
if (dPartCell.isEndLineFinished()) {
|
|
64390
|
-
|
|
64467
|
+
if (dPartCell.endDline == -2) {
|
|
64468
|
+
startDline = 0;
|
|
64469
|
+
} else {
|
|
64470
|
+
startDline = dPartCell.endDline + 1;
|
|
64471
|
+
}
|
|
64391
64472
|
} else startDline = dPartCell.endDline;
|
|
64392
64473
|
}
|
|
64393
64474
|
} else if (_cell.drawCell.drawPageCells.length > 0) {
|
|
@@ -65124,7 +65205,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
65124
65205
|
|
|
65125
65206
|
if (dPrevPartCell) {
|
|
65126
65207
|
partCellindex = _cell2.drawCell.drawPageCells.indexOf(dPrevPartCell);
|
|
65127
|
-
if (dPrevPartCell.isEndLineFinished())
|
|
65208
|
+
if (dPrevPartCell.isEndLineFinished()) {
|
|
65209
|
+
if (dPrevPartCell.endDline == -2) {
|
|
65210
|
+
startChildIndex = 0;
|
|
65211
|
+
} else {
|
|
65212
|
+
startChildIndex = dPrevPartCell.endDline + 1;
|
|
65213
|
+
}
|
|
65214
|
+
} else startChildIndex = dPrevPartCell.endDline;
|
|
65128
65215
|
}
|
|
65129
65216
|
}
|
|
65130
65217
|
|
|
@@ -213117,7 +213204,7 @@ var map = {
|
|
|
213117
213204
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
213118
213205
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
213119
213206
|
"./poperSelect/PoperMark.vue": 93069,
|
|
213120
|
-
"./poperSelect/PoperSelect.vue":
|
|
213207
|
+
"./poperSelect/PoperSelect.vue": 2706,
|
|
213121
213208
|
"./poperTipText/PoperTipText.vue": 91831,
|
|
213122
213209
|
"./popers/Poper.vue": 25425,
|
|
213123
213210
|
"./popers/Title.vue": 40168,
|
|
@@ -213125,13 +213212,13 @@ var map = {
|
|
|
213125
213212
|
"./qrCode/QrCode.vue": 67776,
|
|
213126
213213
|
"./radioCheckBox/RadioCheckbox.vue": 48961,
|
|
213127
213214
|
"./selectDialog/SelectDialog.vue": 54891,
|
|
213128
|
-
"./sign/Sign.vue":
|
|
213129
|
-
"./table/TableCellPoper.vue":
|
|
213215
|
+
"./sign/Sign.vue": 76060,
|
|
213216
|
+
"./table/TableCellPoper.vue": 91192,
|
|
213130
213217
|
"./table/TableCellProperty.vue": 52445,
|
|
213131
|
-
"./table/TableColProperty.vue":
|
|
213218
|
+
"./table/TableColProperty.vue": 17479,
|
|
213132
213219
|
"./table/TableFormula.vue": 20006,
|
|
213133
213220
|
"./table/TableProperty.vue": 44680,
|
|
213134
|
-
"./table/TableRowProperty.vue":
|
|
213221
|
+
"./table/TableRowProperty.vue": 9046,
|
|
213135
213222
|
"./textDialog/TextDialog.vue": 74796,
|
|
213136
213223
|
"./upload/CanvasImageDialog.vue": 49532,
|
|
213137
213224
|
"./upload/UploadImageDialog.vue": 97599
|
|
@@ -214673,9 +214760,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214673
214760
|
var es_number_constructor = __webpack_require__(9653);
|
|
214674
214761
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214675
214762
|
var es_json_stringify = __webpack_require__(38862);
|
|
214676
|
-
;// 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=
|
|
214677
|
-
var
|
|
214678
|
-
var
|
|
214763
|
+
;// 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=088d007e&
|
|
214764
|
+
var HoDocvue_type_template_id_088d007e_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)}
|
|
214765
|
+
var HoDocvue_type_template_id_088d007e_staticRenderFns = []
|
|
214679
214766
|
|
|
214680
214767
|
|
|
214681
214768
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -215332,7 +215419,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
215332
215419
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215333
215420
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
215334
215421
|
|
|
215335
|
-
if (!dPage.drawDomLevel) {
|
|
215422
|
+
if (!dPage || !dPage.drawDomLevel) {
|
|
215336
215423
|
return false;
|
|
215337
215424
|
}
|
|
215338
215425
|
|
|
@@ -216604,7 +216691,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
216604
216691
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
216605
216692
|
var util = __webpack_require__(33913);
|
|
216606
216693
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
216607
|
-
var PoperSelect = __webpack_require__(
|
|
216694
|
+
var PoperSelect = __webpack_require__(2706);
|
|
216608
216695
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
216609
216696
|
var PoperMark = __webpack_require__(93069);
|
|
216610
216697
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -216612,7 +216699,7 @@ var PoperMark = __webpack_require__(93069);
|
|
|
216612
216699
|
|
|
216613
216700
|
|
|
216614
216701
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
216615
|
-
var TableCellPoper = __webpack_require__(
|
|
216702
|
+
var TableCellPoper = __webpack_require__(91192);
|
|
216616
216703
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
216617
216704
|
var DateTimeNode = __webpack_require__(36395);
|
|
216618
216705
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -218316,7 +218403,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218316
218403
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218317
218404
|
var ParagraphNode = __webpack_require__(14208);
|
|
218318
218405
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218319
|
-
/* harmony default export */ var version = ('2.0.
|
|
218406
|
+
/* harmony default export */ var version = ('2.0.100');
|
|
218320
218407
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218321
218408
|
var PoperTipText = __webpack_require__(91831);
|
|
218322
218409
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218591,7 +218678,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218591
218678
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
218592
218679
|
}
|
|
218593
218680
|
},
|
|
218594
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
218681
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue', 'setControlProperty'],
|
|
218595
218682
|
created: function created() {
|
|
218596
218683
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218597
218684
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -218802,7 +218889,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218802
218889
|
|
|
218803
218890
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218804
218891
|
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218805
|
-
//
|
|
218892
|
+
// this.setControlProperty('sign', 'update', '');
|
|
218806
218893
|
// return;
|
|
218807
218894
|
// }
|
|
218808
218895
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
@@ -219099,8 +219186,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
219099
219186
|
|
|
219100
219187
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219101
219188
|
components_HoDocvue_type_script_lang_js_,
|
|
219102
|
-
|
|
219103
|
-
|
|
219189
|
+
HoDocvue_type_template_id_088d007e_render,
|
|
219190
|
+
HoDocvue_type_template_id_088d007e_staticRenderFns,
|
|
219104
219191
|
false,
|
|
219105
219192
|
null,
|
|
219106
219193
|
null,
|
|
@@ -219367,6 +219454,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219367
219454
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219368
219455
|
|
|
219369
219456
|
if (aDrawArea instanceof DrawPageCell/* DrawPageCell */.k) {
|
|
219457
|
+
//单元格内的绘制单独调用paintDrawPageCell
|
|
219370
219458
|
this.paintDrawPageCell(aDrawArea, dRoots, startLine, endLine);
|
|
219371
219459
|
return;
|
|
219372
219460
|
}
|
|
@@ -219374,16 +219462,19 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219374
219462
|
var startUpdateLine = endLine;
|
|
219375
219463
|
var drawArea = aDrawArea;
|
|
219376
219464
|
this._oldPageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
219377
|
-
var restHeight = Infinity;
|
|
219465
|
+
var restHeight = Infinity; //-----------开始定位绘制起始行,绘制起始位置--------------------------
|
|
219466
|
+
|
|
219378
219467
|
var aline = dRoots[startLine];
|
|
219379
219468
|
var dLine;
|
|
219380
219469
|
var dTop = 0;
|
|
219381
219470
|
var mainDTop = 0;
|
|
219382
219471
|
|
|
219383
219472
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
219473
|
+
//表格在绘制时,只取最后一个分页表格,
|
|
219384
219474
|
if (aline.drawPageTables.length > 0) {
|
|
219385
219475
|
dLine = aline.drawPageTables[aline.drawPageTables.length - 1];
|
|
219386
219476
|
} else {
|
|
219477
|
+
//表格还未开始绘制,无起始行
|
|
219387
219478
|
dLine = null;
|
|
219388
219479
|
|
|
219389
219480
|
if (startLine > 0) {
|
|
@@ -219415,7 +219506,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219415
219506
|
} else {
|
|
219416
219507
|
dLine = aline;
|
|
219417
219508
|
dTop = aline.y;
|
|
219418
|
-
}
|
|
219509
|
+
} //----------------结束定位绘制起始行,绘制起始位置--------------------------
|
|
219510
|
+
|
|
219419
219511
|
|
|
219420
219512
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop; // let drawArea = this.getMainRootArea(dLine);
|
|
219421
219513
|
|
|
@@ -219433,12 +219525,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219433
219525
|
this.clearAreas([mainArea]);
|
|
219434
219526
|
}
|
|
219435
219527
|
|
|
219436
|
-
var nextLine = startLine;
|
|
219528
|
+
var nextLine = startLine; //用于判断是否页已经満页的map
|
|
219529
|
+
|
|
219437
219530
|
var pageIsFull = new Map();
|
|
219438
219531
|
|
|
219439
219532
|
try {
|
|
219440
219533
|
this._startNeedUpdatePage = -1;
|
|
219441
|
-
this._endNeedUpdatePage = -1;
|
|
219534
|
+
this._endNeedUpdatePage = -1; //------------开始将不分页绘制树中的绘制行,按页进行摆放--------------------------
|
|
219442
219535
|
|
|
219443
219536
|
while (nextLine <= endLine) {
|
|
219444
219537
|
var dline = dRoots[nextLine]; //如果需要新起一页,则新起一页
|
|
@@ -219451,7 +219544,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219451
219544
|
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
219452
219545
|
dTop = 0;
|
|
219453
219546
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
219454
|
-
}
|
|
219547
|
+
} // 判断是否已经满页
|
|
219548
|
+
|
|
219455
219549
|
|
|
219456
219550
|
if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight) {
|
|
219457
219551
|
if (dline instanceof DrawLine/* DrawLine */.a && restHeight >= hoEditorFactory.defaultLineHeight) {
|
|
@@ -219470,11 +219564,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219470
219564
|
|
|
219471
219565
|
|
|
219472
219566
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219473
|
-
|
|
219567
|
+
//当前已经満页,绘制批注页码等信息
|
|
219568
|
+
this.afterAreaFinishPaint(drawArea); // 计算重绘页范围 ,已废弃
|
|
219569
|
+
|
|
219474
219570
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
219475
219571
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
219476
219572
|
pageIsFull.set(drawArea.index, true);
|
|
219477
|
-
var isNew = false;
|
|
219573
|
+
var isNew = false; //获取下一个绘制页,并初始化绘制位置
|
|
219478
219574
|
|
|
219479
219575
|
var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
|
|
219480
219576
|
|
|
@@ -219492,7 +219588,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219492
219588
|
break;
|
|
219493
219589
|
}
|
|
219494
219590
|
}
|
|
219495
|
-
}
|
|
219591
|
+
} //当前行不会触发满页,正常绘制
|
|
219592
|
+
|
|
219496
219593
|
|
|
219497
219594
|
var _dobj = dRoots[nextLine];
|
|
219498
219595
|
var cbParagraph = _dobj.paragraphNode.combineParagraph;
|
|
@@ -219501,10 +219598,12 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219501
219598
|
var bFinishedPaint = _dobj.drawPageTables.length > 0 && _dobj.isFinishedPaint();
|
|
219502
219599
|
|
|
219503
219600
|
if (bFinishedPaint) {
|
|
219601
|
+
//修改起始绘制点,已废弃
|
|
219504
219602
|
if (nextLine < startUpdateLine) {
|
|
219505
219603
|
startUpdateLine = nextLine > 0 ? nextLine - 1 : 0;
|
|
219506
219604
|
}
|
|
219507
219605
|
} else {
|
|
219606
|
+
//表格分页绘制,当表格分页绘制完成,但未达到最后一行绘制完时,需要新起一页,接着绘制,直到表格绘制完成
|
|
219508
219607
|
while (!bFinishedPaint) {
|
|
219509
219608
|
var startRow = 0;
|
|
219510
219609
|
|
|
@@ -219567,6 +219666,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219567
219666
|
dTop += cbParagraph.lineSpace;
|
|
219568
219667
|
}
|
|
219569
219668
|
} else {
|
|
219669
|
+
//普通行绘制,检查是否满页,満页后需要新起一页绘制
|
|
219570
219670
|
if (_dobj.dHeight > restHeight && dTop > 0) {
|
|
219571
219671
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219572
219672
|
drawArea.endDline = nextLine - 1; // drawArea.stage.update();
|
|
@@ -219582,12 +219682,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219582
219682
|
restHeight = drawArea.maxHeight - dTop;
|
|
219583
219683
|
}
|
|
219584
219684
|
}
|
|
219585
|
-
}
|
|
219685
|
+
} //普通行正常绘制
|
|
219686
|
+
|
|
219586
219687
|
|
|
219587
219688
|
if (nextLine > startLine || nextLine === startLine && !drawArea.contains(_dobj)) {
|
|
219588
219689
|
drawArea.addChild(_dobj);
|
|
219589
219690
|
_dobj.y = dTop; // dobj.x = cbParagraph.leftMarginPixes;
|
|
219590
|
-
}
|
|
219691
|
+
} //修改下一行的绘制起始位置
|
|
219692
|
+
|
|
219591
219693
|
|
|
219592
219694
|
dTop = _dobj.y + _dobj.dHeight + _dobj.paragraphNode.combineParagraph.lineSpace;
|
|
219593
219695
|
mainArea.docHeight = dTop;
|
|
@@ -219600,7 +219702,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219600
219702
|
// }
|
|
219601
219703
|
|
|
219602
219704
|
|
|
219603
|
-
var mainIndex = Math.min(nextLine, endLine, startUpdateLine);
|
|
219705
|
+
var mainIndex = Math.min(nextLine, endLine, startUpdateLine); //绘制完成,清理多出来的绘制页
|
|
219604
219706
|
|
|
219605
219707
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && mainIndex === dRoots.length - 1) {
|
|
219606
219708
|
drawArea.endDline = mainIndex;
|
|
@@ -219677,7 +219779,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219677
219779
|
|
|
219678
219780
|
if (startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && !mainArea.contains(startDrawLine) && startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
|
|
219679
219781
|
drawTop = 0;
|
|
219680
|
-
}
|
|
219782
|
+
} //对于新插入的内容绘制完成后(一直到最后一个插入的段落结束),后续的段落需要进行移动位置,则调用update
|
|
219783
|
+
|
|
219681
219784
|
|
|
219682
219785
|
this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex, true);
|
|
219683
219786
|
} finally {
|
|
@@ -219945,7 +220048,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219945
220048
|
}
|
|
219946
220049
|
|
|
219947
220050
|
var startIndex = startLine;
|
|
219948
|
-
var bChangedInTable = false;
|
|
220051
|
+
var bChangedInTable = false; //计算绘制起始坐标
|
|
220052
|
+
|
|
219949
220053
|
var nextDlineTop = 0;
|
|
219950
220054
|
|
|
219951
220055
|
if (startIndex === endLine && dRoots[startIndex] instanceof DrawTable/* DrawTable */.t) {
|
|
@@ -219963,7 +220067,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219963
220067
|
|
|
219964
220068
|
nextDlineTop = dobj.y;
|
|
219965
220069
|
}
|
|
219966
|
-
}
|
|
220070
|
+
} //----------
|
|
220071
|
+
|
|
219967
220072
|
|
|
219968
220073
|
var aEndLine = dRoots.length - 1;
|
|
219969
220074
|
var restHeight = Infinity;
|
|
@@ -219996,6 +220101,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219996
220101
|
// dLine.paragraphNode.combineParagraph.lineSpace;
|
|
219997
220102
|
// startDline.dHeight +
|
|
219998
220103
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
220104
|
+
//启用绘制优化,如果当前页不可见,则缓存绘制调用,当页可见时再调用
|
|
219999
220105
|
|
|
220000
220106
|
|
|
220001
220107
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
@@ -220006,13 +220112,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220006
220112
|
return;
|
|
220007
220113
|
}
|
|
220008
220114
|
}
|
|
220009
|
-
}
|
|
220115
|
+
} //按区域调整区域内的所有坐标
|
|
220116
|
+
|
|
220010
220117
|
|
|
220011
220118
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
220012
220119
|
this.afterAreaFinishPaint(drawArea);
|
|
220013
220120
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
220014
220121
|
this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
|
|
220015
|
-
startIndex = drawArea.endDline;
|
|
220122
|
+
startIndex = drawArea.endDline; //如果绘制是在表格内,将下一个绘制对象切换到表格外(只遍历最外层绘制对象)
|
|
220016
220123
|
|
|
220017
220124
|
if (bChangedInTable && startIndex > endLine + 1) {
|
|
220018
220125
|
var _dItem = dRoots[endLine + 1];
|
|
@@ -220772,8 +220879,6 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
|
220772
220879
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220773
220880
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
220774
220881
|
var es_object_assign = __webpack_require__(19601);
|
|
220775
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
220776
|
-
var es_number_to_fixed = __webpack_require__(56977);
|
|
220777
220882
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
220778
220883
|
var jquery = __webpack_require__(19755);
|
|
220779
220884
|
var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
@@ -220820,7 +220925,6 @@ var Paragraph = __webpack_require__(53570);
|
|
|
220820
220925
|
|
|
220821
220926
|
|
|
220822
220927
|
|
|
220823
|
-
|
|
220824
220928
|
|
|
220825
220929
|
|
|
220826
220930
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -221226,6 +221330,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221226
221330
|
}, {
|
|
221227
221331
|
key: "SetTableProperty",
|
|
221228
221332
|
value: function SetTableProperty(jnode, tableNode) {
|
|
221333
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221229
221334
|
var tconstents = jquery_default()(jnode).children();
|
|
221230
221335
|
var rowInfos = new Array();
|
|
221231
221336
|
var colInfos = new Array();
|
|
@@ -221237,22 +221342,25 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221237
221342
|
|
|
221238
221343
|
for (var j = 0; j < trs.length; j++) {
|
|
221239
221344
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
221345
|
+
rowProperty.isSpecifyHeight = true;
|
|
221240
221346
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
221241
|
-
var height = jquery_default()(trs[
|
|
221347
|
+
var height = jquery_default()(trs[j]).css("height");
|
|
221242
221348
|
|
|
221243
221349
|
if (height && height != "0px") {
|
|
221244
221350
|
var heightNum = 0;
|
|
221245
221351
|
|
|
221246
221352
|
if (height.indexOf("pt") > 0) {
|
|
221247
221353
|
heightNum = parseFloat(height.substring(0, height.indexOf("pt")));
|
|
221354
|
+
heightNum = hoEditorFactory.unitConvert.fontPt2Pix(heightNum);
|
|
221248
221355
|
}
|
|
221249
221356
|
|
|
221250
221357
|
if (height.indexOf("px") > 0) {
|
|
221251
221358
|
heightNum = parseFloat(height.substring(0, height.indexOf("px")));
|
|
221252
|
-
}
|
|
221359
|
+
} //heightNum = parseFloat(((heightNum * 96) / 72).toFixed(2));
|
|
221360
|
+
|
|
221253
221361
|
|
|
221254
|
-
heightNum = parseFloat((heightNum * 96 / 72).toFixed(2));
|
|
221255
221362
|
rowInfo.rowHeight = heightNum;
|
|
221363
|
+
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
221256
221364
|
}
|
|
221257
221365
|
|
|
221258
221366
|
rowInfos.push(rowInfo);
|
|
@@ -221273,17 +221381,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221273
221381
|
var widthNum = 0;
|
|
221274
221382
|
|
|
221275
221383
|
if (width.indexOf("pt") > 0) {
|
|
221276
|
-
widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
221384
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
221385
|
+
|
|
221386
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
221277
221387
|
}
|
|
221278
221388
|
|
|
221279
221389
|
if (width.indexOf("px") > 0) {
|
|
221280
221390
|
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
221281
|
-
}
|
|
221282
|
-
|
|
221283
|
-
widthNum = parseFloat((widthNum * 96 / 72).toFixed(2)); // if (widthNum == 0) {
|
|
221391
|
+
} // if (widthNum == 0) {
|
|
221284
221392
|
// widthNum = 20;
|
|
221285
221393
|
// }
|
|
221286
221394
|
|
|
221395
|
+
|
|
221287
221396
|
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
221288
221397
|
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
221289
221398
|
colInfos.push(colInfo);
|
|
@@ -221395,9 +221504,9 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221395
221504
|
this.copyCellNode(cell, lntable, _i4, _j2);
|
|
221396
221505
|
} else lntable.rows[_i4][_j2] = undefined;
|
|
221397
221506
|
}
|
|
221398
|
-
}
|
|
221507
|
+
} //lntable.node2DrawNode();
|
|
221508
|
+
|
|
221399
221509
|
|
|
221400
|
-
lntable.node2DrawNode();
|
|
221401
221510
|
return [lntable];
|
|
221402
221511
|
}
|
|
221403
221512
|
}
|
|
@@ -221574,6 +221683,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221574
221683
|
}();
|
|
221575
221684
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
221576
221685
|
var esm_typeof = __webpack_require__(58913);
|
|
221686
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
221687
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
221577
221688
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
221578
221689
|
var es_array_find = __webpack_require__(69826);
|
|
221579
221690
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace-all.js
|
|
@@ -224930,6 +225041,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
224930
225041
|
this._text = this._Convertor.toText();
|
|
224931
225042
|
|
|
224932
225043
|
if (clipboard) {
|
|
225044
|
+
if (this._json != "") {
|
|
225045
|
+
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
225046
|
+
this._json = patientID + ":" + this._json;
|
|
225047
|
+
}
|
|
225048
|
+
|
|
224933
225049
|
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
224934
225050
|
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
224935
225051
|
clipboard.setData(ClipboardType.ctText, this._text);
|
|
@@ -232666,6 +232782,10 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
232666
232782
|
|
|
232667
232783
|
|
|
232668
232784
|
|
|
232785
|
+
|
|
232786
|
+
|
|
232787
|
+
|
|
232788
|
+
|
|
232669
232789
|
|
|
232670
232790
|
|
|
232671
232791
|
|
|
@@ -233001,10 +233121,28 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233001
233121
|
|
|
233002
233122
|
var nodes;
|
|
233003
233123
|
|
|
233124
|
+
if (!jsonData) {
|
|
233125
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && hoeditorfactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233126
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233127
|
+
|
|
233128
|
+
return;
|
|
233129
|
+
}
|
|
233130
|
+
}
|
|
233131
|
+
|
|
233004
233132
|
if (jsonData) {
|
|
233133
|
+
var patientID = jsonData.split(":")[0];
|
|
233134
|
+
var index = jsonData.indexOf(":");
|
|
233135
|
+
jsonData = jsonData.substring(index + 1, jsonData.length);
|
|
233136
|
+
|
|
233005
233137
|
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233006
233138
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
233007
233139
|
} else {
|
|
233140
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
|
|
233141
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233142
|
+
|
|
233143
|
+
return;
|
|
233144
|
+
}
|
|
233145
|
+
|
|
233008
233146
|
var jsonObject = JSON.parse(jsonData);
|
|
233009
233147
|
|
|
233010
233148
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
@@ -235251,28 +235389,24 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235251
235389
|
// storeName: this._storeName,
|
|
235252
235390
|
// });
|
|
235253
235391
|
|
|
235254
|
-
(_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(
|
|
235392
|
+
(_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) {
|
|
235255
235393
|
var res = JSON.parse(e.data);
|
|
235256
235394
|
|
|
235257
|
-
if (res.result == true && res.res.cmd ==
|
|
235395
|
+
if (res.result == true && res.res.cmd == 'GetList') {
|
|
235258
235396
|
var _this$callBack;
|
|
235259
235397
|
|
|
235260
235398
|
_this._localXmlList = res.res.EMR;
|
|
235261
235399
|
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
235262
235400
|
}
|
|
235263
235401
|
|
|
235264
|
-
|
|
235265
|
-
|
|
235266
|
-
if (res.result == true && res.res.cmd == "Load") {
|
|
235402
|
+
if (res.result == true && res.res.cmd == 'Load') {
|
|
235267
235403
|
var _this$callBackForLoad;
|
|
235268
235404
|
|
|
235269
235405
|
_this._localXmlContent = res.res.EMR;
|
|
235270
235406
|
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
235271
235407
|
}
|
|
235272
235408
|
|
|
235273
|
-
|
|
235274
|
-
|
|
235275
|
-
if (res.res.cmd == "save") {} else {
|
|
235409
|
+
if (res.res.cmd == 'save') {} else {
|
|
235276
235410
|
return false;
|
|
235277
235411
|
}
|
|
235278
235412
|
});
|
|
@@ -235306,9 +235440,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235306
235440
|
this.callBack = callBack;
|
|
235307
235441
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
235308
235442
|
var data = {
|
|
235309
|
-
exec:
|
|
235443
|
+
exec: 'emr',
|
|
235310
235444
|
data: {
|
|
235311
|
-
cmd:
|
|
235445
|
+
cmd: 'getlist',
|
|
235312
235446
|
content: {
|
|
235313
235447
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235314
235448
|
EMRName: hoEitfactory.docTree.docProperty.title
|
|
@@ -235333,9 +235467,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235333
235467
|
|
|
235334
235468
|
this.callBackForLoad = callBack;
|
|
235335
235469
|
var data = {
|
|
235336
|
-
exec:
|
|
235470
|
+
exec: 'emr',
|
|
235337
235471
|
data: {
|
|
235338
|
-
cmd:
|
|
235472
|
+
cmd: 'load',
|
|
235339
235473
|
content: {
|
|
235340
235474
|
PatientID: item.PatientID,
|
|
235341
235475
|
FileName: item.FileName
|
|
@@ -235393,9 +235527,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235393
235527
|
|
|
235394
235528
|
if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
|
|
235395
235529
|
var data = {
|
|
235396
|
-
exec:
|
|
235530
|
+
exec: 'emr',
|
|
235397
235531
|
data: {
|
|
235398
|
-
cmd:
|
|
235532
|
+
cmd: 'save',
|
|
235399
235533
|
content: {
|
|
235400
235534
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235401
235535
|
EMRName: hoEitfactory.docTree.docProperty.title,
|
|
@@ -235482,10 +235616,18 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235482
235616
|
key: "saveFontString",
|
|
235483
235617
|
value: function saveFontString(font) {
|
|
235484
235618
|
this._print_font.setItem('sunsim_font', font);
|
|
235619
|
+
|
|
235620
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235485
235621
|
}
|
|
235486
235622
|
}, {
|
|
235487
235623
|
key: "loadFontString",
|
|
235488
|
-
value: function loadFontString() {
|
|
235624
|
+
value: function loadFontString(cache) {
|
|
235625
|
+
if (cache === '1') {
|
|
235626
|
+
return this._print_font.getItem('sunsim_font_cache');
|
|
235627
|
+
}
|
|
235628
|
+
|
|
235629
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235630
|
+
|
|
235489
235631
|
return this._print_font.getItem('sunsim_font');
|
|
235490
235632
|
}
|
|
235491
235633
|
}]);
|
|
@@ -235567,6 +235709,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235567
235709
|
this._lastSaveTime = new Date(Date.now());
|
|
235568
235710
|
this._superiorSigns = []; //上级医生签名
|
|
235569
235711
|
|
|
235712
|
+
this._notAllowCrossPatiPaste = false; //不允许跨病人复制粘贴
|
|
235713
|
+
|
|
235570
235714
|
this._hoEditorFactoryId = id;
|
|
235571
235715
|
}
|
|
235572
235716
|
/**
|
|
@@ -236123,6 +236267,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
236123
236267
|
this._pasteBase = value;
|
|
236124
236268
|
}
|
|
236125
236269
|
}
|
|
236270
|
+
}, {
|
|
236271
|
+
key: "notAllowCrossPatiPaste",
|
|
236272
|
+
get: function get() {
|
|
236273
|
+
return this._notAllowCrossPatiPaste;
|
|
236274
|
+
},
|
|
236275
|
+
set: function set(value) {
|
|
236276
|
+
if (this._notAllowCrossPatiPaste !== value) {
|
|
236277
|
+
this._notAllowCrossPatiPaste = value;
|
|
236278
|
+
}
|
|
236279
|
+
}
|
|
236126
236280
|
}, {
|
|
236127
236281
|
key: "isHideComments",
|
|
236128
236282
|
get: function get() {
|