@das-fed/ui 7.0.5-beta.8 → 7.0.5-test.10
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 -2
- package/package.json +6 -5
- package/packages/business-components/app-container/style.css +1 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/area-phone-select/index.d.ts +23 -23
- package/packages/business-components/area-phone-select/src/Index.vue.d.ts +2 -2
- package/packages/business-components/area-phone-select/src/area-popover/index.vue.d.ts +2 -2
- package/packages/business-components/device-panel/i18n/index.d.ts +40 -0
- package/packages/business-components/device-panel/index.d.ts +1 -1
- package/packages/business-components/device-panel/index.js +19872 -18406
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/hooks/use-knowledge.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/apis.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/Info.vue.d.ts +44 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/downloadFile.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/components/use-info/info.d.ts +24 -0
- package/packages/business-components/device-panel/src/components/alarmDevicePanel/knowledge/utils/get-file-details.d.ts +2 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/hooks/use-knowledge.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/index.vue.d.ts +1 -1
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/Index.vue.d.ts +6 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/apis.d.ts +5 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/Info.vue.d.ts +44 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/downloadFile.d.ts +8 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/components/use-info/info.d.ts +24 -0
- package/packages/business-components/device-panel/src/components/devicePanelModal/knowledge/utils/get-file-details.d.ts +2 -0
- 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/import-button/index.js +76 -74
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/import-button/src/type.d.ts +4 -0
- package/packages/business-components/import-button/style.css +1 -1
- package/packages/business-components/index.d.ts +1 -0
- package/packages/business-components/index.js +1 -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/payment/api.d.ts +8 -0
- package/packages/business-components/payment/index.d.ts +9 -11
- package/packages/business-components/payment/index.js +153 -147
- package/packages/business-components/payment/index.js.gz +0 -0
- package/packages/business-components/payment/style.css +1 -1
- package/packages/business-components/payment/type.d.ts +2 -0
- package/packages/business-components/process-configuration/index.js +3 -3
- package/packages/business-components/process-configuration/index.js.gz +0 -0
- package/packages/business-components/process-configuration/style.css +1 -1
- package/packages/business-components/process-configuration/style.css.gz +0 -0
- package/packages/business-components/process-form/index.js +1167 -1140
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-form/src/hooks/useSpaceTree.d.ts +3 -3
- package/packages/business-components/process-form/src/utils/common-methods.d.ts +6 -0
- package/packages/business-components/process-form/style.css +1 -1
- package/packages/business-components/process-search-form/index.js +54 -54
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/i18n/index.d.ts +23 -0
- package/packages/business-components/update-confirm-dialog/index.d.ts +61 -0
- package/packages/business-components/update-confirm-dialog/index.js +105 -0
- package/packages/business-components/update-confirm-dialog/index.js.gz +0 -0
- package/packages/business-components/update-confirm-dialog/src/App.vue.d.ts +11 -0
- package/packages/business-components/update-confirm-dialog/src/type.d.ts +4 -0
- package/packages/business-components/video-dialog/index.d.ts +10 -0
- package/packages/business-components/video-dialog/index.js +375 -356
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/business-components/video-dialog/src/api.d.ts +1 -0
- package/packages/business-components/video-dialog/src/component/Player/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/hooks/use-video/PlayerProvider.d.ts +6 -0
- package/packages/business-components/video-dialog/src/index.vue.d.ts +2 -0
- package/packages/business-components/video-dialog/src/type.d.ts +7 -1
- 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.d.ts +15 -15
- package/packages/components/autocomplete/src/index.vue.d.ts +2 -2
- package/packages/components/checkbox/index.d.ts +15 -15
- package/packages/components/checkbox/src/Index.vue.d.ts +2 -2
- 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/color-picker/index.d.ts +8 -8
- package/packages/components/color-picker/src/Index.vue.d.ts +2 -2
- package/packages/components/custom-search-item/index.d.ts +15 -15
- package/packages/components/custom-search-item/src/Index.vue.d.ts +2 -2
- package/packages/components/dialog/index.d.ts +6 -3
- package/packages/components/dialog/index.js +279 -184
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dialog/src/Index.vue.d.ts +2 -1
- package/packages/components/dialog/src/directives/dialogResize.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/hls-player/index.d.ts +45 -158
- package/packages/components/hls-player/index.js +3420 -3330
- package/packages/components/hls-player/index.js.gz +0 -0
- package/packages/components/hls-player/src/das-hls-player-origin.vue.d.ts +13 -0
- package/packages/components/hls-player/src/das-hls-player.vue.d.ts +3 -11
- package/packages/components/hls-player/src/type.d.ts +6 -0
- package/packages/components/hls-player/style.css +1 -1
- package/packages/components/hls-player/style.css.gz +0 -0
- package/packages/components/input/index.d.ts +5 -5
- package/packages/components/input/src/index.vue.d.ts +2 -2
- package/packages/components/input-dialog-select/index.d.ts +2 -2
- package/packages/components/input-dialog-select/src/Index.vue.d.ts +2 -2
- package/packages/components/input-number/index.d.ts +8 -8
- package/packages/components/input-number/src/App.vue.d.ts +2 -2
- package/packages/components/live-player/index.d.ts +2 -0
- package/packages/components/live-player/index.js +822 -814
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/live-player/src/type.d.ts +3 -0
- package/packages/components/live-player/style.css +1 -1
- package/packages/components/radio/index.d.ts +15 -15
- package/packages/components/radio/src/Index.vue.d.ts +2 -2
- package/packages/components/rich-editor/index.d.ts +8 -8
- package/packages/components/rich-editor/index.js +15506 -14971
- package/packages/components/rich-editor/index.js.gz +0 -0
- package/packages/components/rich-editor/src/Index.vue.d.ts +2 -2
- package/packages/components/scrollbar/index.d.ts +9 -3
- package/packages/components/scrollbar/index.js +323 -319
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/scrollbar/src/scrollbar.vue.d.ts +3 -1
- package/packages/components/scrollbar/style.css +1 -1
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/index.d.ts +2 -2
- package/packages/components/search/src/Index.vue.d.ts +2 -2
- package/packages/components/search-form/index.js +175 -174
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/search-form/style.css +1 -1
- package/packages/components/search-form/style.css.gz +0 -0
- package/packages/components/special-range-picker-month/index.d.ts +2 -2
- package/packages/components/special-range-picker-month/src/Index.vue.d.ts +2 -2
- package/packages/components/special-range-picker-year/index.d.ts +2 -2
- package/packages/components/special-range-picker-year/src/Index.vue.d.ts +2 -2
- package/packages/components/tree-select/src/App.vue.d.ts +2 -2
|
Binary file
|
|
@@ -11,7 +11,7 @@ import { DasMessage as U } from "@das-fed/ui/packages/components/message/index";
|
|
|
11
11
|
import ze from "dayjs";
|
|
12
12
|
import { getConfig as ne } from "@das-fed/utils/config";
|
|
13
13
|
import { extractFilename as Te } from "@das-fed/utils/common-tools";
|
|
14
|
-
import { getUserInfo as
|
|
14
|
+
import { getUserInfo as Fe } from "@das-fed/utils/common-info/index";
|
|
15
15
|
import { pureImageSrc as ie } from "@das-fed/utils/pure-image-src";
|
|
16
16
|
let te = (e = 21) => {
|
|
17
17
|
let m = "", p = crypto.getRandomValues(new Uint8Array(e));
|
|
@@ -21,14 +21,14 @@ let te = (e = 21) => {
|
|
|
21
21
|
}
|
|
22
22
|
return m;
|
|
23
23
|
};
|
|
24
|
-
const
|
|
25
|
-
let m = k(!1), p = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), y, b = k(""), I = k(""),
|
|
24
|
+
const _e = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), Se = ae.post("upload-objects", (e) => (e.headers || (e.headers = {}), e.headers["Content-Type"] = "multipart/form-data", e.responseType = "blob", e)), $e = be.get("progress"), Pe = (e) => {
|
|
25
|
+
let m = k(!1), p = k(!1), l = k(""), w = k(0), n = k("normal"), v = k(!1), y, b = k(""), I = k(""), S = k(""), z = k(""), $ = k(!1), M = k(""), F = "", _ = k(""), P;
|
|
26
26
|
const E = () => {
|
|
27
|
-
I.value = "",
|
|
27
|
+
I.value = "", S.value = "", z.value = "", $.value = !1, M.value = "";
|
|
28
28
|
}, N = async () => {
|
|
29
|
-
const [r, s] = await
|
|
29
|
+
const [r, s] = await _e().run();
|
|
30
30
|
return r ? { stauts: !1 } : { status: !0, data: s };
|
|
31
|
-
}, B = (r) => new Promise((s,
|
|
31
|
+
}, B = (r) => new Promise((s, f) => {
|
|
32
32
|
const i = [];
|
|
33
33
|
let t = 0;
|
|
34
34
|
for (; t < r.size; ) {
|
|
@@ -37,12 +37,12 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
37
37
|
}
|
|
38
38
|
const c = new Blob(i, { type: r.type });
|
|
39
39
|
s(c);
|
|
40
|
-
}), A = async (r, s,
|
|
41
|
-
|
|
40
|
+
}), A = async (r, s, f, a = !1, i = !0, t = "") => {
|
|
41
|
+
F = t, _.value = "import", i && (n.value = "normal", w.value = 0, l.value = u("导入进度"), p.value = !0, b.value = ""), P = s;
|
|
42
42
|
const c = await N();
|
|
43
43
|
if (!c.status) return;
|
|
44
|
-
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } =
|
|
45
|
-
const ue = a ?
|
|
44
|
+
let C = c.data, x = null, { autoContentType: K, bucketName: V, importFileName: J } = f;
|
|
45
|
+
const ue = a ? Se : Ie;
|
|
46
46
|
if (a) {
|
|
47
47
|
let X = [];
|
|
48
48
|
await s.forEach(async (G) => {
|
|
@@ -82,30 +82,30 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
82
82
|
repeatNum: 1
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
|
-
}, R = async (r, s = "",
|
|
86
|
-
n.value = "normal", w.value = 0, l.value =
|
|
85
|
+
}, R = async (r, s = "", f = "") => {
|
|
86
|
+
n.value = "normal", w.value = 0, l.value = f || u("导出进度"), p.value = !0;
|
|
87
87
|
const a = await (r == null ? void 0 : r());
|
|
88
88
|
if (!a.status) {
|
|
89
89
|
p.value = !1, n.value = "error";
|
|
90
90
|
return;
|
|
91
91
|
}
|
|
92
92
|
T(a.taskId, "action", "");
|
|
93
|
-
}, O = async (r, s = "",
|
|
94
|
-
|
|
93
|
+
}, O = async (r, s = "", f = "xlsx") => {
|
|
94
|
+
_.value = "export", n.value = "normal", w.value = 0, l.value = u("导出进度"), p.value = !0;
|
|
95
95
|
const a = await (r == null ? void 0 : r());
|
|
96
96
|
if (!a.status) {
|
|
97
97
|
p.value = !1, n.value = "error";
|
|
98
98
|
return;
|
|
99
99
|
}
|
|
100
|
-
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "",
|
|
101
|
-
}, T = async (r, s,
|
|
102
|
-
v.value = !0, g(r, s,
|
|
100
|
+
ze().format("YYYYMMDDHHmmss") + "", T(a.taskId, "export", s || "", f);
|
|
101
|
+
}, T = async (r, s, f, a = "") => {
|
|
102
|
+
v.value = !0, g(r, s, f, a), y = setTimeout(() => {
|
|
103
103
|
}, 50);
|
|
104
|
-
},
|
|
104
|
+
}, d = () => {
|
|
105
105
|
clearTimeout(y), y = null, p.value = !1;
|
|
106
|
-
}, g = async (r, s = "export",
|
|
106
|
+
}, g = async (r, s = "export", f, a = "") => {
|
|
107
107
|
var C, x;
|
|
108
|
-
const [i, t] = await
|
|
108
|
+
const [i, t] = await $e("", {
|
|
109
109
|
url: `progress/${r}`
|
|
110
110
|
}).run();
|
|
111
111
|
if (i) {
|
|
@@ -115,8 +115,8 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
115
115
|
w.value = t.percentage;
|
|
116
116
|
const c = s == "export" ? u("导出") : u("导入");
|
|
117
117
|
if (w.value == 100)
|
|
118
|
-
if (b.value = t, v.value = !1,
|
|
119
|
-
t.status == 1 ? (n.value = "success", pe(`${ne().baseURL}/oss${t.filePath}`,
|
|
118
|
+
if (b.value = t, v.value = !1, d(), s == "export")
|
|
119
|
+
t.status == 1 ? (n.value = "success", pe(`${ne().baseURL}/oss${t.filePath}`, f, a), v.value = !1) : t.status == 2 && (z.value = t.message || `${c}${u("失败")}`, U.error({
|
|
120
120
|
message: t.message || `${c}${u("失败")}`,
|
|
121
121
|
grouping: !0,
|
|
122
122
|
repeatNum: 1
|
|
@@ -125,24 +125,24 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
125
125
|
if (t.filePath) {
|
|
126
126
|
n.value = "error";
|
|
127
127
|
const K = (C = P.name) == null ? void 0 : C.match(/(.*?)(\.[^.]*$|$)/);
|
|
128
|
-
K.length && K[2],
|
|
128
|
+
K.length && K[2], $.value = !0;
|
|
129
129
|
let V = await Te(`/oss/${t == null ? void 0 : t.filePath}`);
|
|
130
130
|
const J = ((x = V == null ? void 0 : V.split("/")) == null ? void 0 : x.pop()) || "";
|
|
131
|
-
I.value =
|
|
131
|
+
I.value = F || J, S.value = P.sizeText, z.value = u("部分数据校验不通过,请下载附件并修改,重新导入!"), M.value = `${ne().baseURL}/oss/${t == null ? void 0 : t.filePath}`;
|
|
132
132
|
}
|
|
133
133
|
h(t.status, c, t.message), t.status == 1 && (m.value = !1), e("success");
|
|
134
134
|
} else s == "action" && (n.value = "success");
|
|
135
135
|
else
|
|
136
136
|
y && t.status != 2 ? y = setTimeout(() => {
|
|
137
|
-
g(r, s,
|
|
138
|
-
}, 50) : (b.value = t, v.value = !1, h(t.status, c, t.message),
|
|
139
|
-
}, h = (r, s,
|
|
137
|
+
g(r, s, f, a);
|
|
138
|
+
}, 50) : (b.value = t, v.value = !1, h(t.status, c, t.message), d(), $.value = !0, z.value = (t == null ? void 0 : t.message) || "", e("error", t));
|
|
139
|
+
}, h = (r, s, f) => {
|
|
140
140
|
r == 1 ? (n.value = "success", U.success({
|
|
141
141
|
message: u("business-components_export-success-tip", s),
|
|
142
142
|
grouping: !0,
|
|
143
143
|
repeatNum: 1
|
|
144
|
-
}), I.value = "",
|
|
145
|
-
message:
|
|
144
|
+
}), I.value = "", S.value = "", z.value = "") : r == 2 ? (n.value = "error", U.error({
|
|
145
|
+
message: f || u("business-components_export-failure-tip", s),
|
|
146
146
|
grouping: !0,
|
|
147
147
|
repeatNum: 1
|
|
148
148
|
})) : r == 3 && (n.value = "error", U.error({
|
|
@@ -160,22 +160,22 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
160
160
|
progressLoading: v,
|
|
161
161
|
progressResult: b,
|
|
162
162
|
errorFileName: I,
|
|
163
|
-
errorFileSize:
|
|
163
|
+
errorFileSize: S,
|
|
164
164
|
errorMessage: z,
|
|
165
|
-
errorImport:
|
|
165
|
+
errorImport: $,
|
|
166
166
|
errorFilePath: M,
|
|
167
|
-
fileHandleType:
|
|
167
|
+
fileHandleType: _,
|
|
168
168
|
fileImport: A,
|
|
169
169
|
fileExport: O,
|
|
170
170
|
fileAction: R,
|
|
171
171
|
generateUniqueName: (r) => {
|
|
172
|
-
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/),
|
|
173
|
-
return `${s.length ? s[1] : r}${te()}${
|
|
172
|
+
const s = r == null ? void 0 : r.match(/(.*?)(\.[^.]*$|$)/), f = s.length ? s[2] : "";
|
|
173
|
+
return `${s.length ? s[1] : r}${te()}${f}`;
|
|
174
174
|
},
|
|
175
175
|
downloadFile: pe,
|
|
176
176
|
resetStataus: E,
|
|
177
177
|
checkProgress: T,
|
|
178
|
-
clearTimer:
|
|
178
|
+
clearTimer: d
|
|
179
179
|
};
|
|
180
180
|
}, De = (e) => {
|
|
181
181
|
let m = e == null ? void 0 : e.toLocaleLowerCase();
|
|
@@ -226,7 +226,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
226
226
|
typeof l.result == "string" && (n = JSON.parse(l.result)), m(n);
|
|
227
227
|
}, l.readAsText(e);
|
|
228
228
|
}), Me = (e, m) => {
|
|
229
|
-
var
|
|
229
|
+
var f;
|
|
230
230
|
const {
|
|
231
231
|
importDialog: p,
|
|
232
232
|
showProgressDialog: l,
|
|
@@ -236,18 +236,18 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
236
236
|
progressLoading: y,
|
|
237
237
|
errorFileName: b,
|
|
238
238
|
errorFileSize: I,
|
|
239
|
-
errorMessage:
|
|
239
|
+
errorMessage: S,
|
|
240
240
|
errorImport: z,
|
|
241
|
-
errorFilePath:
|
|
241
|
+
errorFilePath: $,
|
|
242
242
|
fileHandleType: M,
|
|
243
|
-
fileImport:
|
|
244
|
-
fileExport:
|
|
243
|
+
fileImport: F,
|
|
244
|
+
fileExport: _,
|
|
245
245
|
downloadFile: P,
|
|
246
246
|
clearTimer: E
|
|
247
247
|
} = Pe(m);
|
|
248
|
-
let N = k([]), B = (
|
|
248
|
+
let N = k([]), B = (f = Fe()) == null ? void 0 : f.tenantId;
|
|
249
249
|
const A = () => {
|
|
250
|
-
N.value = [], z.value = !1, b.value = "", I.value = "",
|
|
250
|
+
N.value = [], z.value = !1, b.value = "", I.value = "", S.value = "", p.value = !0, $.value = "", m("open");
|
|
251
251
|
};
|
|
252
252
|
let R;
|
|
253
253
|
const O = (a) => {
|
|
@@ -270,7 +270,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
270
270
|
}, T = (a) => {
|
|
271
271
|
let i = a.match(/\d+(\.\d+)?/)[0], t = a.match(/[a-zA-z]+/gi)[0], c = 0;
|
|
272
272
|
return i = parseFloat(i), t = t.toLowerCase(), t === "gb" || t === "g" ? c = (i * 1024 * 1024 * 1024).toFixed(2) : t === "mb" || t === "m" ? c = (i * 1024 * 1024).toFixed(2) : t === "kb" || t === "k" ? c = (i * 1024).toFixed(2) : t === "b" && (c = i), parseFloat(c);
|
|
273
|
-
},
|
|
273
|
+
}, d = async (a) => {
|
|
274
274
|
const i = a.value.split("/");
|
|
275
275
|
let t = te();
|
|
276
276
|
const c = {
|
|
@@ -288,11 +288,11 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
288
288
|
};
|
|
289
289
|
e.maxCount > 1 && (a.importFileName = N.value.map((c) => c.name));
|
|
290
290
|
const i = e.maxCount > 1, t = e.maxCount > 1 ? N.value : N.value[0];
|
|
291
|
-
await
|
|
291
|
+
await F(d, t, a, i);
|
|
292
292
|
}, h = () => {
|
|
293
|
-
P(
|
|
293
|
+
P($.value, b.value);
|
|
294
294
|
}, oe = () => {
|
|
295
|
-
|
|
295
|
+
_(r, e.templateName);
|
|
296
296
|
}, r = async () => {
|
|
297
297
|
let a = te();
|
|
298
298
|
const [i, t] = await e.templateFun({ taskId: a }).run();
|
|
@@ -306,7 +306,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
306
306
|
progressLoading: y,
|
|
307
307
|
errorFileName: b,
|
|
308
308
|
errorFileSize: I,
|
|
309
|
-
errorMessage:
|
|
309
|
+
errorMessage: S,
|
|
310
310
|
errorImport: z,
|
|
311
311
|
importDialog: p,
|
|
312
312
|
fileList: N,
|
|
@@ -353,7 +353,9 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
353
353
|
openDisabled: { type: Boolean, default: !0 },
|
|
354
354
|
bucketName: { default: "temp" },
|
|
355
355
|
maxCount: { default: 1 },
|
|
356
|
-
multiple: { type: Boolean, default: !1 }
|
|
356
|
+
multiple: { type: Boolean, default: !1 },
|
|
357
|
+
dialogFistTip: {},
|
|
358
|
+
dialogSecondTip: {}
|
|
357
359
|
},
|
|
358
360
|
emits: ["open", "success", "error"],
|
|
359
361
|
setup(e, { expose: m, emit: p }) {
|
|
@@ -362,12 +364,12 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
362
364
|
progressTitle: y,
|
|
363
365
|
percent: b,
|
|
364
366
|
progressStatus: I,
|
|
365
|
-
errorFileName:
|
|
367
|
+
errorFileName: S,
|
|
366
368
|
errorFileSize: z,
|
|
367
|
-
errorMessage:
|
|
369
|
+
errorMessage: $,
|
|
368
370
|
errorImport: M,
|
|
369
|
-
importDialog:
|
|
370
|
-
fileList:
|
|
371
|
+
importDialog: F,
|
|
372
|
+
fileList: _,
|
|
371
373
|
fileHandleType: P,
|
|
372
374
|
showImportHandle: E,
|
|
373
375
|
confirmImport: N,
|
|
@@ -377,17 +379,17 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
377
379
|
clearTimer: O
|
|
378
380
|
} = Me(l, w);
|
|
379
381
|
let T;
|
|
380
|
-
return he(P, (
|
|
381
|
-
|
|
382
|
+
return he(P, (d) => {
|
|
383
|
+
d.includes("import") ? T = [u("正在导入中..."), u("导入失败"), u("导入成功")] : T = [u("正在导出中..."), u("导出失败"), u("导出成功")];
|
|
382
384
|
}), m({
|
|
383
385
|
confirmImport: N,
|
|
384
386
|
showImportHandle: E
|
|
385
|
-
}), (
|
|
387
|
+
}), (d, g) => (we(), Ce("div", Ee, [
|
|
386
388
|
q("div", {
|
|
387
389
|
onClick: g[0] || (g[0] = //@ts-ignore
|
|
388
390
|
(...h) => o(E) && o(E)(...h))
|
|
389
391
|
}, [
|
|
390
|
-
le(
|
|
392
|
+
le(d.$slots, "default", {}, () => [
|
|
391
393
|
D(o(W), {
|
|
392
394
|
size: "middle",
|
|
393
395
|
"btn-type": "primary"
|
|
@@ -406,9 +408,9 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
406
408
|
]),
|
|
407
409
|
re(" 导入弹窗 "),
|
|
408
410
|
D(o(se), {
|
|
409
|
-
title: o(j)(
|
|
410
|
-
modelValue: o(
|
|
411
|
-
"onUpdate:modelValue": g[3] || (g[3] = (h) => Q(
|
|
411
|
+
title: o(j)(d.importDialogName).value,
|
|
412
|
+
modelValue: o(F),
|
|
413
|
+
"onUpdate:modelValue": g[3] || (g[3] = (h) => Q(F) ? F.value = h : null),
|
|
412
414
|
customClass: "upload-dialog",
|
|
413
415
|
width: "610px",
|
|
414
416
|
height: "500px"
|
|
@@ -417,7 +419,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
417
419
|
q("div", null, [
|
|
418
420
|
D(o(W), {
|
|
419
421
|
size: "middle",
|
|
420
|
-
onClick: g[2] || (g[2] = (h) =>
|
|
422
|
+
onClick: g[2] || (g[2] = (h) => F.value = !1)
|
|
421
423
|
}, {
|
|
422
424
|
default: L(() => [
|
|
423
425
|
Y(
|
|
@@ -432,13 +434,13 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
432
434
|
D(o(W), {
|
|
433
435
|
size: "middle",
|
|
434
436
|
"btn-type": "primary",
|
|
435
|
-
disabled:
|
|
437
|
+
disabled: d.openDisabled && o(_).length === 0,
|
|
436
438
|
style: { "margin-left": "12px", width: "100%" },
|
|
437
439
|
onClick: o(N)
|
|
438
440
|
}, {
|
|
439
441
|
default: L(() => [
|
|
440
442
|
Y(
|
|
441
|
-
H(o(j)(`${
|
|
443
|
+
H(o(j)(`${d.confirmButtonName}`).value),
|
|
442
444
|
1
|
|
443
445
|
/* TEXT */
|
|
444
446
|
)
|
|
@@ -449,11 +451,11 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
449
451
|
])
|
|
450
452
|
]),
|
|
451
453
|
default: L(() => [
|
|
452
|
-
le(
|
|
454
|
+
le(d.$slots, "tip", {}, () => [
|
|
453
455
|
q("div", Le, [
|
|
454
456
|
q("div", je, [
|
|
455
457
|
Y(
|
|
456
|
-
H(o(j)("1、点击下载 ").value),
|
|
458
|
+
H(d.dialogFistTip || o(j)("1、点击下载 ").value) + " ",
|
|
457
459
|
1
|
|
458
460
|
/* TEXT */
|
|
459
461
|
),
|
|
@@ -465,7 +467,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
465
467
|
}, {
|
|
466
468
|
default: L(() => [
|
|
467
469
|
Y(
|
|
468
|
-
H(o(j)(`${
|
|
470
|
+
H(o(j)(`${d.templateName}`).value),
|
|
469
471
|
1
|
|
470
472
|
/* TEXT */
|
|
471
473
|
)
|
|
@@ -477,22 +479,22 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
477
479
|
q(
|
|
478
480
|
"div",
|
|
479
481
|
Be,
|
|
480
|
-
H(o(j)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
482
|
+
H(d.dialogSecondTip || o(j)("2、仅支持上传Excel文件,重复数据以最后一条为准").value),
|
|
481
483
|
1
|
|
482
484
|
/* TEXT */
|
|
483
485
|
)
|
|
484
486
|
])
|
|
485
487
|
], !0),
|
|
486
488
|
D(o(ye), {
|
|
487
|
-
modelValue: o(
|
|
488
|
-
"onUpdate:modelValue": g[1] || (g[1] = (h) => Q(
|
|
489
|
+
modelValue: o(_),
|
|
490
|
+
"onUpdate:modelValue": g[1] || (g[1] = (h) => Q(_) ? _.value = h : null),
|
|
489
491
|
error: o(M),
|
|
490
|
-
"error-file-name": o(
|
|
492
|
+
"error-file-name": o(S),
|
|
491
493
|
"error-file-size": o(z),
|
|
492
|
-
"error-message": o(
|
|
493
|
-
accept:
|
|
494
|
-
maxCount:
|
|
495
|
-
multiple:
|
|
494
|
+
"error-message": o($),
|
|
495
|
+
accept: d.fileType,
|
|
496
|
+
maxCount: d.maxCount,
|
|
497
|
+
multiple: d.multiple,
|
|
496
498
|
onErrorFileDownload: o(A),
|
|
497
499
|
onFileUpload: o(B)
|
|
498
500
|
}, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "maxCount", "multiple", "onErrorFileDownload", "onFileUpload"])
|
|
@@ -530,7 +532,7 @@ const Fe = ae.get("token"), Ie = ae.post("put-object", (e) => (e.headers || (e.h
|
|
|
530
532
|
for (const [l, w] of m)
|
|
531
533
|
p[l] = w;
|
|
532
534
|
return p;
|
|
533
|
-
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-
|
|
535
|
+
}, He = /* @__PURE__ */ Ve(Re, [["__scopeId", "data-v-49caa32f"]]), Ae = {
|
|
534
536
|
"1、点击下载 ": { "zh-CN": "1、点击下载 ", en: "1.Click to Download ", _appCode: "framework" },
|
|
535
537
|
"2、仅支持上传Excel文件,重复数据以最后一条为准": {
|
|
536
538
|
"zh-CN": "2、仅支持上传Excel文件,重复数据以最后一条为准",
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.das-import-button[data-v-
|
|
1
|
+
.das-import-button[data-v-49caa32f]{display:inline-block}.das-import-button .upload-dialog .second-line[data-v-49caa32f]{margin-bottom:20px}.das-import-button .upload-dialog .tips[data-v-49caa32f]{font-size:16px}
|
|
@@ -16,6 +16,7 @@ export * from './process-form';
|
|
|
16
16
|
export * from './process-log';
|
|
17
17
|
export * from './process-search-form';
|
|
18
18
|
export * from './process-table';
|
|
19
|
+
export * from './update-confirm-dialog';
|
|
19
20
|
export * from './upload-file';
|
|
20
21
|
export * from './urgent-panel';
|
|
21
22
|
export * from './user-org-dialog';
|
|
@@ -16,6 +16,7 @@ export * from './process-form'
|
|
|
16
16
|
export * from './process-log'
|
|
17
17
|
export * from './process-search-form'
|
|
18
18
|
export * from './process-table'
|
|
19
|
+
export * from './update-confirm-dialog'
|
|
19
20
|
export * from './upload-file'
|
|
20
21
|
export * from './urgent-panel'
|
|
21
22
|
export * from './user-org-dialog'
|
|
@@ -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
|
|
@@ -5,4 +5,12 @@ export declare const payService: {
|
|
|
5
5
|
patch: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
6
6
|
delete: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
7
7
|
};
|
|
8
|
+
export declare const customPaymentService: {
|
|
9
|
+
get: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
10
|
+
post: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
11
|
+
put: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
12
|
+
patch: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
13
|
+
delete: (url: string | import("vue").Ref | import("vue").ComputedRef, urlConfig?: import("@das-fed/utils/curring-http/type").CurringConfigFun) => (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
14
|
+
};
|
|
8
15
|
export declare const getOrderState: (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|
|
16
|
+
export declare const getPayAppidApi: (payload?: any, payloadConfig?: import("@das-fed/utils/curring-http/type").CurringConfig) => import("@das-fed/utils/curring-http/type").CurringRes;
|