ocpview-pro 0.1.28 → 0.1.30
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/dist/ocpviewplus.min.esm.js +131 -43
- package/dist/ocpviewplus.min.js +17 -17
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/label/showtext.vue +29 -3
- package/src/components/masterplate/RewriteBillListDetails/BillInfoPanelEditTable.vue +11 -1
- package/src/components/masterplate/RewriteBillListDetails/BillListPanelTable.vue +1 -1
- package/src/components/masterplate/formcard.vue +51 -4
|
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
|
|
|
453
453
|
common.initAnchor(ViewUI2.Anchor);
|
|
454
454
|
};
|
|
455
455
|
const name = "ocpview-pro";
|
|
456
|
-
const version$2 = "0.1.
|
|
456
|
+
const version$2 = "0.1.29";
|
|
457
457
|
const title = "ocpviewPlus";
|
|
458
458
|
const description = "A high quality Service UI components Library with Vue.js";
|
|
459
459
|
const homepage = "";
|
|
@@ -8701,7 +8701,7 @@ const _sfc_main$1N = {
|
|
|
8701
8701
|
const _hoisted_1$19 = { ref: "head" };
|
|
8702
8702
|
const _hoisted_2$Q = { key: 0 };
|
|
8703
8703
|
const _hoisted_3$t = { key: 0 };
|
|
8704
|
-
const _hoisted_4$
|
|
8704
|
+
const _hoisted_4$q = {
|
|
8705
8705
|
ref: "page",
|
|
8706
8706
|
name: "page"
|
|
8707
8707
|
};
|
|
@@ -8891,7 +8891,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
8891
8891
|
_ctx.$slots.footer ? (openBlock(), createElementBlock("div", _hoisted_3$t, [
|
|
8892
8892
|
renderSlot(_ctx.$slots, "footer")
|
|
8893
8893
|
])) : createCommentVNode("", true),
|
|
8894
|
-
createElementVNode("div", _hoisted_4$
|
|
8894
|
+
createElementVNode("div", _hoisted_4$q, [
|
|
8895
8895
|
_ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_5$m, [
|
|
8896
8896
|
createVNode(_component_Card, {
|
|
8897
8897
|
bordered: false,
|
|
@@ -10188,7 +10188,7 @@ const _sfc_main$1L = {
|
|
|
10188
10188
|
const _hoisted_1$18 = ["id"];
|
|
10189
10189
|
const _hoisted_2$P = { key: 0 };
|
|
10190
10190
|
const _hoisted_3$s = ["onClick"];
|
|
10191
|
-
const _hoisted_4$
|
|
10191
|
+
const _hoisted_4$p = {
|
|
10192
10192
|
key: 0,
|
|
10193
10193
|
ref: "page",
|
|
10194
10194
|
style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
|
|
@@ -10303,7 +10303,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10303
10303
|
};
|
|
10304
10304
|
})
|
|
10305
10305
|
]), 1032, ["row-class-name", "loading", "size", "stripe", "border", "height", "maxHeight", "show-header", "onOnSelectionChange", "columns", "data", "onOnColumnWidthResize", "show-summary", "summary-method"]),
|
|
10306
|
-
_ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
10306
|
+
_ctx.myConfig.showPage ? (openBlock(), createElementBlock("div", _hoisted_4$p, [
|
|
10307
10307
|
createVNode(_component_Card, {
|
|
10308
10308
|
bordered: false,
|
|
10309
10309
|
padding: 0,
|
|
@@ -10517,7 +10517,7 @@ const _hoisted_3$r = {
|
|
|
10517
10517
|
key: 4,
|
|
10518
10518
|
style: { "margin-left": "10px" }
|
|
10519
10519
|
};
|
|
10520
|
-
const _hoisted_4$
|
|
10520
|
+
const _hoisted_4$o = ["onClick"];
|
|
10521
10521
|
const _hoisted_5$l = {
|
|
10522
10522
|
key: 0,
|
|
10523
10523
|
ref: "page",
|
|
@@ -10611,7 +10611,7 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10611
10611
|
contentAlign: config2.contentAlign,
|
|
10612
10612
|
class: normalizeClass(_ctx.IsCellError(index, config2))
|
|
10613
10613
|
}, null, 8, ["label", "contentAlign", "class"]))
|
|
10614
|
-
], 8, _hoisted_4$
|
|
10614
|
+
], 8, _hoisted_4$o)
|
|
10615
10615
|
])
|
|
10616
10616
|
};
|
|
10617
10617
|
})
|
|
@@ -27241,7 +27241,7 @@ const _hoisted_3$q = {
|
|
|
27241
27241
|
key: 0,
|
|
27242
27242
|
class: "ivu-tag ivu-tag-checked"
|
|
27243
27243
|
};
|
|
27244
|
-
const _hoisted_4$
|
|
27244
|
+
const _hoisted_4$n = { class: "ivu-tag-text ivu-select-max-tag" };
|
|
27245
27245
|
const _hoisted_5$k = { class: "ivu-tag-text" };
|
|
27246
27246
|
function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
27247
27247
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -27301,7 +27301,7 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
27301
27301
|
]),
|
|
27302
27302
|
default: withCtx(() => [
|
|
27303
27303
|
$data.myConfig.maxTagCount !== void 0 && $data.selectedMultiple.length > $data.myConfig.maxTagCount ? (openBlock(), createElementBlock("div", _hoisted_3$q, [
|
|
27304
|
-
createElementVNode("span", _hoisted_4$
|
|
27304
|
+
createElementVNode("span", _hoisted_4$n, " + " + toDisplayString$1($data.selectedMultiple.length - $data.myConfig.maxTagCount) + "... ", 1)
|
|
27305
27305
|
])) : createCommentVNode("", true)
|
|
27306
27306
|
]),
|
|
27307
27307
|
_: 1
|
|
@@ -30188,7 +30188,7 @@ const _sfc_main$1n = {
|
|
|
30188
30188
|
const _hoisted_1$11 = { style: { "text-align": "center" } };
|
|
30189
30189
|
const _hoisted_2$L = ["onClick"];
|
|
30190
30190
|
const _hoisted_3$p = ["onClick"];
|
|
30191
|
-
const _hoisted_4$
|
|
30191
|
+
const _hoisted_4$m = ["src", "data-original"];
|
|
30192
30192
|
const _hoisted_5$j = { key: 0 };
|
|
30193
30193
|
function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
30194
30194
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -30255,7 +30255,7 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30255
30255
|
src: item.url,
|
|
30256
30256
|
"data-original": `${item.url}`,
|
|
30257
30257
|
style: normalizeStyle($data.imgStyle)
|
|
30258
|
-
}, null, 12, _hoisted_4$
|
|
30258
|
+
}, null, 12, _hoisted_4$m)
|
|
30259
30259
|
])
|
|
30260
30260
|
]),
|
|
30261
30261
|
_: 2
|
|
@@ -30646,7 +30646,7 @@ const _hoisted_1$10 = {
|
|
|
30646
30646
|
};
|
|
30647
30647
|
const _hoisted_2$K = { ref: "photo" };
|
|
30648
30648
|
const _hoisted_3$o = ["src", "data-original"];
|
|
30649
|
-
const _hoisted_4$
|
|
30649
|
+
const _hoisted_4$l = ["innerHTML"];
|
|
30650
30650
|
const _hoisted_5$i = {
|
|
30651
30651
|
ref: "pdf",
|
|
30652
30652
|
style: { "height": "630px" }
|
|
@@ -30759,7 +30759,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
30759
30759
|
"footer-hide": true
|
|
30760
30760
|
}, {
|
|
30761
30761
|
default: withCtx(() => [
|
|
30762
|
-
createElementVNode("div", { innerHTML: _ctx.textStr }, null, 8, _hoisted_4$
|
|
30762
|
+
createElementVNode("div", { innerHTML: _ctx.textStr }, null, 8, _hoisted_4$l)
|
|
30763
30763
|
]),
|
|
30764
30764
|
_: 1
|
|
30765
30765
|
}, 8, ["title", "modelValue"]),
|
|
@@ -31384,7 +31384,7 @@ const _sfc_main$1k = {
|
|
|
31384
31384
|
const _hoisted_1$$ = { style: { "text-align": "center" } };
|
|
31385
31385
|
const _hoisted_2$J = ["onClick"];
|
|
31386
31386
|
const _hoisted_3$n = ["onClick"];
|
|
31387
|
-
const _hoisted_4$
|
|
31387
|
+
const _hoisted_4$k = ["src"];
|
|
31388
31388
|
const _hoisted_5$h = { key: 1 };
|
|
31389
31389
|
function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
31390
31390
|
const _component_Icon = resolveComponent("Icon");
|
|
@@ -31444,7 +31444,7 @@ function _sfc_render$1c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
31444
31444
|
src: item.url,
|
|
31445
31445
|
style: normalizeStyle($data.imgStyle),
|
|
31446
31446
|
controls: "controls"
|
|
31447
|
-
}, toDisplayString$1(_ctx.$t("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u89C6\u9891")), 13, _hoisted_4$
|
|
31447
|
+
}, toDisplayString$1(_ctx.$t("\u60A8\u7684\u6D4F\u89C8\u5668\u4E0D\u652F\u6301\u89C6\u9891")), 13, _hoisted_4$k)
|
|
31448
31448
|
]),
|
|
31449
31449
|
_: 2
|
|
31450
31450
|
}, 1024)
|
|
@@ -32489,7 +32489,7 @@ const _sfc_main$1e = {
|
|
|
32489
32489
|
const _hoisted_1$X = ["textContent"];
|
|
32490
32490
|
const _hoisted_2$H = { key: 0 };
|
|
32491
32491
|
const _hoisted_3$m = { key: 1 };
|
|
32492
|
-
const _hoisted_4$
|
|
32492
|
+
const _hoisted_4$j = { key: 1 };
|
|
32493
32493
|
function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
32494
32494
|
const _component_Icon = resolveComponent("Icon");
|
|
32495
32495
|
const _component_ControlBox = resolveComponent("ControlBox");
|
|
@@ -32531,7 +32531,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
32531
32531
|
href: "#",
|
|
32532
32532
|
onClick: _cache[1] || (_cache[1] = withModifiers((...args) => $options.editForm && $options.editForm(...args), ["prevent"]))
|
|
32533
32533
|
}, toDisplayString$1($data.myConfig.editBtnText), 1)) : createCommentVNode("", true),
|
|
32534
|
-
$data.showBtn && $data.editFlag && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
32534
|
+
$data.showBtn && $data.editFlag && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$j, toDisplayString$1($data.myConfig.editBtnText), 1)) : createCommentVNode("", true),
|
|
32535
32535
|
$data.showBtn && !$data.editFlag && $data.saveFlag ? (openBlock(), createElementBlock("a", {
|
|
32536
32536
|
key: 2,
|
|
32537
32537
|
style: { "margin-left": "10px" },
|
|
@@ -33700,7 +33700,7 @@ const _sfc_main$1b = {
|
|
|
33700
33700
|
const _hoisted_1$U = ["textContent"];
|
|
33701
33701
|
const _hoisted_2$E = { style: { "padding": "16px" } };
|
|
33702
33702
|
const _hoisted_3$l = ["textContent"];
|
|
33703
|
-
const _hoisted_4$
|
|
33703
|
+
const _hoisted_4$i = { key: 1 };
|
|
33704
33704
|
const _hoisted_5$g = { style: { "padding": "16px" } };
|
|
33705
33705
|
const _hoisted_6$c = ["textContent"];
|
|
33706
33706
|
const _hoisted_7$7 = ["textContent"];
|
|
@@ -33813,7 +33813,7 @@ function _sfc_render$14(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
33813
33813
|
href: "#",
|
|
33814
33814
|
onClick: _cache[3] || (_cache[3] = withModifiers((...args) => $options.editDetails && $options.editDetails(...args), ["prevent"]))
|
|
33815
33815
|
}, toDisplayString$1($data.myConfig.editBtnName), 1)) : createCommentVNode("", true),
|
|
33816
|
-
$data.showBtn && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$
|
|
33816
|
+
$data.showBtn && $data.btnReadOnly ? (openBlock(), createElementBlock("span", _hoisted_4$i, toDisplayString$1($data.myConfig.editBtnName), 1)) : createCommentVNode("", true)
|
|
33817
33817
|
]),
|
|
33818
33818
|
default: withCtx(() => [
|
|
33819
33819
|
withDirectives(createElementVNode("div", _hoisted_5$g, [
|
|
@@ -34337,19 +34337,22 @@ const _sfc_main$19 = {
|
|
|
34337
34337
|
},
|
|
34338
34338
|
computed: {
|
|
34339
34339
|
labeltext() {
|
|
34340
|
-
return this.label;
|
|
34340
|
+
return this.translateComboBoxText(this.label);
|
|
34341
34341
|
},
|
|
34342
34342
|
textLink() {
|
|
34343
34343
|
return !!(this.config && this.config.textLink);
|
|
34344
34344
|
},
|
|
34345
34345
|
displayText() {
|
|
34346
|
+
let text = "";
|
|
34346
34347
|
if (this.resetText) {
|
|
34347
|
-
|
|
34348
|
+
text = this.resetText(
|
|
34348
34349
|
this.doSpecialSymbols(this.label),
|
|
34349
34350
|
this.label
|
|
34350
34351
|
);
|
|
34352
|
+
} else {
|
|
34353
|
+
text = this.doSpecialSymbols(this.label);
|
|
34351
34354
|
}
|
|
34352
|
-
return this.
|
|
34355
|
+
return this.translateComboBoxText(text);
|
|
34353
34356
|
}
|
|
34354
34357
|
},
|
|
34355
34358
|
mounted() {
|
|
@@ -34373,6 +34376,16 @@ const _sfc_main$19 = {
|
|
|
34373
34376
|
}
|
|
34374
34377
|
},
|
|
34375
34378
|
methods: {
|
|
34379
|
+
translateComboBoxText(text) {
|
|
34380
|
+
if (typeof text !== "string") {
|
|
34381
|
+
return text;
|
|
34382
|
+
}
|
|
34383
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
34384
|
+
if (match) {
|
|
34385
|
+
return match[1] + this.$t(match[2]);
|
|
34386
|
+
}
|
|
34387
|
+
return this.$t(text);
|
|
34388
|
+
},
|
|
34376
34389
|
checkOverflow() {
|
|
34377
34390
|
const content2 = this.$refs.content;
|
|
34378
34391
|
this.hasOverflow = !!(content2 && content2.scrollWidth > content2.offsetWidth);
|
|
@@ -34455,7 +34468,7 @@ function _sfc_render$12(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
34455
34468
|
} : void 0
|
|
34456
34469
|
]), 1040);
|
|
34457
34470
|
}
|
|
34458
|
-
var ShowText = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render", _sfc_render$12], ["__scopeId", "data-v-
|
|
34471
|
+
var ShowText = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render", _sfc_render$12], ["__scopeId", "data-v-1935660b"]]);
|
|
34459
34472
|
var billimport_vue_vue_type_style_index_0_lang = "";
|
|
34460
34473
|
const _sfc_main$18 = {
|
|
34461
34474
|
name: "billimport",
|
|
@@ -38080,7 +38093,7 @@ const _sfc_main$Q = {
|
|
|
38080
38093
|
const _hoisted_1$L = ["title"];
|
|
38081
38094
|
const _hoisted_2$A = ["title"];
|
|
38082
38095
|
const _hoisted_3$k = ["value", "disabled"];
|
|
38083
|
-
const _hoisted_4$
|
|
38096
|
+
const _hoisted_4$h = ["title"];
|
|
38084
38097
|
const _hoisted_5$f = ["title"];
|
|
38085
38098
|
const _hoisted_6$b = {
|
|
38086
38099
|
key: 1,
|
|
@@ -38142,7 +38155,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38142
38155
|
createElementVNode("a", null, [
|
|
38143
38156
|
createElementVNode("i", { class: "ivu-icon ivu-icon-ios-arrow-forward" })
|
|
38144
38157
|
], -1)
|
|
38145
|
-
])], 10, _hoisted_4$
|
|
38158
|
+
])], 10, _hoisted_4$h)
|
|
38146
38159
|
], 6)) : (openBlock(), createElementBlock("ul", {
|
|
38147
38160
|
key: 1,
|
|
38148
38161
|
class: normalizeClass(_ctx.wrapClasses),
|
|
@@ -38378,7 +38391,7 @@ const _hoisted_3$j = {
|
|
|
38378
38391
|
key: 0,
|
|
38379
38392
|
style: { "padding-top": "10px" }
|
|
38380
38393
|
};
|
|
38381
|
-
const _hoisted_4$
|
|
38394
|
+
const _hoisted_4$g = ["textContent"];
|
|
38382
38395
|
const _hoisted_5$e = ["textContent"];
|
|
38383
38396
|
const _hoisted_6$a = {
|
|
38384
38397
|
ref: "page",
|
|
@@ -38523,7 +38536,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
38523
38536
|
title: withCtx(() => [
|
|
38524
38537
|
createElementVNode("span", {
|
|
38525
38538
|
textContent: toDisplayString$1(_ctx.myConfig.gridTitle)
|
|
38526
|
-
}, null, 8, _hoisted_4$
|
|
38539
|
+
}, null, 8, _hoisted_4$g)
|
|
38527
38540
|
]),
|
|
38528
38541
|
default: withCtx(() => [
|
|
38529
38542
|
createVNode(_component_Table, {
|
|
@@ -41413,7 +41426,7 @@ const _sfc_main$J = {
|
|
|
41413
41426
|
const _hoisted_1$G = ["textContent"];
|
|
41414
41427
|
const _hoisted_2$x = { style: { "padding-left": "24px" } };
|
|
41415
41428
|
const _hoisted_3$h = { ref: "photo" };
|
|
41416
|
-
const _hoisted_4$
|
|
41429
|
+
const _hoisted_4$f = ["src", "data-original"];
|
|
41417
41430
|
const _hoisted_5$d = ["innerHTML"];
|
|
41418
41431
|
const _hoisted_6$9 = {
|
|
41419
41432
|
ref: "pdf",
|
|
@@ -41542,7 +41555,7 @@ function _sfc_render$G(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
41542
41555
|
src: $data.imgUrl,
|
|
41543
41556
|
"data-original": `${$data.imgUrl}`,
|
|
41544
41557
|
style: { "width": "100%", "height": "100%" }
|
|
41545
|
-
}, null, 8, _hoisted_4$
|
|
41558
|
+
}, null, 8, _hoisted_4$f)
|
|
41546
41559
|
])
|
|
41547
41560
|
], 512), [
|
|
41548
41561
|
[vShow, false]
|
|
@@ -42052,7 +42065,7 @@ const _sfc_main$I = {
|
|
|
42052
42065
|
const _hoisted_1$F = { style: { "margin-bottom": "10px", "display": "flex", "justify-content": "space-between" } };
|
|
42053
42066
|
const _hoisted_2$w = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42054
42067
|
const _hoisted_3$g = { style: { "margin-bottom": "10px", "display": "flex", "justify-content": "space-between" } };
|
|
42055
|
-
const _hoisted_4$
|
|
42068
|
+
const _hoisted_4$e = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42056
42069
|
const _hoisted_5$c = { style: { "margin-bottom": "10px" } };
|
|
42057
42070
|
const _hoisted_6$8 = { style: { "font-size": "14px", "font-weight": "bold" } };
|
|
42058
42071
|
const _hoisted_7$4 = { class: "demo-spin-col-bill" };
|
|
@@ -42145,7 +42158,7 @@ function _sfc_render$F(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
42145
42158
|
createElementVNode("div", null, [
|
|
42146
42159
|
_cache[9] || (_cache[9] = createElementVNode("span", { class: "efuture-title-verticalline" }, null, -1)),
|
|
42147
42160
|
_cache[10] || (_cache[10] = createTextVNode()),
|
|
42148
|
-
createElementVNode("span", _hoisted_4$
|
|
42161
|
+
createElementVNode("span", _hoisted_4$e, toDisplayString$1(_ctx.$t("\u5BFC\u5165\u9519\u8BEF\u4FE1\u606F")), 1)
|
|
42149
42162
|
]),
|
|
42150
42163
|
createVNode(_component_Button, {
|
|
42151
42164
|
size: "small",
|
|
@@ -44703,7 +44716,7 @@ const _sfc_main$B = {
|
|
|
44703
44716
|
const _hoisted_1$y = { style: { "font-size": "14px" } };
|
|
44704
44717
|
const _hoisted_2$r = { style: { "margin-top": "3px", "margin-bottom": "3px", "margin-left": "8px", "margin-right": "10px" } };
|
|
44705
44718
|
const _hoisted_3$f = { style: { "font-size": "14px" } };
|
|
44706
|
-
const _hoisted_4$
|
|
44719
|
+
const _hoisted_4$d = { style: { "color": "#AF292E", "font-size": "14px" } };
|
|
44707
44720
|
const _hoisted_5$b = { style: { "max-height": "400px", "overflow-y": "auto", "overflow-x": "hidden", "margin": "14px 16px" } };
|
|
44708
44721
|
const _hoisted_6$7 = { style: { "padding-left": "14px" } };
|
|
44709
44722
|
const _hoisted_7$3 = { style: { "font-size": "12px" } };
|
|
@@ -44777,7 +44790,7 @@ function _sfc_render$y(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
44777
44790
|
title: withCtx(() => [
|
|
44778
44791
|
createElementVNode("p", _hoisted_2$r, [
|
|
44779
44792
|
createElementVNode("span", _hoisted_3$f, toDisplayString$1(_ctx.$t("\u5DF2\u9009\u62E9\u5B57\u6BB5")) + ": ", 1),
|
|
44780
|
-
createElementVNode("span", _hoisted_4$
|
|
44793
|
+
createElementVNode("span", _hoisted_4$d, toDisplayString$1($data.num) + toDisplayString$1(_ctx.$t("\u4E2A")), 1)
|
|
44781
44794
|
])
|
|
44782
44795
|
]),
|
|
44783
44796
|
default: withCtx(() => [
|
|
@@ -45609,7 +45622,7 @@ const _hoisted_2$p = {
|
|
|
45609
45622
|
style: { "margin-bottom": "10px" }
|
|
45610
45623
|
};
|
|
45611
45624
|
const _hoisted_3$e = ["textContent"];
|
|
45612
|
-
const _hoisted_4$
|
|
45625
|
+
const _hoisted_4$c = { key: 0 };
|
|
45613
45626
|
const _hoisted_5$a = ["onClick", "cell-row", "cell-col"];
|
|
45614
45627
|
const _hoisted_6$6 = {
|
|
45615
45628
|
key: 0,
|
|
@@ -45688,7 +45701,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45688
45701
|
class: normalizeClass(["table-wrapper", { "is--maximize": $data.showZoom && $data.isFull }]),
|
|
45689
45702
|
style: normalizeStyle($data.divStyle)
|
|
45690
45703
|
}, [
|
|
45691
|
-
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
45704
|
+
_ctx.$slots.header ? (openBlock(), createElementBlock("div", _hoisted_4$c, [
|
|
45692
45705
|
renderSlot(_ctx.$slots, "header", {}, void 0, true)
|
|
45693
45706
|
])) : withDirectives((openBlock(), createBlock(_component_Row, {
|
|
45694
45707
|
key: 1,
|
|
@@ -45930,8 +45943,10 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
45930
45943
|
}, 512);
|
|
45931
45944
|
}
|
|
45932
45945
|
var mEditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_render$w], ["__scopeId", "data-v-10e4b5d2"]]);
|
|
45946
|
+
const TitleExtra = (props) => props.render(h$1, props.params);
|
|
45933
45947
|
const _sfc_main$y = {
|
|
45934
45948
|
name: "mformcard",
|
|
45949
|
+
components: { TitleExtra },
|
|
45935
45950
|
extends: FormBox,
|
|
45936
45951
|
data() {
|
|
45937
45952
|
return {
|
|
@@ -45948,6 +45963,37 @@ const _sfc_main$y = {
|
|
|
45948
45963
|
};
|
|
45949
45964
|
},
|
|
45950
45965
|
methods: {
|
|
45966
|
+
getTitleExtraParams() {
|
|
45967
|
+
return {
|
|
45968
|
+
form: this.form,
|
|
45969
|
+
dictData: this.dictData,
|
|
45970
|
+
config: this.myConfig
|
|
45971
|
+
};
|
|
45972
|
+
},
|
|
45973
|
+
titleExtraStatusRender(h10, params) {
|
|
45974
|
+
let statusConfig = params.config.titleExtraStatus;
|
|
45975
|
+
if (!statusConfig.codeField) {
|
|
45976
|
+
return null;
|
|
45977
|
+
}
|
|
45978
|
+
let status = params.form[statusConfig.codeField];
|
|
45979
|
+
if (status === void 0 || status === null || status === "") {
|
|
45980
|
+
return null;
|
|
45981
|
+
}
|
|
45982
|
+
let dicts = statusConfig.dicts;
|
|
45983
|
+
if (!Array.isArray(dicts)) {
|
|
45984
|
+
dicts = statusConfig.dictKey ? params.dictData && params.dictData[statusConfig.dictKey] : null;
|
|
45985
|
+
}
|
|
45986
|
+
let codeKey = statusConfig.codeKey || "code";
|
|
45987
|
+
let nameKey = statusConfig.nameKey || "name";
|
|
45988
|
+
let tmp = Array.isArray(dicts) ? dicts.find((el2) => el2[codeKey] === status) : null;
|
|
45989
|
+
if (!tmp || !tmp[nameKey]) {
|
|
45990
|
+
return h10("span", String(status));
|
|
45991
|
+
}
|
|
45992
|
+
if (statusConfig.showCode) {
|
|
45993
|
+
return h10("span", "[" + tmp[codeKey] + "]" + this.$t(tmp[nameKey]));
|
|
45994
|
+
}
|
|
45995
|
+
return h10("span", this.$t(tmp[nameKey]));
|
|
45996
|
+
},
|
|
45951
45997
|
customInit() {
|
|
45952
45998
|
if (this.myConfig.showEffectValue !== void 0) {
|
|
45953
45999
|
this.showEffectValue = this.myConfig.showEffectValue;
|
|
@@ -45990,12 +46036,17 @@ const _sfc_main$y = {
|
|
|
45990
46036
|
};
|
|
45991
46037
|
const _hoisted_1$v = ["textContent"];
|
|
45992
46038
|
const _hoisted_2$o = {
|
|
45993
|
-
key:
|
|
45994
|
-
style: { "margin-
|
|
46039
|
+
key: 0,
|
|
46040
|
+
style: { "margin-left": "auto" }
|
|
45995
46041
|
};
|
|
45996
46042
|
const _hoisted_3$d = ["textContent"];
|
|
46043
|
+
const _hoisted_4$b = {
|
|
46044
|
+
key: 0,
|
|
46045
|
+
style: { "margin-left": "auto" }
|
|
46046
|
+
};
|
|
45997
46047
|
function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
45998
46048
|
const _component_Icon = resolveComponent("Icon");
|
|
46049
|
+
const _component_TitleExtra = resolveComponent("TitleExtra");
|
|
45999
46050
|
const _component_Row = resolveComponent("Row");
|
|
46000
46051
|
const _component_Divider = resolveComponent("Divider");
|
|
46001
46052
|
const _component_ShowText = resolveComponent("ShowText");
|
|
@@ -46040,21 +46091,48 @@ function _sfc_render$v(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46040
46091
|
createElementVNode("span", {
|
|
46041
46092
|
style: { "margin-left": "10px", "font-size": "14px", "font-weight": "bold" },
|
|
46042
46093
|
textContent: toDisplayString$1($data.myConfig.title ? _ctx.$t($data.myConfig.title) : $data.myConfig.title)
|
|
46043
|
-
}, null, 8, _hoisted_1$v)
|
|
46094
|
+
}, null, 8, _hoisted_1$v),
|
|
46095
|
+
$data.myConfig.titleExtraStatus || $data.myConfig.titleExtraRender ? (openBlock(), createElementBlock("div", _hoisted_2$o, [
|
|
46096
|
+
$data.myConfig.titleExtraStatus ? (openBlock(), createBlock(_component_TitleExtra, {
|
|
46097
|
+
key: 0,
|
|
46098
|
+
render: $options.titleExtraStatusRender,
|
|
46099
|
+
params: $options.getTitleExtraParams()
|
|
46100
|
+
}, null, 8, ["render", "params"])) : createCommentVNode("", true),
|
|
46101
|
+
$data.myConfig.titleExtraRender ? (openBlock(), createBlock(_component_TitleExtra, {
|
|
46102
|
+
key: 1,
|
|
46103
|
+
render: $data.myConfig.titleExtraRender,
|
|
46104
|
+
params: $options.getTitleExtraParams()
|
|
46105
|
+
}, null, 8, ["render", "params"])) : createCommentVNode("", true)
|
|
46106
|
+
])) : createCommentVNode("", true)
|
|
46044
46107
|
]),
|
|
46045
46108
|
_: 1
|
|
46046
46109
|
})
|
|
46047
46110
|
]),
|
|
46048
46111
|
createVNode(_component_Divider, { style: { "margin-left": "24px", "margin-top": "0px", "margin-bottom": "10px" } })
|
|
46049
46112
|
], 64)) : createCommentVNode("", true),
|
|
46050
|
-
$data.myConfig.modetype === "2" ? (openBlock(), createElementBlock("div",
|
|
46113
|
+
$data.myConfig.modetype === "2" ? (openBlock(), createElementBlock("div", {
|
|
46114
|
+
key: 1,
|
|
46115
|
+
style: normalizeStyle($data.myConfig.titleExtraStatus || $data.myConfig.titleExtraRender ? "margin-bottom:10px;display:flex;align-items:center;" : "margin-bottom:10px;")
|
|
46116
|
+
}, [
|
|
46051
46117
|
_cache[2] || (_cache[2] = createElementVNode("span", { class: "efuture-title-verticalline" }, null, -1)),
|
|
46052
46118
|
_cache[3] || (_cache[3] = createTextVNode()),
|
|
46053
46119
|
createElementVNode("span", {
|
|
46054
46120
|
style: { "font-size": "14px", "font-weight": "bold" },
|
|
46055
46121
|
textContent: toDisplayString$1($data.myConfig.title ? _ctx.$t($data.myConfig.title) : $data.myConfig.title)
|
|
46056
|
-
}, null, 8, _hoisted_3$d)
|
|
46057
|
-
|
|
46122
|
+
}, null, 8, _hoisted_3$d),
|
|
46123
|
+
$data.myConfig.titleExtraStatus || $data.myConfig.titleExtraRender ? (openBlock(), createElementBlock("div", _hoisted_4$b, [
|
|
46124
|
+
$data.myConfig.titleExtraStatus ? (openBlock(), createBlock(_component_TitleExtra, {
|
|
46125
|
+
key: 0,
|
|
46126
|
+
render: $options.titleExtraStatusRender,
|
|
46127
|
+
params: $options.getTitleExtraParams()
|
|
46128
|
+
}, null, 8, ["render", "params"])) : createCommentVNode("", true),
|
|
46129
|
+
$data.myConfig.titleExtraRender ? (openBlock(), createBlock(_component_TitleExtra, {
|
|
46130
|
+
key: 1,
|
|
46131
|
+
render: $data.myConfig.titleExtraRender,
|
|
46132
|
+
params: $options.getTitleExtraParams()
|
|
46133
|
+
}, null, 8, ["render", "params"])) : createCommentVNode("", true)
|
|
46134
|
+
])) : createCommentVNode("", true)
|
|
46135
|
+
], 4)) : createCommentVNode("", true),
|
|
46058
46136
|
withDirectives(createVNode(_component_Form, {
|
|
46059
46137
|
ref: "form",
|
|
46060
46138
|
class: "efuture-tip-form",
|
|
@@ -56243,7 +56321,7 @@ const _sfc_main$f = {
|
|
|
56243
56321
|
row,
|
|
56244
56322
|
item
|
|
56245
56323
|
);
|
|
56246
|
-
return valueFormat;
|
|
56324
|
+
return this.translateComboBoxText(valueFormat);
|
|
56247
56325
|
},
|
|
56248
56326
|
...item._colorMap && {
|
|
56249
56327
|
type: "html",
|
|
@@ -57292,7 +57370,7 @@ const _sfc_main$b = {
|
|
|
57292
57370
|
row,
|
|
57293
57371
|
item
|
|
57294
57372
|
);
|
|
57295
|
-
return valueFormat;
|
|
57373
|
+
return this.translateComboBoxText(valueFormat);
|
|
57296
57374
|
},
|
|
57297
57375
|
editRender: {
|
|
57298
57376
|
enabled: false,
|
|
@@ -57362,6 +57440,16 @@ const _sfc_main$b = {
|
|
|
57362
57440
|
}
|
|
57363
57441
|
},
|
|
57364
57442
|
methods: {
|
|
57443
|
+
translateComboBoxText(text) {
|
|
57444
|
+
if (typeof text !== "string") {
|
|
57445
|
+
return text;
|
|
57446
|
+
}
|
|
57447
|
+
const match = text.match(/^(\[[^\]]*\])([\s\S]*)$/);
|
|
57448
|
+
if (match) {
|
|
57449
|
+
return match[1] + this.$t(match[2]);
|
|
57450
|
+
}
|
|
57451
|
+
return this.$t(text);
|
|
57452
|
+
},
|
|
57365
57453
|
enterKeyDown() {
|
|
57366
57454
|
const $table = this.$refs.table;
|
|
57367
57455
|
this.VG_keyCode13Event($table);
|