hoeditor-web 2.0.98 → 2.0.99
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 +126 -68
- package/lib/hoeditor.css +2 -2
- package/lib/hoeditor.umd.js +126 -68
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -10528,7 +10528,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10528
10528
|
|
|
10529
10529
|
/***/ }),
|
|
10530
10530
|
|
|
10531
|
-
/***/
|
|
10531
|
+
/***/ 87043:
|
|
10532
10532
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10533
10533
|
|
|
10534
10534
|
"use strict";
|
|
@@ -10540,11 +10540,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10540
10540
|
"default": function() { return /* binding */ Sign; }
|
|
10541
10541
|
});
|
|
10542
10542
|
|
|
10543
|
-
;// 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=
|
|
10543
|
+
;// 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&
|
|
10544
10544
|
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)])}
|
|
10545
10545
|
var staticRenderFns = []
|
|
10546
10546
|
|
|
10547
10547
|
|
|
10548
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
10549
|
+
var es_function_name = __webpack_require__(68309);
|
|
10548
10550
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.regexp.exec.js
|
|
10549
10551
|
var es_regexp_exec = __webpack_require__(74916);
|
|
10550
10552
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
@@ -10565,10 +10567,10 @@ var es_array_concat = __webpack_require__(92222);
|
|
|
10565
10567
|
var web_dom_collections_for_each = __webpack_require__(54747);
|
|
10566
10568
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.slice.js
|
|
10567
10569
|
var es_array_slice = __webpack_require__(47042);
|
|
10568
|
-
// EXTERNAL MODULE: ./
|
|
10569
|
-
var
|
|
10570
|
-
// EXTERNAL MODULE: ./src/
|
|
10571
|
-
var
|
|
10570
|
+
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
10571
|
+
var HOEditorFactorys = __webpack_require__(28831);
|
|
10572
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/SignNode.ts
|
|
10573
|
+
var SignNode = __webpack_require__(78975);
|
|
10572
10574
|
;// 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/sign/Sign.vue?vue&type=script&lang=js&
|
|
10573
10575
|
|
|
10574
10576
|
|
|
@@ -10687,14 +10689,18 @@ var HoColorPicker = __webpack_require__(59552);
|
|
|
10687
10689
|
//
|
|
10688
10690
|
//
|
|
10689
10691
|
|
|
10692
|
+
|
|
10690
10693
|
/* harmony default export */ var Signvue_type_script_lang_js_ = ({
|
|
10691
10694
|
name: 'Sign',
|
|
10692
|
-
components: {
|
|
10693
|
-
HoColorPicker: HoColorPicker["default"]
|
|
10694
|
-
},
|
|
10695
10695
|
props: {
|
|
10696
10696
|
vueController: {
|
|
10697
10697
|
default: function _default() {}
|
|
10698
|
+
},
|
|
10699
|
+
controlStatus: {
|
|
10700
|
+
default: 'add'
|
|
10701
|
+
},
|
|
10702
|
+
hoEditorFactoryId: {
|
|
10703
|
+
default: ''
|
|
10698
10704
|
}
|
|
10699
10705
|
},
|
|
10700
10706
|
data: function data() {
|
|
@@ -10713,7 +10719,41 @@ var HoColorPicker = __webpack_require__(59552);
|
|
|
10713
10719
|
animationClassNames: 'control-modal-contents sign-modal animation-in'
|
|
10714
10720
|
};
|
|
10715
10721
|
},
|
|
10722
|
+
mounted: function mounted() {
|
|
10723
|
+
if (this.controlStatus === 'update') {
|
|
10724
|
+
var node = this.getCurrentSelectNode();
|
|
10725
|
+
|
|
10726
|
+
if (node) {
|
|
10727
|
+
this.name = node.name;
|
|
10728
|
+
this.signType = node.signType == 0 && node.connectMode ? 3 : node.signType;
|
|
10729
|
+
this.signFormat = node.signFormat;
|
|
10730
|
+
this.connectMode = node.connectMode;
|
|
10731
|
+
this.connectChar = node.connectChar;
|
|
10732
|
+
this.isFront = node.isFront;
|
|
10733
|
+
this.signTimeFormat = node.signTimeFormat;
|
|
10734
|
+
this.customFormatContent = node.customFormatContent;
|
|
10735
|
+
this.customSignFormatList = node.customSignFormatList;
|
|
10736
|
+
}
|
|
10737
|
+
}
|
|
10738
|
+
},
|
|
10716
10739
|
methods: {
|
|
10740
|
+
getCurrentSelectNode: function getCurrentSelectNode() {
|
|
10741
|
+
var _hoEditorFactory$vueC;
|
|
10742
|
+
|
|
10743
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
10744
|
+
var domRange = {
|
|
10745
|
+
startPath: hoEditorFactory.docTree.curDomRange.normalize().startPath,
|
|
10746
|
+
endPath: hoEditorFactory.docTree.curDomRange.normalize().endPath
|
|
10747
|
+
};
|
|
10748
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(domRange.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
10749
|
+
if (!node) return undefined;
|
|
10750
|
+
|
|
10751
|
+
if (node instanceof SignNode/* SignNode */.N) {
|
|
10752
|
+
return node;
|
|
10753
|
+
}
|
|
10754
|
+
|
|
10755
|
+
return null;
|
|
10756
|
+
},
|
|
10717
10757
|
// 创建自定义签名格式
|
|
10718
10758
|
createSignFormat: function createSignFormat() {
|
|
10719
10759
|
var customFormat = JSON.stringify(this.customFormatContent).replace(/^\s+|\s+$/g, '');
|
|
@@ -10806,7 +10846,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
10806
10846
|
|
|
10807
10847
|
/***/ }),
|
|
10808
10848
|
|
|
10809
|
-
/***/
|
|
10849
|
+
/***/ 9715:
|
|
10810
10850
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
10811
10851
|
|
|
10812
10852
|
"use strict";
|
|
@@ -10818,7 +10858,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
10818
10858
|
"default": function() { return /* binding */ TableCellPoper; }
|
|
10819
10859
|
});
|
|
10820
10860
|
|
|
10821
|
-
;// 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=
|
|
10861
|
+
;// 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&
|
|
10822
10862
|
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)}
|
|
10823
10863
|
var staticRenderFns = []
|
|
10824
10864
|
|
|
@@ -11285,10 +11325,10 @@ var HOEditorFactorys = __webpack_require__(28831);
|
|
|
11285
11325
|
});
|
|
11286
11326
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=script&lang=js&
|
|
11287
11327
|
/* harmony default export */ var table_TableCellPopervue_type_script_lang_js_ = (TableCellPopervue_type_script_lang_js_);
|
|
11288
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11328
|
+
;// 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=958de66c&lang=scss&scoped=true&
|
|
11289
11329
|
// extracted by mini-css-extract-plugin
|
|
11290
11330
|
|
|
11291
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=
|
|
11331
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableCellPoper.vue?vue&type=style&index=0&id=958de66c&lang=scss&scoped=true&
|
|
11292
11332
|
|
|
11293
11333
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
11294
11334
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -11307,7 +11347,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11307
11347
|
staticRenderFns,
|
|
11308
11348
|
false,
|
|
11309
11349
|
null,
|
|
11310
|
-
"
|
|
11350
|
+
"958de66c",
|
|
11311
11351
|
null
|
|
11312
11352
|
|
|
11313
11353
|
)
|
|
@@ -11968,7 +12008,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
11968
12008
|
|
|
11969
12009
|
/***/ }),
|
|
11970
12010
|
|
|
11971
|
-
/***/
|
|
12011
|
+
/***/ 26853:
|
|
11972
12012
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
11973
12013
|
|
|
11974
12014
|
"use strict";
|
|
@@ -11980,7 +12020,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
11980
12020
|
"default": function() { return /* binding */ TableColProperty; }
|
|
11981
12021
|
});
|
|
11982
12022
|
|
|
11983
|
-
;// 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=
|
|
12023
|
+
;// 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&
|
|
11984
12024
|
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)])}
|
|
11985
12025
|
var staticRenderFns = []
|
|
11986
12026
|
|
|
@@ -12248,13 +12288,14 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12248
12288
|
},
|
|
12249
12289
|
created: function created() {
|
|
12250
12290
|
var cellNode = this.getCellNodes();
|
|
12291
|
+
var colInfoes = null;
|
|
12251
12292
|
|
|
12252
12293
|
if (cellNode !== null) {
|
|
12253
|
-
var
|
|
12294
|
+
var _colInfoes;
|
|
12254
12295
|
|
|
12255
12296
|
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12256
|
-
|
|
12257
|
-
var customProperties = (
|
|
12297
|
+
colInfoes = cellNode.table.colInfos[currentCols];
|
|
12298
|
+
var customProperties = (_colInfoes = colInfoes) === null || _colInfoes === void 0 ? void 0 : _colInfoes.colProperty.customProperties;
|
|
12258
12299
|
|
|
12259
12300
|
if (Array.isArray(customProperties) && customProperties.length > 0) {
|
|
12260
12301
|
this.setCustomsValue([].concat((0,toConsumableArray/* default */.Z)(customProperties), [{
|
|
@@ -12270,11 +12311,11 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12270
12311
|
}
|
|
12271
12312
|
}
|
|
12272
12313
|
|
|
12273
|
-
if (
|
|
12314
|
+
if (colInfoes !== null) {
|
|
12274
12315
|
var _colProperty$dateTime, _colProperty$dateTime2;
|
|
12275
12316
|
|
|
12276
12317
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
12277
|
-
var colProperty =
|
|
12318
|
+
var colProperty = colInfoes.colProperty;
|
|
12278
12319
|
this.id = colProperty.id ? colProperty.id : this.vueController.generateID('TB');
|
|
12279
12320
|
this.editorProperty = colProperty.editorProperty ? colProperty.editorProperty : 0;
|
|
12280
12321
|
this.align = colProperty.align ? colProperty.align : 0;
|
|
@@ -12294,7 +12335,7 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12294
12335
|
this.maxNumVal = colProperty.numberProperty ? colProperty.numberProperty.maxNumVal : 0;
|
|
12295
12336
|
this.minNumVal = colProperty.numberProperty ? colProperty.numberProperty.minNumVal : 100;
|
|
12296
12337
|
this.width = colProperty.width ? colProperty.width : 0;
|
|
12297
|
-
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
12338
|
+
this.colWidth = (hoEditorFactory.unitConvert.pxConversionMm(colInfoes.colWidth, false) / 10).toFixed(2);
|
|
12298
12339
|
this.isSpecifyWidth = colProperty.isSpecifyWidth ? true : false;
|
|
12299
12340
|
}
|
|
12300
12341
|
},
|
|
@@ -12428,14 +12469,16 @@ var getCellNode = __webpack_require__(28547);
|
|
|
12428
12469
|
param[key] = _this[key];
|
|
12429
12470
|
}
|
|
12430
12471
|
});
|
|
12431
|
-
this.
|
|
12472
|
+
var cellNode = this.getCellNodes();
|
|
12473
|
+
var currentCols = cellNode.row.indexOf(cellNode);
|
|
12474
|
+
var colInfoes = cellNode.table.colInfos[currentCols];
|
|
12475
|
+
this.vueController.colProperty(JSON.stringify(param), colInfoes);
|
|
12432
12476
|
this.$nextTick(function () {
|
|
12433
12477
|
return _this.handleClose();
|
|
12434
12478
|
});
|
|
12435
12479
|
},
|
|
12436
12480
|
handleClose: function handleClose() {
|
|
12437
12481
|
this.$emit('closed');
|
|
12438
|
-
this.colInfoes = null;
|
|
12439
12482
|
}
|
|
12440
12483
|
}
|
|
12441
12484
|
});
|
|
@@ -13046,7 +13089,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13046
13089
|
|
|
13047
13090
|
/***/ }),
|
|
13048
13091
|
|
|
13049
|
-
/***/
|
|
13092
|
+
/***/ 1429:
|
|
13050
13093
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13051
13094
|
|
|
13052
13095
|
"use strict";
|
|
@@ -13058,7 +13101,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13058
13101
|
"default": function() { return /* binding */ TableRowProperty; }
|
|
13059
13102
|
});
|
|
13060
13103
|
|
|
13061
|
-
;// 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=
|
|
13104
|
+
;// 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&
|
|
13062
13105
|
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)])}
|
|
13063
13106
|
var staticRenderFns = []
|
|
13064
13107
|
|
|
@@ -13235,17 +13278,18 @@ var TableNode = __webpack_require__(59530);
|
|
|
13235
13278
|
methods: {
|
|
13236
13279
|
init: function init() {
|
|
13237
13280
|
var cellNode = this.getCellNodes();
|
|
13281
|
+
var rowInfos = null;
|
|
13238
13282
|
|
|
13239
13283
|
if (cellNode !== null) {
|
|
13240
13284
|
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13241
|
-
|
|
13285
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13242
13286
|
}
|
|
13243
13287
|
|
|
13244
|
-
if (
|
|
13245
|
-
this.rowProperty =
|
|
13288
|
+
if (rowInfos !== null) {
|
|
13289
|
+
this.rowProperty = rowInfos.rowProperty;
|
|
13246
13290
|
}
|
|
13247
13291
|
|
|
13248
|
-
if (this.rowProperty !== null &&
|
|
13292
|
+
if (this.rowProperty !== null && rowInfos !== null) {
|
|
13249
13293
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
13250
13294
|
this.id = this.rowProperty.id ? this.rowProperty.id : this.vueController.generateID('TB');
|
|
13251
13295
|
this.isSpecifyHeight = this.rowProperty.isSpecifyHeight;
|
|
@@ -13257,7 +13301,7 @@ var TableNode = __webpack_require__(59530);
|
|
|
13257
13301
|
this.printCellBorders = this.rowProperty.printCellBorders;
|
|
13258
13302
|
this.printCellBg = this.rowProperty.printCellBg;
|
|
13259
13303
|
this.tabKeyInsNewLine = this.rowProperty.tabKeyInsNewLine;
|
|
13260
|
-
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(
|
|
13304
|
+
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
13261
13305
|
}
|
|
13262
13306
|
},
|
|
13263
13307
|
getCellNodes: function getCellNodes() {
|
|
@@ -13338,7 +13382,15 @@ var TableNode = __webpack_require__(59530);
|
|
|
13338
13382
|
param[key] = _this[key];
|
|
13339
13383
|
}
|
|
13340
13384
|
});
|
|
13341
|
-
this.
|
|
13385
|
+
var cellNode = this.getCellNodes();
|
|
13386
|
+
var rowInfos = null;
|
|
13387
|
+
|
|
13388
|
+
if (cellNode !== null) {
|
|
13389
|
+
var currentRows = cellNode.table.rows.indexOf(cellNode.row);
|
|
13390
|
+
rowInfos = cellNode.table.rowInfos[currentRows];
|
|
13391
|
+
}
|
|
13392
|
+
|
|
13393
|
+
this.vueController.rowProperty(JSON.stringify(param), rowInfos);
|
|
13342
13394
|
this.$nextTick(function () {
|
|
13343
13395
|
return _this.handleClose();
|
|
13344
13396
|
});
|
|
@@ -13352,10 +13404,10 @@ var TableNode = __webpack_require__(59530);
|
|
|
13352
13404
|
});
|
|
13353
13405
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=js&
|
|
13354
13406
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js_ = (TableRowPropertyvue_type_script_lang_js_);
|
|
13355
|
-
;// 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/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13407
|
+
;// 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/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13356
13408
|
// extracted by mini-css-extract-plugin
|
|
13357
13409
|
|
|
13358
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
13410
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=f923cecc&lang=scss&scoped=true&
|
|
13359
13411
|
|
|
13360
13412
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13361
13413
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -13374,7 +13426,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13374
13426
|
staticRenderFns,
|
|
13375
13427
|
false,
|
|
13376
13428
|
null,
|
|
13377
|
-
"
|
|
13429
|
+
"f923cecc",
|
|
13378
13430
|
null
|
|
13379
13431
|
|
|
13380
13432
|
)
|
|
@@ -49646,15 +49698,17 @@ var RowInfos = /*#__PURE__*/function () {
|
|
|
49646
49698
|
|
|
49647
49699
|
var r = this._table.rowInfos.indexOf(this);
|
|
49648
49700
|
|
|
49649
|
-
|
|
49650
|
-
var
|
|
49651
|
-
|
|
49652
|
-
|
|
49653
|
-
|
|
49654
|
-
|
|
49701
|
+
if (r >= 0) {
|
|
49702
|
+
for (var i = 0; i < this._table.colCount; i++) {
|
|
49703
|
+
var _this$_table$getMainC = this._table.getMainCell(r, i),
|
|
49704
|
+
_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),
|
|
49705
|
+
mainCell = _this$_table$getMainC2[0],
|
|
49706
|
+
mr = _this$_table$getMainC2[1],
|
|
49707
|
+
mc = _this$_table$getMainC2[2];
|
|
49655
49708
|
|
|
49656
|
-
|
|
49657
|
-
|
|
49709
|
+
if (mainCell.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_30__/* .VAlign.vatop */ .TR.vatop) {
|
|
49710
|
+
mainCell.drawCell.needUpdate = true;
|
|
49711
|
+
}
|
|
49658
49712
|
}
|
|
49659
49713
|
}
|
|
49660
49714
|
}
|
|
@@ -213135,13 +213189,13 @@ var map = {
|
|
|
213135
213189
|
"./qrCode/QrCode.vue": 7049,
|
|
213136
213190
|
"./radioCheckBox/RadioCheckbox.vue": 29385,
|
|
213137
213191
|
"./selectDialog/SelectDialog.vue": 32949,
|
|
213138
|
-
"./sign/Sign.vue":
|
|
213139
|
-
"./table/TableCellPoper.vue":
|
|
213192
|
+
"./sign/Sign.vue": 87043,
|
|
213193
|
+
"./table/TableCellPoper.vue": 9715,
|
|
213140
213194
|
"./table/TableCellProperty.vue": 84650,
|
|
213141
|
-
"./table/TableColProperty.vue":
|
|
213195
|
+
"./table/TableColProperty.vue": 26853,
|
|
213142
213196
|
"./table/TableFormula.vue": 85592,
|
|
213143
213197
|
"./table/TableProperty.vue": 1527,
|
|
213144
|
-
"./table/TableRowProperty.vue":
|
|
213198
|
+
"./table/TableRowProperty.vue": 1429,
|
|
213145
213199
|
"./textDialog/TextDialog.vue": 87847,
|
|
213146
213200
|
"./upload/CanvasImageDialog.vue": 54485,
|
|
213147
213201
|
"./upload/UploadImageDialog.vue": 17621
|
|
@@ -214683,9 +214737,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214683
214737
|
var es_number_constructor = __webpack_require__(9653);
|
|
214684
214738
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214685
214739
|
var es_json_stringify = __webpack_require__(38862);
|
|
214686
|
-
;// 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=
|
|
214687
|
-
var
|
|
214688
|
-
var
|
|
214740
|
+
;// 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=6a4e96d0&
|
|
214741
|
+
var HoDocvue_type_template_id_6a4e96d0_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)}
|
|
214742
|
+
var HoDocvue_type_template_id_6a4e96d0_staticRenderFns = []
|
|
214689
214743
|
|
|
214690
214744
|
|
|
214691
214745
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -216622,7 +216676,7 @@ var PoperMark = __webpack_require__(39959);
|
|
|
216622
216676
|
|
|
216623
216677
|
|
|
216624
216678
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
216625
|
-
var TableCellPoper = __webpack_require__(
|
|
216679
|
+
var TableCellPoper = __webpack_require__(9715);
|
|
216626
216680
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
216627
216681
|
var DateTimeNode = __webpack_require__(40253);
|
|
216628
216682
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -218326,7 +218380,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
218326
218380
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218327
218381
|
var ParagraphNode = __webpack_require__(13880);
|
|
218328
218382
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218329
|
-
/* harmony default export */ var version = ('2.0.
|
|
218383
|
+
/* harmony default export */ var version = ('2.0.99');
|
|
218330
218384
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218331
218385
|
var PoperTipText = __webpack_require__(97824);
|
|
218332
218386
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218601,7 +218655,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218601
218655
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
218602
218656
|
}
|
|
218603
218657
|
},
|
|
218604
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
218658
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue', 'setControlProperty'],
|
|
218605
218659
|
created: function created() {
|
|
218606
218660
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218607
218661
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -218812,7 +218866,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218812
218866
|
|
|
218813
218867
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218814
218868
|
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218815
|
-
//
|
|
218869
|
+
// this.setControlProperty('sign', 'update', '');
|
|
218816
218870
|
// return;
|
|
218817
218871
|
// }
|
|
218818
218872
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
@@ -219109,8 +219163,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
219109
219163
|
|
|
219110
219164
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219111
219165
|
components_HoDocvue_type_script_lang_js_,
|
|
219112
|
-
|
|
219113
|
-
|
|
219166
|
+
HoDocvue_type_template_id_6a4e96d0_render,
|
|
219167
|
+
HoDocvue_type_template_id_6a4e96d0_staticRenderFns,
|
|
219114
219168
|
false,
|
|
219115
219169
|
null,
|
|
219116
219170
|
null,
|
|
@@ -220782,8 +220836,6 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
|
220782
220836
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220783
220837
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
220784
220838
|
var es_object_assign = __webpack_require__(19601);
|
|
220785
|
-
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
220786
|
-
var es_number_to_fixed = __webpack_require__(56977);
|
|
220787
220839
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
220788
220840
|
var jquery = __webpack_require__(19755);
|
|
220789
220841
|
var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
@@ -220830,7 +220882,6 @@ var Paragraph = __webpack_require__(28275);
|
|
|
220830
220882
|
|
|
220831
220883
|
|
|
220832
220884
|
|
|
220833
|
-
|
|
220834
220885
|
|
|
220835
220886
|
|
|
220836
220887
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -221236,6 +221287,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221236
221287
|
}, {
|
|
221237
221288
|
key: "SetTableProperty",
|
|
221238
221289
|
value: function SetTableProperty(jnode, tableNode) {
|
|
221290
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221239
221291
|
var tconstents = jquery_default()(jnode).children();
|
|
221240
221292
|
var rowInfos = new Array();
|
|
221241
221293
|
var colInfos = new Array();
|
|
@@ -221247,22 +221299,25 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221247
221299
|
|
|
221248
221300
|
for (var j = 0; j < trs.length; j++) {
|
|
221249
221301
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
221302
|
+
rowProperty.isSpecifyHeight = true;
|
|
221250
221303
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
221251
|
-
var height = jquery_default()(trs[
|
|
221304
|
+
var height = jquery_default()(trs[j]).css("height");
|
|
221252
221305
|
|
|
221253
221306
|
if (height && height != "0px") {
|
|
221254
221307
|
var heightNum = 0;
|
|
221255
221308
|
|
|
221256
221309
|
if (height.indexOf("pt") > 0) {
|
|
221257
221310
|
heightNum = parseFloat(height.substring(0, height.indexOf("pt")));
|
|
221311
|
+
heightNum = hoEditorFactory.unitConvert.fontPt2Pix(heightNum);
|
|
221258
221312
|
}
|
|
221259
221313
|
|
|
221260
221314
|
if (height.indexOf("px") > 0) {
|
|
221261
221315
|
heightNum = parseFloat(height.substring(0, height.indexOf("px")));
|
|
221262
|
-
}
|
|
221316
|
+
} //heightNum = parseFloat(((heightNum * 96) / 72).toFixed(2));
|
|
221317
|
+
|
|
221263
221318
|
|
|
221264
|
-
heightNum = parseFloat((heightNum * 96 / 72).toFixed(2));
|
|
221265
221319
|
rowInfo.rowHeight = heightNum;
|
|
221320
|
+
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
221266
221321
|
}
|
|
221267
221322
|
|
|
221268
221323
|
rowInfos.push(rowInfo);
|
|
@@ -221283,17 +221338,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221283
221338
|
var widthNum = 0;
|
|
221284
221339
|
|
|
221285
221340
|
if (width.indexOf("pt") > 0) {
|
|
221286
|
-
widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
221341
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
221342
|
+
|
|
221343
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
221287
221344
|
}
|
|
221288
221345
|
|
|
221289
221346
|
if (width.indexOf("px") > 0) {
|
|
221290
221347
|
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
221291
|
-
}
|
|
221292
|
-
|
|
221293
|
-
widthNum = parseFloat((widthNum * 96 / 72).toFixed(2)); // if (widthNum == 0) {
|
|
221348
|
+
} // if (widthNum == 0) {
|
|
221294
221349
|
// widthNum = 20;
|
|
221295
221350
|
// }
|
|
221296
221351
|
|
|
221352
|
+
|
|
221297
221353
|
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
221298
221354
|
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
221299
221355
|
colInfos.push(colInfo);
|
|
@@ -221405,9 +221461,9 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221405
221461
|
this.copyCellNode(cell, lntable, _i4, _j2);
|
|
221406
221462
|
} else lntable.rows[_i4][_j2] = undefined;
|
|
221407
221463
|
}
|
|
221408
|
-
}
|
|
221464
|
+
} //lntable.node2DrawNode();
|
|
221465
|
+
|
|
221409
221466
|
|
|
221410
|
-
lntable.node2DrawNode();
|
|
221411
221467
|
return [lntable];
|
|
221412
221468
|
}
|
|
221413
221469
|
}
|
|
@@ -221584,6 +221640,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221584
221640
|
}();
|
|
221585
221641
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
221586
221642
|
var esm_typeof = __webpack_require__(36768);
|
|
221643
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
221644
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
221587
221645
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
221588
221646
|
var es_array_find = __webpack_require__(69826);
|
|
221589
221647
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace-all.js
|