@das-fed/ui 7.1.0-dev.10 → 7.1.0-dev.12
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/package.json +5 -5
- package/packages/business-components/ai-panel/{index-DMJXZM7n.js → index-8yffh0Id.js} +1056 -1067
- package/packages/business-components/ai-panel/index-8yffh0Id.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-MqhMkLo9.js → index-IzGl26KU.js} +9 -9
- package/packages/business-components/ai-panel/index-IzGl26KU.js.gz +0 -0
- package/packages/business-components/ai-panel/{index-_q72oKSF.js → index-OwRrV6K8.js} +62 -63
- package/packages/business-components/ai-panel/index-OwRrV6K8.js.gz +0 -0
- package/packages/business-components/ai-panel/index.js +1 -1
- package/packages/business-components/device-panel/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +11286 -11344
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/render-panel.d.ts +2 -1
- package/packages/business-components/device-panel/style.css +1 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/echarts/index.js +2049 -2056
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +72 -74
- package/packages/business-components/layout-breadcrumb/index.js.gz +0 -0
- package/packages/business-components/process-configuration/index.js +46 -46
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-form/index.js +99 -99
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +77 -77
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +213 -215
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1096 -1104
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/user-org-dialog/index.js +240 -243
- package/packages/business-components/user-org-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/index.js +294 -294
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/type.d.ts +2 -0
- package/packages/business-components/video-dialog/style.css +1 -1
- package/packages/business-components/video-dialog/style.css.gz +0 -0
- package/packages/components/autocomplete/index.js +6 -12
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/calendar/index.js +99 -99
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.js +2 -2
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.js +30 -30
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.js +64 -39
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-panel/style.css +1 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/date-picker/index.js +212 -212
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.d.ts +3 -0
- package/packages/components/dialog/index.js +64 -65
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +2 -0
- package/packages/components/dialog/src/type.d.ts +2 -0
- package/packages/components/dialog/style.css +1 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/dimple-layout/index.js +75 -77
- package/packages/components/dimple-layout/index.js.gz +0 -0
- package/packages/components/dropdown/index.js +24 -25
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +397 -398
- package/packages/components/edit-table/index.js.gz +0 -0
- package/packages/components/error-overlay-model/index.js +45 -47
- package/packages/components/error-overlay-model/index.js.gz +0 -0
- package/packages/components/form-item/index.js +67 -67
- package/packages/components/form-item/index.js.gz +0 -0
- package/packages/components/hls-player/index.js +7 -14
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/image-upload/index.js +143 -147
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.js +293 -297
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/input/index.js +52 -52
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-number/index.js +26 -26
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.js +248 -251
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/map/index.js +415 -421
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.js +1 -1
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/message/index.js +6 -6
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/popover/index.js +12 -12
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +34 -34
- package/packages/components/radio-tabs/index.js.gz +0 -0
- package/packages/components/rich-editor/index.js +4583 -4613
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/scrollbar/index.js +135 -135
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.js +24 -24
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/select/index.js +60 -60
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-list/index.js +5 -9
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +14 -16
- package/packages/components/special-range-picker-month/index.js.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +51 -53
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.js +33 -33
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +128 -129
- package/packages/components/split-panel/index.js.gz +0 -0
- package/packages/components/table/index.js +178 -179
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/time-line/index.js +1 -1
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tree-select/index.js +1 -1
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +2 -2
- package/packages/components/tree-table/index.js.gz +0 -0
- package/packages/components/tree-v2/index.js +1093 -1117
- package/packages/components/tree-v2/index.js.gz +0 -0
- package/packages/business-components/ai-panel/index-DMJXZM7n.js.gz +0 -0
- package/packages/business-components/ai-panel/index-MqhMkLo9.js.gz +0 -0
- package/packages/business-components/ai-panel/index-_q72oKSF.js.gz +0 -0
|
Binary file
|
|
@@ -1,113 +1,111 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/layout-breadcrumb/style.css';
|
|
2
|
-
import { ref as
|
|
3
|
-
import { withInstall as
|
|
4
|
-
import { DasBreadCrumb as
|
|
5
|
-
import { useRouter as
|
|
6
|
-
import { flatTree as
|
|
7
|
-
import { getSubApps as
|
|
8
|
-
import { setThemeRule as
|
|
9
|
-
const
|
|
10
|
-
const a =
|
|
11
|
-
const { app:
|
|
12
|
-
if (!
|
|
13
|
-
const
|
|
14
|
-
const t =
|
|
15
|
-
if (
|
|
16
|
-
|
|
2
|
+
import { ref as _, computed as T, watch as I, nextTick as q, defineComponent as N, createElementBlock as R, createCommentVNode as U, unref as g, openBlock as x, createVNode as D } from "vue";
|
|
3
|
+
import { withInstall as O } from "@das-fed/utils/with-install/index";
|
|
4
|
+
import { DasBreadCrumb as P } from "@das-fed/ui/packages/components/breadcrumb/index";
|
|
5
|
+
import { useRouter as J, useRoute as $ } from "vue-router";
|
|
6
|
+
import { flatTree as L } from "@das-fed/utils/common-tools";
|
|
7
|
+
import { getSubApps as S } from "@das-fed/utils/common-info";
|
|
8
|
+
import { setThemeRule as j } from "@das-fed/web/packages/theme/index";
|
|
9
|
+
const E = (s, l) => {
|
|
10
|
+
const a = _([]), b = T(() => [...a.value, ...s.data || []]), p = (e) => new Promise((c) => {
|
|
11
|
+
const { app: r = "", menu: i = "" } = e || {};
|
|
12
|
+
if (!r) return c(!1);
|
|
13
|
+
const u = () => {
|
|
14
|
+
const t = S() ?? {}, o = t.currentSubAppCode, d = t.currentSubApp.currentMenuCode;
|
|
15
|
+
if (JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[r] && r === o && i === d)
|
|
16
|
+
return c(!0);
|
|
17
|
+
setTimeout(() => u(), 100);
|
|
17
18
|
};
|
|
18
|
-
|
|
19
|
-
}), h = async (e,
|
|
20
|
-
var
|
|
21
|
-
await
|
|
22
|
-
const
|
|
23
|
-
if (!
|
|
19
|
+
u();
|
|
20
|
+
}), h = async (e, c) => {
|
|
21
|
+
var d, n;
|
|
22
|
+
await p(c);
|
|
23
|
+
const r = [], i = c.menu || "", u = ((n = (d = S()) == null ? void 0 : d.currentSubApp) == null ? void 0 : n.menus) ?? [];
|
|
24
|
+
if (!u || !u.length) return;
|
|
24
25
|
let t = null;
|
|
25
|
-
const
|
|
26
|
-
if (
|
|
27
|
-
const
|
|
28
|
-
if (
|
|
29
|
-
const B =
|
|
30
|
-
|
|
26
|
+
const o = L(u);
|
|
27
|
+
if (i ? t = o.find((m) => m.code === i) : t = o.find((m) => m.routeUrl && m.routeUrl === e), t) {
|
|
28
|
+
const m = t.code.split(".");
|
|
29
|
+
if (m.length === 3) {
|
|
30
|
+
const B = m.slice(0, 2).join("."), k = o.find((v) => v.code === B || v.originalCode === B);
|
|
31
|
+
r.push({ name: (k == null ? void 0 : k.name) ?? "", isMenu: !0, disabled: !0 });
|
|
31
32
|
}
|
|
32
33
|
const M = {
|
|
33
34
|
name: (t == null ? void 0 : t.name) ?? "",
|
|
34
35
|
routerPath: (t == null ? void 0 : t.routeUrl) ?? "",
|
|
35
36
|
isMenu: !0
|
|
36
37
|
};
|
|
37
|
-
|
|
38
|
+
r.push(M);
|
|
38
39
|
}
|
|
39
|
-
a.value =
|
|
40
|
-
},
|
|
41
|
-
e.disabled ||
|
|
42
|
-
}, C =
|
|
43
|
-
|
|
40
|
+
a.value = r;
|
|
41
|
+
}, y = (e) => {
|
|
42
|
+
e.disabled || l("click-item", e);
|
|
43
|
+
}, C = J(), f = $();
|
|
44
|
+
I(
|
|
44
45
|
() => C.currentRoute.value,
|
|
45
46
|
(e) => {
|
|
46
|
-
const
|
|
47
|
+
const c = (e == null ? void 0 : e.path) ?? "", r = (e == null ? void 0 : e.query) ?? {};
|
|
47
48
|
setTimeout(() => {
|
|
48
|
-
h(
|
|
49
|
+
h(c, r);
|
|
49
50
|
}, 200);
|
|
50
51
|
}
|
|
51
|
-
), h(
|
|
52
|
-
const A =
|
|
53
|
-
return
|
|
52
|
+
), h(f.path, f.query);
|
|
53
|
+
const A = _(!1);
|
|
54
|
+
return I(
|
|
54
55
|
() => s.data,
|
|
55
|
-
() => {
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
A.value = !!c.find((r) => o === r);
|
|
70
|
-
});
|
|
71
|
-
});
|
|
56
|
+
async () => {
|
|
57
|
+
var t;
|
|
58
|
+
await q(), await p(f.query);
|
|
59
|
+
const e = S(), c = f.query.app || e.currentSubApp.code || "";
|
|
60
|
+
let r = f.query.menu || "";
|
|
61
|
+
if (!r) {
|
|
62
|
+
const o = ((t = e.currentSubApp) == null ? void 0 : t.menus) ?? [], d = L(o).find(
|
|
63
|
+
(n) => `/${(n == null ? void 0 : n.applicationPath) ?? ""}${(n == null ? void 0 : n.routeUrl) ?? ""}`.replace(/\/\//g, "/") === location.pathname
|
|
64
|
+
);
|
|
65
|
+
d && (r = d.code);
|
|
66
|
+
}
|
|
67
|
+
const i = JSON.parse(sessionStorage.getItem("breadcrumb") || "{}")[c], u = [];
|
|
68
|
+
for (let o in i) i[o] && u.push(o);
|
|
69
|
+
A.value = !!u.find((o) => r === o);
|
|
72
70
|
},
|
|
73
71
|
{ deep: !0, immediate: !0 }
|
|
74
72
|
), {
|
|
75
73
|
isShow: A,
|
|
76
|
-
breadcrumbList:
|
|
77
|
-
clickItem:
|
|
74
|
+
breadcrumbList: b,
|
|
75
|
+
clickItem: y
|
|
78
76
|
};
|
|
79
|
-
},
|
|
77
|
+
}, w = {
|
|
80
78
|
key: 0,
|
|
81
79
|
class: "layout-breadcrumb"
|
|
82
|
-
},
|
|
80
|
+
}, z = {
|
|
83
81
|
name: "LayoutBreadCrumb"
|
|
84
|
-
},
|
|
85
|
-
...
|
|
82
|
+
}, F = /* @__PURE__ */ N({
|
|
83
|
+
...z,
|
|
86
84
|
props: {
|
|
87
85
|
data: { default: () => [] }
|
|
88
86
|
},
|
|
89
87
|
emits: ["click-item"],
|
|
90
|
-
setup(s, { emit:
|
|
91
|
-
const a = s,
|
|
92
|
-
return (C,
|
|
93
|
-
D(
|
|
94
|
-
data:
|
|
95
|
-
onClickItem: y
|
|
88
|
+
setup(s, { emit: l }) {
|
|
89
|
+
const a = s, b = l, { isShow: p, breadcrumbList: h, clickItem: y } = E(a, b);
|
|
90
|
+
return (C, f) => g(p) && C.data && C.data.length ? (x(), R("div", w, [
|
|
91
|
+
D(g(P), {
|
|
92
|
+
data: g(h),
|
|
93
|
+
onClickItem: g(y)
|
|
96
94
|
}, null, 8, ["data", "onClickItem"])
|
|
97
95
|
])) : U("v-if", !0);
|
|
98
96
|
}
|
|
99
|
-
}),
|
|
97
|
+
}), G = (s, l) => {
|
|
100
98
|
const a = s.__vccOpts || s;
|
|
101
|
-
for (const [
|
|
102
|
-
a[
|
|
99
|
+
for (const [b, p] of l)
|
|
100
|
+
a[b] = p;
|
|
103
101
|
return a;
|
|
104
|
-
},
|
|
102
|
+
}, H = /* @__PURE__ */ G(F, [["__scopeId", "data-v-878cd70a"]]), K = {
|
|
105
103
|
"--das-layout-micro-container-bg-color": "#e2e7ef",
|
|
106
104
|
"--das-layout-breadcrumb-bg-color": "#ffffff"
|
|
107
105
|
};
|
|
108
|
-
|
|
109
|
-
const te =
|
|
106
|
+
j(K);
|
|
107
|
+
const te = O(H), re = () => _(null);
|
|
110
108
|
export {
|
|
111
109
|
te as DasLayoutBreadcrumb,
|
|
112
|
-
|
|
110
|
+
re as DasLayoutBreadcrumbRef
|
|
113
111
|
};
|
|
Binary file
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-configuration/style.css';
|
|
2
2
|
import { withInstall as fe } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as r, watch as H, defineComponent as me, computed as O, onUnmounted as ye, onDeactivated as ve, createElementBlock as
|
|
3
|
+
import { ref as r, watch as H, defineComponent as me, computed as O, onUnmounted as ye, onDeactivated as ve, createElementBlock as q, openBlock as F, Fragment as Ce, createElementVNode as u, createCommentVNode as L, createVNode as l, unref as e, withCtx as s, createTextVNode as y, toDisplayString as p, isRef as W, withDirectives as ge } from "vue";
|
|
4
4
|
import { DasTable as we, DasTableColumn as K } from "@das-fed/ui/packages/components/table/index";
|
|
5
5
|
import { DasDialog as A } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
|
-
import { DasButton as
|
|
6
|
+
import { DasButton as N } from "@das-fed/ui/packages/components/button/index";
|
|
7
7
|
import { DasMessage as B } from "@das-fed/ui/packages/components/message/index";
|
|
8
8
|
import { DasForm as be } from "@das-fed/ui/packages/components/form/index";
|
|
9
9
|
import { DasFormItem as U } from "@das-fed/ui/packages/components/form-item/index";
|
|
@@ -13,7 +13,7 @@ import { t as o, setI18nRule as _e } from "@das-fed/web/packages/i18n/index";
|
|
|
13
13
|
import { getProjectInfo as v } from "@das-fed/utils/common-info/index";
|
|
14
14
|
import { createService as Q } from "@das-fed/utils/api-services/src/create-service";
|
|
15
15
|
const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/instance/${X}`), De = E.post("/listJson"), Ne = E.post("/saveCopy"), xe = he.get("/getInstanceCountByDefKeys"), Ie = E.delete("/removeByDefIds"), ze = (f) => {
|
|
16
|
-
const m = v().id ? v().id : "371344636432453", n = v().name ? v().name : o("AIoT项目"), d = r(!1), C = r(!1),
|
|
16
|
+
const m = v().id ? v().id : "371344636432453", n = v().name ? v().name : o("AIoT项目"), d = r(!1), C = r(!1), x = r({
|
|
17
17
|
defId: "",
|
|
18
18
|
// 流程id
|
|
19
19
|
defKey: "",
|
|
@@ -24,7 +24,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
24
24
|
// 所属项目名称
|
|
25
25
|
typeName: n
|
|
26
26
|
// 所属项目id
|
|
27
|
-
}),
|
|
27
|
+
}), h = r({
|
|
28
28
|
defId: "",
|
|
29
29
|
// 流程id
|
|
30
30
|
defKey: "",
|
|
@@ -37,16 +37,16 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
37
37
|
});
|
|
38
38
|
return {
|
|
39
39
|
copyDialogShow: C,
|
|
40
|
-
copyFormData:
|
|
41
|
-
detailFormData:
|
|
40
|
+
copyFormData: x,
|
|
41
|
+
detailFormData: h,
|
|
42
42
|
rules: w,
|
|
43
43
|
copyDialogLoading: d,
|
|
44
44
|
saveCopyProcess: async (S) => {
|
|
45
45
|
var c;
|
|
46
46
|
(c = f.value) == null || c.validate(async (g) => {
|
|
47
47
|
if (g) {
|
|
48
|
-
d.value = !0
|
|
49
|
-
const [k, z] = await Ne(
|
|
48
|
+
d.value = !0;
|
|
49
|
+
const [k, z] = await Ne(x.value, {
|
|
50
50
|
params: { destinationProject: m, project: m }
|
|
51
51
|
}).run();
|
|
52
52
|
if (k) {
|
|
@@ -67,21 +67,21 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
67
67
|
};
|
|
68
68
|
}, Ve = () => {
|
|
69
69
|
const f = v().id ? v().id : "371344636432453", m = r(!1), n = r([]);
|
|
70
|
-
return { deleteDialogShow: m, instanceCount: n, reqCount: async (
|
|
70
|
+
return { deleteDialogShow: m, instanceCount: n, reqCount: async (h) => {
|
|
71
71
|
const w = {
|
|
72
|
-
defKeys:
|
|
72
|
+
defKeys: h,
|
|
73
73
|
projectId: f
|
|
74
|
-
}, [b,
|
|
75
|
-
|
|
76
|
-
}, deleteDefItem: async (
|
|
74
|
+
}, [b, I] = await xe(w).run();
|
|
75
|
+
n.value = I;
|
|
76
|
+
}, deleteDefItem: async (h) => {
|
|
77
77
|
const w = {
|
|
78
78
|
cascade: !0,
|
|
79
|
-
ids:
|
|
79
|
+
ids: h,
|
|
80
80
|
project: f
|
|
81
|
-
}, [b,
|
|
81
|
+
}, [b, I] = await Ie(w).run();
|
|
82
82
|
b || (m.value = !1, B.success(o("删除成功")));
|
|
83
83
|
}, cancelDelete: () => m.value = !1 };
|
|
84
|
-
}, Ke = { class: "das-process-configuration" }, Se = { class: "table-box" }, Pe = { class: "table-top" }, Te = { class: "operate" }, Re = { class: "table-content" }, $e = { class: "form-content" },
|
|
84
|
+
}, Ke = { class: "das-process-configuration" }, Se = { class: "table-box" }, Pe = { class: "table-top" }, Te = { class: "operate" }, Re = { class: "table-content" }, $e = { class: "form-content" }, je = { class: "delete-dialog" }, qe = { class: "delete-text" }, Fe = { class: "delete-info-box" }, Le = {
|
|
85
85
|
key: 0,
|
|
86
86
|
class: "delete-info-text"
|
|
87
87
|
}, Ue = {
|
|
@@ -99,9 +99,9 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
99
99
|
},
|
|
100
100
|
emits: ["update:modelValue", "processInfo", "cancelDialog", "operationClick"],
|
|
101
101
|
setup(f, { emit: m }) {
|
|
102
|
-
const n = f, d = m, C = O(() => n.title || o("选择流程")),
|
|
102
|
+
const n = f, d = m, C = O(() => n.title || o("选择流程")), x = window.location.origin, h = v().id ? v().id : "371344636432453";
|
|
103
103
|
v().name ? v().name : o("AIoT项目");
|
|
104
|
-
const w = r(""), b = r(""),
|
|
104
|
+
const w = r(""), b = r(""), I = r(), S = O(() => n.modelValue ? n.modelValue : !1), c = r([]), g = r(!1), k = r(0), { copyDialogShow: z, copyFormData: _, detailFormData: D, rules: Y, saveCopyProcess: Z, cancelCopy: ee, copyDialogLoading: ae } = ze(I), { deleteDialogShow: P, instanceCount: T, reqCount: oe, deleteDefItem: te, cancelDelete: le } = Ve(), ne = O(() => n.operation ?? [
|
|
105
105
|
{
|
|
106
106
|
label: o("编辑"),
|
|
107
107
|
value: "edit"
|
|
@@ -129,13 +129,13 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
129
129
|
const a = se.value.find((t) => t.value === i);
|
|
130
130
|
return a == null ? void 0 : a.text;
|
|
131
131
|
}, V = r(n.defKey), R = r(), ie = (i, a, t) => {
|
|
132
|
-
|
|
132
|
+
R.value = a;
|
|
133
133
|
}, J = async (i, a) => {
|
|
134
134
|
if (i === "edit") {
|
|
135
135
|
const t = JSON.stringify(a);
|
|
136
|
-
window.open(`${
|
|
136
|
+
window.open(`${x}/mvue/flowDesign?business=${n.bussinessName}&operate=edit&detail=${t}`);
|
|
137
137
|
}
|
|
138
|
-
i === "copy" && (z.value = !0, _.value.defId = a.defId, _.value.typeId = a.typeId, _.value.defKey = "", _.value.name = "",
|
|
138
|
+
i === "copy" && (z.value = !0, _.value.defId = a.defId, _.value.typeId = a.typeId, _.value.defKey = "", _.value.name = "", D.value.defId = a.defId, D.value.defKey = a.defKey, D.value.name = a.name), i === "delete" && (w.value = a.id, b.value = a.name, await oe(a.defKey), P.value = !0), d("operationClick", i, a);
|
|
139
139
|
}, $ = async () => {
|
|
140
140
|
k.value++, k.value === 1 && (g.value = !0);
|
|
141
141
|
const i = {
|
|
@@ -144,14 +144,14 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
144
144
|
querys: [
|
|
145
145
|
{ group: "main", operation: "IN", property: "businessTypeId", relation: "AND", value: n.bussinessName }
|
|
146
146
|
]
|
|
147
|
-
}, [a, t] = await De(i, { params: { project:
|
|
147
|
+
}, [a, t] = await De(i, { params: { project: h } }).run();
|
|
148
148
|
if (a) {
|
|
149
149
|
g.value = !1;
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
152
|
g.value = !1, c.value = t.rows;
|
|
153
153
|
}, de = () => {
|
|
154
|
-
window.open(`${
|
|
154
|
+
window.open(`${x}/mvue/flowDesign?business=${n.bussinessName}&operate=add`);
|
|
155
155
|
}, ue = async () => {
|
|
156
156
|
await Z($);
|
|
157
157
|
}, pe = async () => {
|
|
@@ -165,19 +165,19 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
165
165
|
}
|
|
166
166
|
d("processInfo", R.value), d("update:modelValue", !1);
|
|
167
167
|
};
|
|
168
|
-
let
|
|
168
|
+
let j = r(0);
|
|
169
169
|
return H(
|
|
170
170
|
() => n.modelValue,
|
|
171
171
|
async (i, a) => {
|
|
172
|
-
i && (await $(), c.value.length > 0 && (n.defKey ? (V.value = n.defKey, R.value = c.value.find((t) => t.defKey === n.defKey)) : (V.value = c.value[0].defKey, R.value = c.value[0])),
|
|
172
|
+
i && (await $(), c.value.length > 0 && (n.defKey ? (V.value = n.defKey, R.value = c.value.find((t) => t.defKey === n.defKey)) : (V.value = c.value[0].defKey, R.value = c.value[0])), j.value = window.setInterval(() => {
|
|
173
173
|
$();
|
|
174
|
-
}, 1500)), i || (k.value = 0, window.clearInterval(
|
|
174
|
+
}, 1500)), i || (k.value = 0, window.clearInterval(j.value));
|
|
175
175
|
}
|
|
176
176
|
), ye(() => {
|
|
177
|
-
window.clearInterval(
|
|
177
|
+
window.clearInterval(j.value);
|
|
178
178
|
}), ve(() => {
|
|
179
|
-
window.clearInterval(
|
|
180
|
-
}), (i, a) => (
|
|
179
|
+
window.clearInterval(j.value);
|
|
180
|
+
}), (i, a) => (F(), q(
|
|
181
181
|
Ce,
|
|
182
182
|
null,
|
|
183
183
|
[
|
|
@@ -194,7 +194,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
194
194
|
}, {
|
|
195
195
|
footer: s(() => [
|
|
196
196
|
u("div", null, [
|
|
197
|
-
l(e(
|
|
197
|
+
l(e(N), { onClick: M }, {
|
|
198
198
|
default: s(() => [
|
|
199
199
|
y(
|
|
200
200
|
p(e(o)("取消")),
|
|
@@ -205,7 +205,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
205
205
|
_: 1
|
|
206
206
|
/* STABLE */
|
|
207
207
|
}),
|
|
208
|
-
l(e(
|
|
208
|
+
l(e(N), {
|
|
209
209
|
btnType: "primary",
|
|
210
210
|
style: { "margin-left": "12px" },
|
|
211
211
|
onClick: ce
|
|
@@ -228,7 +228,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
228
228
|
u("div", Se, [
|
|
229
229
|
u("div", Pe, [
|
|
230
230
|
u("div", Te, [
|
|
231
|
-
l(e(
|
|
231
|
+
l(e(N), {
|
|
232
232
|
btnType: "primary-text",
|
|
233
233
|
size: "large",
|
|
234
234
|
block: "",
|
|
@@ -320,7 +320,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
320
320
|
}, {
|
|
321
321
|
footer: s(() => [
|
|
322
322
|
u("div", null, [
|
|
323
|
-
l(e(
|
|
323
|
+
l(e(N), { onClick: e(ee) }, {
|
|
324
324
|
default: s(() => [
|
|
325
325
|
y(
|
|
326
326
|
p(e(o)("取消")),
|
|
@@ -331,7 +331,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
331
331
|
_: 1
|
|
332
332
|
/* STABLE */
|
|
333
333
|
}, 8, ["onClick"]),
|
|
334
|
-
l(e(
|
|
334
|
+
l(e(N), {
|
|
335
335
|
btnType: "primary",
|
|
336
336
|
style: { "margin-left": "12px" },
|
|
337
337
|
onClick: ue
|
|
@@ -358,22 +358,22 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
358
358
|
marginBottom: "30px",
|
|
359
359
|
marginRight: "26px",
|
|
360
360
|
ref_key: "editForm",
|
|
361
|
-
ref:
|
|
361
|
+
ref: I,
|
|
362
362
|
rules: e(Y)
|
|
363
363
|
}, {
|
|
364
364
|
default: s(() => [
|
|
365
365
|
l(e(U), {
|
|
366
366
|
label: e(o)("原流程名称"),
|
|
367
367
|
maxlength: "20",
|
|
368
|
-
modelValue: e(
|
|
369
|
-
"onUpdate:modelValue": a[3] || (a[3] = (t) => e(
|
|
368
|
+
modelValue: e(D).name,
|
|
369
|
+
"onUpdate:modelValue": a[3] || (a[3] = (t) => e(D).name = t),
|
|
370
370
|
disabled: ""
|
|
371
371
|
}, null, 8, ["label", "modelValue"]),
|
|
372
372
|
l(e(U), {
|
|
373
373
|
label: e(o)("原流程别名"),
|
|
374
374
|
maxlength: "20",
|
|
375
|
-
modelValue: e(
|
|
376
|
-
"onUpdate:modelValue": a[4] || (a[4] = (t) => e(
|
|
375
|
+
modelValue: e(D).defKey,
|
|
376
|
+
"onUpdate:modelValue": a[4] || (a[4] = (t) => e(D).defKey = t),
|
|
377
377
|
disabled: "",
|
|
378
378
|
marginRight: "0"
|
|
379
379
|
}, null, 8, ["label", "modelValue"]),
|
|
@@ -408,7 +408,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
408
408
|
/* STABLE */
|
|
409
409
|
}, 8, ["modelValue", "title"]),
|
|
410
410
|
L(" 删除弹窗 "),
|
|
411
|
-
u("div",
|
|
411
|
+
u("div", je, [
|
|
412
412
|
l(e(A), {
|
|
413
413
|
modelValue: e(P),
|
|
414
414
|
"onUpdate:modelValue": a[8] || (a[8] = (t) => W(P) ? P.value = t : null),
|
|
@@ -418,7 +418,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
418
418
|
}, {
|
|
419
419
|
footer: s(() => [
|
|
420
420
|
u("div", null, [
|
|
421
|
-
l(e(
|
|
421
|
+
l(e(N), { onClick: e(le) }, {
|
|
422
422
|
default: s(() => [
|
|
423
423
|
y(
|
|
424
424
|
p(e(o)("取消")),
|
|
@@ -429,7 +429,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
429
429
|
_: 1
|
|
430
430
|
/* STABLE */
|
|
431
431
|
}, 8, ["onClick"]),
|
|
432
|
-
l(e(
|
|
432
|
+
l(e(N), {
|
|
433
433
|
btnType: "primary",
|
|
434
434
|
style: { "margin-left": "12px" },
|
|
435
435
|
onClick: pe
|
|
@@ -447,7 +447,7 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
447
447
|
])
|
|
448
448
|
]),
|
|
449
449
|
default: s(() => [
|
|
450
|
-
u("div",
|
|
450
|
+
u("div", qe, [
|
|
451
451
|
y(
|
|
452
452
|
p(e(o)("删除流程定义,对应的实例和任务会一起删除,")),
|
|
453
453
|
1
|
|
@@ -473,15 +473,15 @@ const X = "v1", E = Q(`/workflow/flow/def/${X}`), he = Q(`/workflow/runtime/inst
|
|
|
473
473
|
-1
|
|
474
474
|
/* CACHED */
|
|
475
475
|
)),
|
|
476
|
-
ge((
|
|
477
|
-
e(T).length === 0 ? (
|
|
476
|
+
ge((F(), q("div", Fe, [
|
|
477
|
+
e(T).length === 0 ? (F(), q(
|
|
478
478
|
"div",
|
|
479
479
|
Le,
|
|
480
480
|
p(e(o)("dasui-process-configuration-key1", b.value, 0, 0)),
|
|
481
481
|
1
|
|
482
482
|
/* TEXT */
|
|
483
483
|
)) : L("v-if", !0),
|
|
484
|
-
e(T).length > 0 ? (
|
|
484
|
+
e(T).length > 0 ? (F(), q(
|
|
485
485
|
"div",
|
|
486
486
|
Ue,
|
|
487
487
|
p(e(o)(
|
|
Binary file
|