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.common.js
CHANGED
|
@@ -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
|
)
|
|
@@ -49636,15 +49688,17 @@ var RowInfos = /*#__PURE__*/function () {
|
|
|
49636
49688
|
|
|
49637
49689
|
var r = this._table.rowInfos.indexOf(this);
|
|
49638
49690
|
|
|
49639
|
-
|
|
49640
|
-
var
|
|
49641
|
-
|
|
49642
|
-
|
|
49643
|
-
|
|
49644
|
-
|
|
49691
|
+
if (r >= 0) {
|
|
49692
|
+
for (var i = 0; i < this._table.colCount; i++) {
|
|
49693
|
+
var _this$_table$getMainC = this._table.getMainCell(r, i),
|
|
49694
|
+
_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),
|
|
49695
|
+
mainCell = _this$_table$getMainC2[0],
|
|
49696
|
+
mr = _this$_table$getMainC2[1],
|
|
49697
|
+
mc = _this$_table$getMainC2[2];
|
|
49645
49698
|
|
|
49646
|
-
|
|
49647
|
-
|
|
49699
|
+
if (mainCell.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_30__/* .VAlign.vatop */ .TR.vatop) {
|
|
49700
|
+
mainCell.drawCell.needUpdate = true;
|
|
49701
|
+
}
|
|
49648
49702
|
}
|
|
49649
49703
|
}
|
|
49650
49704
|
}
|
|
@@ -213125,13 +213179,13 @@ var map = {
|
|
|
213125
213179
|
"./qrCode/QrCode.vue": 67776,
|
|
213126
213180
|
"./radioCheckBox/RadioCheckbox.vue": 48961,
|
|
213127
213181
|
"./selectDialog/SelectDialog.vue": 54891,
|
|
213128
|
-
"./sign/Sign.vue":
|
|
213129
|
-
"./table/TableCellPoper.vue":
|
|
213182
|
+
"./sign/Sign.vue": 76060,
|
|
213183
|
+
"./table/TableCellPoper.vue": 91192,
|
|
213130
213184
|
"./table/TableCellProperty.vue": 52445,
|
|
213131
|
-
"./table/TableColProperty.vue":
|
|
213185
|
+
"./table/TableColProperty.vue": 17479,
|
|
213132
213186
|
"./table/TableFormula.vue": 20006,
|
|
213133
213187
|
"./table/TableProperty.vue": 44680,
|
|
213134
|
-
"./table/TableRowProperty.vue":
|
|
213188
|
+
"./table/TableRowProperty.vue": 9046,
|
|
213135
213189
|
"./textDialog/TextDialog.vue": 74796,
|
|
213136
213190
|
"./upload/CanvasImageDialog.vue": 49532,
|
|
213137
213191
|
"./upload/UploadImageDialog.vue": 97599
|
|
@@ -214673,9 +214727,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214673
214727
|
var es_number_constructor = __webpack_require__(9653);
|
|
214674
214728
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214675
214729
|
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
|
|
214730
|
+
;// 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&
|
|
214731
|
+
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)}
|
|
214732
|
+
var HoDocvue_type_template_id_6a4e96d0_staticRenderFns = []
|
|
214679
214733
|
|
|
214680
214734
|
|
|
214681
214735
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -216612,7 +216666,7 @@ var PoperMark = __webpack_require__(93069);
|
|
|
216612
216666
|
|
|
216613
216667
|
|
|
216614
216668
|
// EXTERNAL MODULE: ./src/components/controls/table/TableCellPoper.vue + 5 modules
|
|
216615
|
-
var TableCellPoper = __webpack_require__(
|
|
216669
|
+
var TableCellPoper = __webpack_require__(91192);
|
|
216616
216670
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DateTimeNode.ts
|
|
216617
216671
|
var DateTimeNode = __webpack_require__(36395);
|
|
216618
216672
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/DownListNode.ts
|
|
@@ -218316,7 +218370,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218316
218370
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218317
218371
|
var ParagraphNode = __webpack_require__(14208);
|
|
218318
218372
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218319
|
-
/* harmony default export */ var version = ('2.0.
|
|
218373
|
+
/* harmony default export */ var version = ('2.0.99');
|
|
218320
218374
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218321
218375
|
var PoperTipText = __webpack_require__(91831);
|
|
218322
218376
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218591,7 +218645,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218591
218645
|
hoEditorFactory.nodeMouseMove.isUseTipText = this.isUseTipText;
|
|
218592
218646
|
}
|
|
218593
218647
|
},
|
|
218594
|
-
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue'],
|
|
218648
|
+
inject: ['setRightClickNodeValue', 'setDblclickNodeValue', 'setUpdateNodeValue', 'getRightClickNodeValue', 'setControlProperty'],
|
|
218595
218649
|
created: function created() {
|
|
218596
218650
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorId);
|
|
218597
218651
|
hoEditorFactory.hoEditorFactoryIndex = this.docIndex;
|
|
@@ -218802,7 +218856,7 @@ var ImageNode = __webpack_require__(88389);
|
|
|
218802
218856
|
|
|
218803
218857
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218804
218858
|
// if(hoEditorFactory.drawTree.paintStatus === 0 && !node.imgSrc && !node.fingerPrintSrc) {
|
|
218805
|
-
//
|
|
218859
|
+
// this.setControlProperty('sign', 'update', '');
|
|
218806
218860
|
// return;
|
|
218807
218861
|
// }
|
|
218808
218862
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
@@ -219099,8 +219153,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
219099
219153
|
|
|
219100
219154
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219101
219155
|
components_HoDocvue_type_script_lang_js_,
|
|
219102
|
-
|
|
219103
|
-
|
|
219156
|
+
HoDocvue_type_template_id_6a4e96d0_render,
|
|
219157
|
+
HoDocvue_type_template_id_6a4e96d0_staticRenderFns,
|
|
219104
219158
|
false,
|
|
219105
219159
|
null,
|
|
219106
219160
|
null,
|
|
@@ -220772,8 +220826,6 @@ var message_box_default = /*#__PURE__*/__webpack_require__.n(message_box);
|
|
|
220772
220826
|
var es_string_ends_with = __webpack_require__(27852);
|
|
220773
220827
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
220774
220828
|
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
220829
|
// EXTERNAL MODULE: ./node_modules/jquery/dist/jquery.js
|
|
220778
220830
|
var jquery = __webpack_require__(19755);
|
|
220779
220831
|
var jquery_default = /*#__PURE__*/__webpack_require__.n(jquery);
|
|
@@ -220820,7 +220872,6 @@ var Paragraph = __webpack_require__(53570);
|
|
|
220820
220872
|
|
|
220821
220873
|
|
|
220822
220874
|
|
|
220823
|
-
|
|
220824
220875
|
|
|
220825
220876
|
|
|
220826
220877
|
var HTMLconverter2 = /*#__PURE__*/function () {
|
|
@@ -221226,6 +221277,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221226
221277
|
}, {
|
|
221227
221278
|
key: "SetTableProperty",
|
|
221228
221279
|
value: function SetTableProperty(jnode, tableNode) {
|
|
221280
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221229
221281
|
var tconstents = jquery_default()(jnode).children();
|
|
221230
221282
|
var rowInfos = new Array();
|
|
221231
221283
|
var colInfos = new Array();
|
|
@@ -221237,22 +221289,25 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221237
221289
|
|
|
221238
221290
|
for (var j = 0; j < trs.length; j++) {
|
|
221239
221291
|
var rowProperty = new TableProperty/* RowProperty */.Nr("");
|
|
221292
|
+
rowProperty.isSpecifyHeight = true;
|
|
221240
221293
|
var rowInfo = new TableNode/* RowInfos */.ii(tableNode, rowProperty);
|
|
221241
|
-
var height = jquery_default()(trs[
|
|
221294
|
+
var height = jquery_default()(trs[j]).css("height");
|
|
221242
221295
|
|
|
221243
221296
|
if (height && height != "0px") {
|
|
221244
221297
|
var heightNum = 0;
|
|
221245
221298
|
|
|
221246
221299
|
if (height.indexOf("pt") > 0) {
|
|
221247
221300
|
heightNum = parseFloat(height.substring(0, height.indexOf("pt")));
|
|
221301
|
+
heightNum = hoEditorFactory.unitConvert.fontPt2Pix(heightNum);
|
|
221248
221302
|
}
|
|
221249
221303
|
|
|
221250
221304
|
if (height.indexOf("px") > 0) {
|
|
221251
221305
|
heightNum = parseFloat(height.substring(0, height.indexOf("px")));
|
|
221252
|
-
}
|
|
221306
|
+
} //heightNum = parseFloat(((heightNum * 96) / 72).toFixed(2));
|
|
221307
|
+
|
|
221253
221308
|
|
|
221254
|
-
heightNum = parseFloat((heightNum * 96 / 72).toFixed(2));
|
|
221255
221309
|
rowInfo.rowHeight = heightNum;
|
|
221310
|
+
rowInfo.rowProperty.rowHeight = hoEditorFactory.unitConvert.pxConversionMm(heightNum, false) * 0.1;
|
|
221256
221311
|
}
|
|
221257
221312
|
|
|
221258
221313
|
rowInfos.push(rowInfo);
|
|
@@ -221273,17 +221328,18 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221273
221328
|
var widthNum = 0;
|
|
221274
221329
|
|
|
221275
221330
|
if (width.indexOf("pt") > 0) {
|
|
221276
|
-
widthNum = parseFloat(width.substring(0, width.indexOf("pt")));
|
|
221331
|
+
widthNum = parseFloat(width.substring(0, width.indexOf("pt"))); //widthNum = parseFloat(((widthNum * 96) / 72).toFixed(2));
|
|
221332
|
+
|
|
221333
|
+
widthNum = hoEditorFactory.unitConvert.fontPt2Pix(widthNum);
|
|
221277
221334
|
}
|
|
221278
221335
|
|
|
221279
221336
|
if (width.indexOf("px") > 0) {
|
|
221280
221337
|
widthNum = parseFloat(width.substring(0, width.indexOf("px")));
|
|
221281
|
-
}
|
|
221282
|
-
|
|
221283
|
-
widthNum = parseFloat((widthNum * 96 / 72).toFixed(2)); // if (widthNum == 0) {
|
|
221338
|
+
} // if (widthNum == 0) {
|
|
221284
221339
|
// widthNum = 20;
|
|
221285
221340
|
// }
|
|
221286
221341
|
|
|
221342
|
+
|
|
221287
221343
|
var colProperty = new TableProperty/* ColProperty */.Ti("");
|
|
221288
221344
|
var colInfo = new TableNode/* ColInfos */.ZE(tableNode, widthNum, colProperty);
|
|
221289
221345
|
colInfos.push(colInfo);
|
|
@@ -221395,9 +221451,9 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221395
221451
|
this.copyCellNode(cell, lntable, _i4, _j2);
|
|
221396
221452
|
} else lntable.rows[_i4][_j2] = undefined;
|
|
221397
221453
|
}
|
|
221398
|
-
}
|
|
221454
|
+
} //lntable.node2DrawNode();
|
|
221455
|
+
|
|
221399
221456
|
|
|
221400
|
-
lntable.node2DrawNode();
|
|
221401
221457
|
return [lntable];
|
|
221402
221458
|
}
|
|
221403
221459
|
}
|
|
@@ -221574,6 +221630,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
221574
221630
|
}();
|
|
221575
221631
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
221576
221632
|
var esm_typeof = __webpack_require__(58913);
|
|
221633
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
221634
|
+
var es_number_to_fixed = __webpack_require__(56977);
|
|
221577
221635
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.find.js
|
|
221578
221636
|
var es_array_find = __webpack_require__(69826);
|
|
221579
221637
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace-all.js
|