@factoringplus/pl-components-pack-v3 0.1.51 → 0.1.54
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/pl-components-pack-v3.es.js +136 -66
- package/dist/pl-components-pack-v3.umd.js +19 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -17,7 +17,7 @@ var __spreadValues = (a, b) => {
|
|
|
17
17
|
return a;
|
|
18
18
|
};
|
|
19
19
|
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
20
|
-
import {
|
|
20
|
+
import { getCurrentScope, onScopeDispose, ref, unref, watch, defineComponent, openBlock, createElementBlock, createElementVNode, warn as warn$1, getCurrentInstance, computed, inject, provide, onMounted, watchEffect, onBeforeUnmount, isRef, onBeforeMount, mergeProps, renderSlot, shallowRef, nextTick, onUpdated, resolveComponent, withDirectives, normalizeClass, normalizeStyle, createCommentVNode, Fragment, createBlock, withCtx, resolveDynamicComponent, withModifiers, createVNode, toDisplayString, vShow, toRef, Transition, reactive, cloneVNode, h, Text, Comment, Teleport, createTextVNode, readonly, useSlots, resolveDirective, renderList, toRefs, toRaw, triggerRef, withKeys, vModelText, createSlots, createApp, isVNode, render, onUnmounted } from "vue";
|
|
21
21
|
var freeGlobal = typeof global == "object" && global && global.Object === Object && global;
|
|
22
22
|
var freeGlobal$1 = freeGlobal;
|
|
23
23
|
var freeSelf = typeof self == "object" && self && self.Object === Object && self;
|
|
@@ -1582,13 +1582,13 @@ const _hoisted_4$5 = /* @__PURE__ */ createElementVNode("path", {
|
|
|
1582
1582
|
fill: "currentColor",
|
|
1583
1583
|
d: "M480 512h256q32 0 32 32t-32 32H480q-32 0-32-32t32-32z"
|
|
1584
1584
|
}, null, -1);
|
|
1585
|
-
const _hoisted_5$
|
|
1585
|
+
const _hoisted_5$5 = [
|
|
1586
1586
|
_hoisted_2$l,
|
|
1587
1587
|
_hoisted_3$g,
|
|
1588
1588
|
_hoisted_4$5
|
|
1589
1589
|
];
|
|
1590
1590
|
function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
|
|
1591
|
-
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$
|
|
1591
|
+
return openBlock(), createElementBlock("svg", _hoisted_1$s, _hoisted_5$5);
|
|
1592
1592
|
}
|
|
1593
1593
|
var clock = /* @__PURE__ */ _export_sfc$2(_sfc_main$N, [["render", _sfc_render$C]]);
|
|
1594
1594
|
const _sfc_main$M = defineComponent({
|
|
@@ -9734,11 +9734,11 @@ const _hoisted_1$a = { class: "cell" };
|
|
|
9734
9734
|
const _hoisted_2$7 = { class: "cell" };
|
|
9735
9735
|
const _hoisted_3$5 = { class: "cell" };
|
|
9736
9736
|
const _hoisted_4$4 = { class: "cell" };
|
|
9737
|
-
const _hoisted_5$
|
|
9738
|
-
const _hoisted_6$
|
|
9739
|
-
const _hoisted_7$
|
|
9740
|
-
const _hoisted_8$
|
|
9741
|
-
const _hoisted_9$
|
|
9737
|
+
const _hoisted_5$4 = { class: "cell" };
|
|
9738
|
+
const _hoisted_6$4 = { class: "cell" };
|
|
9739
|
+
const _hoisted_7$4 = { class: "cell" };
|
|
9740
|
+
const _hoisted_8$4 = { class: "cell" };
|
|
9741
|
+
const _hoisted_9$4 = { class: "cell" };
|
|
9742
9742
|
const _hoisted_10$3 = { class: "cell" };
|
|
9743
9743
|
const _hoisted_11$2 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
|
|
9744
9744
|
const _hoisted_12$2 = /* @__PURE__ */ createElementVNode("td", null, null, -1);
|
|
@@ -9774,29 +9774,29 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
9774
9774
|
createElementVNode("td", {
|
|
9775
9775
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 4)])
|
|
9776
9776
|
}, [
|
|
9777
|
-
createElementVNode("a", _hoisted_5$
|
|
9777
|
+
createElementVNode("a", _hoisted_5$4, toDisplayString(_ctx.startYear + 4), 1)
|
|
9778
9778
|
], 2),
|
|
9779
9779
|
createElementVNode("td", {
|
|
9780
9780
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 5)])
|
|
9781
9781
|
}, [
|
|
9782
|
-
createElementVNode("a", _hoisted_6$
|
|
9782
|
+
createElementVNode("a", _hoisted_6$4, toDisplayString(_ctx.startYear + 5), 1)
|
|
9783
9783
|
], 2),
|
|
9784
9784
|
createElementVNode("td", {
|
|
9785
9785
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 6)])
|
|
9786
9786
|
}, [
|
|
9787
|
-
createElementVNode("a", _hoisted_7$
|
|
9787
|
+
createElementVNode("a", _hoisted_7$4, toDisplayString(_ctx.startYear + 6), 1)
|
|
9788
9788
|
], 2),
|
|
9789
9789
|
createElementVNode("td", {
|
|
9790
9790
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 7)])
|
|
9791
9791
|
}, [
|
|
9792
|
-
createElementVNode("a", _hoisted_8$
|
|
9792
|
+
createElementVNode("a", _hoisted_8$4, toDisplayString(_ctx.startYear + 7), 1)
|
|
9793
9793
|
], 2)
|
|
9794
9794
|
]),
|
|
9795
9795
|
createElementVNode("tr", null, [
|
|
9796
9796
|
createElementVNode("td", {
|
|
9797
9797
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 8)])
|
|
9798
9798
|
}, [
|
|
9799
|
-
createElementVNode("a", _hoisted_9$
|
|
9799
|
+
createElementVNode("a", _hoisted_9$4, toDisplayString(_ctx.startYear + 8), 1)
|
|
9800
9800
|
], 2),
|
|
9801
9801
|
createElementVNode("td", {
|
|
9802
9802
|
class: normalizeClass(["available", _ctx.getCellStyle(_ctx.startYear + 9)])
|
|
@@ -10229,14 +10229,14 @@ const _hoisted_2$6 = {
|
|
|
10229
10229
|
};
|
|
10230
10230
|
const _hoisted_3$4 = ["onClick"];
|
|
10231
10231
|
const _hoisted_4$3 = { class: "el-picker-panel__body" };
|
|
10232
|
-
const _hoisted_5$
|
|
10232
|
+
const _hoisted_5$3 = {
|
|
10233
10233
|
key: 0,
|
|
10234
10234
|
class: "el-date-picker__time-header"
|
|
10235
10235
|
};
|
|
10236
|
-
const _hoisted_6$
|
|
10237
|
-
const _hoisted_7$
|
|
10238
|
-
const _hoisted_8$
|
|
10239
|
-
const _hoisted_9$
|
|
10236
|
+
const _hoisted_6$3 = { class: "el-date-picker__editor-wrap" };
|
|
10237
|
+
const _hoisted_7$3 = { class: "el-date-picker__editor-wrap" };
|
|
10238
|
+
const _hoisted_8$3 = ["aria-label"];
|
|
10239
|
+
const _hoisted_9$3 = ["aria-label"];
|
|
10240
10240
|
const _hoisted_10$2 = ["aria-label"];
|
|
10241
10241
|
const _hoisted_11$1 = ["aria-label"];
|
|
10242
10242
|
const _hoisted_12$1 = { class: "el-picker-panel__content" };
|
|
@@ -10275,8 +10275,8 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10275
10275
|
}), 128))
|
|
10276
10276
|
])) : createCommentVNode("v-if", true),
|
|
10277
10277
|
createElementVNode("div", _hoisted_4$3, [
|
|
10278
|
-
_ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10279
|
-
createElementVNode("span", _hoisted_6$
|
|
10278
|
+
_ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$3, [
|
|
10279
|
+
createElementVNode("span", _hoisted_6$3, [
|
|
10280
10280
|
createVNode(_component_el_input, {
|
|
10281
10281
|
placeholder: _ctx.t("el.datepicker.selectDate"),
|
|
10282
10282
|
"model-value": _ctx.visibleDate,
|
|
@@ -10285,7 +10285,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10285
10285
|
onChange: _ctx.handleVisibleDateChange
|
|
10286
10286
|
}, null, 8, ["placeholder", "model-value", "onChange"])
|
|
10287
10287
|
]),
|
|
10288
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_7$
|
|
10288
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_7$3, [
|
|
10289
10289
|
createVNode(_component_el_input, {
|
|
10290
10290
|
placeholder: _ctx.t("el.datepicker.selectTime"),
|
|
10291
10291
|
"model-value": _ctx.visibleTime,
|
|
@@ -10322,7 +10322,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10322
10322
|
]),
|
|
10323
10323
|
_: 1
|
|
10324
10324
|
})
|
|
10325
|
-
], 8, _hoisted_8$
|
|
10325
|
+
], 8, _hoisted_8$3),
|
|
10326
10326
|
withDirectives(createElementVNode("button", {
|
|
10327
10327
|
type: "button",
|
|
10328
10328
|
"aria-label": _ctx.t(`el.datepicker.prevMonth`),
|
|
@@ -10335,7 +10335,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10335
10335
|
]),
|
|
10336
10336
|
_: 1
|
|
10337
10337
|
})
|
|
10338
|
-
], 8, _hoisted_9$
|
|
10338
|
+
], 8, _hoisted_9$3), [
|
|
10339
10339
|
[vShow, _ctx.currentView === "date"]
|
|
10340
10340
|
]),
|
|
10341
10341
|
createElementVNode("span", {
|
|
@@ -10880,14 +10880,14 @@ const _hoisted_2$5 = {
|
|
|
10880
10880
|
};
|
|
10881
10881
|
const _hoisted_3$3 = ["onClick"];
|
|
10882
10882
|
const _hoisted_4$2 = { class: "el-picker-panel__body" };
|
|
10883
|
-
const _hoisted_5$
|
|
10883
|
+
const _hoisted_5$2 = {
|
|
10884
10884
|
key: 0,
|
|
10885
10885
|
class: "el-date-range-picker__time-header"
|
|
10886
10886
|
};
|
|
10887
|
-
const _hoisted_6$
|
|
10888
|
-
const _hoisted_7$
|
|
10889
|
-
const _hoisted_8$
|
|
10890
|
-
const _hoisted_9$
|
|
10887
|
+
const _hoisted_6$2 = { class: "el-date-range-picker__editors-wrap" };
|
|
10888
|
+
const _hoisted_7$2 = { class: "el-date-range-picker__time-picker-wrap" };
|
|
10889
|
+
const _hoisted_8$2 = { class: "el-date-range-picker__time-picker-wrap" };
|
|
10890
|
+
const _hoisted_9$2 = { class: "el-date-range-picker__editors-wrap is-right" };
|
|
10891
10891
|
const _hoisted_10$1 = { class: "el-date-range-picker__time-picker-wrap" };
|
|
10892
10892
|
const _hoisted_11 = { class: "el-date-range-picker__time-picker-wrap" };
|
|
10893
10893
|
const _hoisted_12 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
|
|
@@ -10934,9 +10934,9 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10934
10934
|
}), 128))
|
|
10935
10935
|
])) : createCommentVNode("v-if", true),
|
|
10936
10936
|
createElementVNode("div", _hoisted_4$2, [
|
|
10937
|
-
_ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
10938
|
-
createElementVNode("span", _hoisted_6$
|
|
10939
|
-
createElementVNode("span", _hoisted_7$
|
|
10937
|
+
_ctx.showTime ? (openBlock(), createElementBlock("div", _hoisted_5$2, [
|
|
10938
|
+
createElementVNode("span", _hoisted_6$2, [
|
|
10939
|
+
createElementVNode("span", _hoisted_7$2, [
|
|
10940
10940
|
createVNode(_component_el_input, {
|
|
10941
10941
|
size: "small",
|
|
10942
10942
|
disabled: _ctx.rangeState.selecting,
|
|
@@ -10947,7 +10947,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10947
10947
|
onChange: _cache[1] || (_cache[1] = (val) => _ctx.handleDateChange(val, "min"))
|
|
10948
10948
|
}, null, 8, ["disabled", "placeholder", "model-value"])
|
|
10949
10949
|
]),
|
|
10950
|
-
withDirectives((openBlock(), createElementBlock("span", _hoisted_8$
|
|
10950
|
+
withDirectives((openBlock(), createElementBlock("span", _hoisted_8$2, [
|
|
10951
10951
|
createVNode(_component_el_input, {
|
|
10952
10952
|
size: "small",
|
|
10953
10953
|
class: "el-date-range-picker__editor",
|
|
@@ -10978,7 +10978,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
10978
10978
|
_: 1
|
|
10979
10979
|
})
|
|
10980
10980
|
]),
|
|
10981
|
-
createElementVNode("span", _hoisted_9$
|
|
10981
|
+
createElementVNode("span", _hoisted_9$2, [
|
|
10982
10982
|
createElementVNode("span", _hoisted_10$1, [
|
|
10983
10983
|
createVNode(_component_el_input, {
|
|
10984
10984
|
size: "small",
|
|
@@ -11362,11 +11362,11 @@ const _hoisted_2$4 = {
|
|
|
11362
11362
|
};
|
|
11363
11363
|
const _hoisted_3$2 = ["onClick"];
|
|
11364
11364
|
const _hoisted_4$1 = { class: "el-picker-panel__body" };
|
|
11365
|
-
const _hoisted_5 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
|
|
11366
|
-
const _hoisted_6 = { class: "el-date-range-picker__header" };
|
|
11367
|
-
const _hoisted_7 = ["disabled"];
|
|
11368
|
-
const _hoisted_8 = { class: "el-picker-panel__content el-date-range-picker__content is-right" };
|
|
11369
|
-
const _hoisted_9 = { class: "el-date-range-picker__header" };
|
|
11365
|
+
const _hoisted_5$1 = { class: "el-picker-panel__content el-date-range-picker__content is-left" };
|
|
11366
|
+
const _hoisted_6$1 = { class: "el-date-range-picker__header" };
|
|
11367
|
+
const _hoisted_7$1 = ["disabled"];
|
|
11368
|
+
const _hoisted_8$1 = { class: "el-picker-panel__content el-date-range-picker__content is-right" };
|
|
11369
|
+
const _hoisted_9$1 = { class: "el-date-range-picker__header" };
|
|
11370
11370
|
const _hoisted_10 = ["disabled"];
|
|
11371
11371
|
function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
11372
11372
|
const _component_d_arrow_left = resolveComponent("d-arrow-left");
|
|
@@ -11393,8 +11393,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11393
11393
|
}), 128))
|
|
11394
11394
|
])) : createCommentVNode("v-if", true),
|
|
11395
11395
|
createElementVNode("div", _hoisted_4$1, [
|
|
11396
|
-
createElementVNode("div", _hoisted_5, [
|
|
11397
|
-
createElementVNode("div", _hoisted_6, [
|
|
11396
|
+
createElementVNode("div", _hoisted_5$1, [
|
|
11397
|
+
createElementVNode("div", _hoisted_6$1, [
|
|
11398
11398
|
createElementVNode("button", {
|
|
11399
11399
|
type: "button",
|
|
11400
11400
|
class: "el-picker-panel__icon-btn d-arrow-left",
|
|
@@ -11420,7 +11420,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11420
11420
|
]),
|
|
11421
11421
|
_: 1
|
|
11422
11422
|
})
|
|
11423
|
-
], 10, _hoisted_7)) : createCommentVNode("v-if", true),
|
|
11423
|
+
], 10, _hoisted_7$1)) : createCommentVNode("v-if", true),
|
|
11424
11424
|
createElementVNode("div", null, toDisplayString(_ctx.leftLabel), 1)
|
|
11425
11425
|
]),
|
|
11426
11426
|
createVNode(_component_month_table, {
|
|
@@ -11435,8 +11435,8 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
11435
11435
|
onSelect: _ctx.onSelect
|
|
11436
11436
|
}, null, 8, ["date", "min-date", "max-date", "range-state", "disabled-date", "onChangerange", "onPick", "onSelect"])
|
|
11437
11437
|
]),
|
|
11438
|
-
createElementVNode("div", _hoisted_8, [
|
|
11439
|
-
createElementVNode("div", _hoisted_9, [
|
|
11438
|
+
createElementVNode("div", _hoisted_8$1, [
|
|
11439
|
+
createElementVNode("div", _hoisted_9$1, [
|
|
11440
11440
|
_ctx.unlinkPanels ? (openBlock(), createElementBlock("button", {
|
|
11441
11441
|
key: 0,
|
|
11442
11442
|
type: "button",
|
|
@@ -29677,24 +29677,54 @@ function getErrorMessage(ex2) {
|
|
|
29677
29677
|
return value;
|
|
29678
29678
|
}
|
|
29679
29679
|
}
|
|
29680
|
-
|
|
29681
|
-
const
|
|
29682
|
-
|
|
29683
|
-
|
|
29684
|
-
|
|
29685
|
-
const _hoisted_3 =
|
|
29686
|
-
|
|
29680
|
+
const _hoisted_1 = { class: "sp-dialog__title" };
|
|
29681
|
+
const _hoisted_2 = {
|
|
29682
|
+
key: 0,
|
|
29683
|
+
class: "title-text"
|
|
29684
|
+
};
|
|
29685
|
+
const _hoisted_3 = {
|
|
29686
|
+
key: 1,
|
|
29687
|
+
class: "title-text"
|
|
29688
|
+
};
|
|
29689
|
+
const _hoisted_4 = {
|
|
29690
|
+
key: 0,
|
|
29691
|
+
class: "dialog-footer"
|
|
29692
|
+
};
|
|
29693
|
+
const _hoisted_5 = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
29694
|
+
const _hoisted_6 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
29695
|
+
const _hoisted_7 = {
|
|
29696
|
+
key: 1,
|
|
29697
|
+
class: "dialog-footer"
|
|
29698
|
+
};
|
|
29699
|
+
const _hoisted_8 = /* @__PURE__ */ createTextVNode("\u0412\u044B\u0431\u0440\u0430\u0442\u044C");
|
|
29700
|
+
const _hoisted_9 = /* @__PURE__ */ createTextVNode("\u041E\u0442\u043C\u0435\u043D\u0430");
|
|
29687
29701
|
const __default__ = {
|
|
29688
29702
|
name: "PlCertDialog"
|
|
29689
29703
|
};
|
|
29690
29704
|
const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
29705
|
+
props: {
|
|
29706
|
+
showDialog: {
|
|
29707
|
+
type: Boolean,
|
|
29708
|
+
default: false
|
|
29709
|
+
},
|
|
29710
|
+
singleDoc: {
|
|
29711
|
+
type: Boolean,
|
|
29712
|
+
default: false
|
|
29713
|
+
},
|
|
29714
|
+
files: {
|
|
29715
|
+
type: Array,
|
|
29716
|
+
default: () => []
|
|
29717
|
+
}
|
|
29718
|
+
},
|
|
29691
29719
|
emits: ["cert-selected"],
|
|
29692
|
-
setup(__props, {
|
|
29720
|
+
setup(__props, { emit }) {
|
|
29721
|
+
const props = __props;
|
|
29693
29722
|
const form2 = ref(null);
|
|
29694
|
-
const visible = ref(
|
|
29723
|
+
const visible = ref(false);
|
|
29695
29724
|
const loading2 = ref(false);
|
|
29696
29725
|
const certs = ref([]);
|
|
29697
29726
|
const fileList = ref([]);
|
|
29727
|
+
const { showDialog } = toRefs(props);
|
|
29698
29728
|
const dataForm = reactive({
|
|
29699
29729
|
file: null,
|
|
29700
29730
|
thumbprint: ""
|
|
@@ -29716,6 +29746,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29716
29746
|
]
|
|
29717
29747
|
});
|
|
29718
29748
|
const validCerts = computed(() => _.filter(certs.value, "valid"));
|
|
29749
|
+
const isSelectCertButtonDisabled = computed(() => !dataForm.thumbprint);
|
|
29719
29750
|
const formatCertInfo = (item, id) => {
|
|
29720
29751
|
var _a2, _b2;
|
|
29721
29752
|
const regexCn = new RegExp("CN=([^,]+)", "i");
|
|
@@ -29755,13 +29786,17 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29755
29786
|
valid: hooks().isSameOrBefore(hooks(item.validTo).toISOString())
|
|
29756
29787
|
};
|
|
29757
29788
|
};
|
|
29758
|
-
|
|
29789
|
+
watch(showDialog, () => {
|
|
29790
|
+
getCertInfo();
|
|
29791
|
+
});
|
|
29792
|
+
const getCertInfo = () => {
|
|
29759
29793
|
loading2.value = true;
|
|
29760
|
-
fileList.value = files;
|
|
29794
|
+
fileList.value = props.files;
|
|
29761
29795
|
cryptoPro.exports.getUserCertificates().then((response2) => {
|
|
29762
29796
|
certs.value = _.chain(response2).map(formatCertInfo).filter((cert) => `${_.get(cert, "companyInn", "")}`.indexOf("\u043E\u0442\u0441\u0443\u0442\u0441\u0442\u0432\u0443\u0435\u0442") === -1).value();
|
|
29763
29797
|
visible.value = true;
|
|
29764
29798
|
}).catch((ex2) => {
|
|
29799
|
+
emit("cert-selected", ex2);
|
|
29765
29800
|
ElMessage.error(getErrorMessage(ex2));
|
|
29766
29801
|
}).then(() => {
|
|
29767
29802
|
loading2.value = false;
|
|
@@ -29772,6 +29807,19 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29772
29807
|
});
|
|
29773
29808
|
};
|
|
29774
29809
|
const hide2 = () => visible.value = false;
|
|
29810
|
+
const onAppendClickSingle = () => {
|
|
29811
|
+
hide2();
|
|
29812
|
+
const certInfo = _.find(validCerts.value, ["thumbprint", dataForm.thumbprint]);
|
|
29813
|
+
if (certInfo == null) {
|
|
29814
|
+
ElMessage.error("\u041D\u0435 \u0443\u0434\u0430\u043B\u043E\u0441\u044C \u043F\u043E\u043B\u0443\u0447\u0438\u0442\u044C \u0438\u043D\u0444\u043E\u0440\u043C\u0430\u0446\u0438\u044E \u043E \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442\u0435.");
|
|
29815
|
+
} else {
|
|
29816
|
+
emit("cert-selected", {
|
|
29817
|
+
thumbprint: certInfo.thumbprint,
|
|
29818
|
+
validTo: certInfo.validTo,
|
|
29819
|
+
validFrom: certInfo.validFrom
|
|
29820
|
+
});
|
|
29821
|
+
}
|
|
29822
|
+
};
|
|
29775
29823
|
const onAppendClick = () => {
|
|
29776
29824
|
form2.value.validate((isFormValid) => {
|
|
29777
29825
|
if (isFormValid) {
|
|
@@ -29792,8 +29840,6 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29792
29840
|
}
|
|
29793
29841
|
});
|
|
29794
29842
|
};
|
|
29795
|
-
const onCancelClick = () => hide2();
|
|
29796
|
-
expose({ form: form2, show });
|
|
29797
29843
|
return (_ctx, _cache) => {
|
|
29798
29844
|
const _component_el_option = ElOption;
|
|
29799
29845
|
const _component_el_select = ElSelect;
|
|
@@ -29802,34 +29848,55 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29802
29848
|
const _component_el_button = ElButton;
|
|
29803
29849
|
const _component_el_dialog = ElDialog;
|
|
29804
29850
|
const _directive_loading = ElLoadingDirective;
|
|
29805
|
-
return openBlock(), createBlock(_component_el_dialog, mergeProps({
|
|
29851
|
+
return openBlock(), createBlock(_component_el_dialog, mergeProps({
|
|
29852
|
+
"custom-class": "sell-plus-dialog-sm select-cert-dialog",
|
|
29806
29853
|
modelValue: visible.value,
|
|
29807
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event)
|
|
29854
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => visible.value = $event)
|
|
29855
|
+
}, _ctx.$attrs, {
|
|
29808
29856
|
"close-on-press-escape": false,
|
|
29809
29857
|
"show-close": false,
|
|
29810
29858
|
"close-on-click-modal": false
|
|
29811
29859
|
}), {
|
|
29812
29860
|
title: withCtx(() => [
|
|
29813
|
-
_hoisted_1
|
|
29861
|
+
createElementVNode("div", _hoisted_1, [
|
|
29862
|
+
__props.singleDoc ? (openBlock(), createElementBlock("div", _hoisted_2, "\u0412\u044B\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0435\u0440\u0442\u0438\u0444\u0438\u043A\u0430\u0442")) : (openBlock(), createElementBlock("div", _hoisted_3, "\u041F\u043E\u0434\u043F\u0438\u0441\u044C \u0434\u043E\u043A\u0443\u043C\u0435\u043D\u0442\u0430"))
|
|
29863
|
+
])
|
|
29814
29864
|
]),
|
|
29815
29865
|
footer: withCtx(() => [
|
|
29816
|
-
|
|
29866
|
+
__props.singleDoc ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
29867
|
+
createVNode(_component_el_button, {
|
|
29868
|
+
type: "primary",
|
|
29869
|
+
disabled: unref(isSelectCertButtonDisabled),
|
|
29870
|
+
onClick: onAppendClickSingle
|
|
29871
|
+
}, {
|
|
29872
|
+
default: withCtx(() => [
|
|
29873
|
+
_hoisted_5
|
|
29874
|
+
]),
|
|
29875
|
+
_: 1
|
|
29876
|
+
}, 8, ["disabled"]),
|
|
29877
|
+
createVNode(_component_el_button, { onClick: hide2 }, {
|
|
29878
|
+
default: withCtx(() => [
|
|
29879
|
+
_hoisted_6
|
|
29880
|
+
]),
|
|
29881
|
+
_: 1
|
|
29882
|
+
})
|
|
29883
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_7, [
|
|
29817
29884
|
createVNode(_component_el_button, {
|
|
29818
29885
|
type: "primary",
|
|
29819
29886
|
onClick: _cache[2] || (_cache[2] = ($event) => onAppendClick(form2.value))
|
|
29820
29887
|
}, {
|
|
29821
29888
|
default: withCtx(() => [
|
|
29822
|
-
|
|
29889
|
+
_hoisted_8
|
|
29823
29890
|
]),
|
|
29824
29891
|
_: 1
|
|
29825
29892
|
}),
|
|
29826
|
-
createVNode(_component_el_button, { onClick:
|
|
29893
|
+
createVNode(_component_el_button, { onClick: hide2 }, {
|
|
29827
29894
|
default: withCtx(() => [
|
|
29828
|
-
|
|
29895
|
+
_hoisted_9
|
|
29829
29896
|
]),
|
|
29830
29897
|
_: 1
|
|
29831
29898
|
})
|
|
29832
|
-
])
|
|
29899
|
+
]))
|
|
29833
29900
|
]),
|
|
29834
29901
|
default: withCtx(() => [
|
|
29835
29902
|
withDirectives((openBlock(), createBlock(_component_el_form, {
|
|
@@ -29839,7 +29906,10 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29839
29906
|
rules: unref(rules2)
|
|
29840
29907
|
}, {
|
|
29841
29908
|
default: withCtx(() => [
|
|
29842
|
-
|
|
29909
|
+
!__props.singleDoc ? (openBlock(), createBlock(_component_el_form_item, {
|
|
29910
|
+
key: 0,
|
|
29911
|
+
prop: "file"
|
|
29912
|
+
}, {
|
|
29843
29913
|
default: withCtx(() => [
|
|
29844
29914
|
createVNode(_component_el_select, {
|
|
29845
29915
|
style: { "width": "100%" },
|
|
@@ -29860,7 +29930,7 @@ const _sfc_main = /* @__PURE__ */ Object.assign(__default__, {
|
|
|
29860
29930
|
}, 8, ["modelValue"])
|
|
29861
29931
|
]),
|
|
29862
29932
|
_: 1
|
|
29863
|
-
}),
|
|
29933
|
+
})) : createCommentVNode("", true),
|
|
29864
29934
|
createVNode(_component_el_form_item, { prop: "thumbprint" }, {
|
|
29865
29935
|
default: withCtx(() => [
|
|
29866
29936
|
createVNode(_component_el_select, {
|