iking-web-ui-pro 0.2.1 → 0.2.3
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/IKDetailPreviewFiles/ik.index.es.js +337 -381
- package/dist/IKDetailPreviewFiles/ik.index.umd.js +1 -1
- package/dist/IKPreviewFile/ik.index.es.js +387 -431
- package/dist/IKPreviewFile/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/ik.index.es.js +235 -279
- package/dist/IkApprovalProcessDetail/ik.index.umd.js +1 -1
- package/dist/IkApprovalProcessDetail/style.css +1 -1
- package/dist/IkDescription/ik.index.es.js +426 -470
- package/dist/IkDescription/ik.index.umd.js +1 -1
- package/dist/IkOnlyOffice/ik.index.es.js +80 -127
- package/dist/IkOnlyOffice/ik.index.umd.js +1 -1
- package/dist/IkPreviewFileDialog/ik.index.es.js +160 -204
- package/dist/IkPreviewFileDialog/ik.index.umd.js +1 -1
- package/dist/IkTemplateOfficeConfig/ik.index.es.js +194 -241
- package/dist/IkTemplateOfficeConfig/ik.index.umd.js +1 -1
- package/dist/IkUploadFile/ik.index.es.js +316 -360
- package/dist/IkUploadFile/ik.index.umd.js +1 -1
- package/dist/index.es.js +3929 -3973
- package/dist/index.umd.js +44 -44
- package/dist/src/components/IkOnlyOffice/index.d.ts +0 -18
- package/dist/src/components/IkOnlyOffice/src/IkOnlyOffice.vue.d.ts +0 -18
- package/dist/src/components/IkUploadFile/index.d.ts +3 -3
- package/dist/src/components/IkUploadFile/src/index.vue.d.ts +1 -1
- package/dist/src/components/IkUploadImage/index.d.ts +3 -3
- package/dist/src/components/IkUploadImage/src/index.vue.d.ts +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { paramType as he, ikFile as ve, buildUUID as ge, ikColor as ye, ikDate as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as $, computed as E, openBlock as a, createElementBlock as r, createElementVNode as d, ref as M, Fragment as b, renderList as V, normalizeClass as x, normalizeStyle as S, createVNode as z, toDisplayString as g, unref as F, withModifiers as re, renderSlot as H, createCommentVNode as p, mergeModels as te, useModel as oe, reactive as ne, watch as se, nextTick as K, resolveComponent as P, createBlock as R, withCtx as B, createTextVNode as D, h as ce, mergeProps as ie, createSlots as de, onMounted as ue, pushScopeId as pe, popScopeId as fe } from "vue";
|
|
2
|
+
import { paramType as he, ikFile as ve, buildUUID as ge, ikColor as ye, ikDate as _e } from "iking-utils-pro";
|
|
3
|
+
const N = (o, t) => {
|
|
4
4
|
if (o.install = (n) => {
|
|
5
5
|
for (const e of [o, ...Object.values(t ?? {})])
|
|
6
6
|
n.component(e.name, e);
|
|
@@ -13,7 +13,7 @@ const R = (o, t) => {
|
|
|
13
13
|
for (const [e, s] of t)
|
|
14
14
|
n[e] = s;
|
|
15
15
|
return n;
|
|
16
|
-
},
|
|
16
|
+
}, me = (o) => ({
|
|
17
17
|
// ================all================
|
|
18
18
|
nodeType: {
|
|
19
19
|
发起人节点: "INITIATOR",
|
|
@@ -122,9 +122,9 @@ const R = (o, t) => {
|
|
|
122
122
|
const n = ["B", "KB", "MB", "GB", "TB"], e = Math.floor(Math.log(o) / Math.log(1024));
|
|
123
123
|
let s = o / Math.pow(1024, e);
|
|
124
124
|
return (s % 1 === 0 ? s.toFixed(t || 0) : s.toFixed(t)) + " " + n[e];
|
|
125
|
-
},
|
|
126
|
-
var c, u,
|
|
127
|
-
const n = (c = o == null ? void 0 : o.response) != null && c.data ? Q((
|
|
125
|
+
}, L = (o, t) => t ? t.startsWith("http") ? t : `${o || location.origin}${t}` : "", le = (o, t) => {
|
|
126
|
+
var c, u, y, _;
|
|
127
|
+
const n = (c = o == null ? void 0 : o.response) != null && c.data ? Q((y = (u = o == null ? void 0 : o.response) == null ? void 0 : u.data) == null ? void 0 : y.suffix) : ((_ = o.raw) == null ? void 0 : _.type) || Q(o[t.suffix]), e = n == null ? void 0 : n.toLowerCase(), s = {
|
|
128
128
|
sheet: "excel",
|
|
129
129
|
excel: "excel",
|
|
130
130
|
zip: "zip",
|
|
@@ -432,7 +432,7 @@ const R = (o, t) => {
|
|
|
432
432
|
"p-id": "8602",
|
|
433
433
|
width: "200",
|
|
434
434
|
height: "200"
|
|
435
|
-
},
|
|
435
|
+
}, Ke = /* @__PURE__ */ d(
|
|
436
436
|
"path",
|
|
437
437
|
{
|
|
438
438
|
d: "M204.8 0h477.866667l273.066666 273.066667v614.4c0 75.093333-61.44 136.533333-136.533333 136.533333H204.8c-75.093333 0-136.533333-61.44-136.533333-136.533333V136.533333C68.266667 61.44 129.706667 0 204.8 0z m341.333333 512h136.533334c20.48 0 34.133333-13.653333 34.133333-34.133333s-13.653333-34.133333-34.133333-34.133334H341.333333c-20.48 0-34.133333 13.653333-34.133333 34.133334s13.653333 34.133333 34.133333 34.133333h136.533334V819.2c0 20.48 13.653333 34.133333 34.133333 34.133333s34.133333-13.653333 34.133333-34.133333V512z",
|
|
@@ -442,7 +442,7 @@ const R = (o, t) => {
|
|
|
442
442
|
null,
|
|
443
443
|
-1
|
|
444
444
|
/* HOISTED */
|
|
445
|
-
),
|
|
445
|
+
), Ge = /* @__PURE__ */ d(
|
|
446
446
|
"path",
|
|
447
447
|
{
|
|
448
448
|
d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
|
|
@@ -453,8 +453,8 @@ const R = (o, t) => {
|
|
|
453
453
|
-1
|
|
454
454
|
/* HOISTED */
|
|
455
455
|
), Ye = [
|
|
456
|
-
|
|
457
|
-
|
|
456
|
+
Ke,
|
|
457
|
+
Ge
|
|
458
458
|
], Xe = {
|
|
459
459
|
key: 6,
|
|
460
460
|
t: "1686300209288",
|
|
@@ -653,7 +653,7 @@ const R = (o, t) => {
|
|
|
653
653
|
null,
|
|
654
654
|
-1
|
|
655
655
|
/* HOISTED */
|
|
656
|
-
),
|
|
656
|
+
), _3 = /* @__PURE__ */ d(
|
|
657
657
|
"path",
|
|
658
658
|
{
|
|
659
659
|
d: "M396.288 645.176889c0 5.461333-0.796444 10.865778-2.389333 16.156444-1.592889 5.319111-4.266667 10.069333-7.964445 14.222223-3.697778 4.181333-8.647111 7.509333-14.791111 10.012444a60.871111 60.871111 0 0 1-22.869333 3.754667c-15.160889 0-26.851556-3.982222-35.043556-11.946667-8.192-7.964444-12.288-19.683556-12.288-35.157333v-10.012445h21.617778v6.826667c0 4.721778 0.369778 9.045333 1.137778 12.970667a28.074667 28.074667 0 0 0 3.982222 10.24 18.773333 18.773333 0 0 0 7.964444 6.712888c3.413333 1.592889 7.765333 2.389333 13.084445 2.389334 9.870222 0 16.64-2.645333 20.366222-7.964445 3.697778-5.290667 5.575111-12.430222 5.575111-21.390222v-118.784h21.617778v121.969778z m44.145778 3.413333c0.142222 4.266667 1.137778 7.850667 2.958222 10.808889a20.593778 20.593778 0 0 0 7.168 7.054222c2.958222 1.763556 6.286222 3.015111 10.012444 3.754667 3.697778 0.768 7.537778 1.137778 11.491556 1.137778 3.043556 0 6.229333-0.227556 9.557333-0.682667 3.328-0.455111 6.4-1.28 9.216-2.503111a17.294222 17.294222 0 0 0 6.940445-5.347556 14.250667 14.250667 0 0 0 2.730666-8.988444 12.885333 12.885333 0 0 0-5.688888-11.377778c-3.783111-2.56-8.533333-4.664889-14.222223-6.257778a232.561778 232.561778 0 0 0-18.545777-4.323555 96.227556 96.227556 0 0 1-18.545778-5.461333 38.4 38.4 0 0 1-14.222222-9.898667c-3.783111-4.266667-5.688889-10.154667-5.688889-17.749333a28.16 28.16 0 0 1 3.982222-15.246223c2.645333-4.266667 6.058667-7.68 10.24-10.353777 4.181333-2.645333 8.874667-4.608 14.108444-5.916445 5.233778-1.28 10.439111-1.934222 15.587556-1.934222 6.684444 0 12.8 0.568889 18.432 1.706667 5.603556 1.137778 10.581333 3.128889 14.904889 5.916444 4.323556 2.816 7.765333 6.599111 10.353778 11.377778 2.56 4.778667 4.096 10.752 4.551111 17.863111h-19.342223a19.569778 19.569778 0 0 0-2.958222-9.443556 19.370667 19.370667 0 0 0-6.371555-6.030222 28.956444 28.956444 0 0 0-8.533334-3.299555 43.918222 43.918222 0 0 0-9.443555-1.024c-2.872889 0-5.802667 0.227556-8.760889 0.682666a29.496889 29.496889 0 0 0-8.078222 2.389334 16.270222 16.270222 0 0 0-5.916445 4.551111 11.463111 11.463111 0 0 0-2.275555 7.395555c0 3.356444 1.166222 6.115556 3.527111 8.305778a28.16 28.16 0 0 0 8.988444 5.461333c3.640889 1.422222 7.736889 2.673778 12.288 3.640889 4.551111 0.995556 9.102222 1.991111 13.653334 3.072 4.835556 1.080889 9.585778 2.360889 14.222222 3.868445 4.636444 1.536 8.732444 3.527111 12.288 6.030222s6.456889 5.660444 8.647111 9.443555a27.733333 27.733333 0 0 1 3.299555 14.108445c0 7.111111-1.479111 13.056-4.437333 17.749333a34.702222 34.702222 0 0 1-11.605333 11.377778 48.497778 48.497778 0 0 1-16.156445 6.030222c-5.973333 1.137778-11.946667 1.706667-17.863111 1.706667a82.773333 82.773333 0 0 1-18.659555-2.048 45.795556 45.795556 0 0 1-15.701334-6.712889 34.218667 34.218667 0 0 1-10.922666-12.288 42.581333 42.581333 0 0 1-4.551111-18.545778h19.342222z m116.053333-21.617778c0 7.111111 0.938667 13.482667 2.844445 19.000889 1.905778 5.546667 4.522667 10.183111 7.850666 13.880889a34.076444 34.076444 0 0 0 25.941334 11.491556 34.076444 34.076444 0 0 0 25.941333-11.491556c3.328-3.697778 5.973333-8.334222 7.850667-13.880889 1.905778-5.518222 2.844444-11.861333 2.844444-19.000889 0-7.111111-0.938667-13.454222-2.844444-19.000888a41.016889 41.016889 0 0 0-7.850667-13.994667 33.422222 33.422222 0 0 0-11.719111-8.647111 34.872889 34.872889 0 0 0-14.222222-2.958222c-5.006222 0-9.756444 0.995556-14.222223 2.958222-4.465778 1.991111-8.391111 4.835556-11.719111 8.647111-3.328 3.811556-5.973333 8.476444-7.850666 13.994667-1.905778 5.546667-2.844444 11.889778-2.844445 19.000888z m-20.48 0c0-8.647111 1.223111-16.725333 3.640889-24.234666a54.897778 54.897778 0 0 1 10.922667-19.569778c4.835556-5.518222 10.837333-9.898667 17.976889-13.084444 7.111111-3.185778 15.331556-4.778667 24.576-4.778667 9.386667 0 17.635556 1.592889 24.689777 4.778667 7.054222 3.185778 12.999111 7.566222 17.863111 13.084444 4.835556 5.546667 8.504889 12.060444 10.922667 19.569778 2.417778 7.509333 3.640889 15.587556 3.640889 24.234666 0 8.647111-1.223111 16.696889-3.640889 24.120889-2.417778 7.452444-6.058667 13.937778-10.922667 19.456-4.835556 5.546667-10.808889 9.870222-17.863111 12.970667-7.054222 3.128889-15.274667 4.664889-24.689777 4.664889-9.244444 0-17.436444-1.536-24.576-4.664889a50.261333 50.261333 0 0 1-17.976889-12.970667 55.068444 55.068444 0 0 1-10.922667-19.456 77.283556 77.283556 0 0 1-3.640889-24.120889z m136.988445-58.936888h18.204444v18.659555h0.455111c8.049778-14.250667 20.764444-21.390222 38.229333-21.390222 7.736889 0 14.193778 1.080889 19.342223 3.185778 5.148444 2.133333 9.329778 5.091556 12.515555 8.874666 3.185778 3.811556 5.404444 8.305778 6.712889 13.539556 1.28 5.233778 1.934222 11.036444 1.934222 17.408v77.368889h-19.342222v-79.644445c0-7.281778-2.133333-13.027556-6.371555-17.294222-4.266667-4.266667-10.097778-6.371556-17.521778-6.371555-5.916444 0-11.036444 0.910222-15.36 2.730666a28.814222 28.814222 0 0 0-10.808889 7.736889 33.336889 33.336889 0 0 0-6.485333 11.719111c-1.422222 4.494222-2.161778 9.386667-2.161778 14.677334v66.446222h-19.342222V568.035556z",
|
|
@@ -663,10 +663,10 @@ const R = (o, t) => {
|
|
|
663
663
|
null,
|
|
664
664
|
-1
|
|
665
665
|
/* HOISTED */
|
|
666
|
-
),
|
|
666
|
+
), m3 = [
|
|
667
667
|
g3,
|
|
668
668
|
y3,
|
|
669
|
-
|
|
669
|
+
_3
|
|
670
670
|
], w3 = {
|
|
671
671
|
key: 11,
|
|
672
672
|
t: "1686300037564",
|
|
@@ -711,7 +711,7 @@ const R = (o, t) => {
|
|
|
711
711
|
k3,
|
|
712
712
|
F3,
|
|
713
713
|
S3
|
|
714
|
-
], x3 = /* @__PURE__ */
|
|
714
|
+
], x3 = /* @__PURE__ */ $({
|
|
715
715
|
__name: "FileIcon",
|
|
716
716
|
props: {
|
|
717
717
|
type: {
|
|
@@ -732,10 +732,10 @@ const R = (o, t) => {
|
|
|
732
732
|
}
|
|
733
733
|
},
|
|
734
734
|
setup(o) {
|
|
735
|
-
const t = o, n =
|
|
736
|
-
return (e, s) => n.value === "image" ? (a(), r("svg", be, Ie)) : n.value === "zip" ? (a(), r("svg", Oe, De)) : n.value === "ppt" ? (a(), r("svg", Ee, Ve)) : n.value === "word" ? (a(), r("svg", Me, He)) : n.value === "pdf" ? (a(), r("svg", Le, je)) : n.value === "txt" ? (a(), r("svg", We, Ye)) : n.value === "audio" ? (a(), r("svg", Xe, Qe)) : n.value === "video" ? (a(), r("svg", e3, n3)) : n.value === "excel" ? (a(), r("svg", s3, r3)) : n.value === "exe" ? (a(), r("svg", c3, h3)) : n.value === "json" ? (a(), r("svg", v3,
|
|
735
|
+
const t = o, n = E(() => t.file ? le(t.file, t.fields) : t.type);
|
|
736
|
+
return (e, s) => n.value === "image" ? (a(), r("svg", be, Ie)) : n.value === "zip" ? (a(), r("svg", Oe, De)) : n.value === "ppt" ? (a(), r("svg", Ee, Ve)) : n.value === "word" ? (a(), r("svg", Me, He)) : n.value === "pdf" ? (a(), r("svg", Le, je)) : n.value === "txt" ? (a(), r("svg", We, Ye)) : n.value === "audio" ? (a(), r("svg", Xe, Qe)) : n.value === "video" ? (a(), r("svg", e3, n3)) : n.value === "excel" ? (a(), r("svg", s3, r3)) : n.value === "exe" ? (a(), r("svg", c3, h3)) : n.value === "json" ? (a(), r("svg", v3, m3)) : (a(), r("svg", w3, b3));
|
|
737
737
|
}
|
|
738
|
-
}), z3 = ["onClick"], $3 = { class: "text" }, C3 = { class: "fileName" }, I3 = { class: "size" }, O3 = /* @__PURE__ */
|
|
738
|
+
}), z3 = ["onClick"], $3 = { class: "text" }, C3 = { class: "fileName" }, I3 = { class: "size" }, O3 = /* @__PURE__ */ $({
|
|
739
739
|
__name: "IkPreviewFile",
|
|
740
740
|
props: {
|
|
741
741
|
list: {
|
|
@@ -805,31 +805,31 @@ const R = (o, t) => {
|
|
|
805
805
|
}
|
|
806
806
|
},
|
|
807
807
|
setup(o) {
|
|
808
|
-
const t = o, n =
|
|
808
|
+
const t = o, n = E(() => ({
|
|
809
809
|
name: "name",
|
|
810
810
|
url: "url",
|
|
811
811
|
suffix: "suffix",
|
|
812
812
|
size: "size",
|
|
813
813
|
...t.field
|
|
814
|
-
})), e =
|
|
814
|
+
})), e = M({}), s = M(!1), c = (i) => {
|
|
815
815
|
var f, v;
|
|
816
816
|
e.value = {
|
|
817
817
|
...i,
|
|
818
818
|
name: i.name,
|
|
819
|
-
url:
|
|
819
|
+
url: L(
|
|
820
820
|
t.loadUrl,
|
|
821
821
|
i.url || ((v = (f = i == null ? void 0 : i.response) == null ? void 0 : f.data) == null ? void 0 : v.id) || (i == null ? void 0 : i.id)
|
|
822
822
|
)
|
|
823
823
|
}, s.value = !0;
|
|
824
824
|
}, u = (i) => {
|
|
825
825
|
ve.downloadFile(
|
|
826
|
-
|
|
826
|
+
L(
|
|
827
827
|
t.loadUrl,
|
|
828
828
|
i[n.value.url] || i.attachmentId || i.id
|
|
829
829
|
),
|
|
830
830
|
i[n.value.name] || i.attachmentName
|
|
831
831
|
);
|
|
832
|
-
},
|
|
832
|
+
}, y = E(() => he.isNumber(t.width) ? `${t.width}px` : t.width), _ = E(() => t.list.map((i) => ({
|
|
833
833
|
...i,
|
|
834
834
|
name: i[n.value.name] || i.attachmentName,
|
|
835
835
|
size: i[n.value.size] || i.fileSize || i.attachmentSize,
|
|
@@ -838,32 +838,32 @@ const R = (o, t) => {
|
|
|
838
838
|
return (i, f) => {
|
|
839
839
|
var v;
|
|
840
840
|
return a(), r(
|
|
841
|
-
|
|
841
|
+
b,
|
|
842
842
|
null,
|
|
843
843
|
[
|
|
844
844
|
(v = o.list) != null && v.length ? (a(!0), r(
|
|
845
|
-
|
|
845
|
+
b,
|
|
846
846
|
{ key: 0 },
|
|
847
|
-
|
|
848
|
-
var
|
|
847
|
+
V(_.value, (h, l) => {
|
|
848
|
+
var k;
|
|
849
849
|
return a(), r(
|
|
850
850
|
"div",
|
|
851
851
|
{
|
|
852
|
-
class:
|
|
852
|
+
class: x(["iking-privew-annex", { "is-bg": o.showBg }]),
|
|
853
853
|
key: l,
|
|
854
|
-
style:
|
|
855
|
-
marginBottom: l == ((
|
|
856
|
-
width:
|
|
854
|
+
style: S({
|
|
855
|
+
marginBottom: l == ((k = o.list) == null ? void 0 : k.length) - 1 ? "0" : "10px",
|
|
856
|
+
width: y.value
|
|
857
857
|
})
|
|
858
858
|
},
|
|
859
859
|
[
|
|
860
860
|
d("div", {
|
|
861
861
|
class: "file-card",
|
|
862
|
-
onClick: (
|
|
862
|
+
onClick: (C) => c(h)
|
|
863
863
|
}, [
|
|
864
|
-
|
|
864
|
+
z(x3, {
|
|
865
865
|
file: h,
|
|
866
|
-
style:
|
|
866
|
+
style: S({ height: `${o.iconSize}px` }),
|
|
867
867
|
class: "ikui-w-auto",
|
|
868
868
|
fields: n.value
|
|
869
869
|
}, null, 8, ["file", "style", "fields"]),
|
|
@@ -871,14 +871,14 @@ const R = (o, t) => {
|
|
|
871
871
|
d(
|
|
872
872
|
"div",
|
|
873
873
|
C3,
|
|
874
|
-
|
|
874
|
+
g(h.name),
|
|
875
875
|
1
|
|
876
876
|
/* TEXT */
|
|
877
877
|
),
|
|
878
878
|
d(
|
|
879
879
|
"div",
|
|
880
880
|
I3,
|
|
881
|
-
|
|
881
|
+
g(F(ke)(h.size)),
|
|
882
882
|
1
|
|
883
883
|
/* TEXT */
|
|
884
884
|
)
|
|
@@ -886,21 +886,21 @@ const R = (o, t) => {
|
|
|
886
886
|
d(
|
|
887
887
|
"div",
|
|
888
888
|
{
|
|
889
|
-
class:
|
|
889
|
+
class: x(["flex flex-center", { "hover-show": o.iconHoverShow }])
|
|
890
890
|
},
|
|
891
891
|
[
|
|
892
|
-
|
|
892
|
+
z(F(q), {
|
|
893
893
|
name: "iksvg_daochu",
|
|
894
|
-
onClick: re((
|
|
894
|
+
onClick: re((C) => u(h), ["stop"]),
|
|
895
895
|
bg: o.showBg,
|
|
896
896
|
size: o.showBg ? "default" : 20
|
|
897
897
|
}, null, 8, ["onClick", "bg", "size"]),
|
|
898
|
-
|
|
898
|
+
z(F(q), {
|
|
899
899
|
name: "iksvg_yulan",
|
|
900
900
|
bg: o.showBg,
|
|
901
901
|
size: o.showBg ? "default" : 20
|
|
902
902
|
}, null, 8, ["bg", "size"]),
|
|
903
|
-
|
|
903
|
+
H(i.$slots, "operation", {
|
|
904
904
|
data: { ...h, findex: l }
|
|
905
905
|
})
|
|
906
906
|
],
|
|
@@ -916,7 +916,7 @@ const R = (o, t) => {
|
|
|
916
916
|
128
|
|
917
917
|
/* KEYED_FRAGMENT */
|
|
918
918
|
)) : p("v-if", !0),
|
|
919
|
-
|
|
919
|
+
z(F(D3), {
|
|
920
920
|
show: s.value,
|
|
921
921
|
"onUpdate:show": f[0] || (f[0] = (h) => s.value = h),
|
|
922
922
|
loadUrl: o.loadUrl,
|
|
@@ -932,7 +932,7 @@ const R = (o, t) => {
|
|
|
932
932
|
};
|
|
933
933
|
}
|
|
934
934
|
});
|
|
935
|
-
const T3 =
|
|
935
|
+
const T3 = N(O3), B3 = /* @__PURE__ */ $({
|
|
936
936
|
__name: "IkPreviewFileDialog",
|
|
937
937
|
props: /* @__PURE__ */ te({
|
|
938
938
|
file: {
|
|
@@ -944,12 +944,12 @@ const T3 = R(O3), B3 = /* @__PURE__ */ z({
|
|
|
944
944
|
type: String,
|
|
945
945
|
default: ""
|
|
946
946
|
},
|
|
947
|
-
// 需要onlyoffice预览的文件类型
|
|
947
|
+
// 需要onlyoffice预览的文件类型 - 0.2.3版本后可不填
|
|
948
948
|
onlyOfficeAccept: {
|
|
949
949
|
type: String,
|
|
950
950
|
default: ".pdf,.docx,.doc.ppt,.pptx,.xlsx,.xls,"
|
|
951
951
|
},
|
|
952
|
-
// onlyoffice服务地址
|
|
952
|
+
// onlyoffice服务地址 - 0.2.3版本后可不填
|
|
953
953
|
onlyofficeServer: {
|
|
954
954
|
type: String,
|
|
955
955
|
default: ""
|
|
@@ -969,78 +969,81 @@ const T3 = R(O3), B3 = /* @__PURE__ */ z({
|
|
|
969
969
|
}),
|
|
970
970
|
emits: ["update:show"],
|
|
971
971
|
setup(o) {
|
|
972
|
-
const t = o, n = oe(o, "show"), e =
|
|
972
|
+
const t = o, n = oe(o, "show"), e = E(() => ({
|
|
973
973
|
name: "name",
|
|
974
974
|
url: "url",
|
|
975
975
|
suffix: "suffix",
|
|
976
976
|
size: "fileSize",
|
|
977
977
|
...t.field
|
|
978
|
-
})), s =
|
|
978
|
+
})), s = M(null), c = M(null), u = ne({
|
|
979
979
|
image: !1,
|
|
980
980
|
office: !1,
|
|
981
981
|
video: !1
|
|
982
|
-
}),
|
|
983
|
-
var f, v;
|
|
982
|
+
}), y = (i) => {
|
|
983
|
+
var f, v, h, l, k, C, I;
|
|
984
984
|
try {
|
|
985
|
-
const
|
|
985
|
+
const w = ((f = i == null ? void 0 : i.response) == null ? void 0 : f.data) || i, O = w[e.value.url] || (w == null ? void 0 : w.id) || w.attachmentId, T = (v = w[e.value.suffix] || w.attachmentSuffix) == null ? void 0 : v.toLowerCase(), A = w[e.value.name] || (w == null ? void 0 : w.attachmentName);
|
|
986
986
|
if (c.value = {
|
|
987
987
|
...i,
|
|
988
988
|
name: i[e.value.name],
|
|
989
|
-
url:
|
|
989
|
+
url: L(t.loadUrl, O)
|
|
990
990
|
}, i && le(i, e.value) === "image") {
|
|
991
991
|
u.image = !0;
|
|
992
992
|
return;
|
|
993
|
-
} else if (t.onlyOfficeAccept.includes(
|
|
993
|
+
} else if ((((h = t.onlyOfficeConfig) == null ? void 0 : h.accept) || t.onlyOfficeAccept).includes(T)) {
|
|
994
994
|
u.office = !0, s.value = {
|
|
995
|
-
|
|
996
|
-
document: {
|
|
997
|
-
key: ge(),
|
|
998
|
-
title: $,
|
|
999
|
-
url: N(t.loadUrl, l),
|
|
1000
|
-
fileType: w
|
|
1001
|
-
},
|
|
995
|
+
...t.onlyOfficeConfig,
|
|
1002
996
|
editorConfig: {
|
|
997
|
+
...((l = t.onlyOfficeConfig) == null ? void 0 : l.editorConfig) || {},
|
|
1003
998
|
customization: {
|
|
999
|
+
...((C = (k = t.onlyOfficeConfig) == null ? void 0 : k.editorConfig) == null ? void 0 : C.customization) || {},
|
|
1004
1000
|
review: {
|
|
1005
1001
|
reviewDisplay: "final"
|
|
1006
1002
|
}
|
|
1007
1003
|
}
|
|
1008
1004
|
},
|
|
1009
|
-
|
|
1005
|
+
document: {
|
|
1006
|
+
key: ge(),
|
|
1007
|
+
title: A,
|
|
1008
|
+
url: L(t.loadUrl, O),
|
|
1009
|
+
fileType: T,
|
|
1010
|
+
...((I = t.onlyOfficeConfig) == null ? void 0 : I.document) || {}
|
|
1011
|
+
},
|
|
1012
|
+
documentType: Se(T)
|
|
1010
1013
|
};
|
|
1011
1014
|
return;
|
|
1012
1015
|
}
|
|
1013
|
-
} catch (
|
|
1014
|
-
console.info("预览错误: ",
|
|
1016
|
+
} catch (w) {
|
|
1017
|
+
console.info("预览错误: ", w);
|
|
1015
1018
|
}
|
|
1016
1019
|
};
|
|
1017
1020
|
se([n, t.file], ([i, f]) => {
|
|
1018
|
-
i &&
|
|
1019
|
-
|
|
1021
|
+
i && K(() => {
|
|
1022
|
+
y(t.file);
|
|
1020
1023
|
});
|
|
1021
1024
|
});
|
|
1022
|
-
const
|
|
1025
|
+
const _ = () => {
|
|
1023
1026
|
n.value = !1, u.office = !1, u.image = !1, u.video = !1;
|
|
1024
1027
|
};
|
|
1025
1028
|
return (i, f) => {
|
|
1026
1029
|
var h, l;
|
|
1027
|
-
const v =
|
|
1030
|
+
const v = P("el-image-viewer");
|
|
1028
1031
|
return n.value ? (a(), r(
|
|
1029
|
-
|
|
1032
|
+
b,
|
|
1030
1033
|
{ key: 0 },
|
|
1031
1034
|
[
|
|
1032
|
-
(h = c.value) != null && h.url && u.image ? (a(),
|
|
1035
|
+
(h = c.value) != null && h.url && u.image ? (a(), R(v, {
|
|
1033
1036
|
key: 0,
|
|
1034
|
-
onClose: f[0] || (f[0] = (
|
|
1037
|
+
onClose: f[0] || (f[0] = (k) => {
|
|
1035
1038
|
c.value = null, u.image = !1;
|
|
1036
1039
|
}),
|
|
1037
1040
|
ref: "previewImgRef",
|
|
1038
1041
|
"url-list": [(l = c.value) == null ? void 0 : l.url]
|
|
1039
1042
|
}, null, 8, ["url-list"])) : p("v-if", !0),
|
|
1040
1043
|
p(" 文档类 "),
|
|
1041
|
-
|
|
1044
|
+
z(F(G3), {
|
|
1042
1045
|
modelValue: u.office,
|
|
1043
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
1046
|
+
"onUpdate:modelValue": f[1] || (f[1] = (k) => u.office = k),
|
|
1044
1047
|
draggable: "",
|
|
1045
1048
|
"no-footer": "",
|
|
1046
1049
|
"no-header": "",
|
|
@@ -1050,15 +1053,15 @@ const T3 = R(O3), B3 = /* @__PURE__ */ z({
|
|
|
1050
1053
|
"close-on-click-modal": "",
|
|
1051
1054
|
"close-on-press-escape": !1,
|
|
1052
1055
|
"append-to-body": "",
|
|
1053
|
-
onClose:
|
|
1056
|
+
onClose: _,
|
|
1054
1057
|
"modal-class": "ik-only-preview-dialog"
|
|
1055
1058
|
}, {
|
|
1056
|
-
default:
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1059
|
+
default: B(() => [
|
|
1060
|
+
z(F(o6), {
|
|
1061
|
+
"config-options": s.value,
|
|
1062
|
+
"document-server-url": o.onlyOfficeConfig.serverUrl || o.onlyofficeServer,
|
|
1060
1063
|
mode: "view"
|
|
1061
|
-
}, null, 8, ["
|
|
1064
|
+
}, null, 8, ["config-options", "document-server-url"])
|
|
1062
1065
|
]),
|
|
1063
1066
|
_: 1
|
|
1064
1067
|
/* STABLE */
|
|
@@ -1070,7 +1073,7 @@ const T3 = R(O3), B3 = /* @__PURE__ */ z({
|
|
|
1070
1073
|
};
|
|
1071
1074
|
}
|
|
1072
1075
|
});
|
|
1073
|
-
const D3 =
|
|
1076
|
+
const D3 = N(B3), E3 = {
|
|
1074
1077
|
key: 0,
|
|
1075
1078
|
class: "ik-svg-icon ik-icon inline-block inline-flex justify-center box-content line-height-[0]"
|
|
1076
1079
|
}, R3 = {
|
|
@@ -1081,7 +1084,7 @@ const D3 = R(B3), E3 = {
|
|
|
1081
1084
|
key: 1,
|
|
1082
1085
|
class: "h-[1em] w-[1em]",
|
|
1083
1086
|
"aria-hidden": "true"
|
|
1084
|
-
}, P3 = ["xlink:href"], N3 = ["src"], H3 = /* @__PURE__ */
|
|
1087
|
+
}, P3 = ["xlink:href"], N3 = ["src"], H3 = /* @__PURE__ */ $({
|
|
1085
1088
|
name: "IkSvgIcon",
|
|
1086
1089
|
__name: "index",
|
|
1087
1090
|
props: {
|
|
@@ -1108,10 +1111,10 @@ const D3 = R(B3), E3 = {
|
|
|
1108
1111
|
tableIconType: { default: "icon" }
|
|
1109
1112
|
},
|
|
1110
1113
|
setup(o) {
|
|
1111
|
-
const t = o, n =
|
|
1114
|
+
const t = o, n = E(() => {
|
|
1112
1115
|
var s, c, u;
|
|
1113
1116
|
return /^http?:\/\//.test(t.name) ? "img" : /i-[^:]+:[^:]+/.test(t.name) ? "unocss" : (s = t.name) != null && s.startsWith("iksig") ? "iksig" : (c = t.name) != null && c.includes(":") ? "iconify" : (u = t.name) != null && u.startsWith("iksvg") ? "svg" : "i";
|
|
1114
|
-
}), e =
|
|
1117
|
+
}), e = E(() => {
|
|
1115
1118
|
const s = [];
|
|
1116
1119
|
if (t.flip)
|
|
1117
1120
|
switch (t.flip) {
|
|
@@ -1139,13 +1142,13 @@ const D3 = R(B3), E3 = {
|
|
|
1139
1142
|
return t.width && (c.width = c.height = typeof t.width == "number" ? `${t.width}px` : t.width), c;
|
|
1140
1143
|
});
|
|
1141
1144
|
return (s, c) => {
|
|
1142
|
-
const u =
|
|
1145
|
+
const u = P("el-tooltip"), y = P("el-button");
|
|
1143
1146
|
return s.tableIconType === "icon" ? (a(), r("span", E3, [
|
|
1144
1147
|
s.notip || !s.title ? (a(), r(
|
|
1145
1148
|
"i",
|
|
1146
1149
|
{
|
|
1147
1150
|
key: 0,
|
|
1148
|
-
class:
|
|
1151
|
+
class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1149
1152
|
[s.name]: n.value === "unocss",
|
|
1150
1153
|
"show-bg": s.showBg || s.bg,
|
|
1151
1154
|
default: s.size === "default",
|
|
@@ -1158,7 +1161,7 @@ const D3 = R(B3), E3 = {
|
|
|
1158
1161
|
active: s.active,
|
|
1159
1162
|
disabled: s.disabled
|
|
1160
1163
|
}]),
|
|
1161
|
-
style:
|
|
1164
|
+
style: S(e.value)
|
|
1162
1165
|
},
|
|
1163
1166
|
[
|
|
1164
1167
|
p(` <Icon v-if="outputType === 'iconify'" :icon="name" /> `),
|
|
@@ -1166,8 +1169,8 @@ const D3 = R(B3), E3 = {
|
|
|
1166
1169
|
"i",
|
|
1167
1170
|
{
|
|
1168
1171
|
key: 0,
|
|
1169
|
-
class:
|
|
1170
|
-
style:
|
|
1172
|
+
class: x(`iksig ${s.name}`),
|
|
1173
|
+
style: S(e.value)
|
|
1171
1174
|
},
|
|
1172
1175
|
null,
|
|
1173
1176
|
6
|
|
@@ -1184,8 +1187,8 @@ const D3 = R(B3), E3 = {
|
|
|
1184
1187
|
"i",
|
|
1185
1188
|
{
|
|
1186
1189
|
key: 3,
|
|
1187
|
-
class:
|
|
1188
|
-
style:
|
|
1190
|
+
class: x(s.name),
|
|
1191
|
+
style: S(e.value)
|
|
1189
1192
|
},
|
|
1190
1193
|
null,
|
|
1191
1194
|
6
|
|
@@ -1194,16 +1197,16 @@ const D3 = R(B3), E3 = {
|
|
|
1194
1197
|
],
|
|
1195
1198
|
6
|
|
1196
1199
|
/* CLASS, STYLE */
|
|
1197
|
-
)) : (a(),
|
|
1200
|
+
)) : (a(), R(u, {
|
|
1198
1201
|
key: 1,
|
|
1199
1202
|
content: s.title,
|
|
1200
1203
|
placement: "top"
|
|
1201
1204
|
}, {
|
|
1202
|
-
default:
|
|
1205
|
+
default: B(() => [
|
|
1203
1206
|
d(
|
|
1204
1207
|
"i",
|
|
1205
1208
|
{
|
|
1206
|
-
class:
|
|
1209
|
+
class: x(["ik-svg-icon ik-icon relative h-[1em] w-[1em] inline-flex items-center justify-center fill-current leading-[1em] transition", {
|
|
1207
1210
|
[s.name]: n.value === "unocss",
|
|
1208
1211
|
"show-bg": s.showBg || s.bg,
|
|
1209
1212
|
default: s.size === "default",
|
|
@@ -1215,15 +1218,15 @@ const D3 = R(B3), E3 = {
|
|
|
1215
1218
|
error: s.error || t.type === "error",
|
|
1216
1219
|
active: s.active
|
|
1217
1220
|
}]),
|
|
1218
|
-
style:
|
|
1221
|
+
style: S(e.value)
|
|
1219
1222
|
},
|
|
1220
1223
|
[
|
|
1221
1224
|
n.value === "iksig" ? (a(), r(
|
|
1222
1225
|
"i",
|
|
1223
1226
|
{
|
|
1224
1227
|
key: 0,
|
|
1225
|
-
class:
|
|
1226
|
-
style:
|
|
1228
|
+
class: x(`iksig ${s.name}`),
|
|
1229
|
+
style: S(e.value)
|
|
1227
1230
|
},
|
|
1228
1231
|
null,
|
|
1229
1232
|
6
|
|
@@ -1240,8 +1243,8 @@ const D3 = R(B3), E3 = {
|
|
|
1240
1243
|
"i",
|
|
1241
1244
|
{
|
|
1242
1245
|
key: 3,
|
|
1243
|
-
class:
|
|
1244
|
-
style:
|
|
1246
|
+
class: x(s.name),
|
|
1247
|
+
style: S(e.value)
|
|
1245
1248
|
},
|
|
1246
1249
|
null,
|
|
1247
1250
|
6
|
|
@@ -1255,13 +1258,13 @@ const D3 = R(B3), E3 = {
|
|
|
1255
1258
|
_: 1
|
|
1256
1259
|
/* STABLE */
|
|
1257
1260
|
}, 8, ["content"]))
|
|
1258
|
-
])) : (a(),
|
|
1261
|
+
])) : (a(), R(y, {
|
|
1259
1262
|
key: 1,
|
|
1260
1263
|
type: ["warning", "error"].includes(s.type) ? "danger" : ""
|
|
1261
1264
|
}, {
|
|
1262
|
-
default:
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
+
default: B(() => [
|
|
1266
|
+
D(
|
|
1267
|
+
g(s.title),
|
|
1265
1268
|
1
|
|
1266
1269
|
/* TEXT */
|
|
1267
1270
|
)
|
|
@@ -1272,10 +1275,10 @@ const D3 = R(B3), E3 = {
|
|
|
1272
1275
|
};
|
|
1273
1276
|
}
|
|
1274
1277
|
});
|
|
1275
|
-
const L3 = /* @__PURE__ */ U(H3, [["__scopeId", "data-v-7d95dbf5"]]),
|
|
1278
|
+
const L3 = /* @__PURE__ */ U(H3, [["__scopeId", "data-v-7d95dbf5"]]), q = N(L3), q3 = {
|
|
1276
1279
|
key: 0,
|
|
1277
1280
|
class: "exit-main-page-maximize"
|
|
1278
|
-
}, U3 = /* @__PURE__ */
|
|
1281
|
+
}, U3 = /* @__PURE__ */ $({
|
|
1279
1282
|
__name: "CloseIcon",
|
|
1280
1283
|
props: {
|
|
1281
1284
|
showBg: {
|
|
@@ -1290,13 +1293,13 @@ const L3 = /* @__PURE__ */ U(H3, [["__scopeId", "data-v-7d95dbf5"]]), H = R(L3),
|
|
|
1290
1293
|
setup(o) {
|
|
1291
1294
|
return (t, n) => (a(), r("div", null, [
|
|
1292
1295
|
o.showBg && o.fullscreen ? (a(), r("div", q3, [
|
|
1293
|
-
|
|
1296
|
+
z(F(q), {
|
|
1294
1297
|
name: "iksvg_guanbidanchuang",
|
|
1295
1298
|
title: "关闭",
|
|
1296
1299
|
size: 20,
|
|
1297
1300
|
error: ""
|
|
1298
1301
|
})
|
|
1299
|
-
])) : (a(),
|
|
1302
|
+
])) : (a(), R(F(q), {
|
|
1300
1303
|
key: 1,
|
|
1301
1304
|
error: "",
|
|
1302
1305
|
name: "iksvg_guanbidanchuang",
|
|
@@ -1306,7 +1309,7 @@ const L3 = /* @__PURE__ */ U(H3, [["__scopeId", "data-v-7d95dbf5"]]), H = R(L3),
|
|
|
1306
1309
|
]));
|
|
1307
1310
|
}
|
|
1308
1311
|
});
|
|
1309
|
-
const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { class: "base-header" },
|
|
1312
|
+
const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { class: "base-header" }, K3 = /* @__PURE__ */ $({
|
|
1310
1313
|
__name: "IkBaseDialog",
|
|
1311
1314
|
props: /* @__PURE__ */ te({
|
|
1312
1315
|
title: { default: "" },
|
|
@@ -1327,9 +1330,9 @@ const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { cla
|
|
|
1327
1330
|
}),
|
|
1328
1331
|
emits: ["update:modelValue"],
|
|
1329
1332
|
setup(o) {
|
|
1330
|
-
const t = o, n = oe(o, "modelValue"), e =
|
|
1333
|
+
const t = o, n = oe(o, "modelValue"), e = M(t.fullscreen), s = () => {
|
|
1331
1334
|
e.value = !e.value;
|
|
1332
|
-
}, c =
|
|
1335
|
+
}, c = $({
|
|
1333
1336
|
setup() {
|
|
1334
1337
|
return () => ce(j3, {
|
|
1335
1338
|
showBg: t.showCloseBg,
|
|
@@ -1337,37 +1340,37 @@ const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { cla
|
|
|
1337
1340
|
});
|
|
1338
1341
|
}
|
|
1339
1342
|
});
|
|
1340
|
-
return (u,
|
|
1341
|
-
const
|
|
1342
|
-
return a(),
|
|
1343
|
+
return (u, y) => {
|
|
1344
|
+
const _ = P("el-dialog");
|
|
1345
|
+
return a(), R(_, ie({
|
|
1343
1346
|
modelValue: n.value,
|
|
1344
|
-
"onUpdate:modelValue":
|
|
1347
|
+
"onUpdate:modelValue": y[0] || (y[0] = (i) => n.value = i)
|
|
1345
1348
|
}, u.$attrs, {
|
|
1346
|
-
"close-icon":
|
|
1349
|
+
"close-icon": F(c),
|
|
1347
1350
|
class: `ik-base-dialog ${u.noHeader ? "no-header" : ""} ${u.noFooter ? "no-footer" : ""}`,
|
|
1348
1351
|
fullscreen: e.value,
|
|
1349
1352
|
"modal-class": "baseDialog"
|
|
1350
1353
|
}), de({
|
|
1351
|
-
icon:
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1354
|
+
icon: B(() => [
|
|
1355
|
+
H(u.$slots, "title", {}, () => [
|
|
1356
|
+
D(
|
|
1357
|
+
g(u.title),
|
|
1355
1358
|
1
|
|
1356
1359
|
/* TEXT */
|
|
1357
1360
|
)
|
|
1358
1361
|
])
|
|
1359
1362
|
]),
|
|
1360
|
-
header:
|
|
1363
|
+
header: B(() => [
|
|
1361
1364
|
d("div", W3, [
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
+
H(u.$slots, "header", {}, () => [
|
|
1366
|
+
D(
|
|
1367
|
+
g(u.title),
|
|
1365
1368
|
1
|
|
1366
1369
|
/* TEXT */
|
|
1367
1370
|
)
|
|
1368
1371
|
])
|
|
1369
1372
|
]),
|
|
1370
|
-
u.$attrs.showClose ? (a(),
|
|
1373
|
+
u.$attrs.showClose ? (a(), R(F(q), {
|
|
1371
1374
|
key: 0,
|
|
1372
1375
|
onClick: s,
|
|
1373
1376
|
name: e.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
|
|
@@ -1375,16 +1378,16 @@ const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { cla
|
|
|
1375
1378
|
title: e.value ? "退出全屏" : "全屏"
|
|
1376
1379
|
}, null, 8, ["name", "title"])) : p("v-if", !0)
|
|
1377
1380
|
]),
|
|
1378
|
-
default:
|
|
1379
|
-
|
|
1381
|
+
default: B(() => [
|
|
1382
|
+
H(u.$slots, "default")
|
|
1380
1383
|
]),
|
|
1381
1384
|
_: 2
|
|
1382
1385
|
/* DYNAMIC */
|
|
1383
1386
|
}, [
|
|
1384
1387
|
u.$slots.footer ? {
|
|
1385
1388
|
name: "footer",
|
|
1386
|
-
fn:
|
|
1387
|
-
|
|
1389
|
+
fn: B(() => [
|
|
1390
|
+
H(u.$slots, "footer")
|
|
1388
1391
|
]),
|
|
1389
1392
|
key: "0"
|
|
1390
1393
|
} : void 0
|
|
@@ -1392,7 +1395,7 @@ const j3 = /* @__PURE__ */ U(U3, [["__scopeId", "data-v-79f49df8"]]), W3 = { cla
|
|
|
1392
1395
|
};
|
|
1393
1396
|
}
|
|
1394
1397
|
});
|
|
1395
|
-
const
|
|
1398
|
+
const G3 = N(K3);
|
|
1396
1399
|
function Y3(o, t, n, e) {
|
|
1397
1400
|
function s(c) {
|
|
1398
1401
|
return c instanceof n ? c : new n(function(u) {
|
|
@@ -1400,14 +1403,14 @@ function Y3(o, t, n, e) {
|
|
|
1400
1403
|
});
|
|
1401
1404
|
}
|
|
1402
1405
|
return new (n || (n = Promise))(function(c, u) {
|
|
1403
|
-
function
|
|
1406
|
+
function y(f) {
|
|
1404
1407
|
try {
|
|
1405
1408
|
i(e.next(f));
|
|
1406
1409
|
} catch (v) {
|
|
1407
1410
|
u(v);
|
|
1408
1411
|
}
|
|
1409
1412
|
}
|
|
1410
|
-
function
|
|
1413
|
+
function _(f) {
|
|
1411
1414
|
try {
|
|
1412
1415
|
i(e.throw(f));
|
|
1413
1416
|
} catch (v) {
|
|
@@ -1415,7 +1418,7 @@ function Y3(o, t, n, e) {
|
|
|
1415
1418
|
}
|
|
1416
1419
|
}
|
|
1417
1420
|
function i(f) {
|
|
1418
|
-
f.done ? c(f.value) : s(f.value).then(
|
|
1421
|
+
f.done ? c(f.value) : s(f.value).then(y, _);
|
|
1419
1422
|
}
|
|
1420
1423
|
i((e = e.apply(o, t || [])).next());
|
|
1421
1424
|
});
|
|
@@ -1426,15 +1429,15 @@ function X3(o, t) {
|
|
|
1426
1429
|
throw c[1];
|
|
1427
1430
|
return c[1];
|
|
1428
1431
|
}, trys: [], ops: [] }, e, s, c, u;
|
|
1429
|
-
return u = { next:
|
|
1432
|
+
return u = { next: y(0), throw: y(1), return: y(2) }, typeof Symbol == "function" && (u[Symbol.iterator] = function() {
|
|
1430
1433
|
return this;
|
|
1431
1434
|
}), u;
|
|
1432
|
-
function
|
|
1435
|
+
function y(i) {
|
|
1433
1436
|
return function(f) {
|
|
1434
|
-
return
|
|
1437
|
+
return _([i, f]);
|
|
1435
1438
|
};
|
|
1436
1439
|
}
|
|
1437
|
-
function
|
|
1440
|
+
function _(i) {
|
|
1438
1441
|
if (e)
|
|
1439
1442
|
throw new TypeError("Generator is already executing.");
|
|
1440
1443
|
for (; u && (u = 0, i[0] && (n = 0)), n; )
|
|
@@ -1495,8 +1498,8 @@ var J3 = function(o, t) {
|
|
|
1495
1498
|
var c = document.getElementById(t);
|
|
1496
1499
|
if (c)
|
|
1497
1500
|
var u = setInterval(function() {
|
|
1498
|
-
var
|
|
1499
|
-
if (!
|
|
1501
|
+
var _ = c.getAttribute("loading");
|
|
1502
|
+
if (!_) {
|
|
1500
1503
|
if (clearInterval(u), window.DocsAPI)
|
|
1501
1504
|
return e(null);
|
|
1502
1505
|
var i = ee(t, o, e, s);
|
|
@@ -1504,11 +1507,11 @@ var J3 = function(o, t) {
|
|
|
1504
1507
|
}
|
|
1505
1508
|
}, 500);
|
|
1506
1509
|
else {
|
|
1507
|
-
var
|
|
1508
|
-
document.body.appendChild(
|
|
1510
|
+
var y = ee(t, o, e, s);
|
|
1511
|
+
document.body.appendChild(y);
|
|
1509
1512
|
}
|
|
1510
|
-
} catch (
|
|
1511
|
-
console.error(
|
|
1513
|
+
} catch (_) {
|
|
1514
|
+
console.error(_);
|
|
1512
1515
|
}
|
|
1513
1516
|
})];
|
|
1514
1517
|
});
|
|
@@ -1520,7 +1523,7 @@ var J3 = function(o, t) {
|
|
|
1520
1523
|
}, s.onerror = function(c) {
|
|
1521
1524
|
s.removeAttribute("loading"), e(c);
|
|
1522
1525
|
}, s.setAttribute("loading", ""), s;
|
|
1523
|
-
}, G =
|
|
1526
|
+
}, G = $({
|
|
1524
1527
|
name: "DocumentEditor",
|
|
1525
1528
|
props: {
|
|
1526
1529
|
id: {
|
|
@@ -1695,7 +1698,7 @@ function Q3(o, t, n, e, s, c) {
|
|
|
1695
1698
|
}
|
|
1696
1699
|
G.render = Q3;
|
|
1697
1700
|
G.__file = "src/components/DocumentEditor.vue";
|
|
1698
|
-
const e6 = /* @__PURE__ */
|
|
1701
|
+
const e6 = /* @__PURE__ */ $({
|
|
1699
1702
|
__name: "IkOnlyOffice",
|
|
1700
1703
|
props: {
|
|
1701
1704
|
// 文件服务器的服务的地址
|
|
@@ -1703,80 +1706,33 @@ const e6 = /* @__PURE__ */ z({
|
|
|
1703
1706
|
type: String,
|
|
1704
1707
|
default: ""
|
|
1705
1708
|
},
|
|
1706
|
-
// 当前onlyoffice的模式 (edit 编辑模式 view是查看模式)
|
|
1707
|
-
mode: {
|
|
1708
|
-
type: String,
|
|
1709
|
-
default: ""
|
|
1710
|
-
},
|
|
1711
1709
|
// 配置项
|
|
1712
1710
|
configOptions: {
|
|
1713
1711
|
type: Object,
|
|
1714
1712
|
default: () => {
|
|
1715
1713
|
}
|
|
1716
1714
|
},
|
|
1717
|
-
//
|
|
1715
|
+
// 元素的高度
|
|
1718
1716
|
officeHeight: {
|
|
1719
1717
|
type: String,
|
|
1720
1718
|
default: "100%"
|
|
1721
|
-
},
|
|
1722
|
-
// 加密后的token
|
|
1723
|
-
token: {
|
|
1724
|
-
type: String,
|
|
1725
|
-
default: ""
|
|
1726
1719
|
}
|
|
1727
1720
|
},
|
|
1728
1721
|
setup(o) {
|
|
1729
|
-
|
|
1730
|
-
const t = o, n = D({
|
|
1722
|
+
const t = o, n = M({
|
|
1731
1723
|
width: "100%",
|
|
1732
1724
|
height: "100%",
|
|
1733
|
-
|
|
1734
|
-
// word cell(表格) slide(PPT)
|
|
1735
|
-
documentType: (c = t.configOptions) == null ? void 0 : c.documentType,
|
|
1736
|
-
editorConfig: {
|
|
1737
|
-
callbackUrl: (g = (u = t.configOptions) == null ? void 0 : u.editorConfig) == null ? void 0 : g.callbackUrl,
|
|
1738
|
-
// 保存的回调函数
|
|
1739
|
-
lang: "zh-CN",
|
|
1740
|
-
mode: t.mode,
|
|
1741
|
-
// 强制保存
|
|
1742
|
-
customization: {
|
|
1743
|
-
forcesave: !0,
|
|
1744
|
-
autosave: !0
|
|
1745
|
-
}
|
|
1746
|
-
},
|
|
1747
|
-
// 权限
|
|
1748
|
-
permissions: {
|
|
1749
|
-
comment: !0,
|
|
1750
|
-
commentGroups: {
|
|
1751
|
-
edit: ["Group1"],
|
|
1752
|
-
remove: ["Group1"],
|
|
1753
|
-
view: ""
|
|
1754
|
-
},
|
|
1755
|
-
copy: !0,
|
|
1756
|
-
deleteCommentAuthorOnly: !0,
|
|
1757
|
-
download: !0,
|
|
1758
|
-
edit: !0,
|
|
1759
|
-
editCommentAuthorOnly: !0,
|
|
1760
|
-
fillForms: !0,
|
|
1761
|
-
modifyContentControl: !0,
|
|
1762
|
-
modifyFilter: !0,
|
|
1763
|
-
print: !0,
|
|
1764
|
-
review: !0,
|
|
1765
|
-
reviewGroups: ["Group1", "Group2", "Group3"],
|
|
1766
|
-
userInfoGroups: ["Group1"]
|
|
1767
|
-
},
|
|
1768
|
-
mode: t.mode,
|
|
1769
|
-
token: t.token
|
|
1725
|
+
...t.configOptions || {}
|
|
1770
1726
|
}), e = () => {
|
|
1771
|
-
console.info("文档加载完成");
|
|
1727
|
+
console.info("文档加载完成", t.configOptions);
|
|
1772
1728
|
};
|
|
1773
|
-
return (
|
|
1729
|
+
return (s, c) => (a(), r(
|
|
1774
1730
|
"div",
|
|
1775
1731
|
{
|
|
1776
|
-
style:
|
|
1732
|
+
style: S({ height: t.officeHeight })
|
|
1777
1733
|
},
|
|
1778
1734
|
[
|
|
1779
|
-
|
|
1735
|
+
z(F(G), {
|
|
1780
1736
|
id: `${(/* @__PURE__ */ new Date()).getTime()}`,
|
|
1781
1737
|
ref: "editorRef",
|
|
1782
1738
|
"document-server-url": o.documentServerUrl,
|
|
@@ -1789,13 +1745,13 @@ const e6 = /* @__PURE__ */ z({
|
|
|
1789
1745
|
));
|
|
1790
1746
|
}
|
|
1791
1747
|
});
|
|
1792
|
-
const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-
|
|
1748
|
+
const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-fe959cd8"]]), o6 = N(t6), Y = (o) => (pe("data-v-fbe9e6ef"), o = o(), fe(), o), n6 = {
|
|
1793
1749
|
class: "approveProcess",
|
|
1794
1750
|
id: "approveProcess"
|
|
1795
1751
|
}, s6 = ["id"], i6 = { class: "topBlock" }, l6 = { class: "left" }, a6 = { class: "nodeBg" }, r6 = ["src"], c6 = { class: "right" }, d6 = { class: "topInfo" }, u6 = { key: 0 }, p6 = {
|
|
1796
1752
|
key: 0,
|
|
1797
1753
|
class: "main-text"
|
|
1798
|
-
}, f6 = { class: "name" }, h6 = { key: 0 }, v6 = { key: 0 }, g6 = { key: 1 }, y6 = /* @__PURE__ */
|
|
1754
|
+
}, f6 = { class: "name" }, h6 = { key: 0 }, v6 = { key: 0 }, g6 = { key: 1 }, y6 = /* @__PURE__ */ Y(() => /* @__PURE__ */ d(
|
|
1799
1755
|
"span",
|
|
1800
1756
|
{
|
|
1801
1757
|
class: "red",
|
|
@@ -1804,7 +1760,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1804
1760
|
"退回至",
|
|
1805
1761
|
-1
|
|
1806
1762
|
/* HOISTED */
|
|
1807
|
-
)),
|
|
1763
|
+
)), _6 = { key: 0 }, m6 = { key: 0 }, w6 = { key: 1 }, k6 = { key: 1 }, F6 = /* @__PURE__ */ Y(() => /* @__PURE__ */ d(
|
|
1808
1764
|
"div",
|
|
1809
1765
|
{ class: "main-text" },
|
|
1810
1766
|
"抄送人员",
|
|
@@ -1828,7 +1784,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1828
1784
|
}, B6 = { class: "time" }, D6 = { key: 0 }, E6 = { key: 1 }, R6 = ["onClick"], A6 = ["onClick"], V6 = {
|
|
1829
1785
|
key: 0,
|
|
1830
1786
|
class: "opinion"
|
|
1831
|
-
}, M6 = { key: 0 }, P6 = { key: 1 }, N6 = /* @__PURE__ */
|
|
1787
|
+
}, M6 = { key: 0 }, P6 = { key: 1 }, N6 = /* @__PURE__ */ Y(() => /* @__PURE__ */ d(
|
|
1832
1788
|
"span",
|
|
1833
1789
|
{ class: "ik-text-primary" },
|
|
1834
1790
|
"添加审批人",
|
|
@@ -1840,15 +1796,15 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1840
1796
|
}, q6 = {
|
|
1841
1797
|
key: 3,
|
|
1842
1798
|
class: "approveList"
|
|
1843
|
-
}, U6 = { class: "nodeBg-list" }, j6 = ["src"], W6 = { key: 1 },
|
|
1799
|
+
}, U6 = { class: "nodeBg-list" }, j6 = ["src"], W6 = { key: 1 }, K6 = {
|
|
1844
1800
|
key: 2,
|
|
1845
1801
|
class: "ikapprove ikapprove-duihao2 green read"
|
|
1846
|
-
},
|
|
1802
|
+
}, G6 = ["title"], Y6 = {
|
|
1847
1803
|
key: 0,
|
|
1848
1804
|
class: "branch"
|
|
1849
1805
|
}, X6 = { class: "branch-card" }, J6 = { class: "branch-name" }, Z6 = {
|
|
1850
1806
|
name: "IkingApprovalProcessDetail"
|
|
1851
|
-
}, Q6 = /* @__PURE__ */
|
|
1807
|
+
}, Q6 = /* @__PURE__ */ $({
|
|
1852
1808
|
...Z6,
|
|
1853
1809
|
props: {
|
|
1854
1810
|
// 是否本地打开
|
|
@@ -1908,11 +1864,11 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1908
1864
|
},
|
|
1909
1865
|
emits: ["preview"],
|
|
1910
1866
|
setup(o, { emit: t }) {
|
|
1911
|
-
const n = o, e = ne(
|
|
1867
|
+
const n = o, e = ne(me(n));
|
|
1912
1868
|
se(
|
|
1913
1869
|
() => n.dataList,
|
|
1914
1870
|
(i) => {
|
|
1915
|
-
i && (
|
|
1871
|
+
i && (K(() => {
|
|
1916
1872
|
e.listData = i;
|
|
1917
1873
|
}), setTimeout(() => {
|
|
1918
1874
|
n.returnNode.length && s();
|
|
@@ -1931,22 +1887,22 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1931
1887
|
if (isNaN(i[1]))
|
|
1932
1888
|
return;
|
|
1933
1889
|
let f = Array.from(new Array(i[1] + 1).keys()).slice(i[0]);
|
|
1934
|
-
|
|
1890
|
+
K(() => {
|
|
1935
1891
|
c(f);
|
|
1936
1892
|
});
|
|
1937
1893
|
}
|
|
1938
1894
|
}, c = (i) => {
|
|
1939
|
-
var
|
|
1940
|
-
let f = document.createElement("div"), v = document.getElementById("approveProcess"), h = 0, l = (
|
|
1941
|
-
i.forEach((
|
|
1942
|
-
let
|
|
1943
|
-
h +=
|
|
1895
|
+
var I, w, O;
|
|
1896
|
+
let f = document.createElement("div"), v = document.getElementById("approveProcess"), h = 0, l = (I = document.getElementById(`${i[0]}`)) == null ? void 0 : I.offsetWidth, k = (w = document.getElementById(`${i[0]}`)) == null ? void 0 : w.offsetLeft, C = (O = document.getElementById(`${i[0]}`)) == null ? void 0 : O.offsetTop;
|
|
1897
|
+
i.forEach((T) => {
|
|
1898
|
+
let A = document.getElementById(`${T}`);
|
|
1899
|
+
h += A.offsetHeight;
|
|
1944
1900
|
}), setTimeout(() => {
|
|
1945
|
-
f.style.width = l + 32 + "px", f.style.height = h + "px", f.style.background = "#f9f9f9", f.style.position = "absolute", f.style.top =
|
|
1901
|
+
f.style.width = l + 32 + "px", f.style.height = h + "px", f.style.background = "#f9f9f9", f.style.position = "absolute", f.style.top = C - 16 + "px", f.style.left = k - 16 + "px", f.style.zIndex = -1, v == null || v.appendChild(f);
|
|
1946
1902
|
});
|
|
1947
1903
|
}, u = (i, f) => {
|
|
1948
1904
|
var l;
|
|
1949
|
-
let v = (l = e.listData) == null ? void 0 : l.findIndex((
|
|
1905
|
+
let v = (l = e.listData) == null ? void 0 : l.findIndex((k) => k.lineType == "dashed"), h = "";
|
|
1950
1906
|
switch (i) {
|
|
1951
1907
|
case e.statusOption.发起:
|
|
1952
1908
|
h = "ikapprove-duihao2 green";
|
|
@@ -1974,20 +1930,20 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1974
1930
|
break;
|
|
1975
1931
|
}
|
|
1976
1932
|
return `ikapprove ${h}`;
|
|
1977
|
-
},
|
|
1933
|
+
}, y = (i, f) => {
|
|
1978
1934
|
i.show = !i.show;
|
|
1979
1935
|
let v = document.getElementById(`${i[e.defaultFile.nodeId]}`), h = Array.from(v == null ? void 0 : v.getElementsByClassName("approveList"));
|
|
1980
1936
|
for (let l of h)
|
|
1981
1937
|
l.style.display = f;
|
|
1982
|
-
},
|
|
1938
|
+
}, _ = (i) => L(n.fileUrl, i);
|
|
1983
1939
|
return (i, f) => {
|
|
1984
|
-
const v =
|
|
1940
|
+
const v = P("el-image"), h = P("IkingApprovalProcessDetail");
|
|
1985
1941
|
return a(), r("div", n6, [
|
|
1986
1942
|
(a(!0), r(
|
|
1987
|
-
|
|
1943
|
+
b,
|
|
1988
1944
|
null,
|
|
1989
|
-
|
|
1990
|
-
var
|
|
1945
|
+
V(e.listData, (l, k) => {
|
|
1946
|
+
var C, I, w, O, T, A, j, X, J, Z;
|
|
1991
1947
|
return a(), r("div", {
|
|
1992
1948
|
class: "approveBlock",
|
|
1993
1949
|
id: l[e.defaultFile.nodeId],
|
|
@@ -1997,23 +1953,23 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
1997
1953
|
d("div", l6, [
|
|
1998
1954
|
d("span", a6, [
|
|
1999
1955
|
p(' 用户列表长度等于1, :src="formatUrl(it)"并且存在头像 '),
|
|
2000
|
-
((
|
|
1956
|
+
((C = l[e.defaultFile.approvePersonList]) == null ? void 0 : C.length) == 1 && l[e.defaultFile.approvePersonList][0].userAvatar ? (a(), r("img", {
|
|
2001
1957
|
key: 0,
|
|
2002
1958
|
style: { width: "100%", height: "100%", "border-radius": "50%" },
|
|
2003
|
-
src:
|
|
1959
|
+
src: _(
|
|
2004
1960
|
l[e.defaultFile.approvePersonList][0].userAvatar
|
|
2005
1961
|
),
|
|
2006
1962
|
alt: ""
|
|
2007
1963
|
}, null, 8, r6)) : (a(), r(
|
|
2008
|
-
|
|
1964
|
+
b,
|
|
2009
1965
|
{ key: 1 },
|
|
2010
1966
|
[
|
|
2011
1967
|
p(" 否则显示对应节点 "),
|
|
2012
1968
|
d(
|
|
2013
1969
|
"i",
|
|
2014
1970
|
{
|
|
2015
|
-
class:
|
|
2016
|
-
|
|
1971
|
+
class: x(
|
|
1972
|
+
F(we)(
|
|
2017
1973
|
e,
|
|
2018
1974
|
l[e.defaultFile.nodeType],
|
|
2019
1975
|
l[e.defaultFile.approvePersonList]
|
|
@@ -2032,8 +1988,8 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2032
1988
|
d(
|
|
2033
1989
|
"i",
|
|
2034
1990
|
{
|
|
2035
|
-
class:
|
|
2036
|
-
u(l[e.defaultFile.approveStatus],
|
|
1991
|
+
class: x(
|
|
1992
|
+
u(l[e.defaultFile.approveStatus], k)
|
|
2037
1993
|
)
|
|
2038
1994
|
},
|
|
2039
1995
|
null,
|
|
@@ -2051,7 +2007,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2051
2007
|
l[e.defaultFile.approveStatus] != e.statusOption.撤销 && l[e.defaultFile.approveStatus] != e.statusOption.评论 ? (a(), r(
|
|
2052
2008
|
"div",
|
|
2053
2009
|
p6,
|
|
2054
|
-
|
|
2010
|
+
g(l[e.defaultFile.nodeTypeName]),
|
|
2055
2011
|
1
|
|
2056
2012
|
/* TEXT */
|
|
2057
2013
|
)) : p("v-if", !0),
|
|
@@ -2062,11 +2018,11 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2062
2018
|
d(
|
|
2063
2019
|
"span",
|
|
2064
2020
|
{
|
|
2065
|
-
style:
|
|
2021
|
+
style: S({
|
|
2066
2022
|
color: l[e.defaultFile.approveStatus] == e.statusOption.评论 ? "#000" : ""
|
|
2067
2023
|
})
|
|
2068
2024
|
},
|
|
2069
|
-
|
|
2025
|
+
g(l[e.defaultFile.originator]),
|
|
2070
2026
|
5
|
|
2071
2027
|
/* TEXT, STYLE */
|
|
2072
2028
|
),
|
|
@@ -2074,42 +2030,42 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2074
2030
|
l[e.defaultFile.approveStatusName] && l[e.defaultFile.approveStatus] != e.statusOption.发起 && l[e.defaultFile.approveStatus] != e.statusOption.退回 ? (a(), r(
|
|
2075
2031
|
"span",
|
|
2076
2032
|
v6,
|
|
2077
|
-
|
|
2033
|
+
g(l[e.defaultFile.approveStatus] == e.statusOption.评论 ? " 添加了评论" : "(" + l[e.defaultFile.approveStatusName] + ")"),
|
|
2078
2034
|
1
|
|
2079
2035
|
/* TEXT */
|
|
2080
2036
|
)) : p("v-if", !0),
|
|
2081
2037
|
p(" 退回状态显示 "),
|
|
2082
2038
|
l[e.defaultFile.approveStatus] == e.statusOption.退回 ? (a(), r("span", g6, [
|
|
2083
2039
|
y6,
|
|
2084
|
-
|
|
2085
|
-
|
|
2040
|
+
D(
|
|
2041
|
+
g(l[e.defaultFile.backToRecordNodeName]),
|
|
2086
2042
|
1
|
|
2087
2043
|
/* TEXT */
|
|
2088
2044
|
)
|
|
2089
2045
|
])) : p("v-if", !0)
|
|
2090
2046
|
])) : (a(), r(
|
|
2091
|
-
|
|
2047
|
+
b,
|
|
2092
2048
|
{ key: 1 },
|
|
2093
2049
|
[
|
|
2094
2050
|
p(" 待审批节点 "),
|
|
2095
2051
|
d("div", null, [
|
|
2096
|
-
((
|
|
2097
|
-
|
|
2098
|
-
|
|
2052
|
+
((I = l[e.defaultFile.approvePersonList]) == null ? void 0 : I.length) == 1 ? (a(), r("span", _6, [
|
|
2053
|
+
D(
|
|
2054
|
+
g(l[e.defaultFile.originator]) + " ",
|
|
2099
2055
|
1
|
|
2100
2056
|
/* TEXT */
|
|
2101
2057
|
),
|
|
2102
2058
|
l[e.defaultFile.approveStatus] == e.statusOption.等待 ? (a(), r(
|
|
2103
2059
|
"span",
|
|
2104
|
-
|
|
2105
|
-
|
|
2060
|
+
m6,
|
|
2061
|
+
g(`(${l[e.defaultFile.approveStatusName]})`),
|
|
2106
2062
|
1
|
|
2107
2063
|
/* TEXT */
|
|
2108
2064
|
)) : p("v-if", !0)
|
|
2109
2065
|
])) : l[e.defaultFile.approvePersonList] ? (a(), r(
|
|
2110
2066
|
"span",
|
|
2111
2067
|
w6,
|
|
2112
|
-
|
|
2068
|
+
g(`${(w = l[e.defaultFile.approvePersonList]) == null ? void 0 : w.length}人${l[e.defaultFile.approveTypeName]}`),
|
|
2113
2069
|
1
|
|
2114
2070
|
/* TEXT */
|
|
2115
2071
|
)) : p("v-if", !0)
|
|
@@ -2123,13 +2079,13 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2123
2079
|
F6,
|
|
2124
2080
|
d("div", S6, [
|
|
2125
2081
|
p(" 抄送一人时 "),
|
|
2126
|
-
((
|
|
2082
|
+
((O = l[e.defaultFile.approvePersonList]) == null ? void 0 : O.length) == 1 ? (a(), r("span", b6, [
|
|
2127
2083
|
d("span", null, [
|
|
2128
|
-
|
|
2084
|
+
D("已抄送给 "),
|
|
2129
2085
|
d(
|
|
2130
2086
|
"span",
|
|
2131
2087
|
x6,
|
|
2132
|
-
|
|
2088
|
+
g(l[e.defaultFile.approvePersonList][0].userName),
|
|
2133
2089
|
1
|
|
2134
2090
|
/* TEXT */
|
|
2135
2091
|
)
|
|
@@ -2137,15 +2093,15 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2137
2093
|
d(
|
|
2138
2094
|
"span",
|
|
2139
2095
|
z6,
|
|
2140
|
-
|
|
2096
|
+
g(l[e.defaultFile.approvePersonList][0].status === "END" ? "已读" : "未读"),
|
|
2141
2097
|
1
|
|
2142
2098
|
/* TEXT */
|
|
2143
2099
|
)
|
|
2144
2100
|
])) : p("v-if", !0),
|
|
2145
2101
|
p(" 抄送多人时 "),
|
|
2146
|
-
((
|
|
2147
|
-
|
|
2148
|
-
|
|
2102
|
+
((T = l[e.defaultFile.approvePersonList]) == null ? void 0 : T.length) > 1 ? (a(), r("span", $6, [
|
|
2103
|
+
D(
|
|
2104
|
+
g(`已抄送${(A = l[e.defaultFile.approvePersonList]) == null ? void 0 : A.length}人`) + " ",
|
|
2149
2105
|
1
|
|
2150
2106
|
/* TEXT */
|
|
2151
2107
|
),
|
|
@@ -2154,7 +2110,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2154
2110
|
l[e.defaultFile.read] ? (a(), r(
|
|
2155
2111
|
"span",
|
|
2156
2112
|
T6,
|
|
2157
|
-
|
|
2113
|
+
g(l[e.defaultFile.read]) + "人已读 ",
|
|
2158
2114
|
1
|
|
2159
2115
|
/* TEXT */
|
|
2160
2116
|
)) : p("v-if", !0)
|
|
@@ -2168,7 +2124,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2168
2124
|
l[e.defaultFile.nodeType] != e.nodeType.抄送节点 && l[e.defaultFile.approveStatus] !== e.statusOption.等待 ? (a(), r(
|
|
2169
2125
|
"span",
|
|
2170
2126
|
D6,
|
|
2171
|
-
|
|
2127
|
+
g(F(_e).toDateTime(
|
|
2172
2128
|
l[e.defaultFile.operationTime],
|
|
2173
2129
|
"MM/DD HH:mm"
|
|
2174
2130
|
)),
|
|
@@ -2176,14 +2132,14 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2176
2132
|
/* TEXT */
|
|
2177
2133
|
)) : p("v-if", !0),
|
|
2178
2134
|
p(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
|
|
2179
|
-
l[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((
|
|
2135
|
+
l[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((j = l[e.defaultFile.approvePersonList]) == null ? void 0 : j.length) > 1 ? (a(), r("span", E6, [
|
|
2180
2136
|
l != null && l.show ? (a(), r("i", {
|
|
2181
2137
|
key: 0,
|
|
2182
2138
|
class: "ikapprove ikapprove-a-putongjiantouzhankai",
|
|
2183
|
-
onClick: (
|
|
2139
|
+
onClick: (m) => y(l, "grid")
|
|
2184
2140
|
}, null, 8, R6)) : (a(), r("i", {
|
|
2185
2141
|
key: 1,
|
|
2186
|
-
onClick: (
|
|
2142
|
+
onClick: (m) => y(l, "none"),
|
|
2187
2143
|
class: "ikapprove ikapprove-a-putongjiantoushouqi"
|
|
2188
2144
|
}, null, 8, A6))
|
|
2189
2145
|
])) : p("v-if", !0)
|
|
@@ -2195,8 +2151,8 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2195
2151
|
"div",
|
|
2196
2152
|
{
|
|
2197
2153
|
class: "bottomBlock",
|
|
2198
|
-
style:
|
|
2199
|
-
borderLeft:
|
|
2154
|
+
style: S({
|
|
2155
|
+
borderLeft: k == e.listData.length - 1 ? "" : `2px ${l[e.defaultFile.lineType] || "dashed"} var(--el-border-color)`
|
|
2200
2156
|
})
|
|
2201
2157
|
},
|
|
2202
2158
|
[
|
|
@@ -2205,19 +2161,19 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2205
2161
|
l[e.defaultFile.approveOpinion] ? (a(), r(
|
|
2206
2162
|
"span",
|
|
2207
2163
|
M6,
|
|
2208
|
-
|
|
2164
|
+
g(l[e.defaultFile.approveOpinion]),
|
|
2209
2165
|
1
|
|
2210
2166
|
/* TEXT */
|
|
2211
2167
|
)) : p("v-if", !0),
|
|
2212
2168
|
l[e.defaultFile.approveStatus] == e.statusOption.加签 ? (a(), r("span", P6, [
|
|
2213
2169
|
N6,
|
|
2214
2170
|
(a(!0), r(
|
|
2215
|
-
|
|
2171
|
+
b,
|
|
2216
2172
|
null,
|
|
2217
|
-
|
|
2173
|
+
V(l[e.defaultFile.countersignPer], (m, W) => (a(), r(
|
|
2218
2174
|
"span",
|
|
2219
2175
|
H6,
|
|
2220
|
-
m
|
|
2176
|
+
g(m == null ? void 0 : m.userName) + g(W < l[e.defaultFile.countersignPer].length - 1 ? "、" : ""),
|
|
2221
2177
|
1
|
|
2222
2178
|
/* TEXT */
|
|
2223
2179
|
))),
|
|
@@ -2227,7 +2183,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2227
2183
|
])) : p("v-if", !0)
|
|
2228
2184
|
])) : p("v-if", !0),
|
|
2229
2185
|
p(" 附件 "),
|
|
2230
|
-
(X = l[e.defaultFile.attachment]) != null && X.length ? (a(),
|
|
2186
|
+
(X = l[e.defaultFile.attachment]) != null && X.length ? (a(), R(F(T3), {
|
|
2231
2187
|
key: 1,
|
|
2232
2188
|
"kk-url": o.kkUrl,
|
|
2233
2189
|
"load-url": o.fileUrl,
|
|
@@ -2239,19 +2195,19 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2239
2195
|
p(" 附件图片 "),
|
|
2240
2196
|
(J = l[e.defaultFile.attachmentImg]) != null && J.length ? (a(), r("div", L6, [
|
|
2241
2197
|
(a(!0), r(
|
|
2242
|
-
|
|
2198
|
+
b,
|
|
2243
2199
|
null,
|
|
2244
|
-
|
|
2200
|
+
V(l[e.defaultFile.attachmentImg], (m, W) => (a(), r("div", {
|
|
2245
2201
|
class: "image",
|
|
2246
|
-
key:
|
|
2202
|
+
key: W
|
|
2247
2203
|
}, [
|
|
2248
|
-
|
|
2249
|
-
src:
|
|
2250
|
-
"preview-src-list": l[e.defaultFile.attachmentImg].map((ae) =>
|
|
2204
|
+
z(v, {
|
|
2205
|
+
src: _(m),
|
|
2206
|
+
"preview-src-list": l[e.defaultFile.attachmentImg].map((ae) => _(ae)),
|
|
2251
2207
|
fit: "cover",
|
|
2252
2208
|
"z-index": "9999",
|
|
2253
2209
|
"zoom-rate": 1.2,
|
|
2254
|
-
alt:
|
|
2210
|
+
alt: _(m)
|
|
2255
2211
|
}, null, 8, ["src", "preview-src-list", "alt"])
|
|
2256
2212
|
]))),
|
|
2257
2213
|
128
|
|
@@ -2261,31 +2217,31 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2261
2217
|
p(" 抄送节点或是等待审批状态并且列表长度大于1 "),
|
|
2262
2218
|
(l[e.defaultFile.nodeType] == e.nodeType.抄送节点 || l[e.defaultFile.approveStatus] == e.statusOption.等待) && ((Z = l[e.defaultFile.approvePersonList]) == null ? void 0 : Z.length) > 1 ? (a(), r("div", q6, [
|
|
2263
2219
|
(a(!0), r(
|
|
2264
|
-
|
|
2220
|
+
b,
|
|
2265
2221
|
null,
|
|
2266
|
-
|
|
2222
|
+
V(l[e.defaultFile.approvePersonList], (m) => (a(), r("div", {
|
|
2267
2223
|
class: "perBlock",
|
|
2268
|
-
key:
|
|
2224
|
+
key: m.userName
|
|
2269
2225
|
}, [
|
|
2270
2226
|
d("span", U6, [
|
|
2271
|
-
|
|
2227
|
+
m.userAvatar ? (a(), r("img", {
|
|
2272
2228
|
key: 0,
|
|
2273
2229
|
style: { width: "100%", height: "100%", "border-radius": "50%" },
|
|
2274
|
-
src:
|
|
2230
|
+
src: _(m.userAvatar),
|
|
2275
2231
|
alt: ""
|
|
2276
2232
|
}, null, 8, j6)) : (a(), r(
|
|
2277
2233
|
"span",
|
|
2278
2234
|
W6,
|
|
2279
|
-
m
|
|
2235
|
+
g(m.userName.slice(-2)),
|
|
2280
2236
|
1
|
|
2281
2237
|
/* TEXT */
|
|
2282
2238
|
)),
|
|
2283
|
-
|
|
2239
|
+
m.status === "END" ? (a(), r("i", K6)) : p("v-if", !0)
|
|
2284
2240
|
]),
|
|
2285
2241
|
d("div", {
|
|
2286
2242
|
class: "main-text",
|
|
2287
|
-
title:
|
|
2288
|
-
}, m
|
|
2243
|
+
title: m.userName
|
|
2244
|
+
}, g(m.userName), 9, G6)
|
|
2289
2245
|
]))),
|
|
2290
2246
|
128
|
|
2291
2247
|
/* KEYED_FRAGMENT */
|
|
@@ -2297,18 +2253,18 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2297
2253
|
),
|
|
2298
2254
|
l[e.defaultFile.nodeType] === e.nodeType.并行分支 ? (a(), r("div", Y6, [
|
|
2299
2255
|
(a(!0), r(
|
|
2300
|
-
|
|
2256
|
+
b,
|
|
2301
2257
|
null,
|
|
2302
|
-
|
|
2258
|
+
V(l[e.defaultFile.parallelInstances], (m) => (a(), r("div", X6, [
|
|
2303
2259
|
d(
|
|
2304
2260
|
"div",
|
|
2305
2261
|
J6,
|
|
2306
|
-
m
|
|
2262
|
+
g(m.name),
|
|
2307
2263
|
1
|
|
2308
2264
|
/* TEXT */
|
|
2309
2265
|
),
|
|
2310
|
-
|
|
2311
|
-
"data-list": (
|
|
2266
|
+
z(h, ie({ ref_for: !0 }, n, {
|
|
2267
|
+
"data-list": (m == null ? void 0 : m.processInstanceNodes) || []
|
|
2312
2268
|
}), null, 16, ["data-list"])
|
|
2313
2269
|
]))),
|
|
2314
2270
|
256
|
|
@@ -2324,7 +2280,7 @@ const t6 = /* @__PURE__ */ U(e6, [["__scopeId", "data-v-ea0a8f6d"]]), o6 = R(t6)
|
|
|
2324
2280
|
};
|
|
2325
2281
|
}
|
|
2326
2282
|
});
|
|
2327
|
-
const et = /* @__PURE__ */ U(Q6, [["__scopeId", "data-v-fbe9e6ef"]]), nt =
|
|
2283
|
+
const et = /* @__PURE__ */ U(Q6, [["__scopeId", "data-v-fbe9e6ef"]]), nt = N(et);
|
|
2328
2284
|
export {
|
|
2329
2285
|
nt as IKApprovalProcessDetail,
|
|
2330
2286
|
nt as default
|