@das-fed/ui 1.1.4 → 6.3.0-beta.1
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/global/icons/index.local.js +1 -1
- package/global/style/index.css +1 -1
- package/global/style/scrollbar.css +22 -22
- package/global/theme/index.js +12 -12
- package/global/theme/module/color.js +31 -31
- package/global/theme/module/fontSize.js +5 -5
- package/global/theme/module/scrollbar.js +6 -6
- package/package.json +15 -9
- package/packages/business-components/app-container/index.js +154 -147
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.js +241 -0
- package/packages/business-components/change-pwd/index.css +1 -0
- package/packages/business-components/change-pwd/index.js +330 -0
- package/packages/business-components/currency-page/index.css +1 -0
- package/packages/business-components/currency-page/index.js +99 -0
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.js +115939 -0
- package/packages/business-components/echarts/index.js +93 -122
- package/packages/business-components/export-button/index.js +73 -66
- package/packages/business-components/import-button/index.js +213 -170
- package/packages/business-components/index.js +8 -1
- package/packages/business-components/layout-breadcrumb/index.js +82 -66
- package/packages/business-components/model-table-dialog/index.js +299 -289
- package/packages/business-components/process-configuration/index.css +1 -0
- package/packages/business-components/process-configuration/index.js +612 -0
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +524 -0
- package/packages/business-components/process-search-form/index.js +73 -315
- package/packages/business-components/process-table/index.css +1 -1
- package/packages/business-components/process-table/index.js +186 -152
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.js +3914 -0
- package/packages/business-components/user-org-dialog/index.js +466 -375
- package/packages/business-components/video-dialog/index.css +1 -0
- package/packages/business-components/video-dialog/index.js +1041 -0
- package/packages/business.js +1 -2
- package/packages/components/alert/index.js +449 -633
- package/packages/components/audio-video/index.css +1 -1
- package/packages/components/audio-video/index.js +312 -126
- package/packages/components/autocomplete/index.css +1 -1
- package/packages/components/autocomplete/index.js +312 -2923
- package/packages/components/breadcrumb/index.js +97 -82
- package/packages/components/button/index.css +1 -1
- package/packages/components/button/index.js +646 -787
- package/packages/components/calendar/index.css +1 -1
- package/packages/components/calendar/index.js +655 -3879
- package/packages/components/cascader/index.js +209 -203
- package/packages/components/checkbox/index.css +1 -1
- package/packages/components/checkbox/index.js +710 -872
- package/packages/components/collapse-panel/index.css +1 -1
- package/packages/components/collapse-panel/index.js +419 -601
- package/packages/components/collapse-transition/index.js +23 -21
- package/packages/components/collaspe/index.css +1 -1
- package/packages/components/collaspe/index.js +413 -595
- package/packages/components/color-picker/index.css +1 -1
- package/packages/components/color-picker/index.js +176 -133
- package/packages/components/custom-search-item/index.js +43 -37
- package/packages/components/date-picker/index.js +1338 -1459
- package/packages/components/dialog/index.js +429 -215
- package/packages/components/dimple-layout/index.css +1 -1
- package/packages/components/dimple-layout/index.js +1298 -1794
- package/packages/components/drawer/index.js +105 -77
- package/packages/components/dropdown/index.js +129 -109
- package/packages/components/edit-table/index.css +1 -1
- package/packages/components/edit-table/index.js +868 -752
- package/packages/components/empty/index.js +83 -78
- package/packages/components/form/index.js +22 -15
- package/packages/components/form-item/index.css +1 -1
- package/packages/components/form-item/index.js +601 -440
- package/packages/components/icon/index.css +1 -1
- package/packages/components/icon/index.js +38 -22
- package/packages/components/image-preview/index.css +1 -0
- package/packages/components/image-preview/index.js +2714 -0
- package/packages/components/image-upload/index.js +601 -765
- package/packages/components/image-viewer/index.css +1 -1
- package/packages/components/image-viewer/index.js +909 -990
- package/packages/components/index.js +2 -2
- package/packages/components/input/index.css +1 -1
- package/packages/components/input/index.js +284 -256
- package/packages/components/input-dialog-select/index.css +1 -1
- package/packages/components/input-dialog-select/index.js +179 -156
- package/packages/components/input-number/index.css +1 -1
- package/packages/components/input-number/index.js +157 -170
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +170 -0
- package/packages/components/loading/index.js +17 -26
- package/packages/components/map/index.css +1 -1
- package/packages/components/map/index.js +18913 -461
- package/packages/components/menu-aside/index.css +1 -1
- package/packages/components/menu-aside/index.js +648 -713
- package/packages/components/menu-header/index.js +446 -629
- package/packages/components/message/index.js +25 -16
- package/packages/components/notification/index.js +386 -575
- package/packages/components/overlay/index.js +112 -103
- package/packages/components/pagination/index.js +260 -330
- package/packages/components/popover/index.js +104 -93
- package/packages/components/popup-mask/index.css +1 -1
- package/packages/components/popup-mask/index.js +77 -72
- package/packages/components/preview/index.js +33 -28
- package/packages/components/progress/index.js +214 -221
- package/packages/components/radio/index.css +1 -1
- package/packages/components/radio/index.js +699 -862
- package/packages/components/radio-tabs/index.js +144 -107
- package/packages/components/rich-editor/index.css +1 -1
- package/packages/components/rich-editor/index.js +105 -106
- package/packages/components/scrollbar/index.css +3 -2
- package/packages/components/scrollbar/index.js +2262 -1201
- package/packages/components/search/index.js +500 -664
- package/packages/components/search-form/index.css +1 -1
- package/packages/components/search-form/index.js +724 -626
- package/packages/components/select/index.css +1 -1
- package/packages/components/select/index.js +1052 -950
- package/packages/components/select-input/index.js +63 -53
- package/packages/components/select-list/index.css +1 -1
- package/packages/components/select-list/index.js +258 -235
- package/packages/components/special-range-picker-month/index.css +1 -1
- package/packages/components/special-range-picker-month/index.js +3068 -72555
- package/packages/components/special-range-picker-year/index.css +1 -1
- package/packages/components/special-range-picker-year/index.js +345 -339
- package/packages/components/spin/index.js +415 -594
- package/packages/components/split-panel/index.css +1 -1
- package/packages/components/split-panel/index.js +146 -127
- package/packages/components/step/index.js +414 -597
- package/packages/components/steps/index.js +407 -590
- package/packages/components/switch/index.js +23 -23
- package/packages/components/table/index.css +1 -1
- package/packages/components/table/index.js +80813 -27734
- package/packages/components/tabs/index.css +1 -1
- package/packages/components/tabs/index.js +620 -813
- package/packages/components/tag/index.js +63 -63
- package/packages/components/text-tooltip/index.css +9 -0
- package/packages/components/text-tooltip/index.js +2739 -33
- package/packages/components/time-line/index.js +464 -643
- package/packages/components/tooltip/index.css +1 -1
- package/packages/components/tooltip/index.js +108 -79
- package/packages/components/tree/index.css +1 -1
- package/packages/components/tree/index.js +840 -809
- package/packages/components/tree-select/index.js +271 -303
- package/packages/components/tree-table/index.js +461 -352
- package/packages/components/upload/index.js +682 -858
- package/packages/components/virtual-tree/index.css +1 -1
- package/packages/components/virtual-tree/index.js +144 -126
- package/packages/index.d.ts +1 -0
- package/packages/index.js +2 -2
- package/style/business.css +11 -4
- package/style/index.css +52 -42
- package/packages/business-components/low-code/index.css +0 -1
- package/packages/business-components/low-code/index.js +0 -60
- package/packages/components/audio-video-player/index.css +0 -1
- package/packages/components/audio-video-player/index.js +0 -83
- package/packages/components/table-column/index.css +0 -1
- package/packages/components/table-column/index.js +0 -82021
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { withInstall } from '@das-fed/utils';
|
|
2
|
-
import { ref, defineComponent, openBlock, createElementBlock, createElementVNode,
|
|
2
|
+
import { ref, defineComponent, watch, openBlock, createElementBlock, createElementVNode, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode } from 'vue';
|
|
3
3
|
import { i18n } from '@das-fed/web';
|
|
4
|
-
import { DasMessage,
|
|
4
|
+
import { DasMessage, DasDialog, DasUpload, DasProgress, DasButton } from '@das-fed/ui';
|
|
5
5
|
import { iotMinio, iotProgress } from '@das-fed/utils/api-services/modules/iot';
|
|
6
6
|
import crypto from 'crypto';
|
|
7
7
|
import { getConfig } from '@das-fed/utils/config';
|
|
@@ -50,8 +50,7 @@ var dayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
|
50
50
|
|
|
51
51
|
const getMinioToken = iotMinio.get(`token`);
|
|
52
52
|
const importMinio = iotMinio.post(`putObject`, (config) => {
|
|
53
|
-
if (!config.headers)
|
|
54
|
-
config.headers = {};
|
|
53
|
+
if (!config.headers) config.headers = {};
|
|
55
54
|
config.headers["Content-Type"] = "multipart/form-data";
|
|
56
55
|
config.responseType = "blob";
|
|
57
56
|
return config;
|
|
@@ -112,8 +111,7 @@ const useFile = (emits) => {
|
|
|
112
111
|
}
|
|
113
112
|
fileInfo = file;
|
|
114
113
|
const tokenResult = await getMinioConfig();
|
|
115
|
-
if (!tokenResult.status)
|
|
116
|
-
return;
|
|
114
|
+
if (!tokenResult.status) return;
|
|
117
115
|
let minioConfig = tokenResult.data;
|
|
118
116
|
const blob = await readFileAndAddToMap(file);
|
|
119
117
|
let { autoContentType, bucketName, importFileName } = options;
|
|
@@ -127,8 +125,7 @@ const useFile = (emits) => {
|
|
|
127
125
|
autoContentType
|
|
128
126
|
};
|
|
129
127
|
const [error, data] = await importMinio(params).run();
|
|
130
|
-
if (error)
|
|
131
|
-
return;
|
|
128
|
+
if (error) return;
|
|
132
129
|
const toStringData = await toStringObject(data.data);
|
|
133
130
|
const importResult = await importFunc?.(toStringData);
|
|
134
131
|
if (needProgress) {
|
|
@@ -141,8 +138,7 @@ const useFile = (emits) => {
|
|
|
141
138
|
showProgressDialog.value = true;
|
|
142
139
|
checkProgress(importResult.taskId, "import", "");
|
|
143
140
|
} else {
|
|
144
|
-
if (!importResult.status)
|
|
145
|
-
return;
|
|
141
|
+
if (!importResult.status) return;
|
|
146
142
|
progressStatus.value = "success";
|
|
147
143
|
DasMessage.success({
|
|
148
144
|
message: "\u5BFC\u5165\u6210\u529F",
|
|
@@ -164,7 +160,7 @@ const useFile = (emits) => {
|
|
|
164
160
|
}
|
|
165
161
|
checkProgress(importResult.taskId, "action", "");
|
|
166
162
|
};
|
|
167
|
-
const fileExport = async (exportFunc, fileName = "", fileSuffix = "") => {
|
|
163
|
+
const fileExport = async (exportFunc, fileName = "", fileSuffix = "xlsx") => {
|
|
168
164
|
progressStatus.value = "normal";
|
|
169
165
|
percent.value = 0;
|
|
170
166
|
progressTitle.value = "\u5BFC\u51FA\u8FDB\u5EA6";
|
|
@@ -229,8 +225,7 @@ const useFile = (emits) => {
|
|
|
229
225
|
errorFilePath.value = `${getConfig().baseURL}/oss${data.filePath}`;
|
|
230
226
|
}
|
|
231
227
|
tipHandle(data.status, tip, data.message);
|
|
232
|
-
if (data.status == 1)
|
|
233
|
-
importDialog.value = false;
|
|
228
|
+
if (data.status == 1) importDialog.value = false;
|
|
234
229
|
emits("success");
|
|
235
230
|
} else if (type == "action") {
|
|
236
231
|
progressStatus.value = "success";
|
|
@@ -387,6 +382,7 @@ const useImport = (props, emits) => {
|
|
|
387
382
|
errorImport,
|
|
388
383
|
errorFilePath,
|
|
389
384
|
fileImport,
|
|
385
|
+
fileExport,
|
|
390
386
|
downloadFile
|
|
391
387
|
} = useFile(emits);
|
|
392
388
|
let fileList = ref([]);
|
|
@@ -399,6 +395,7 @@ const useImport = (props, emits) => {
|
|
|
399
395
|
errorMessage.value = "";
|
|
400
396
|
importDialog.value = true;
|
|
401
397
|
errorFilePath.value = "";
|
|
398
|
+
emits("open");
|
|
402
399
|
};
|
|
403
400
|
let importFileName;
|
|
404
401
|
const fileUpload = (file) => {
|
|
@@ -443,7 +440,7 @@ const useImport = (props, emits) => {
|
|
|
443
440
|
let taskId = nanoid();
|
|
444
441
|
const params = {
|
|
445
442
|
fileName: importFileName,
|
|
446
|
-
filePath:
|
|
443
|
+
filePath: `${props.bucketName}/${tenantId}/${props.ossName}/${importFileName}`,
|
|
447
444
|
taskId,
|
|
448
445
|
...props.importParams
|
|
449
446
|
};
|
|
@@ -455,10 +452,9 @@ const useImport = (props, emits) => {
|
|
|
455
452
|
return { status: true, taskId };
|
|
456
453
|
};
|
|
457
454
|
const confirmImport = async () => {
|
|
458
|
-
if (!fileList.value.length)
|
|
459
|
-
return DasMessage.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
|
|
455
|
+
if (!fileList.value.length) return DasMessage.warning("\u8BF7\u4E0A\u4F20\u6587\u4EF6");
|
|
460
456
|
const options = {
|
|
461
|
-
bucketName:
|
|
457
|
+
bucketName: props.bucketName,
|
|
462
458
|
importFileName: `${tenantId}/${props.ossName}/${importFileName}`
|
|
463
459
|
};
|
|
464
460
|
await fileImport(importFileHandle, fileList.value[0], options);
|
|
@@ -466,15 +462,37 @@ const useImport = (props, emits) => {
|
|
|
466
462
|
const errorFileDownload = () => {
|
|
467
463
|
downloadFile(errorFilePath.value, errorFileName.value);
|
|
468
464
|
};
|
|
465
|
+
const exportList = () => {
|
|
466
|
+
fileExport(exportHandle, props.templateName);
|
|
467
|
+
};
|
|
468
|
+
const exportHandle = async () => {
|
|
469
|
+
let taskId = nanoid();
|
|
470
|
+
const [error, data] = await props.templateFun({ taskId }).run();
|
|
471
|
+
if (error) {
|
|
472
|
+
return { status: false };
|
|
473
|
+
}
|
|
474
|
+
return { status: true, taskId };
|
|
475
|
+
};
|
|
469
476
|
const downTemplate = async () => {
|
|
470
477
|
let url = "";
|
|
471
478
|
if (props.templateUrl) {
|
|
472
479
|
url = props.templateUrl;
|
|
473
480
|
} else if (props.templateFun) {
|
|
474
|
-
|
|
475
|
-
|
|
481
|
+
if (props.templateType === "static") {
|
|
482
|
+
if (props.templateUrl) {
|
|
483
|
+
url = props.templateUrl;
|
|
484
|
+
} else if (props.templateFun) {
|
|
485
|
+
const [error, data] = await props.templateFun().run();
|
|
486
|
+
url = data;
|
|
487
|
+
}
|
|
488
|
+
downloadFile(pureImageSrc(url), props.templateName);
|
|
489
|
+
}
|
|
490
|
+
if (props.templateType === "dynamic") {
|
|
491
|
+
if (props.templateFun) {
|
|
492
|
+
exportList();
|
|
493
|
+
}
|
|
494
|
+
}
|
|
476
495
|
}
|
|
477
|
-
downloadFile(pureImageSrc(url), props.templateName);
|
|
478
496
|
};
|
|
479
497
|
return {
|
|
480
498
|
showProgressDialog,
|
|
@@ -496,10 +514,6 @@ const useImport = (props, emits) => {
|
|
|
496
514
|
};
|
|
497
515
|
};
|
|
498
516
|
|
|
499
|
-
const _hoisted_1 = { class: "das-import-button" };
|
|
500
|
-
const _hoisted_2 = { class: "tip-box" };
|
|
501
|
-
const _hoisted_3 = { class: "first-line" };
|
|
502
|
-
const _hoisted_4 = { class: "second-line" };
|
|
503
517
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
504
518
|
__name: "App",
|
|
505
519
|
props: {
|
|
@@ -508,14 +522,17 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
508
522
|
templateName: { type: String, required: false, default: "\u5BFC\u5165\u6A21\u677F" },
|
|
509
523
|
templateUrl: { type: String, required: false },
|
|
510
524
|
templateFun: { type: Function, required: false },
|
|
525
|
+
templateType: { type: String, required: false, default: "static" },
|
|
511
526
|
fileType: { type: String, required: false, default: ".xls,.xlsx" },
|
|
512
527
|
fileMaxSize: { type: String, required: false, default: "5MB" },
|
|
513
528
|
importParams: { type: null, required: false, default: {} },
|
|
514
529
|
importParamsPosition: { type: String, required: false, default: "params" },
|
|
515
530
|
importDialogName: { type: String, required: false, default: "\u5BFC\u5165" },
|
|
516
|
-
confirmButtonName: { type: String, required: false, default: "\u786E\u5B9A\u5BFC\u5165" }
|
|
531
|
+
confirmButtonName: { type: String, required: false, default: "\u786E\u5B9A\u5BFC\u5165" },
|
|
532
|
+
openDisabled: { type: Boolean, required: false, default: true },
|
|
533
|
+
bucketName: { type: String, required: false, default: "temp" }
|
|
517
534
|
},
|
|
518
|
-
emits: ["success", "error"],
|
|
535
|
+
emits: ["open", "success", "error"],
|
|
519
536
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
520
537
|
const props = __props;
|
|
521
538
|
const emits = __emit;
|
|
@@ -537,152 +554,34 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
537
554
|
errorFileDownload,
|
|
538
555
|
downTemplate
|
|
539
556
|
} = useImport(props, emits);
|
|
540
|
-
|
|
557
|
+
let progressMap;
|
|
558
|
+
watch(progressTitle, (newVal) => {
|
|
559
|
+
if (newVal.includes("\u5BFC\u5165")) {
|
|
560
|
+
progressMap = ["\u6B63\u5728\u5BFC\u5165\u4E2D...", "\u5BFC\u5165\u5931\u8D25", "\u5BFC\u5165\u6210\u529F"];
|
|
561
|
+
} else {
|
|
562
|
+
progressMap = ["\u6B63\u5728\u5BFC\u51FA\u4E2D...", "\u5BFC\u51FA\u5931\u8D25", "\u5BFC\u51FA\u6210\u529F"];
|
|
563
|
+
}
|
|
564
|
+
});
|
|
541
565
|
__expose({
|
|
542
566
|
confirmImport
|
|
543
567
|
});
|
|
544
|
-
|
|
545
|
-
return
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
]),
|
|
562
|
-
_: 1
|
|
563
|
-
/* STABLE */
|
|
564
|
-
})
|
|
565
|
-
], true)
|
|
566
|
-
]),
|
|
567
|
-
createCommentVNode(" \u5BFC\u5165\u5F39\u7A97 "),
|
|
568
|
-
createVNode(unref(DasDialog), {
|
|
569
|
-
title: unref(i18n)(_ctx.importDialogName).value,
|
|
570
|
-
modelValue: unref(importDialog),
|
|
571
|
-
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => isRef(importDialog) ? importDialog.value = $event : null),
|
|
572
|
-
"append-to-body": true,
|
|
573
|
-
customClass: "upload-dialog",
|
|
574
|
-
width: "610px",
|
|
575
|
-
height: "500px"
|
|
576
|
-
}, {
|
|
577
|
-
footer: withCtx(() => [
|
|
578
|
-
createElementVNode("div", null, [
|
|
579
|
-
createVNode(unref(DasButton), {
|
|
580
|
-
size: "middle",
|
|
581
|
-
onClick: _cache[2] || (_cache[2] = ($event) => importDialog.value = false)
|
|
582
|
-
}, {
|
|
583
|
-
default: withCtx(() => [
|
|
584
|
-
createTextVNode(
|
|
585
|
-
toDisplayString(unref(i18n)("\u53D6\u6D88").value),
|
|
586
|
-
1
|
|
587
|
-
/* TEXT */
|
|
588
|
-
)
|
|
589
|
-
]),
|
|
590
|
-
_: 1
|
|
591
|
-
/* STABLE */
|
|
592
|
-
}),
|
|
593
|
-
createVNode(unref(DasButton), {
|
|
594
|
-
size: "middle",
|
|
595
|
-
"btn-type": "primary",
|
|
596
|
-
disabled: unref(fileList).length === 0,
|
|
597
|
-
style: { "margin-left": "12px" },
|
|
598
|
-
onClick: unref(confirmImport)
|
|
599
|
-
}, {
|
|
600
|
-
default: withCtx(() => [
|
|
601
|
-
createTextVNode(
|
|
602
|
-
toDisplayString(_ctx.confirmButtonName),
|
|
603
|
-
1
|
|
604
|
-
/* TEXT */
|
|
605
|
-
)
|
|
606
|
-
]),
|
|
607
|
-
_: 1
|
|
608
|
-
/* STABLE */
|
|
609
|
-
}, 8, ["disabled", "onClick"])
|
|
610
|
-
])
|
|
611
|
-
]),
|
|
612
|
-
default: withCtx(() => [
|
|
613
|
-
renderSlot(_ctx.$slots, "tip", {}, () => [
|
|
614
|
-
createElementVNode("div", _hoisted_2, [
|
|
615
|
-
createElementVNode("div", _hoisted_3, [
|
|
616
|
-
createTextVNode(
|
|
617
|
-
toDisplayString(unref(i18n)("1\u3001\u70B9\u51FB\u4E0B\u8F7D ").value),
|
|
618
|
-
1
|
|
619
|
-
/* TEXT */
|
|
620
|
-
),
|
|
621
|
-
createVNode(unref(DasButton), {
|
|
622
|
-
size: "large",
|
|
623
|
-
btnType: "primary-text",
|
|
624
|
-
block: "",
|
|
625
|
-
onClick: unref(downTemplate)
|
|
626
|
-
}, {
|
|
627
|
-
default: withCtx(() => [
|
|
628
|
-
createTextVNode(
|
|
629
|
-
toDisplayString(unref(i18n)(`${_ctx.templateName}`).value),
|
|
630
|
-
1
|
|
631
|
-
/* TEXT */
|
|
632
|
-
)
|
|
633
|
-
]),
|
|
634
|
-
_: 1
|
|
635
|
-
/* STABLE */
|
|
636
|
-
}, 8, ["onClick"])
|
|
637
|
-
]),
|
|
638
|
-
createElementVNode(
|
|
639
|
-
"div",
|
|
640
|
-
_hoisted_4,
|
|
641
|
-
toDisplayString(unref(i18n)("2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6").value),
|
|
642
|
-
1
|
|
643
|
-
/* TEXT */
|
|
644
|
-
)
|
|
645
|
-
])
|
|
646
|
-
], true),
|
|
647
|
-
createVNode(unref(DasUpload), {
|
|
648
|
-
modelValue: unref(fileList),
|
|
649
|
-
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => isRef(fileList) ? fileList.value = $event : null),
|
|
650
|
-
error: unref(errorImport),
|
|
651
|
-
"error-file-name": unref(errorFileName),
|
|
652
|
-
"error-file-size": unref(errorFileSize),
|
|
653
|
-
"error-message": unref(errorMessage),
|
|
654
|
-
accept: _ctx.fileType,
|
|
655
|
-
onErrorFileDownload: unref(errorFileDownload),
|
|
656
|
-
onFileUpload: unref(fileUpload)
|
|
657
|
-
}, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "onErrorFileDownload", "onFileUpload"])
|
|
658
|
-
]),
|
|
659
|
-
_: 3
|
|
660
|
-
/* FORWARDED */
|
|
661
|
-
}, 8, ["title", "modelValue"]),
|
|
662
|
-
createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
|
|
663
|
-
createVNode(unref(DasDialog), {
|
|
664
|
-
size: "mini",
|
|
665
|
-
title: unref(i18n)(unref(progressTitle)).value,
|
|
666
|
-
"is-feedback-img": false,
|
|
667
|
-
modelValue: unref(showProgressDialog),
|
|
668
|
-
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => isRef(showProgressDialog) ? showProgressDialog.value = $event : null),
|
|
669
|
-
type: "feedback"
|
|
670
|
-
}, {
|
|
671
|
-
default: withCtx(() => [
|
|
672
|
-
createVNode(unref(DasProgress), {
|
|
673
|
-
modelValue: unref(percent),
|
|
674
|
-
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => isRef(percent) ? percent.value = $event : null),
|
|
675
|
-
style: { "margin-top": "35px" },
|
|
676
|
-
type: "circle",
|
|
677
|
-
status: unref(progressStatus),
|
|
678
|
-
textMap: progressMap
|
|
679
|
-
}, null, 8, ["modelValue", "status"])
|
|
680
|
-
]),
|
|
681
|
-
_: 1
|
|
682
|
-
/* STABLE */
|
|
683
|
-
}, 8, ["title", "modelValue"])
|
|
684
|
-
]);
|
|
685
|
-
};
|
|
568
|
+
const __returned__ = { props, emits, showProgressDialog, progressTitle, percent, progressStatus, progressLoading, errorFileName, errorFileSize, errorMessage, errorImport, importDialog, fileList, showImportHandle, confirmImport, fileUpload, errorFileDownload, downTemplate, get progressMap() {
|
|
569
|
+
return progressMap;
|
|
570
|
+
}, set progressMap(v) {
|
|
571
|
+
progressMap = v;
|
|
572
|
+
}, get i18n() {
|
|
573
|
+
return i18n;
|
|
574
|
+
}, get DasDialog() {
|
|
575
|
+
return DasDialog;
|
|
576
|
+
}, get DasUpload() {
|
|
577
|
+
return DasUpload;
|
|
578
|
+
}, get DasProgress() {
|
|
579
|
+
return DasProgress;
|
|
580
|
+
}, get DasButton() {
|
|
581
|
+
return DasButton;
|
|
582
|
+
} };
|
|
583
|
+
Object.defineProperty(__returned__, "__isScriptSetup", { enumerable: false, value: true });
|
|
584
|
+
return __returned__;
|
|
686
585
|
}
|
|
687
586
|
});
|
|
688
587
|
|
|
@@ -694,7 +593,151 @@ var _export_sfc = (sfc, props) => {
|
|
|
694
593
|
return target;
|
|
695
594
|
};
|
|
696
595
|
|
|
697
|
-
|
|
596
|
+
const _hoisted_1 = { class: "das-import-button" };
|
|
597
|
+
const _hoisted_2 = { class: "tip-box" };
|
|
598
|
+
const _hoisted_3 = { class: "first-line" };
|
|
599
|
+
const _hoisted_4 = { class: "second-line" };
|
|
600
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
601
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
602
|
+
createElementVNode("div", {
|
|
603
|
+
onClick: _cache[0] || (_cache[0] = (...args) => $setup.showImportHandle && $setup.showImportHandle(...args))
|
|
604
|
+
}, [
|
|
605
|
+
renderSlot(_ctx.$slots, "default", {}, () => [
|
|
606
|
+
createVNode($setup["DasButton"], {
|
|
607
|
+
size: "middle",
|
|
608
|
+
"btn-type": "primary"
|
|
609
|
+
}, {
|
|
610
|
+
default: withCtx(() => [
|
|
611
|
+
createTextVNode(
|
|
612
|
+
toDisplayString($setup.i18n("\u5BFC\u5165").value),
|
|
613
|
+
1
|
|
614
|
+
/* TEXT */
|
|
615
|
+
)
|
|
616
|
+
]),
|
|
617
|
+
_: 1
|
|
618
|
+
/* STABLE */
|
|
619
|
+
})
|
|
620
|
+
], true)
|
|
621
|
+
]),
|
|
622
|
+
createCommentVNode(" \u5BFC\u5165\u5F39\u7A97 "),
|
|
623
|
+
createVNode($setup["DasDialog"], {
|
|
624
|
+
title: $setup.i18n($props.importDialogName).value,
|
|
625
|
+
modelValue: $setup.importDialog,
|
|
626
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $setup.importDialog = $event),
|
|
627
|
+
customClass: "upload-dialog",
|
|
628
|
+
width: "610px",
|
|
629
|
+
height: "500px"
|
|
630
|
+
}, {
|
|
631
|
+
footer: withCtx(() => [
|
|
632
|
+
createElementVNode("div", null, [
|
|
633
|
+
createVNode($setup["DasButton"], {
|
|
634
|
+
size: "middle",
|
|
635
|
+
onClick: _cache[2] || (_cache[2] = ($event) => $setup.importDialog = false)
|
|
636
|
+
}, {
|
|
637
|
+
default: withCtx(() => [
|
|
638
|
+
createTextVNode(
|
|
639
|
+
toDisplayString($setup.i18n("\u53D6\u6D88").value),
|
|
640
|
+
1
|
|
641
|
+
/* TEXT */
|
|
642
|
+
)
|
|
643
|
+
]),
|
|
644
|
+
_: 1
|
|
645
|
+
/* STABLE */
|
|
646
|
+
}),
|
|
647
|
+
createVNode($setup["DasButton"], {
|
|
648
|
+
size: "middle",
|
|
649
|
+
"btn-type": "primary",
|
|
650
|
+
disabled: $props.openDisabled && $setup.fileList.length === 0,
|
|
651
|
+
style: { "margin-left": "12px" },
|
|
652
|
+
onClick: $setup.confirmImport
|
|
653
|
+
}, {
|
|
654
|
+
default: withCtx(() => [
|
|
655
|
+
createTextVNode(
|
|
656
|
+
toDisplayString($props.confirmButtonName),
|
|
657
|
+
1
|
|
658
|
+
/* TEXT */
|
|
659
|
+
)
|
|
660
|
+
]),
|
|
661
|
+
_: 1
|
|
662
|
+
/* STABLE */
|
|
663
|
+
}, 8, ["disabled", "onClick"])
|
|
664
|
+
])
|
|
665
|
+
]),
|
|
666
|
+
default: withCtx(() => [
|
|
667
|
+
renderSlot(_ctx.$slots, "tip", {}, () => [
|
|
668
|
+
createElementVNode("div", _hoisted_2, [
|
|
669
|
+
createElementVNode("div", _hoisted_3, [
|
|
670
|
+
createTextVNode(
|
|
671
|
+
toDisplayString($setup.i18n("1\u3001\u70B9\u51FB\u4E0B\u8F7D ").value),
|
|
672
|
+
1
|
|
673
|
+
/* TEXT */
|
|
674
|
+
),
|
|
675
|
+
createVNode($setup["DasButton"], {
|
|
676
|
+
size: "large",
|
|
677
|
+
btnType: "primary-text",
|
|
678
|
+
block: "",
|
|
679
|
+
onClick: $setup.downTemplate
|
|
680
|
+
}, {
|
|
681
|
+
default: withCtx(() => [
|
|
682
|
+
createTextVNode(
|
|
683
|
+
toDisplayString($setup.i18n(`${$props.templateName}`).value),
|
|
684
|
+
1
|
|
685
|
+
/* TEXT */
|
|
686
|
+
)
|
|
687
|
+
]),
|
|
688
|
+
_: 1
|
|
689
|
+
/* STABLE */
|
|
690
|
+
}, 8, ["onClick"])
|
|
691
|
+
]),
|
|
692
|
+
createElementVNode(
|
|
693
|
+
"div",
|
|
694
|
+
_hoisted_4,
|
|
695
|
+
toDisplayString($setup.i18n("2\u3001\u4EC5\u652F\u6301\u4E0A\u4F20Excel\u6587\u4EF6\uFF0C\u91CD\u590D\u6570\u636E\u4EE5\u6700\u540E\u4E00\u6761\u4E3A\u51C6").value),
|
|
696
|
+
1
|
|
697
|
+
/* TEXT */
|
|
698
|
+
)
|
|
699
|
+
])
|
|
700
|
+
], true),
|
|
701
|
+
createVNode($setup["DasUpload"], {
|
|
702
|
+
modelValue: $setup.fileList,
|
|
703
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $setup.fileList = $event),
|
|
704
|
+
error: $setup.errorImport,
|
|
705
|
+
"error-file-name": $setup.errorFileName,
|
|
706
|
+
"error-file-size": $setup.errorFileSize,
|
|
707
|
+
"error-message": $setup.errorMessage,
|
|
708
|
+
accept: $props.fileType,
|
|
709
|
+
onErrorFileDownload: $setup.errorFileDownload,
|
|
710
|
+
onFileUpload: $setup.fileUpload
|
|
711
|
+
}, null, 8, ["modelValue", "error", "error-file-name", "error-file-size", "error-message", "accept", "onErrorFileDownload", "onFileUpload"])
|
|
712
|
+
]),
|
|
713
|
+
_: 3
|
|
714
|
+
/* FORWARDED */
|
|
715
|
+
}, 8, ["title", "modelValue"]),
|
|
716
|
+
createCommentVNode(" \u8FDB\u5EA6\u5F39\u7A97 "),
|
|
717
|
+
createVNode($setup["DasDialog"], {
|
|
718
|
+
size: "mini",
|
|
719
|
+
title: $setup.i18n($setup.progressTitle).value,
|
|
720
|
+
"is-feedback-img": false,
|
|
721
|
+
modelValue: $setup.showProgressDialog,
|
|
722
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $setup.showProgressDialog = $event),
|
|
723
|
+
type: "feedback"
|
|
724
|
+
}, {
|
|
725
|
+
default: withCtx(() => [
|
|
726
|
+
createVNode($setup["DasProgress"], {
|
|
727
|
+
modelValue: $setup.percent,
|
|
728
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $setup.percent = $event),
|
|
729
|
+
style: { "margin-top": "35px" },
|
|
730
|
+
type: "circle",
|
|
731
|
+
status: $setup.progressStatus,
|
|
732
|
+
textMap: $setup.progressMap
|
|
733
|
+
}, null, 8, ["modelValue", "status", "textMap"])
|
|
734
|
+
]),
|
|
735
|
+
_: 1
|
|
736
|
+
/* STABLE */
|
|
737
|
+
}, 8, ["title", "modelValue"])
|
|
738
|
+
]);
|
|
739
|
+
}
|
|
740
|
+
var dasImportButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0212e9ba"], ["__file", "/Users/xiecp/das/das-fe/framework/packages/das-ui/packages/business-components/import-button/src/App.vue"]]);
|
|
698
741
|
|
|
699
742
|
const DasImportButton = withInstall(dasImportButton);
|
|
700
743
|
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
export * from './app-container';
|
|
2
|
+
export * from './change-enterprises';
|
|
3
|
+
export * from './change-pwd';
|
|
4
|
+
export * from './currency-page';
|
|
5
|
+
export * from './device-panel';
|
|
2
6
|
export * from './echarts';
|
|
3
7
|
export * from './export-button';
|
|
4
8
|
export * from './import-button';
|
|
5
9
|
export * from './layout-breadcrumb';
|
|
6
|
-
export * from './low-code';
|
|
7
10
|
export * from './model-table-dialog';
|
|
11
|
+
export * from './process-configuration';
|
|
12
|
+
export * from './process-form';
|
|
8
13
|
export * from './process-search-form';
|
|
9
14
|
export * from './process-table';
|
|
15
|
+
export * from './urgent-panel';
|
|
10
16
|
export * from './user-org-dialog';
|
|
17
|
+
export * from './video-dialog';
|