@das-fed/ui 6.4.0-dev.19 → 6.4.0-dev.20
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/esm-map.json +4 -1
- package/package.json +5 -6
- package/packages/business-components/device-panel/index.js +22265 -16373
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/drag-resize/index.vue.d.ts +129 -0
- package/packages/business-components/device-panel/src/components/drag-resize/type.d.ts +83 -0
- 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.d.ts +125 -0
- package/packages/business-components/echarts/index.js +6530 -6460
- package/packages/business-components/echarts/index.js.gz +0 -0
- package/packages/business-components/echarts/src/Index.vue.d.ts +15 -0
- package/packages/business-components/echarts/src/type.d.ts +13 -0
- package/packages/business-components/import-button/hooks/file.d.ts +1 -1
- package/packages/business-components/import-button/index.d.ts +3 -0
- package/packages/business-components/import-button/index.js +33 -32
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/App.vue.d.ts +1 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/process-form/index.js +28 -28
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.d.ts +2 -1
- package/packages/business-components/urgent-panel/index.js +1505 -1586
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/index.vue.d.ts +129 -0
- package/packages/business-components/urgent-panel/src/components/drag-resize/type.d.ts +83 -0
- package/packages/business-components/urgent-panel/style.css +1 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/components/image-viewer/index.js +286 -271
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/hooks/use-imageViewer.d.ts +1 -1
- package/packages/components/image-viewer/style.css +1 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
|
Binary file
|
|
@@ -15,6 +15,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
15
15
|
replaceMerge: string;
|
|
16
16
|
lazyUpdate: boolean;
|
|
17
17
|
silent: boolean;
|
|
18
|
+
maxLabelTooltipLength: number;
|
|
19
|
+
yOverflowTooltip: boolean;
|
|
20
|
+
xOverflowTooltip: boolean;
|
|
21
|
+
xEmptyMaxVal: null;
|
|
22
|
+
yEmptyMaxVal: null;
|
|
18
23
|
}>, {
|
|
19
24
|
$echarts: import("vue").Ref<any>;
|
|
20
25
|
myChart: any;
|
|
@@ -35,6 +40,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
35
40
|
replaceMerge: string;
|
|
36
41
|
lazyUpdate: boolean;
|
|
37
42
|
silent: boolean;
|
|
43
|
+
maxLabelTooltipLength: number;
|
|
44
|
+
yOverflowTooltip: boolean;
|
|
45
|
+
xOverflowTooltip: boolean;
|
|
46
|
+
xEmptyMaxVal: null;
|
|
47
|
+
yEmptyMaxVal: null;
|
|
38
48
|
}>>>, {
|
|
39
49
|
options: any;
|
|
40
50
|
height: number | string;
|
|
@@ -49,6 +59,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
49
59
|
lazyUpdate: boolean;
|
|
50
60
|
silent: false;
|
|
51
61
|
replaceMerge: string | string[];
|
|
62
|
+
maxLabelTooltipLength: number;
|
|
63
|
+
yOverflowTooltip: boolean;
|
|
64
|
+
xOverflowTooltip: boolean;
|
|
65
|
+
xEmptyMaxVal: number | null;
|
|
66
|
+
yEmptyMaxVal: number | null | import("./type").maxValType[];
|
|
52
67
|
}, {}>;
|
|
53
68
|
export default _default;
|
|
54
69
|
type __VLS_WithDefaults<P, D> = {
|
|
@@ -25,6 +25,19 @@ export interface Props {
|
|
|
25
25
|
silent?: false
|
|
26
26
|
|
|
27
27
|
replaceMerge?: string | string[]
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
maxLabelTooltipLength?: number
|
|
31
|
+
|
|
32
|
+
yOverflowTooltip: boolean
|
|
33
|
+
|
|
34
|
+
xOverflowTooltip: boolean
|
|
35
|
+
|
|
36
|
+
xEmptyMaxVal?: number | null
|
|
37
|
+
|
|
38
|
+
yEmptyMaxVal?: number | null | maxValType[]
|
|
39
|
+
|
|
28
40
|
}
|
|
41
|
+
type maxValType = number | null
|
|
29
42
|
|
|
30
43
|
export interface Emits {}
|
|
@@ -66,6 +66,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
66
66
|
onSuccess?: (() => any) | undefined;
|
|
67
67
|
}, {
|
|
68
68
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
69
|
+
showImportHandle: () => void;
|
|
69
70
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
70
71
|
open: () => void;
|
|
71
72
|
success: () => void;
|
|
@@ -222,6 +223,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
222
223
|
onSuccess?: (() => any) | undefined;
|
|
223
224
|
}, {
|
|
224
225
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
226
|
+
showImportHandle: () => void;
|
|
225
227
|
}, {}, {}, {}, {
|
|
226
228
|
bucketName: string;
|
|
227
229
|
multiple: boolean;
|
|
@@ -306,6 +308,7 @@ declare const DasImportButton: import("@das-fed/utils").SFCWithInstall<{
|
|
|
306
308
|
onSuccess?: (() => any) | undefined;
|
|
307
309
|
}, {
|
|
308
310
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
311
|
+
showImportHandle: () => void;
|
|
309
312
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
310
313
|
open: () => void;
|
|
311
314
|
success: () => void;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/import-button/style.css';
|
|
2
2
|
import { withInstall as me } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as
|
|
3
|
+
import { ref as h, defineComponent as pe, watch as ce, openBlock as de, createElementBlock as fe, createElementVNode as A, unref as s, renderSlot as ae, createVNode as P, withCtx as j, createTextVNode as H, toDisplayString as V, isRef as X } from "vue";
|
|
4
4
|
import { i18n as B } from "@das-fed/web/packages/i18n/index";
|
|
5
5
|
import { DasDialog as se } from "@das-fed/ui/packages/components/dialog/index";
|
|
6
6
|
import { DasUpload as ge } from "@das-fed/ui/packages/components/upload/index";
|
|
7
7
|
import { DasProgress as ve } from "@das-fed/ui/packages/components/progress/index";
|
|
8
8
|
import { DasButton as G } from "@das-fed/ui/packages/components/button/index";
|
|
9
|
-
import { iotMinio as ee, iotProgress as
|
|
9
|
+
import { iotMinio as ee, iotProgress as be } from "@das-fed/utils/api-services/modules/iot";
|
|
10
10
|
import { DasMessage as S } from "@das-fed/ui/packages/components/message/index";
|
|
11
|
-
import
|
|
11
|
+
import xe from "dayjs";
|
|
12
12
|
import { getConfig as le } from "@das-fed/utils/config";
|
|
13
13
|
import { getUserInfo as he } from "@das-fed/utils/common-info/index";
|
|
14
14
|
import { pureImageSrc as we } from "@das-fed/utils/pure-image-src";
|
|
@@ -20,9 +20,9 @@ let Z = (e = 21) => {
|
|
|
20
20
|
}
|
|
21
21
|
return p;
|
|
22
22
|
};
|
|
23
|
-
const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), ke = ee.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ne =
|
|
24
|
-
let p =
|
|
25
|
-
const
|
|
23
|
+
const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), ke = ee.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Ne = be.get("progress"), $e = (e) => {
|
|
24
|
+
let p = h(!1), m = h(!1), i = h(""), v = h(0), n = h("normal"), b = h(!1), f, $ = h(""), D = h(""), I = h(""), T = h(""), U = h(!1), M = h(""), F = "", k;
|
|
25
|
+
const x = () => {
|
|
26
26
|
D.value = "", I.value = "", T.value = "", U.value = !1, M.value = "";
|
|
27
27
|
}, L = async () => {
|
|
28
28
|
const [l, o] = await ye().run();
|
|
@@ -96,9 +96,9 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
96
96
|
m.value = !1, n.value = "error";
|
|
97
97
|
return;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
xe().format("YYYYMMDDHHmmss") + "", c(r.taskId, "export", o || "", a);
|
|
100
100
|
}, c = async (l, o, a, r = "") => {
|
|
101
|
-
|
|
101
|
+
b.value = !0, g(l, o, a, r), f = setTimeout(() => {
|
|
102
102
|
}, 50);
|
|
103
103
|
}, d = () => {
|
|
104
104
|
clearTimeout(f), f = null, m.value = !1;
|
|
@@ -108,14 +108,14 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
108
108
|
url: `progress/${l}`
|
|
109
109
|
}).run();
|
|
110
110
|
if (u) {
|
|
111
|
-
|
|
111
|
+
b.value = !1;
|
|
112
112
|
return;
|
|
113
113
|
}
|
|
114
114
|
v.value = t.percentage;
|
|
115
115
|
const w = o == "export" ? "导出" : "导入";
|
|
116
116
|
if (v.value == 100)
|
|
117
|
-
if ($.value = t,
|
|
118
|
-
t.status == 1 ? (n.value = "success", oe(`${le().baseURL}/oss${t.filePath}`, a, r),
|
|
117
|
+
if ($.value = t, b.value = !1, d(), o == "export")
|
|
118
|
+
t.status == 1 ? (n.value = "success", oe(`${le().baseURL}/oss${t.filePath}`, a, r), b.value = !1) : t.status == 2 && (T.value = t.message || `${w}失败`, S.error({
|
|
119
119
|
message: t.message || `${w}失败`,
|
|
120
120
|
grouping: !0,
|
|
121
121
|
repeatNum: 1
|
|
@@ -133,7 +133,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
133
133
|
else
|
|
134
134
|
f && t.status != 2 ? f = setTimeout(() => {
|
|
135
135
|
g(l, o, a, r);
|
|
136
|
-
}, 50) : ($.value = t,
|
|
136
|
+
}, 50) : ($.value = t, b.value = !1, O(t.status, w, t.message), d(), U.value = !0, T.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
137
137
|
}, O = (l, o, a) => {
|
|
138
138
|
l == 1 ? (n.value = "success", S.success({
|
|
139
139
|
message: `${o}成功`,
|
|
@@ -155,7 +155,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
155
155
|
progressTitle: i,
|
|
156
156
|
percent: v,
|
|
157
157
|
progressStatus: n,
|
|
158
|
-
progressLoading:
|
|
158
|
+
progressLoading: b,
|
|
159
159
|
progressResult: $,
|
|
160
160
|
errorFileName: D,
|
|
161
161
|
errorFileSize: I,
|
|
@@ -170,7 +170,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
170
170
|
return `${o.length ? o[1] : l}${Z()}${a}`;
|
|
171
171
|
},
|
|
172
172
|
downloadFile: oe,
|
|
173
|
-
resetStataus:
|
|
173
|
+
resetStataus: x,
|
|
174
174
|
checkProgress: c
|
|
175
175
|
};
|
|
176
176
|
}, Fe = (e) => {
|
|
@@ -207,12 +207,12 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
207
207
|
i.open("get", e), i.setRequestHeader("Content-Type", "application/json; charset=UTF-8"), i.responseType = "blob", i.onload = function(v) {
|
|
208
208
|
const n = new Blob([this.response], {
|
|
209
209
|
type: Fe(m)
|
|
210
|
-
}),
|
|
210
|
+
}), b = URL.createObjectURL(n);
|
|
211
211
|
if (window.navigator.msSaveOrOpenBlob)
|
|
212
212
|
navigator.msSaveBlob(n, p);
|
|
213
213
|
else {
|
|
214
214
|
const f = document.createElement("a");
|
|
215
|
-
f.href =
|
|
215
|
+
f.href = b, f.download = p, f.click(), window.URL.revokeObjectURL(b);
|
|
216
216
|
}
|
|
217
217
|
}, i.send();
|
|
218
218
|
}, Ie = (e) => new Promise((p, m) => {
|
|
@@ -228,7 +228,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
228
228
|
showProgressDialog: i,
|
|
229
229
|
progressTitle: v,
|
|
230
230
|
percent: n,
|
|
231
|
-
progressStatus:
|
|
231
|
+
progressStatus: b,
|
|
232
232
|
progressLoading: f,
|
|
233
233
|
errorFileName: $,
|
|
234
234
|
errorFileSize: D,
|
|
@@ -239,22 +239,22 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
239
239
|
fileExport: F,
|
|
240
240
|
downloadFile: k
|
|
241
241
|
} = $e(p);
|
|
242
|
-
let
|
|
242
|
+
let x = h([]), L = (o = he()) == null ? void 0 : o.tenantId;
|
|
243
243
|
const R = () => {
|
|
244
|
-
|
|
244
|
+
x.value = [], T.value = !1, $.value = "", D.value = "", I.value = "", m.value = !0, U.value = "", p("open");
|
|
245
245
|
};
|
|
246
246
|
let z;
|
|
247
247
|
const E = (a) => {
|
|
248
248
|
const r = e.fileType.split(","), u = a.name.substring(a.name.lastIndexOf(".")), t = C(a.sizeText), w = C(e.fileMaxSize);
|
|
249
249
|
if (!r.includes(u)) {
|
|
250
250
|
S.warning("文件格式错误,请重新上传!"), setTimeout(() => {
|
|
251
|
-
|
|
251
|
+
x.value = [];
|
|
252
252
|
});
|
|
253
253
|
return;
|
|
254
254
|
}
|
|
255
255
|
if (t > w) {
|
|
256
256
|
S.warning(`文件大小不超过${e.fileMaxSize}`), setTimeout(() => {
|
|
257
|
-
|
|
257
|
+
x.value = [];
|
|
258
258
|
});
|
|
259
259
|
return;
|
|
260
260
|
}
|
|
@@ -272,11 +272,11 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
272
272
|
}, u = e.importParamsPosition === "params" ? e.importFun("", { params: r }) : e.importFun(r), [t, w] = await u.run();
|
|
273
273
|
return t ? { status: !1 } : { status: !0, taskId: a };
|
|
274
274
|
}, d = async () => {
|
|
275
|
-
if (!
|
|
275
|
+
if (!x.value.length) return S.warning("请上传文件");
|
|
276
276
|
const a = {
|
|
277
277
|
bucketName: e.bucketName,
|
|
278
278
|
importFileName: `${L}/${e.ossName}/${z}`
|
|
279
|
-
}, r = e.maxCount > 1, u = e.maxCount > 1 ?
|
|
279
|
+
}, r = e.maxCount > 1, u = e.maxCount > 1 ? x.value : x.value[0];
|
|
280
280
|
await M(c, u, a, r);
|
|
281
281
|
}, g = () => {
|
|
282
282
|
k(U.value, $.value);
|
|
@@ -291,14 +291,14 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
291
291
|
showProgressDialog: i,
|
|
292
292
|
progressTitle: v,
|
|
293
293
|
percent: n,
|
|
294
|
-
progressStatus:
|
|
294
|
+
progressStatus: b,
|
|
295
295
|
progressLoading: f,
|
|
296
296
|
errorFileName: $,
|
|
297
297
|
errorFileSize: D,
|
|
298
298
|
errorMessage: I,
|
|
299
299
|
errorImport: T,
|
|
300
300
|
importDialog: m,
|
|
301
|
-
fileList:
|
|
301
|
+
fileList: x,
|
|
302
302
|
showImportHandle: R,
|
|
303
303
|
confirmImport: d,
|
|
304
304
|
fileUpload: E,
|
|
@@ -345,7 +345,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
345
345
|
setup(e, { expose: p, emit: m }) {
|
|
346
346
|
const i = e, v = m, {
|
|
347
347
|
showProgressDialog: n,
|
|
348
|
-
progressTitle:
|
|
348
|
+
progressTitle: b,
|
|
349
349
|
percent: f,
|
|
350
350
|
progressStatus: $,
|
|
351
351
|
progressLoading: D,
|
|
@@ -355,21 +355,22 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
355
355
|
errorImport: M,
|
|
356
356
|
importDialog: F,
|
|
357
357
|
fileList: k,
|
|
358
|
-
showImportHandle:
|
|
358
|
+
showImportHandle: x,
|
|
359
359
|
confirmImport: L,
|
|
360
360
|
fileUpload: R,
|
|
361
361
|
errorFileDownload: z,
|
|
362
362
|
downTemplate: E
|
|
363
363
|
} = Ue(i, v);
|
|
364
364
|
let C;
|
|
365
|
-
return ce(
|
|
365
|
+
return ce(b, (c) => {
|
|
366
366
|
c.includes("导入") ? C = ["正在导入中...", "导入失败", "导入成功"] : C = ["正在导出中...", "导出失败", "导出成功"];
|
|
367
367
|
}), p({
|
|
368
|
-
confirmImport: L
|
|
368
|
+
confirmImport: L,
|
|
369
|
+
showImportHandle: x
|
|
369
370
|
}), (c, d) => (de(), fe("div", De, [
|
|
370
371
|
A("div", {
|
|
371
372
|
onClick: d[0] || (d[0] = //@ts-ignore
|
|
372
|
-
(...g) => s(
|
|
373
|
+
(...g) => s(x) && s(x)(...g))
|
|
373
374
|
}, [
|
|
374
375
|
ae(c.$slots, "default", {}, () => [
|
|
375
376
|
P(s(G), {
|
|
@@ -454,7 +455,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
454
455
|
}, 8, ["title", "modelValue"]),
|
|
455
456
|
P(s(se), {
|
|
456
457
|
size: "mini",
|
|
457
|
-
title: s(B)(s(
|
|
458
|
+
title: s(B)(s(b)).value,
|
|
458
459
|
"is-feedback-img": !1,
|
|
459
460
|
modelValue: s(n),
|
|
460
461
|
"onUpdate:modelValue": d[5] || (d[5] = (g) => X(n) ? n.value = g : null),
|
|
@@ -479,7 +480,7 @@ const ye = ee.get("token"), Te = ee.post("put-object", (e) => (e.headers || (e.h
|
|
|
479
480
|
for (const [i, v] of p)
|
|
480
481
|
m[i] = v;
|
|
481
482
|
return m;
|
|
482
|
-
}, Le = /* @__PURE__ */ Me(Se, [["__scopeId", "data-v-
|
|
483
|
+
}, Le = /* @__PURE__ */ Me(Se, [["__scopeId", "data-v-02cdbe5a"]]), Xe = me(Le);
|
|
483
484
|
export {
|
|
484
485
|
Xe as DasImportButton,
|
|
485
486
|
Xe as default
|
|
Binary file
|
|
@@ -18,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
|
|
|
18
18
|
multiple: boolean;
|
|
19
19
|
}>, {
|
|
20
20
|
confirmImport: () => Promise<import("element-plus").MessageHandler | undefined>;
|
|
21
|
+
showImportHandle: () => void;
|
|
21
22
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
22
23
|
open: () => void;
|
|
23
24
|
success: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-import-button[data-v-
|
|
1
|
+
.das-import-button[data-v-02cdbe5a]{display:inline-block}.das-import-button .upload-dialog .second-line[data-v-02cdbe5a]{margin-bottom:20px}.das-import-button .upload-dialog .tips[data-v-02cdbe5a]{font-size:16px}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import '@das-fed/ui/packages/business-components/process-form/style.css';
|
|
2
2
|
import { withInstall as Ae } from "@das-fed/utils/with-install/index";
|
|
3
|
-
import { ref as g, defineComponent as $, watch as I, openBlock as V, createBlock as L, unref as n, withCtx as D, createVNode as h, createElementVNode as be, createTextVNode as Q, toDisplayString as C, createElementBlock as U, Fragment as ae, isRef as le, createSlots as Qe, createCommentVNode as
|
|
3
|
+
import { ref as g, defineComponent as $, watch as I, openBlock as V, createBlock as L, unref as n, withCtx as D, createVNode as h, createElementVNode as be, createTextVNode as Q, toDisplayString as C, createElementBlock as U, Fragment as ae, isRef as le, createSlots as Qe, createCommentVNode as Z, h as Y, onMounted as Ce, renderList as he, withDirectives as Ue, resolveDynamicComponent as xe } from "vue";
|
|
4
4
|
import { DasFormRef as Je, DasForm as Ye } from "@das-fed/ui/packages/components/form/index";
|
|
5
5
|
import { DasButton as We } from "@das-fed/ui/packages/components/button/index";
|
|
6
6
|
import { vOverlay as Ze } from "@das-fed/ui/packages/components/overlay/index";
|
|
@@ -676,8 +676,8 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
676
676
|
__proto__: null,
|
|
677
677
|
default: ts
|
|
678
678
|
}, Symbol.toStringTag, { value: "Module" })), ss = (a) => {
|
|
679
|
-
var se,
|
|
680
|
-
const e = Ve().id, s = g(!1), t = (B = (
|
|
679
|
+
var se, H, F, G, B;
|
|
680
|
+
const e = Ve().id, s = g(!1), t = (B = (G = (F = (H = (se = a == null ? void 0 : a.options) == null ? void 0 : se.selector) == null ? void 0 : H.type) == null ? void 0 : F.alias) == null ? void 0 : G.replace("eip-", "")) == null ? void 0 : B.replace("-selector", ""), m = g([]), d = g(""), c = {
|
|
681
681
|
user: T("搜索姓名/账号/手机号").value,
|
|
682
682
|
org: T("搜索组织名称/组织编码").value,
|
|
683
683
|
role: T("搜索角色名称").value,
|
|
@@ -691,8 +691,8 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
691
691
|
role: T("角色选择器").value,
|
|
692
692
|
job: T("职务选择器").value,
|
|
693
693
|
post: T("岗位选择器").value,
|
|
694
|
-
supplier: T("
|
|
695
|
-
source: T("
|
|
694
|
+
supplier: T("供应商选择器").value,
|
|
695
|
+
source: T("源单选择器").value
|
|
696
696
|
}, o = {
|
|
697
697
|
user: "id",
|
|
698
698
|
org: "id",
|
|
@@ -700,7 +700,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
700
700
|
job: "positionId",
|
|
701
701
|
post: "stationId",
|
|
702
702
|
supplier: "id",
|
|
703
|
-
source: "
|
|
703
|
+
source: "code"
|
|
704
704
|
}, i = {
|
|
705
705
|
1: T("正常").value,
|
|
706
706
|
2: T("锁定").value,
|
|
@@ -746,7 +746,8 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
746
746
|
},
|
|
747
747
|
props: {
|
|
748
748
|
pageSize: 9999,
|
|
749
|
-
paginationProps: { layout: "none," }
|
|
749
|
+
paginationProps: { layout: "none," },
|
|
750
|
+
rowKey: "code"
|
|
750
751
|
}
|
|
751
752
|
},
|
|
752
753
|
right: !1
|
|
@@ -872,11 +873,11 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
872
873
|
};
|
|
873
874
|
J();
|
|
874
875
|
const E = async () => {
|
|
875
|
-
var b, R, f,
|
|
876
|
+
var b, R, f, W, oe, P;
|
|
876
877
|
y.value.content.params = {
|
|
877
878
|
...(R = (b = y == null ? void 0 : y.value) == null ? void 0 : b.content) == null ? void 0 : R.params,
|
|
878
879
|
pageIndex: 1
|
|
879
|
-
}, (t === "user" || t === "org" || t === "post" || t === "role" || t === "job") && (y.value.content.params.name = (f = _ == null ? void 0 : _.value[0]) == null ? void 0 : f.value), t === "source" && (y.value.content.params.key = (
|
|
880
|
+
}, (t === "user" || t === "org" || t === "post" || t === "role" || t === "job") && (y.value.content.params.name = (f = _ == null ? void 0 : _.value[0]) == null ? void 0 : f.value), t === "source" && (y.value.content.params.key = (W = _ == null ? void 0 : _.value[0]) == null ? void 0 : W.value), t === "supplier" && (y.value.content.params.condition = (oe = _ == null ? void 0 : _.value[0]) == null ? void 0 : oe.value, y.value.content.params.classificationId = (P = _ == null ? void 0 : _.value[1]) == null ? void 0 : P.value);
|
|
880
881
|
};
|
|
881
882
|
I(
|
|
882
883
|
() => s == null ? void 0 : s.value,
|
|
@@ -905,7 +906,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
905
906
|
getDetail: async (b) => {
|
|
906
907
|
const R = p[t];
|
|
907
908
|
let f = {};
|
|
908
|
-
const
|
|
909
|
+
const W = b == null ? void 0 : b.split(",");
|
|
909
910
|
if (t === "source") {
|
|
910
911
|
m.value = [
|
|
911
912
|
{
|
|
@@ -914,9 +915,8 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
914
915
|
}
|
|
915
916
|
];
|
|
916
917
|
return;
|
|
917
|
-
}
|
|
918
|
-
|
|
919
|
-
const [oe, P] = await R().run(f);
|
|
918
|
+
} else t === "user" ? f.userIds = W : t === "role" ? f.ids = W : t === "supplier" ? f.id = W : f = W;
|
|
919
|
+
const [oe, P] = await R(f).run();
|
|
920
920
|
oe || (t === "supplier" ? m.value = [
|
|
921
921
|
{
|
|
922
922
|
label: (P == null ? void 0 : P.name) || (P == null ? void 0 : P.code),
|
|
@@ -999,12 +999,12 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
999
999
|
getDetail: J,
|
|
1000
1000
|
searchData: S,
|
|
1001
1001
|
searchOptions: M
|
|
1002
|
-
} = ss(e.setting), { spacePath: j, spaceName: k, searchSpace: E, changeSpace: X, spaceLoad: ee, filterSpaceTree: ye, getSpaceDetail: se } = os(),
|
|
1002
|
+
} = ss(e.setting), { spacePath: j, spaceName: k, searchSpace: E, changeSpace: X, spaceLoad: ee, filterSpaceTree: ye, getSpaceDetail: se } = os(), H = g(!1);
|
|
1003
1003
|
K(e.setting.options.validateList).then((B) => {
|
|
1004
|
-
|
|
1004
|
+
H.value = B;
|
|
1005
1005
|
});
|
|
1006
|
-
const F = g(""),
|
|
1007
|
-
return e.setting.options.tip && (
|
|
1006
|
+
const F = g(""), G = g();
|
|
1007
|
+
return e.setting.options.tip && (G.value = q(e.setting.options.tip)), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), i !== "position" ? (F.value = t(e.setting.name) ? t(e.setting.name) : F.value, F.value && J(F.value), F.value.length || s(e.setting.name, null), I(l, (B) => {
|
|
1008
1008
|
F.value = B.map((b) => b.value).toString(), s(e.setting.name, F.value);
|
|
1009
1009
|
})) : (F.value = t(e.setting.name) ? t(e.setting.name) : F.value, F.value && se(F.value), F.value || s(e.setting.name, null), I(F, (B) => {
|
|
1010
1010
|
s(e.setting.name, B);
|
|
@@ -1021,9 +1021,9 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1021
1021
|
label: B.setting.desc,
|
|
1022
1022
|
type: "inputDialogSelect",
|
|
1023
1023
|
options: n(l),
|
|
1024
|
-
helpMessage:
|
|
1024
|
+
helpMessage: G.value,
|
|
1025
1025
|
isView: e.isView,
|
|
1026
|
-
required:
|
|
1026
|
+
required: H.value,
|
|
1027
1027
|
onOpenDialog: n(y)
|
|
1028
1028
|
}, {
|
|
1029
1029
|
default: D(() => {
|
|
@@ -1238,7 +1238,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1238
1238
|
];
|
|
1239
1239
|
}),
|
|
1240
1240
|
_: 1
|
|
1241
|
-
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) :
|
|
1241
|
+
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : Z("", !0),
|
|
1242
1242
|
n(i) == "position" ? (V(), L(n(O), {
|
|
1243
1243
|
key: 1,
|
|
1244
1244
|
col: e.span,
|
|
@@ -1248,8 +1248,8 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1248
1248
|
type: "treeSelect",
|
|
1249
1249
|
"node-key": "id",
|
|
1250
1250
|
showFullPath: !0,
|
|
1251
|
-
helpMessage:
|
|
1252
|
-
required:
|
|
1251
|
+
helpMessage: G.value,
|
|
1252
|
+
required: H.value,
|
|
1253
1253
|
modelValue: F.value,
|
|
1254
1254
|
"onUpdate:modelValue": b[2] || (b[2] = (R) => F.value = R),
|
|
1255
1255
|
keyword: n(E),
|
|
@@ -1264,7 +1264,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1264
1264
|
label: "name"
|
|
1265
1265
|
},
|
|
1266
1266
|
onChange: n(X)
|
|
1267
|
-
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) :
|
|
1267
|
+
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : Z("", !0)
|
|
1268
1268
|
], 64));
|
|
1269
1269
|
}
|
|
1270
1270
|
}), ls = /* @__PURE__ */ ie(is, [["__scopeId", "data-v-b8c31472"]]), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1328,7 +1328,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1328
1328
|
])) : (V(), U("div", us, "-"))
|
|
1329
1329
|
]),
|
|
1330
1330
|
_: 1
|
|
1331
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1331
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : Z("", !0);
|
|
1332
1332
|
}
|
|
1333
1333
|
}), ds = /* @__PURE__ */ ie(gs, [["__scopeId", "data-v-044dd90f"]]), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1334
1334
|
__proto__: null,
|
|
@@ -1459,7 +1459,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1459
1459
|
return o.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", i.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), I(r, (l) => {
|
|
1460
1460
|
s(e.setting.name, l);
|
|
1461
1461
|
}), (l, u) => (V(), U(ae, null, [
|
|
1462
|
-
l.setting.options.isEditor ?
|
|
1462
|
+
l.setting.options.isEditor ? Z("", !0) : (V(), L(n(O), {
|
|
1463
1463
|
key: 0,
|
|
1464
1464
|
col: e.span,
|
|
1465
1465
|
marginRight: l.marginRight,
|
|
@@ -1502,7 +1502,7 @@ const ft = pt.get("/getBindRelationByDefKey"), yt = gt.get("/getByAlias"), ht =
|
|
|
1502
1502
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1503
1503
|
]),
|
|
1504
1504
|
_: 1
|
|
1505
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1505
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : Z("", !0)
|
|
1506
1506
|
], 64));
|
|
1507
1507
|
}
|
|
1508
1508
|
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -1855,7 +1855,7 @@ const Fs = { ...Ee, ...ze }, js = (a, e, s, t) => {
|
|
|
1855
1855
|
]),
|
|
1856
1856
|
_: 2
|
|
1857
1857
|
}, 1032, ["onClick"]))), 128))
|
|
1858
|
-
])) :
|
|
1858
|
+
])) : Z("", !0),
|
|
1859
1859
|
Ue((V(), U("div", Gs, [
|
|
1860
1860
|
n(i) ? (V(), L(n(Ye), {
|
|
1861
1861
|
key: 0,
|
|
@@ -1877,7 +1877,7 @@ const Fs = { ...Ee, ...ze }, js = (a, e, s, t) => {
|
|
|
1877
1877
|
}, null, 8, ["setting", "isView", "store"]))), 128))
|
|
1878
1878
|
]),
|
|
1879
1879
|
_: 1
|
|
1880
|
-
}, 8, ["rules", "form"])) :
|
|
1880
|
+
}, 8, ["rules", "form"])) : Z("", !0)
|
|
1881
1881
|
])), [
|
|
1882
1882
|
[n(Ze)]
|
|
1883
1883
|
])
|
|
Binary file
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { urgentPanelShow, urgentMonitorPanelShow, closeUrgentMonitorPanel } from './src/render-panel';
|
|
1
2
|
declare const DasUrgentPanelModal: import("@das-fed/utils").SFCWithInstall<import("vue").DefineComponent<{}, {
|
|
2
3
|
setConfigData: (code: any) => void;
|
|
3
4
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
@@ -10,7 +11,7 @@ declare const DasUrgentPanelModal: import("@das-fed/utils").SFCWithInstall<impor
|
|
|
10
11
|
onResizePanel?: ((...args: any[]) => any) | undefined;
|
|
11
12
|
}, {}, {}>>;
|
|
12
13
|
export * from './src/render-panel';
|
|
13
|
-
export { DasUrgentPanelModal };
|
|
14
|
+
export { DasUrgentPanelModal, urgentPanelShow, urgentMonitorPanelShow, closeUrgentMonitorPanel };
|
|
14
15
|
declare const _default: {
|
|
15
16
|
name: string;
|
|
16
17
|
};
|