iking-web-ui-pro 0.2.13 → 0.2.15

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.
@@ -1,4 +1,4 @@
1
- import { defineComponent as E, computed as $, openBlock as l, createElementBlock as a, createElementVNode as u, inject as P, ref as H, resolveComponent as N, Fragment as C, renderList as A, normalizeStyle as I, toDisplayString as m, normalizeClass as O, createVNode as T, unref as k, withModifiers as oe, renderSlot as L, createBlock as D, withCtx as R, createCommentVNode as f, mergeModels as ie, useModel as le, reactive as ae, watch as re, nextTick as G, createTextVNode as V, h as pe, mergeProps as ce, createSlots as ve, onMounted as fe, pushScopeId as he, popScopeId as ge } from "vue";
1
+ import { inject as P, computed as $, defineComponent as E, openBlock as l, createElementBlock as a, createElementVNode as u, ref as H, resolveComponent as M, Fragment as C, renderList as A, normalizeStyle as I, toDisplayString as m, normalizeClass as O, createVNode as T, unref as k, withModifiers as oe, renderSlot as L, createBlock as D, withCtx as R, createCommentVNode as f, mergeModels as ie, useModel as le, reactive as ae, watch as re, nextTick as G, createTextVNode as N, h as pe, mergeProps as ce, createSlots as ve, onMounted as fe, pushScopeId as he, popScopeId as ge } from "vue";
2
2
  import { paramType as ye, ikFile as _e, buildUUID as me, ikColor as we, ikDate as ke } from "iking-utils-pro";
3
3
  const q = (o, n) => {
4
4
  if (o.install = (s) => {
@@ -32,6 +32,10 @@ const q = (o, n) => {
32
32
  // id
33
33
  parallelInstances: "parallelInstances",
34
34
  // 并行分支
35
+ backToInstanceNodeName: "backToInstanceNodeName",
36
+ // 回退节点名称
37
+ backToRecordNodeName: "backToRecordNodeName",
38
+ // 回退记录节点名称 - old
35
39
  nodeId: "sortOrder",
36
40
  // 排序值
37
41
  nodeType: "type",
@@ -119,6 +123,15 @@ const q = (o, n) => {
119
123
  t = "ikapprove-ziyuan";
120
124
  }
121
125
  return `ikapprove ${t}`;
126
+ }, de = (o) => {
127
+ const n = P("loadUrl"), s = $(() => o.loadUrl || o.fileUrl || (n == null ? void 0 : n.value)), t = P("uploadUrl"), e = $(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), r = P("token"), c = $(() => o.token || (r == null ? void 0 : r.value)), g = P("onlyofficeConfig"), y = $(() => o.onlyofficeConfig || (g == null ? void 0 : g.value)), d = P("userInfo"), v = $(() => o.userInfo || (d == null ? void 0 : d.value));
128
+ return {
129
+ cLoadUrl: s,
130
+ cUploadUrl: e,
131
+ cToken: c,
132
+ cOnlyofficeConfig: y,
133
+ cUserInfo: v
134
+ };
122
135
  }, Se = (o, n = 2) => {
123
136
  if (o === void 0)
124
137
  return "";
@@ -328,7 +341,7 @@ const q = (o, n) => {
328
341
  ), Ae = [
329
342
  Re,
330
343
  De
331
- ], Ve = {
344
+ ], Ne = {
332
345
  key: 2,
333
346
  t: "1686300141125",
334
347
  class: "icon",
@@ -338,7 +351,7 @@ const q = (o, n) => {
338
351
  "p-id": "8137",
339
352
  width: "200",
340
353
  height: "200"
341
- }, Me = /* @__PURE__ */ u(
354
+ }, Ve = /* @__PURE__ */ u(
342
355
  "path",
343
356
  {
344
357
  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 m204.8 546.133333V443.733333h204.8v136.533334H409.6V546.133333z m0 102.4h204.8c40.96 0 68.266667-27.306667 68.266667-68.266666v-136.533334c0-40.96-27.306667-68.266667-68.266667-68.266666H409.6c-40.96 0-68.266667 27.306667-68.266667 68.266666V819.2c0 20.48 13.653333 34.133333 34.133334 34.133333s34.133333-13.653333 34.133333-34.133333V648.533333z",
@@ -348,7 +361,7 @@ const q = (o, n) => {
348
361
  null,
349
362
  -1
350
363
  /* HOISTED */
351
- ), Ne = /* @__PURE__ */ u(
364
+ ), Me = /* @__PURE__ */ u(
352
365
  "path",
353
366
  {
354
367
  d: "M682.666667 0l273.066666 273.066667h-204.8c-40.96 0-68.266667-27.306667-68.266666-68.266667V0z",
@@ -359,8 +372,8 @@ const q = (o, n) => {
359
372
  -1
360
373
  /* HOISTED */
361
374
  ), Pe = [
362
- Me,
363
- Ne
375
+ Ve,
376
+ Me
364
377
  ], Le = {
365
378
  key: 3,
366
379
  t: "1686300157181",
@@ -738,18 +751,9 @@ const q = (o, n) => {
738
751
  },
739
752
  setup(o) {
740
753
  const n = o, s = $(() => n.file ? Y(n.file, n.fields) : n.type);
741
- return (t, e) => s.value === "image" ? (l(), a("svg", $e, Ee)) : s.value === "zip" ? (l(), a("svg", Be, Ae)) : s.value === "ppt" ? (l(), a("svg", Ve, Pe)) : s.value === "word" ? (l(), a("svg", Le, Ue)) : s.value === "pdf" ? (l(), a("svg", je, Ge)) : s.value === "txt" ? (l(), a("svg", Ye, Ze)) : s.value === "audio" ? (l(), a("svg", Qe, o3)) : s.value === "video" ? (l(), a("svg", n3, l3)) : s.value === "excel" ? (l(), a("svg", a3, u3)) : s.value === "exe" ? (l(), a("svg", p3, y3)) : s.value === "json" ? (l(), a("svg", _3, F3)) : (l(), a("svg", x3, $3));
754
+ return (t, e) => s.value === "image" ? (l(), a("svg", $e, Ee)) : s.value === "zip" ? (l(), a("svg", Be, Ae)) : s.value === "ppt" ? (l(), a("svg", Ne, Pe)) : s.value === "word" ? (l(), a("svg", Le, Ue)) : s.value === "pdf" ? (l(), a("svg", je, Ge)) : s.value === "txt" ? (l(), a("svg", Ye, Ze)) : s.value === "audio" ? (l(), a("svg", Qe, o3)) : s.value === "video" ? (l(), a("svg", n3, l3)) : s.value === "excel" ? (l(), a("svg", a3, u3)) : s.value === "exe" ? (l(), a("svg", p3, y3)) : s.value === "json" ? (l(), a("svg", _3, F3)) : (l(), a("svg", x3, $3));
742
755
  }
743
- }), de = (o) => {
744
- const n = P("loadUrl"), s = $(() => o.loadUrl || o.fileUrl || (n == null ? void 0 : n.value)), t = P("uploadUrl"), e = $(() => o.action || o.uploadUrl || (t == null ? void 0 : t.value)), r = P("token"), c = $(() => o.token || (r == null ? void 0 : r.value)), g = P("onlyofficeConfig"), y = $(() => o.onlyofficeConfig || (g == null ? void 0 : g.value)), d = P("userInfo"), v = $(() => o.userInfo || (d == null ? void 0 : d.value));
745
- return {
746
- cLoadUrl: s,
747
- cUploadUrl: e,
748
- cToken: c,
749
- cOnlyofficeConfig: y,
750
- cUserInfo: v
751
- };
752
- }, I3 = ["onClick"], T3 = { class: "fileName simple" }, O3 = ["onClick"], E3 = { class: "text" }, B3 = { class: "fileName" }, R3 = { class: "size" }, D3 = /* @__PURE__ */ E({
756
+ }), I3 = ["onClick"], T3 = { class: "fileName simple" }, O3 = ["onClick"], E3 = { class: "text" }, B3 = { class: "fileName" }, R3 = { class: "size" }, D3 = /* @__PURE__ */ E({
753
757
  __name: "IkPreviewFile",
754
758
  props: {
755
759
  list: {
@@ -856,7 +860,7 @@ const q = (o, n) => {
856
860
  })));
857
861
  return (p, _) => {
858
862
  var i, b, z;
859
- const F = N("tmplate");
863
+ const F = M("tmplate");
860
864
  return l(), a(
861
865
  C,
862
866
  null,
@@ -886,13 +890,13 @@ const q = (o, n) => {
886
890
  class: O(["flex flex-center", { "hover-show": o.iconHoverShow }])
887
891
  },
888
892
  [
889
- T(k(M), {
893
+ T(k(V), {
890
894
  name: "iksvg_daochu",
891
895
  onClick: oe((S) => y(h), ["stop"]),
892
896
  size: 20,
893
897
  active: ""
894
898
  }, null, 8, ["onClick"]),
895
- T(k(M), {
899
+ T(k(V), {
896
900
  name: "iksvg_yulan",
897
901
  size: 20,
898
902
  active: ""
@@ -957,14 +961,14 @@ const q = (o, n) => {
957
961
  class: O(["flex flex-center", { "hover-show": o.iconHoverShow }])
958
962
  },
959
963
  [
960
- T(k(M), {
964
+ T(k(V), {
961
965
  name: "iksvg_daochu",
962
966
  onClick: oe((B) => y(h), ["stop"]),
963
967
  bg: o.showBg,
964
968
  size: o.showBg ? "default" : 20,
965
969
  title: "下载"
966
970
  }, null, 8, ["onClick", "bg", "size"]),
967
- T(k(M), {
971
+ T(k(V), {
968
972
  name: "iksvg_yulan",
969
973
  bg: o.showBg,
970
974
  size: o.showBg ? "default" : 20,
@@ -994,7 +998,7 @@ const q = (o, n) => {
994
998
  64
995
999
  /* STABLE_FRAGMENT */
996
1000
  )) : f("v-if", !0),
997
- T(k(M3), {
1001
+ T(k(V3), {
998
1002
  show: c.value,
999
1003
  "onUpdate:show": _[0] || (_[0] = (h) => c.value = h),
1000
1004
  loadUrl: k(s),
@@ -1010,7 +1014,7 @@ const q = (o, n) => {
1010
1014
  };
1011
1015
  }
1012
1016
  });
1013
- const A3 = q(D3), V3 = /* @__PURE__ */ E({
1017
+ const A3 = q(D3), N3 = /* @__PURE__ */ E({
1014
1018
  __name: "IkPreviewFileDialog",
1015
1019
  props: /* @__PURE__ */ ie({
1016
1020
  file: {
@@ -1069,7 +1073,7 @@ const A3 = q(D3), V3 = /* @__PURE__ */ E({
1069
1073
  c.image = !0;
1070
1074
  return;
1071
1075
  } else if (d && Y(d, t.value) === "video") {
1072
- c.video = !0, console.log("modal.video = true;", c.video);
1076
+ c.video = !0;
1073
1077
  return;
1074
1078
  } else if ((((_ = n.onlyOfficeConfig) == null ? void 0 : _.accept) || n.onlyOfficeAccept).includes(S)) {
1075
1079
  c.office = !0, e.value = {
@@ -1108,7 +1112,7 @@ const A3 = q(D3), V3 = /* @__PURE__ */ E({
1108
1112
  };
1109
1113
  return (d, v) => {
1110
1114
  var _, F;
1111
- const p = N("el-image-viewer");
1115
+ const p = M("el-image-viewer");
1112
1116
  return s.value ? (l(), a(
1113
1117
  C,
1114
1118
  { key: 0 },
@@ -1156,7 +1160,7 @@ const A3 = q(D3), V3 = /* @__PURE__ */ E({
1156
1160
  };
1157
1161
  }
1158
1162
  });
1159
- const M3 = q(V3), N3 = {
1163
+ const V3 = q(N3), M3 = {
1160
1164
  key: 0,
1161
1165
  class: "ik-svg-icon ik-icon-span inline-block inline-flex justify-center box-content line-height-[0]"
1162
1166
  }, P3 = {
@@ -1228,8 +1232,8 @@ const M3 = q(V3), N3 = {
1228
1232
  return t.value.width && (g.width = g.height = typeof t.value.width == "number" ? `${t.value.width}px` : t.value.width), g;
1229
1233
  });
1230
1234
  return (c, g) => {
1231
- const y = N("el-tooltip"), d = N("el-button");
1232
- return t.value.tableIconType === "icon" || !t.value.tableIconType ? (l(), a("span", N3, [
1235
+ const y = M("el-tooltip"), d = M("el-button");
1236
+ return t.value.tableIconType === "icon" || !t.value.tableIconType ? (l(), a("span", M3, [
1233
1237
  t.value.notip || !t.value.title ? (l(), a(
1234
1238
  "i",
1235
1239
  {
@@ -1349,7 +1353,7 @@ const M3 = q(V3), N3 = {
1349
1353
  type: ["warning", "error"].includes(t.value.type) ? "danger" : ""
1350
1354
  }, {
1351
1355
  default: R(() => [
1352
- V(
1356
+ N(
1353
1357
  m(t.value.title),
1354
1358
  1
1355
1359
  /* TEXT */
@@ -1361,7 +1365,7 @@ const M3 = q(V3), N3 = {
1361
1365
  };
1362
1366
  }
1363
1367
  });
1364
- const K3 = /* @__PURE__ */ W(W3, [["__scopeId", "data-v-76d7e119"]]), M = q(K3), G3 = {
1368
+ const K3 = /* @__PURE__ */ W(W3, [["__scopeId", "data-v-76d7e119"]]), V = q(K3), G3 = {
1365
1369
  key: 0,
1366
1370
  class: "exit-main-page-maximize"
1367
1371
  }, Y3 = /* @__PURE__ */ E({
@@ -1379,13 +1383,13 @@ const K3 = /* @__PURE__ */ W(W3, [["__scopeId", "data-v-76d7e119"]]), M = q(K3),
1379
1383
  setup(o) {
1380
1384
  return (n, s) => (l(), a("div", null, [
1381
1385
  o.showBg && o.fullscreen ? (l(), a("div", G3, [
1382
- T(k(M), {
1386
+ T(k(V), {
1383
1387
  name: "iksvg_guanbidanchuang",
1384
1388
  title: "关闭",
1385
1389
  size: 20,
1386
1390
  error: ""
1387
1391
  })
1388
- ])) : (l(), D(k(M), {
1392
+ ])) : (l(), D(k(V), {
1389
1393
  key: 1,
1390
1394
  error: "",
1391
1395
  name: "iksvg_guanbidanchuang",
@@ -1427,7 +1431,7 @@ const J3 = /* @__PURE__ */ W(Y3, [["__scopeId", "data-v-79f49df8"]]), X3 = { cla
1427
1431
  }
1428
1432
  });
1429
1433
  return (c, g) => {
1430
- const y = N("el-dialog");
1434
+ const y = M("el-dialog");
1431
1435
  return l(), D(y, ce({
1432
1436
  modelValue: s.value,
1433
1437
  "onUpdate:modelValue": g[0] || (g[0] = (d) => s.value = d)
@@ -1439,7 +1443,7 @@ const J3 = /* @__PURE__ */ W(Y3, [["__scopeId", "data-v-79f49df8"]]), X3 = { cla
1439
1443
  }), ve({
1440
1444
  icon: R(() => [
1441
1445
  L(c.$slots, "title", {}, () => [
1442
- V(
1446
+ N(
1443
1447
  m(c.title),
1444
1448
  1
1445
1449
  /* TEXT */
@@ -1449,14 +1453,14 @@ const J3 = /* @__PURE__ */ W(Y3, [["__scopeId", "data-v-79f49df8"]]), X3 = { cla
1449
1453
  header: R(() => [
1450
1454
  u("div", X3, [
1451
1455
  L(c.$slots, "header", {}, () => [
1452
- V(
1456
+ N(
1453
1457
  m(c.title),
1454
1458
  1
1455
1459
  /* TEXT */
1456
1460
  )
1457
1461
  ])
1458
1462
  ]),
1459
- c.$attrs.showClose ? (l(), D(k(M), {
1463
+ c.$attrs.showClose ? (l(), D(k(V), {
1460
1464
  key: 0,
1461
1465
  onClick: e,
1462
1466
  name: t.value ? "iksvg_tuichuquanping" : "iksvg_quanping-daohang",
@@ -1832,7 +1836,7 @@ const i6 = /* @__PURE__ */ E({
1832
1836
  ));
1833
1837
  }
1834
1838
  });
1835
- const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6), X = (o) => (he("data-v-586207eb"), o = o(), ge(), o), r6 = {
1839
+ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6), X = (o) => (he("data-v-e2d307c3"), o = o(), ge(), o), r6 = {
1836
1840
  class: "approveProcess",
1837
1841
  id: "approveProcess"
1838
1842
  }, c6 = ["id"], d6 = { class: "topBlock" }, u6 = { class: "left" }, p6 = { class: "nodeBg" }, v6 = ["src"], f6 = { class: "right" }, h6 = { class: "topInfo" }, g6 = { key: 0 }, y6 = {
@@ -1844,7 +1848,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
1844
1848
  class: "red",
1845
1849
  style: { margin: "0px 5px" }
1846
1850
  },
1847
- "退回至",
1851
+ " 退回至",
1848
1852
  -1
1849
1853
  /* HOISTED */
1850
1854
  )), x6 = { key: 0 }, S6 = { key: 0 }, b6 = { key: 1 }, z6 = { key: 1 }, $6 = /* @__PURE__ */ X(() => /* @__PURE__ */ u(
@@ -1868,7 +1872,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
1868
1872
  key: 1,
1869
1873
  class: "blue",
1870
1874
  style: { "font-size": "12px" }
1871
- }, V6 = { class: "time" }, M6 = { key: 0 }, N6 = { key: 1 }, P6 = ["onClick"], L6 = ["onClick"], H6 = {
1875
+ }, N6 = { class: "time" }, V6 = { key: 0 }, M6 = { key: 1 }, P6 = ["onClick"], L6 = ["onClick"], H6 = {
1872
1876
  key: 0,
1873
1877
  class: "opinion"
1874
1878
  }, q6 = { key: 0 }, U6 = { key: 1 }, j6 = /* @__PURE__ */ X(() => /* @__PURE__ */ u(
@@ -2026,7 +2030,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2026
2030
  i.style.display = p;
2027
2031
  }, d = (v) => j(t.value, v);
2028
2032
  return (v, p) => {
2029
- const _ = N("el-image"), F = N("IkingApprovalProcessDetail");
2033
+ const _ = M("el-image"), F = M("IkingApprovalProcessDetail");
2030
2034
  return l(), a("div", r6, [
2031
2035
  (l(!0), a(
2032
2036
  C,
@@ -2126,8 +2130,8 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2126
2130
  f(" 退回状态显示 "),
2127
2131
  i[e.defaultFile.approveStatus] == e.statusOption.退回 ? (l(), a("span", k6, [
2128
2132
  F6,
2129
- V(
2130
- m(i[e.defaultFile.backToRecordNodeName]),
2133
+ N(
2134
+ " " + m(i[e.defaultFile.backToInstanceNodeName] || i[e.defaultFile.backToRecordNodeName]),
2131
2135
  1
2132
2136
  /* TEXT */
2133
2137
  )
@@ -2139,7 +2143,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2139
2143
  f(" 待审批节点 "),
2140
2144
  u("div", null, [
2141
2145
  ((h = i[e.defaultFile.approvePersonList]) == null ? void 0 : h.length) == 1 ? (l(), a("span", x6, [
2142
- V(
2146
+ N(
2143
2147
  m(i[e.defaultFile.originator]) + " ",
2144
2148
  1
2145
2149
  /* TEXT */
@@ -2170,7 +2174,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2170
2174
  f(" 抄送一人时 "),
2171
2175
  ((S = i[e.defaultFile.approvePersonList]) == null ? void 0 : S.length) == 1 ? (l(), a("span", I6, [
2172
2176
  u("span", null, [
2173
- V("已抄送给 "),
2177
+ N("已抄送给 "),
2174
2178
  u(
2175
2179
  "span",
2176
2180
  T6,
@@ -2189,7 +2193,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2189
2193
  ])) : f("v-if", !0),
2190
2194
  f(" 抄送多人时 "),
2191
2195
  ((B = i[e.defaultFile.approvePersonList]) == null ? void 0 : B.length) > 1 ? (l(), a("span", E6, [
2192
- V(
2196
+ N(
2193
2197
  m(`已抄送${(U = i[e.defaultFile.approvePersonList]) == null ? void 0 : U.length}人`) + " ",
2194
2198
  1
2195
2199
  /* TEXT */
@@ -2208,11 +2212,11 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2208
2212
  ])
2209
2213
  ]))
2210
2214
  ]),
2211
- u("div", V6, [
2215
+ u("div", N6, [
2212
2216
  f(" 不是抄送节点,展示时间 "),
2213
2217
  i[e.defaultFile.nodeType] != e.nodeType.抄送节点 && i[e.defaultFile.approveStatus] !== e.statusOption.等待 ? (l(), a(
2214
2218
  "span",
2215
- M6,
2219
+ V6,
2216
2220
  m(k(ke).toDateTime(
2217
2221
  i[e.defaultFile.operationTime],
2218
2222
  "MM/DD HH:mm"
@@ -2221,7 +2225,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2221
2225
  /* TEXT */
2222
2226
  )) : f("v-if", !0),
2223
2227
  f(" 是抄送节点,并且抄送人员大于1时,展示图标 "),
2224
- i[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((Z = i[e.defaultFile.approvePersonList]) == null ? void 0 : Z.length) > 1 ? (l(), a("span", N6, [
2228
+ i[e.defaultFile.nodeType] == e.nodeType.抄送节点 && ((Z = i[e.defaultFile.approvePersonList]) == null ? void 0 : Z.length) > 1 ? (l(), a("span", M6, [
2225
2229
  i != null && i.show ? (l(), a("i", {
2226
2230
  key: 0,
2227
2231
  class: "ikapprove ikapprove-a-putongjiantouzhankai",
@@ -2364,7 +2368,7 @@ const l6 = /* @__PURE__ */ W(i6, [["__scopeId", "data-v-98d51ef9"]]), a6 = q(l6)
2364
2368
  };
2365
2369
  }
2366
2370
  });
2367
- const it = /* @__PURE__ */ W(st, [["__scopeId", "data-v-586207eb"]]), rt = q(it);
2371
+ const it = /* @__PURE__ */ W(st, [["__scopeId", "data-v-e2d307c3"]]), rt = q(it);
2368
2372
  export {
2369
2373
  rt as IKApprovalProcessDetail,
2370
2374
  rt as default