@das-fed/ui 6.4.0-dev.39 → 6.4.0-dev.40

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.
@@ -0,0 +1,6 @@
1
+ declare const _default: {
2
+ 'dasui-process-configuration-key1': {
3
+ 'zh-CN': string;
4
+ };
5
+ };
6
+ export default _default;
@@ -1,19 +1,19 @@
1
1
  import '@das-fed/ui/packages/business-components/process-configuration/style.css';
2
2
  import { withInstall as pe } from "@das-fed/utils/with-install/index";
3
- import { ref as i, watch as H, defineComponent as me, computed as M, onUnmounted as ve, onDeactivated as ye, openBlock as B, createElementBlock as U, Fragment as ge, createElementVNode as u, createVNode as o, unref as e, withCtx as s, createTextVNode as v, toDisplayString as c, createCommentVNode as $, isRef as W, withDirectives as be } from "vue";
3
+ import { ref as i, watch as H, defineComponent as me, computed as M, onUnmounted as ve, onDeactivated as ye, openBlock as q, createElementBlock as B, Fragment as ge, createElementVNode as u, createVNode as o, unref as e, withCtx as s, createTextVNode as v, toDisplayString as c, createCommentVNode as U, isRef as W, withDirectives as be } from "vue";
4
4
  import { DasTable as De, DasTableColumn as T } from "@das-fed/ui/packages/components/table/index";
5
5
  import { DasDialog as O } from "@das-fed/ui/packages/components/dialog/index";
6
- import { DasButton as K } from "@das-fed/ui/packages/components/button/index";
6
+ import { DasButton as k } from "@das-fed/ui/packages/components/button/index";
7
7
  import { DasMessage as z } from "@das-fed/ui/packages/components/message/index";
8
- import { DasForm as we } from "@das-fed/ui/packages/components/form/index";
8
+ import { DasForm as Ce } from "@das-fed/ui/packages/components/form/index";
9
9
  import { DasFormItem as P } from "@das-fed/ui/packages/components/form-item/index";
10
10
  import { DasSpin as G } from "@das-fed/ui/packages/components/spin/index";
11
- import { vOverlay as Ce } from "@das-fed/ui/packages/components/overlay/index";
12
- import { t as a } from "@das-fed/web/packages/i18n/index";
11
+ import { vOverlay as we } from "@das-fed/ui/packages/components/overlay/index";
12
+ import { t as a, setI18nRule as xe } from "@das-fed/web/packages/i18n/index";
13
13
  import { getProjectInfo as y } from "@das-fed/utils/common-info/index";
14
14
  import { createService as Q } from "@das-fed/utils/api-services/src/create-service";
15
- const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/instance/${X}`), Ie = A.post("/listJson"), Ve = A.post("/saveCopy"), Ke = xe.get("/getInstanceCountByDefKeys"), ke = A.delete("/removeByDefIds"), _e = (p) => {
16
- const m = y().id ? y().id : "371344636432453", n = y().name ? y().name : a("AIoT项目"), r = i(!1), g = i(!1), k = i({
15
+ const X = "v1", A = Q(`/workflow/flow/def/${X}`), Ie = Q(`/workflow/runtime/instance/${X}`), Ve = A.post("/listJson"), ke = A.post("/saveCopy"), Ke = Ie.get("/getInstanceCountByDefKeys"), _e = A.delete("/removeByDefIds"), he = (p) => {
16
+ const m = y().id ? y().id : "371344636432453", n = y().name ? y().name : a("AIoT项目"), r = i(!1), g = i(!1), K = i({
17
17
  defId: "",
18
18
  // 流程id
19
19
  defKey: "",
@@ -37,7 +37,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
37
37
  });
38
38
  return {
39
39
  copyDialogShow: g,
40
- copyFormData: k,
40
+ copyFormData: K,
41
41
  detailFormData: I,
42
42
  rules: D,
43
43
  copyDialogLoading: r,
@@ -46,10 +46,10 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
46
46
  (f = p.value) == null || f.validate(async (b) => {
47
47
  if (b) {
48
48
  r.value = !0;
49
- const [C, h] = await Ve(k.value, {
49
+ const [w, h] = await ke(K.value, {
50
50
  params: { destinationProject: m, project: m }
51
51
  }).run();
52
- if (C) {
52
+ if (w) {
53
53
  r.value = !1, z.error(h.message);
54
54
  return;
55
55
  }
@@ -58,36 +58,36 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
58
58
  }), H(
59
59
  () => g.value,
60
60
  (b) => {
61
- var C;
62
- b || (C = p.value) == null || C.resetField();
61
+ var w;
62
+ b || (w = p.value) == null || w.resetField();
63
63
  }
64
64
  );
65
65
  },
66
66
  cancelCopy: async () => g.value = !1
67
67
  };
68
- }, he = () => {
68
+ }, Se = () => {
69
69
  const p = y().id ? y().id : "371344636432453", m = i(!1), n = i([]);
70
70
  return { deleteDialogShow: m, instanceCount: n, reqCount: async (I) => {
71
71
  const D = {
72
72
  defKeys: I,
73
73
  projectId: p
74
- }, [w, _] = await Ke(D).run();
74
+ }, [C, _] = await Ke(D).run();
75
75
  n.value = _;
76
76
  }, deleteDefItem: async (I) => {
77
77
  const D = {
78
78
  cascade: !0,
79
79
  ids: I,
80
80
  project: p
81
- }, [w, _] = await ke(D).run();
82
- w || (m.value = !1, z.success("删除成功"));
81
+ }, [C, _] = await _e(D).run();
82
+ C || (m.value = !1, z.success("删除成功"));
83
83
  }, cancelDelete: () => m.value = !1 };
84
- }, Se = { class: "das-process-configuration" }, Te = { class: "table-box" }, Ne = { class: "table-top" }, Re = { class: "operate" }, Fe = { class: "table-content" }, Le = { class: "form-content" }, je = { class: "delete-dialog" }, qe = { class: "delete-text" }, Be = { class: "delete-info-box" }, Ue = {
84
+ }, Te = { class: "das-process-configuration" }, Ne = { class: "table-box" }, Re = { class: "table-top" }, $e = { class: "operate" }, Fe = { class: "table-content" }, Le = { class: "form-content" }, je = { class: "delete-dialog" }, qe = { class: "delete-text" }, Be = { class: "delete-info-box" }, Ue = {
85
85
  key: 0,
86
86
  class: "delete-info-text"
87
- }, $e = {
87
+ }, Pe = {
88
88
  key: 1,
89
89
  class: "delete-info-text"
90
- }, Pe = /* @__PURE__ */ me({
90
+ }, ze = /* @__PURE__ */ me({
91
91
  __name: "index",
92
92
  props: {
93
93
  modelValue: { type: Boolean, default: !1 },
@@ -98,9 +98,9 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
98
98
  },
99
99
  emits: ["update:modelValue", "processInfo", "cancelDialog"],
100
100
  setup(p, { emit: m }) {
101
- const n = p, r = m, g = M(() => n.title || a("选择流程")), k = window.location.origin, I = y().id ? y().id : "371344636432453";
101
+ const n = p, r = m, g = M(() => n.title || a("选择流程")), K = window.location.origin, I = y().id ? y().id : "371344636432453";
102
102
  y().name ? y().name : a("AIoT项目");
103
- const D = i(""), w = i(""), _ = i(), N = M(() => n.modelValue ? n.modelValue : !1), f = i([]), b = i(!1), C = i(0), { copyDialogShow: h, copyFormData: x, detailFormData: V, rules: Y, saveCopyProcess: Z, cancelCopy: ee, copyDialogLoading: te } = _e(_), { deleteDialogShow: R, instanceCount: F, reqCount: ae, deleteDefItem: le, cancelDelete: oe } = he(), ne = i([
103
+ const D = i(""), C = i(""), _ = i(), N = M(() => n.modelValue ? n.modelValue : !1), f = i([]), b = i(!1), w = i(0), { copyDialogShow: h, copyFormData: x, detailFormData: V, rules: Y, saveCopyProcess: Z, cancelCopy: ee, copyDialogLoading: te } = he(_), { deleteDialogShow: R, instanceCount: $, reqCount: ae, deleteDefItem: le, cancelDelete: oe } = Se(), ne = i([
104
104
  {
105
105
  label: a("编辑"),
106
106
  value: "edit"
@@ -127,34 +127,34 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
127
127
  ]), ie = (d) => {
128
128
  const t = se.value.find((l) => l.value === d);
129
129
  return t == null ? void 0 : t.text;
130
- }, S = i(n.defKey), L = i(), de = (d, t, l) => {
131
- L.value = t;
130
+ }, S = i(n.defKey), F = i(), de = (d, t, l) => {
131
+ F.value = t;
132
132
  }, E = async (d, t) => {
133
133
  if (d === "edit") {
134
134
  const l = JSON.stringify(t);
135
- window.open(`${k}/mvue/flowDesign?business=${n.bussinessName}&operate=edit&detail=${l}`);
135
+ window.open(`${K}/mvue/flowDesign?business=${n.bussinessName}&operate=edit&detail=${l}`);
136
136
  }
137
- d === "copy" && (h.value = !0, x.value.defId = t.defId, x.value.typeId = t.typeId, x.value.defKey = "", x.value.name = "", V.value.defId = t.defId, V.value.defKey = t.defKey, V.value.name = t.name), d === "delete" && (D.value = t.id, w.value = t.name, await ae(t.defKey), R.value = !0);
138
- }, j = async () => {
139
- C.value++, C.value === 1 && (b.value = !0);
137
+ d === "copy" && (h.value = !0, x.value.defId = t.defId, x.value.typeId = t.typeId, x.value.defKey = "", x.value.name = "", V.value.defId = t.defId, V.value.defKey = t.defKey, V.value.name = t.name), d === "delete" && (D.value = t.id, C.value = t.name, await ae(t.defKey), R.value = !0);
138
+ }, L = async () => {
139
+ w.value++, w.value === 1 && (b.value = !0);
140
140
  const d = {
141
141
  pageBean: { page: 1, pageSize: 1e4, total: 2 },
142
142
  sorter: [{ property: "createTime", direction: "DESC" }],
143
143
  querys: [
144
144
  { group: "main", operation: "IN", property: "businessTypeId", relation: "AND", value: n.bussinessName }
145
145
  ]
146
- }, [t, l] = await Ie(d, { params: { project: I } }).run();
146
+ }, [t, l] = await Ve(d, { params: { project: I } }).run();
147
147
  if (t) {
148
148
  b.value = !1;
149
149
  return;
150
150
  }
151
151
  b.value = !1, f.value = l.rows;
152
152
  }, re = () => {
153
- window.open(`${k}/mvue/flowDesign?business=${n.bussinessName}&operate=add`);
153
+ window.open(`${K}/mvue/flowDesign?business=${n.bussinessName}&operate=add`);
154
154
  }, ue = async () => {
155
- await Z(j);
155
+ await Z(L);
156
156
  }, ce = async () => {
157
- await le(D.value), await j();
157
+ await le(D.value), await L();
158
158
  }, J = () => {
159
159
  f.value.map((t) => t.defKey).includes(n.defKey) ? r("cancelDialog", !1) : r("cancelDialog", !0), r("update:modelValue", !1);
160
160
  }, fe = () => {
@@ -162,25 +162,25 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
162
162
  z.warning(a("请选择流程"));
163
163
  return;
164
164
  }
165
- r("processInfo", L.value), r("update:modelValue", !1);
165
+ r("processInfo", F.value), r("update:modelValue", !1);
166
166
  };
167
- let q = i(0);
167
+ let j = i(0);
168
168
  return H(
169
169
  () => n.modelValue,
170
170
  async (d, t) => {
171
- d && (await j(), f.value.length > 0 && (n.defKey ? (S.value = n.defKey, L.value = f.value.find((l) => l.defKey === n.defKey)) : (S.value = f.value[0].defKey, L.value = f.value[0])), q.value = window.setInterval(() => {
172
- j();
173
- }, 1500)), d || (C.value = 0, window.clearInterval(q.value));
171
+ d && (await L(), f.value.length > 0 && (n.defKey ? (S.value = n.defKey, F.value = f.value.find((l) => l.defKey === n.defKey)) : (S.value = f.value[0].defKey, F.value = f.value[0])), j.value = window.setInterval(() => {
172
+ L();
173
+ }, 1500)), d || (w.value = 0, window.clearInterval(j.value));
174
174
  }
175
175
  ), ve(() => {
176
- window.clearInterval(q.value);
176
+ window.clearInterval(j.value);
177
177
  }), ye(() => {
178
- window.clearInterval(q.value);
179
- }), (d, t) => (B(), U(
178
+ window.clearInterval(j.value);
179
+ }), (d, t) => (q(), B(
180
180
  ge,
181
181
  null,
182
182
  [
183
- u("div", Se, [
183
+ u("div", Te, [
184
184
  o(e(O), {
185
185
  modelValue: N.value,
186
186
  "onUpdate:modelValue": t[2] || (t[2] = (l) => N.value = l),
@@ -193,7 +193,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
193
193
  }, {
194
194
  footer: s(() => [
195
195
  u("div", null, [
196
- o(e(K), { onClick: J }, {
196
+ o(e(k), { onClick: J }, {
197
197
  default: s(() => [
198
198
  v(
199
199
  c(e(a)("取消")),
@@ -204,7 +204,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
204
204
  _: 1
205
205
  /* STABLE */
206
206
  }),
207
- o(e(K), {
207
+ o(e(k), {
208
208
  btnType: "primary",
209
209
  style: { "margin-left": "12px" },
210
210
  onClick: fe
@@ -224,10 +224,10 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
224
224
  default: s(() => [
225
225
  o(e(G), { spinning: b.value }, {
226
226
  default: s(() => [
227
- u("div", Te, [
228
- u("div", Ne, [
229
- u("div", Re, [
230
- o(e(K), {
227
+ u("div", Ne, [
228
+ u("div", Re, [
229
+ u("div", $e, [
230
+ o(e(k), {
231
231
  btnType: "primary-text",
232
232
  size: "large",
233
233
  block: "",
@@ -280,7 +280,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
280
280
  label: e(a)("状态"),
281
281
  prop: "status"
282
282
  }, {
283
- default: s(({ row: l, $index: Ae }) => [
283
+ default: s(({ row: l, $index: Je }) => [
284
284
  v(
285
285
  c(ie(l.status)),
286
286
  1
@@ -309,7 +309,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
309
309
  /* STABLE */
310
310
  }, 8, ["modelValue", "loading", "title"])
311
311
  ]),
312
- $(" 复制弹窗 "),
312
+ U(" 复制弹窗 "),
313
313
  o(e(O), {
314
314
  modelValue: e(h),
315
315
  "onUpdate:modelValue": t[7] || (t[7] = (l) => W(h) ? h.value = l : null),
@@ -319,7 +319,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
319
319
  }, {
320
320
  footer: s(() => [
321
321
  u("div", null, [
322
- o(e(K), { onClick: e(ee) }, {
322
+ o(e(k), { onClick: e(ee) }, {
323
323
  default: s(() => [
324
324
  v(
325
325
  c(e(a)("取消")),
@@ -330,7 +330,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
330
330
  _: 1
331
331
  /* STABLE */
332
332
  }, 8, ["onClick"]),
333
- o(e(K), {
333
+ o(e(k), {
334
334
  btnType: "primary",
335
335
  style: { "margin-left": "12px" },
336
336
  onClick: ue
@@ -351,7 +351,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
351
351
  o(e(G), { spinning: e(te) }, {
352
352
  default: s(() => [
353
353
  u("div", Le, [
354
- o(e(we), {
354
+ o(e(Ce), {
355
355
  alignType: "horizontal",
356
356
  contentWidth: "230",
357
357
  marginBottom: "30px",
@@ -406,7 +406,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
406
406
  _: 1
407
407
  /* STABLE */
408
408
  }, 8, ["modelValue", "title"]),
409
- $(" 删除弹窗 "),
409
+ U(" 删除弹窗 "),
410
410
  u("div", je, [
411
411
  o(e(O), {
412
412
  modelValue: e(R),
@@ -417,7 +417,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
417
417
  }, {
418
418
  footer: s(() => [
419
419
  u("div", null, [
420
- o(e(K), { onClick: e(oe) }, {
420
+ o(e(k), { onClick: e(oe) }, {
421
421
  default: s(() => [
422
422
  v(
423
423
  c(e(a)("取消")),
@@ -428,7 +428,7 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
428
428
  _: 1
429
429
  /* STABLE */
430
430
  }, 8, ["onClick"]),
431
- o(e(K), {
431
+ o(e(k), {
432
432
  btnType: "primary",
433
433
  style: { "margin-left": "12px" },
434
434
  onClick: ce
@@ -472,28 +472,28 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
472
472
  -1
473
473
  /* HOISTED */
474
474
  )),
475
- be((B(), U("div", Be, [
476
- e(F).length === 0 ? (B(), U(
475
+ be((q(), B("div", Be, [
476
+ e($).length === 0 ? (q(), B(
477
477
  "div",
478
478
  Ue,
479
- c(e(a)("dasui-process-configuration-key1", w.value, 0, 0)),
479
+ c(e(a)("dasui-process-configuration-key1", C.value, 0, 0)),
480
480
  1
481
481
  /* TEXT */
482
- )) : $("v-if", !0),
483
- e(F).length > 0 ? (B(), U(
482
+ )) : U("v-if", !0),
483
+ e($).length > 0 ? (q(), B(
484
484
  "div",
485
- $e,
485
+ Pe,
486
486
  c(e(a)(
487
487
  "dasui-process-configuration-key1",
488
- w.value,
489
- e(F)[0].totalCount,
490
- e(F)[0].runningCount
488
+ C.value,
489
+ e($)[0].totalCount,
490
+ e($)[0].runningCount
491
491
  )),
492
492
  1
493
493
  /* TEXT */
494
- )) : $("v-if", !0)
494
+ )) : U("v-if", !0)
495
495
  ])), [
496
- [e(Ce)]
496
+ [e(we)]
497
497
  ])
498
498
  ]),
499
499
  _: 1
@@ -505,13 +505,17 @@ const X = "v1", A = Q(`/workflow/flow/def/${X}`), xe = Q(`/workflow/runtime/inst
505
505
  /* STABLE_FRAGMENT */
506
506
  ));
507
507
  }
508
- }), ze = (p, m) => {
508
+ }), Oe = (p, m) => {
509
509
  const n = p.__vccOpts || p;
510
510
  for (const [r, g] of m)
511
511
  n[r] = g;
512
512
  return n;
513
- }, Oe = /* @__PURE__ */ ze(Pe, [["__scopeId", "data-v-db81dcd7"]]), lt = pe(Oe);
513
+ }, Ae = /* @__PURE__ */ Oe(ze, [["__scopeId", "data-v-db81dcd7"]]), Ee = {
514
+ "dasui-process-configuration-key1": { "zh-CN": "$0(共有实例:$1个,其中运行中的实例:$2个)" }
515
+ };
516
+ xe(Ee);
517
+ const nt = pe(Ae);
514
518
  export {
515
- lt as DasProcessConfiguration,
516
- lt as default
519
+ nt as DasProcessConfiguration,
520
+ nt as default
517
521
  };
@@ -0,0 +1,12 @@
1
+ declare const _default: {
2
+ 'dasui-richeditor-key1': {
3
+ 'zh-CN': string;
4
+ };
5
+ 'dasui-richeditor-key2': {
6
+ 'zh-CN': string;
7
+ };
8
+ 'dasui-richeditor-key3': {
9
+ 'zh-CN': string;
10
+ };
11
+ };
12
+ export default _default;