@ibiz-template/vue3-components 0.7.41-alpha.11 → 0.7.41-alpha.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-tjsobxd3.js → index-EYFbyMUF.js} +1 -1
- package/dist/{index-CsiyXR27.js → index-kNUznzXY.js} +1 -1
- package/dist/index-pyv7Wdpx.js +4 -0
- package/dist/index.min.css +1 -1
- package/dist/index.system.min.js +1 -1
- package/dist/{wang-editor-kUY8Nlib.js → wang-editor-TYKjfyR5.js} +1 -1
- package/dist/{xlsx-util-s4akItw_.js → xlsx-util-Q9msA8ef.js} +1 -1
- package/es/common/grid-setting/grid-setting.d.ts +2 -37
- package/es/common/grid-setting/grid-setting.mjs +8 -4
- package/es/control/drtab/drtab-control.util.mjs +1 -1
- package/es/control/gantt/gantt.mjs +1 -0
- package/es/control/grid/grid/grid.css +1 -1
- package/es/control/toolbar/toolbar.mjs +7 -7
- package/es/editor/array/ibiz-array/ibiz-array.d.ts +1 -0
- package/es/editor/autocomplete/ibiz-autocomplete/ibiz-autocomplete.d.ts +1 -0
- package/es/editor/cascader/ibiz-cascader/ibiz-cascader.d.ts +1 -0
- package/es/editor/check-box/ibiz-checkbox/ibiz-checkbox.d.ts +1 -0
- package/es/editor/check-box-list/ibiz-checkbox-list/ibiz-checkbox-list.d.ts +1 -0
- package/es/editor/code/monaco-editor/monaco-editor.d.ts +1 -0
- package/es/editor/color-picker/ibiz-color-picker/ibiz-color-picker.d.ts +1 -0
- package/es/editor/data-picker/ibiz-mpicker/ibiz-mpicker.d.ts +1 -0
- package/es/editor/data-picker/ibiz-picker/ibiz-picker.d.ts +5 -0
- package/es/editor/data-picker/ibiz-picker-dropdown/ibiz-picker-dropdown.d.ts +1 -0
- package/es/editor/data-picker/ibiz-picker-select-view/ibiz-picker-select-view.d.ts +1 -0
- package/es/editor/date-picker/ibiz-date-picker/ibiz-date-picker.d.ts +1 -0
- package/es/editor/date-range/ibiz-date-range-picker/ibiz-date-range-picker.d.ts +2 -1
- package/es/editor/dropdown-list/ibiz-dropdown/ibiz-dropdown.d.ts +2 -0
- package/es/editor/html/wang-editor/wang-editor.d.ts +1 -0
- package/es/editor/list-box/ibiz-list-box/ibiz-list-box.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.d.ts +1 -0
- package/es/editor/map-picker/ibiz-map-picker/ibiz-map-picker.mjs +1 -1
- package/es/editor/markdown/ibiz-markdown-editor/ibiz-markdown-editor.d.ts +1 -0
- package/es/editor/number-range/ibiz-number-range-picker/ibiz-number-range-picker.d.ts +1 -0
- package/es/editor/radio-button-list/ibiz-radio/ibiz-radio.d.ts +1 -0
- package/es/editor/rate/ibiz-rate/ibiz-rate.d.ts +3 -0
- package/es/editor/slider/ibiz-slider/ibiz-slider.d.ts +1 -0
- package/es/editor/span/span/span.d.ts +2 -0
- package/es/editor/stepper/ibiz-stepper/ibiz-stepper.d.ts +1 -0
- package/es/editor/switch/ibiz-switch/ibiz-switch.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-ip/ibiz-input-ip.d.ts +1 -0
- package/es/editor/text-box/ibiz-input-number/ibiz-input-number.d.ts +1 -0
- package/es/editor/text-box/input/input.d.ts +3 -0
- package/es/editor/upload/ibiz-file-upload/ibiz-file-upload.d.ts +1 -0
- package/es/locale/en/index.d.ts +6 -0
- package/es/locale/en/index.mjs +6 -0
- package/es/locale/zh-CN/index.d.ts +6 -0
- package/es/locale/zh-CN/index.mjs +6 -0
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +41 -0
- package/es/panel-component/user-message/async-action/async-action/async-action.provider.mjs +14 -0
- package/es/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.d.ts +34 -0
- package/es/panel-component/user-message/async-action/async-data-export/async-data-export.mjs +88 -0
- package/es/panel-component/user-message/index.d.ts +2 -32
- package/es/panel-component/user-message/index.mjs +21 -11
- package/es/util/fullscreen/fullscreen-util.mjs +1 -1
- package/es/view-engine/md-custom-view.engine.d.ts +8 -2
- package/es/view-engine/md-custom-view.engine.mjs +14 -2
- package/lib/common/grid-setting/grid-setting.cjs +8 -4
- package/lib/control/drtab/drtab-control.util.cjs +1 -1
- package/lib/control/gantt/gantt.cjs +1 -0
- package/lib/control/grid/grid/grid.css +1 -1
- package/lib/control/toolbar/toolbar.cjs +7 -7
- package/lib/editor/map-picker/ibiz-map-picker/ibiz-map-picker.cjs +1 -1
- package/lib/locale/en/index.cjs +6 -0
- package/lib/locale/zh-CN/index.cjs +6 -0
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +45 -0
- package/lib/panel-component/user-message/async-action/async-action/async-action.provider.cjs +14 -0
- package/lib/panel-component/user-message/async-action/async-action-tab/async-action-tab.css +1 -1
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.cjs +90 -0
- package/lib/panel-component/user-message/async-action/async-data-export/async-data-export.css +1 -0
- package/lib/panel-component/user-message/index.cjs +21 -11
- package/lib/util/fullscreen/fullscreen-util.cjs +1 -1
- package/lib/view-engine/md-custom-view.engine.cjs +14 -2
- package/package.json +11 -6
- package/dist/index-F_Yq1N9t.js +0 -4
- package/es/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.mjs +0 -23
- package/lib/node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1/node_modules/@amap/amap-jsapi-loader/dist/index.cjs +0 -27
- /package/es/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.9_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs +0 -0
- /package/lib/node_modules/.pnpm/{@ibiz-template_core@0.7.41-alpha.9_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1 → @ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1}/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs +0 -0
|
@@ -2,6 +2,7 @@ import { h } from 'vue';
|
|
|
2
2
|
import { isNil, isObject } from 'lodash-es';
|
|
3
3
|
import { AsyncActionPreview } from '../async-action-preview/async-action-preview.mjs';
|
|
4
4
|
import { AsyncActionResult } from '../async-action-result/async-action-result.mjs';
|
|
5
|
+
import { AsyncDataExport } from '../async-data-export/async-data-export.mjs';
|
|
5
6
|
import { AsyncAction } from './async-action.mjs';
|
|
6
7
|
|
|
7
8
|
"use strict";
|
|
@@ -35,6 +36,19 @@ class AsyncActionProvider {
|
|
|
35
36
|
);
|
|
36
37
|
return true;
|
|
37
38
|
}
|
|
39
|
+
if (asyncAction.actiontype === "DEEXPORTDATA") {
|
|
40
|
+
ibiz.overlay.modal(
|
|
41
|
+
(modal) => {
|
|
42
|
+
return h(AsyncDataExport, {
|
|
43
|
+
asyncAction,
|
|
44
|
+
modal
|
|
45
|
+
});
|
|
46
|
+
},
|
|
47
|
+
{},
|
|
48
|
+
{ width: "80%", height: "80%" }
|
|
49
|
+
);
|
|
50
|
+
return true;
|
|
51
|
+
}
|
|
38
52
|
if (isObject(asyncAction.actionresult)) {
|
|
39
53
|
ibiz.overlay.modal(
|
|
40
54
|
(modal) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
1
|
+
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0;cursor:pointer}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.ibiz-async-data-export{height:100%;display:flex;flex-flow:column nowrap;padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export__title{font-size:var(--ibiz-font-size-header-5);font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export .el-form-item{margin:0}.ibiz-async-data-export .el-form-item__content,.ibiz-async-data-export .el-form-item__label{font-weight:var(--ibiz-font-weight-bold)}.ibiz-async-data-export-header{display:flex;align-items:center;justify-content:space-between;height:48px;padding:var(--ibiz-spacing-tight);border-bottom:1px solid var(--ibiz-color-border)}.ibiz-async-data-export-time{padding:var(--ibiz-spacing-tight)}.ibiz-async-data-export-time__executing{font-weight:var(--ibiz-font-weight-bold)}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { IPortalAsyncAction } from '@ibiz-template/core';
|
|
3
|
+
import { IModal } from '@ibiz-template/runtime';
|
|
4
|
+
import './async-data-export.scss';
|
|
5
|
+
export declare const AsyncDataExport: import("vue").DefineComponent<{
|
|
6
|
+
asyncAction: {
|
|
7
|
+
type: PropType<IPortalAsyncAction>;
|
|
8
|
+
required: true;
|
|
9
|
+
};
|
|
10
|
+
modal: {
|
|
11
|
+
type: PropType<IModal>;
|
|
12
|
+
required: true;
|
|
13
|
+
};
|
|
14
|
+
}, {
|
|
15
|
+
ns: import("@ibiz-template/core").Namespace;
|
|
16
|
+
info: {
|
|
17
|
+
title: string;
|
|
18
|
+
beginTime: string;
|
|
19
|
+
endTime: string;
|
|
20
|
+
fileUrl: string;
|
|
21
|
+
isFinish: boolean;
|
|
22
|
+
};
|
|
23
|
+
onClose: () => void;
|
|
24
|
+
onDownLoad: () => void;
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
asyncAction: {
|
|
27
|
+
type: PropType<IPortalAsyncAction>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
modal: {
|
|
31
|
+
type: PropType<IModal>;
|
|
32
|
+
required: true;
|
|
33
|
+
};
|
|
34
|
+
}>>, {}, {}>;
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
import { isVNode, reactive, createVNode, resolveComponent, createTextVNode, defineComponent } from 'vue';
|
|
2
|
+
import { useNamespace } from '@ibiz-template/vue3-util';
|
|
3
|
+
import './async-data-export.css';
|
|
4
|
+
|
|
5
|
+
"use strict";
|
|
6
|
+
function _isSlot(s) {
|
|
7
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !isVNode(s);
|
|
8
|
+
}
|
|
9
|
+
const AsyncDataExport = /* @__PURE__ */ defineComponent({
|
|
10
|
+
name: "IBizAsyncDataExport",
|
|
11
|
+
props: {
|
|
12
|
+
asyncAction: {
|
|
13
|
+
type: Object,
|
|
14
|
+
required: true
|
|
15
|
+
},
|
|
16
|
+
modal: {
|
|
17
|
+
type: Object,
|
|
18
|
+
required: true
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
setup(props) {
|
|
22
|
+
const ns = useNamespace("async-data-export");
|
|
23
|
+
const finishedStates = [30, 40];
|
|
24
|
+
const onClose = () => {
|
|
25
|
+
props.modal.dismiss();
|
|
26
|
+
};
|
|
27
|
+
const info = reactive({
|
|
28
|
+
title: "",
|
|
29
|
+
beginTime: "",
|
|
30
|
+
endTime: "",
|
|
31
|
+
fileUrl: "",
|
|
32
|
+
isFinish: false
|
|
33
|
+
});
|
|
34
|
+
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
|
|
35
|
+
name: props.asyncAction.asyncacitonname
|
|
36
|
+
});
|
|
37
|
+
info.beginTime = props.asyncAction.begintime;
|
|
38
|
+
info.endTime = props.asyncAction.endtime;
|
|
39
|
+
if (props.asyncAction.asyncresultdownloadurl) {
|
|
40
|
+
const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
|
|
41
|
+
info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
|
|
42
|
+
}
|
|
43
|
+
if (!finishedStates.includes(props.asyncAction.actionstate)) {
|
|
44
|
+
info.isFinish = false;
|
|
45
|
+
} else {
|
|
46
|
+
info.isFinish = true;
|
|
47
|
+
}
|
|
48
|
+
const onDownLoad = () => {
|
|
49
|
+
ibiz.util.file.fileDownload(info.fileUrl);
|
|
50
|
+
};
|
|
51
|
+
return {
|
|
52
|
+
ns,
|
|
53
|
+
info,
|
|
54
|
+
onClose,
|
|
55
|
+
onDownLoad
|
|
56
|
+
};
|
|
57
|
+
},
|
|
58
|
+
render() {
|
|
59
|
+
let _slot, _slot2;
|
|
60
|
+
return createVNode("div", {
|
|
61
|
+
"class": [this.ns.b()]
|
|
62
|
+
}, [createVNode("div", {
|
|
63
|
+
"class": this.ns.b("header")
|
|
64
|
+
}, [createVNode("div", {
|
|
65
|
+
"class": this.ns.e("title")
|
|
66
|
+
}, [this.info.title]), createVNode("div", {
|
|
67
|
+
"class": this.ns.b("toolbar")
|
|
68
|
+
}, [this.info.fileUrl && createVNode(resolveComponent("el-button"), {
|
|
69
|
+
"onClick": this.onDownLoad
|
|
70
|
+
}, _isSlot(_slot = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.downloadFile")) ? _slot : {
|
|
71
|
+
default: () => [_slot]
|
|
72
|
+
}), createVNode(resolveComponent("el-button"), {
|
|
73
|
+
"onClick": this.onClose
|
|
74
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.close")) ? _slot2 : {
|
|
75
|
+
default: () => [_slot2]
|
|
76
|
+
})])]), createVNode("div", {
|
|
77
|
+
"class": this.ns.b("time")
|
|
78
|
+
}, [this.info.isFinish ? createVNode(resolveComponent("el-form-item"), {
|
|
79
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.excuteTime")
|
|
80
|
+
}, {
|
|
81
|
+
default: () => [this.info.beginTime, createTextVNode(" ~ "), this.info.endTime]
|
|
82
|
+
}) : createVNode("span", {
|
|
83
|
+
"class": this.ns.be("time", "executing")
|
|
84
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.executing")])])]);
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
|
|
88
|
+
export { AsyncDataExport };
|
|
@@ -1,33 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
4
|
-
required: true;
|
|
5
|
-
};
|
|
6
|
-
controller: {
|
|
7
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>>;
|
|
8
|
-
required: true;
|
|
9
|
-
};
|
|
10
|
-
}, {
|
|
11
|
-
ns: import("@ibiz-template/core").Namespace;
|
|
12
|
-
c: import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>;
|
|
13
|
-
noticeController: import("@ibiz-template/runtime").INoticeController;
|
|
14
|
-
noticeNum: import("vue").Ref<number>;
|
|
15
|
-
popoverRef: import("vue").Ref<any>;
|
|
16
|
-
showPopover: import("vue").Ref<boolean>;
|
|
17
|
-
sysImage: import("@ibiz/model-core").ISysImage | {
|
|
18
|
-
imagePath: string;
|
|
19
|
-
};
|
|
20
|
-
currentTab: import("vue").Ref<string>;
|
|
21
|
-
hiddenPopover: () => void;
|
|
22
|
-
onBatchReadClick: () => void;
|
|
23
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
-
modelData: {
|
|
25
|
-
type: import("vue").PropType<import("@ibiz/model-core").IPanelRawItem>;
|
|
26
|
-
required: true;
|
|
27
|
-
};
|
|
28
|
-
controller: {
|
|
29
|
-
type: import("vue").PropType<import("@ibiz-template/runtime").PanelItemController<import("@ibiz/model-core").IPanelItem>>;
|
|
30
|
-
required: true;
|
|
31
|
-
};
|
|
32
|
-
}>>, {}, {}>>;
|
|
1
|
+
import { withInstall } from '@ibiz-template/vue3-util';
|
|
2
|
+
export declare const IBizUserMessage: ReturnType<typeof withInstall>;
|
|
33
3
|
export default IBizUserMessage;
|
|
@@ -8,16 +8,26 @@ import { AsyncAction } from './async-action/async-action/async-action.mjs';
|
|
|
8
8
|
import { AsyncActionProvider } from './async-action/async-action/async-action.provider.mjs';
|
|
9
9
|
|
|
10
10
|
"use strict";
|
|
11
|
-
const IBizUserMessage = withInstall(
|
|
12
|
-
|
|
13
|
-
v
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
11
|
+
const IBizUserMessage = withInstall(
|
|
12
|
+
UserMessage,
|
|
13
|
+
function(v) {
|
|
14
|
+
v.component(UserMessage.name, UserMessage);
|
|
15
|
+
v.component(AsyncAction.name, AsyncAction);
|
|
16
|
+
registerAsyncActionProvider(
|
|
17
|
+
"DEIMPORTDATA2",
|
|
18
|
+
() => new AsyncActionProvider()
|
|
19
|
+
);
|
|
20
|
+
registerAsyncActionProvider(
|
|
21
|
+
"DEEXPORTDATA",
|
|
22
|
+
() => new AsyncActionProvider()
|
|
23
|
+
);
|
|
24
|
+
registerAsyncActionProvider("DEFAULT", () => new AsyncActionProvider());
|
|
25
|
+
installInternalMessage(v);
|
|
26
|
+
registerPanelItemProvider(
|
|
27
|
+
"RAWITEM_USERMESSAGE",
|
|
28
|
+
() => new UserMessageProvider()
|
|
29
|
+
);
|
|
30
|
+
}
|
|
31
|
+
);
|
|
22
32
|
|
|
23
33
|
export { IBizUserMessage, IBizUserMessage as default };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createApp } from 'vue';
|
|
2
2
|
import ElementPlus from 'element-plus';
|
|
3
|
-
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
3
|
+
import { defaultNamespace } from '../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.mjs';
|
|
4
4
|
import { IBizFullscreenToolbar } from '../../common/fullscreen-toolbar/fullscreen-toolbar.mjs';
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IViewEvent,
|
|
1
|
+
import { IViewEvent, ViewEngineBase, IUIActionResult, ViewController, IControlController, IApiMDCustomViewCall, IMDCustomViewState } from '@ibiz-template/runtime';
|
|
2
2
|
import { IControl, IMDControl, IAppDECustomView } from '@ibiz/model-core';
|
|
3
3
|
export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
4
|
-
protected view: ViewController<IAppDECustomView,
|
|
4
|
+
protected view: ViewController<IAppDECustomView, IMDCustomViewState, IViewEvent>;
|
|
5
5
|
/**
|
|
6
6
|
* 部件集合
|
|
7
7
|
*
|
|
@@ -37,6 +37,12 @@ export declare class MDCustomViewEngine extends ViewEngineBase {
|
|
|
37
37
|
*/
|
|
38
38
|
calcToolbarButtonState(control: IMDControl, data: IData | undefined): void;
|
|
39
39
|
call(key: keyof IApiMDCustomViewCall, args: any): Promise<IData | null | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* @description 刷新数据
|
|
42
|
+
* @returns {*} {Promise<void>}
|
|
43
|
+
* @memberof MDCustomViewEngine
|
|
44
|
+
*/
|
|
45
|
+
refresh(): Promise<void>;
|
|
40
46
|
/**
|
|
41
47
|
* @description 打开编辑数据视图
|
|
42
48
|
* @protected
|
|
@@ -94,9 +94,8 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
async call(key, args) {
|
|
97
|
-
var _a;
|
|
98
97
|
if (key === SysUIActionTag.REFRESH) {
|
|
99
|
-
await
|
|
98
|
+
await this.refresh();
|
|
100
99
|
return null;
|
|
101
100
|
}
|
|
102
101
|
if (key === SysUIActionTag.EDIT || key === SysUIActionTag.VIEW) {
|
|
@@ -107,6 +106,19 @@ class MDCustomViewEngine extends ViewEngineBase {
|
|
|
107
106
|
}
|
|
108
107
|
return super.call(key, args);
|
|
109
108
|
}
|
|
109
|
+
/**
|
|
110
|
+
* @description 刷新数据
|
|
111
|
+
* @returns {*} {Promise<void>}
|
|
112
|
+
* @memberof MDCustomViewEngine
|
|
113
|
+
*/
|
|
114
|
+
async refresh() {
|
|
115
|
+
if (this.view.state.xdatacontrolname) {
|
|
116
|
+
const xDataCtrl = this.view.getController(
|
|
117
|
+
this.view.state.xdatacontrolname
|
|
118
|
+
);
|
|
119
|
+
await (xDataCtrl == null ? void 0 : xDataCtrl.refresh());
|
|
120
|
+
}
|
|
121
|
+
}
|
|
110
122
|
/**
|
|
111
123
|
* @description 打开编辑数据视图
|
|
112
124
|
* @protected
|
|
@@ -26,11 +26,15 @@ const IBizGridSetting = /* @__PURE__ */ vue.defineComponent({
|
|
|
26
26
|
const ns = vue3Util.useNamespace("grid-setting");
|
|
27
27
|
const c = props.controller;
|
|
28
28
|
const dragColumnStates = vue.computed(() => {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
const result = [];
|
|
30
|
+
props.columnStates.forEach((item) => {
|
|
31
|
+
if (!item.uaColumn) {
|
|
32
|
+
result.push({
|
|
33
|
+
...item
|
|
34
|
+
});
|
|
35
|
+
}
|
|
33
36
|
});
|
|
37
|
+
return result;
|
|
34
38
|
});
|
|
35
39
|
const isDraggable = vue.computed(() => {
|
|
36
40
|
return false;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
|
-
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.
|
|
4
|
+
var namespace = require('../../node_modules/.pnpm/@ibiz-template_core@0.7.41-alpha.12_axios@1.6.8_lodash-es@4.17.21_qs@6.11.2_qx-util@0.4.8_ramda@0.29.1/node_modules/@ibiz-template/core/out/utils/namespace/namespace.cjs');
|
|
5
5
|
|
|
6
6
|
"use strict";
|
|
7
7
|
function useAppDRTab(c, controlRef, counterData) {
|
|
@@ -456,6 +456,7 @@ const GanttControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
456
456
|
const renderSlider = () => {
|
|
457
457
|
return vue.createVNode(vue.resolveComponent("x-gantt-slider"), {
|
|
458
458
|
"allow-link": false,
|
|
459
|
+
"resize-mode": "dragonly",
|
|
459
460
|
"move": c.state.sliderDraggable,
|
|
460
461
|
"resize-left": c.state.sliderDraggable,
|
|
461
462
|
"resize-right": c.state.sliderDraggable
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-control-grid{--ibiz-control-grid-text-color:var(--ibiz-color-text-0);--ibiz-control-grid-bg-color:transparent;--ibiz-control-grid-padding:var(--ibiz-spacing-none);--ibiz-control-grid-cell-padding:var(--ibiz-spacing-tight);--ibiz-control-grid-selection-padding:var(--ibiz-spacing-base-loose);--ibiz-control-grid-row-edit-bg-color:var(--ibiz-color-fill-2);--ibiz-control-grid-row-bg-color:var(--ibiz-color-bg-1);--ibiz-control-grid-row-bg-color-2:var(--ibiz-color-bg-0);--ibiz-control-grid-row-hover-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-row-select-color:var(--ibiz-color-primary-light-default);--ibiz-control-grid-row-expand-icon-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-tight);--ibiz-control-grid-now-header-height:auto;--ibiz-control-grid-scrollbar-width:4px;--ibiz-control-grid-scrollbar-bg-color:var(--ibiz-color-fill-2);--ibiz-control-grid-scrollbar-bg-hover-opacity:0.5;--ibiz-control-grid-scrollbar-bg-hover-color:var(--ibiz-color-fill-2);--ibiz-control-grid-header-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-header-cell-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-control-grid-header-height:auto;--ibiz-control-grid-header-min-height:54px;--ibiz-control-grid-header-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-header-font-size:var(--ibiz-font-size-regular);--ibiz-control-grid-header-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-grid-content-text-color:var(--ibiz-control-grid-text-color);--ibiz-control-grid-content-row-height:48px;--ibiz-control-grid-page-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-page-height:50px;--ibiz-control-grid-page-padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base-tight);--ibiz-control-grid-footer-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-footer-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-footer-font-size:var(--ibiz-font-size-regular);--ibiz-control-grid-footer-font-weight:var(--ibiz-font-weight-bold);position:relative;width:100%;height:100%;padding:var(--ibiz-control-grid-padding);background-color:var(--ibiz-control-grid-bg-color)}.ibiz-control-grid .el-table{--el-table-header-bg-color:var(--ibiz-control-grid-header-bg-color);--el-table-current-row-bg-color:var(--ibiz-control-grid-row-select-color);--el-table-border-color:transparent}.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column::before{bottom:0}.ibiz-control-grid.is-empty .el-scrollbar .el-scrollbar__view{height:100%}.ibiz-control-grid.is-empty .el-table__empty-text{display:inline-block;height:100%}.ibiz-control-grid .el-table--border .el-table__cell{border-right:none}.ibiz-control-grid .el-table-fixed-column--left,.ibiz-control-grid .el-table-fixed-column--right{--el-bg-color:transparent}.ibiz-control-grid .el-table thead.is-group th.el-table__cell{background:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid.is-enable-page .ibiz-control-grid__table{height:calc(100% - var(--ibiz-control-grid-page-height))}.ibiz-control-grid.is-enable-group .el-table__indent{display:none}.ibiz-control-grid.is-dynamic-grid .el-table__empty-block{height:calc(100% - 48px)!important;min-height:248px}.ibiz-control-grid__add{width:calc(100% - var(--ibiz-spacing-extra-tight));margin:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary);background-color:transparent;border:1px dashed var(--ibiz-color-border)}.ibiz-control-grid__add ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-grid__add:focus{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-control-grid__add:hover{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-control-grid__table{width:100%;height:100%}.ibiz-control-grid__table .caret-wrapper{justify-content:center}.ibiz-control-grid__table .caret-wrapper>*+*{margin-top:var(--ibiz-spacing-super-tight)}.ibiz-control-grid__table .sort-caret{--el-text-color-placeholder:--ibiz-control-grid-header-text-color;position:initial;opacity:.6}.ibiz-control-grid__table.el-table .el-table__cell{padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr td{background:var(--ibiz-control-grid-row-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr:nth-child(2n) td{background-color:var(--ibiz-control-grid-row-bg-color-2)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr:hover td{background-color:var(--ibiz-control-grid-row-hover-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.current-row td{background-color:var(--el-table-current-row-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td.uagridcolumn{background-color:var(--ibiz-control-grid-row-hover-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td:not(.uagridcolumn){background-color:var(--ibiz-control-grid-row-edit-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-date-editor,.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-input__wrapper,.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-textarea__inner{--el-input-bg-color:var(--ibiz-color-white)}.ibiz-control-grid__table .el-table__header-wrapper .cell{height:var(--ibiz-control-grid-header-height);min-height:var(--ibiz-control-grid-header-min-height);padding:var(--ibiz-control-grid-header-cell-padding);font-size:var(--ibiz-control-grid-header-font-size);font-weight:var(--ibiz-control-grid-header-font-weight);color:var(--ibiz-control-grid-header-text-color);word-break:break-word;white-space:pre-wrap}.ibiz-control-grid__table .el-table__header-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-grid-selection-padding)}.ibiz-control-grid__table .el-table__header-wrapper .el-table__cell .cell{display:flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content)}.ibiz-control-grid__table .el-table__header-wrapper .el-table-fixed-column--left .cell,.ibiz-control-grid__table .el-table__header-wrapper .el-table-fixed-column--right .cell{display:flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content)}.ibiz-control-grid__table .el-table__body-wrapper{color:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-0:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-1:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-2:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-3:var(--ibiz-control-grid-content-text-color);border-bottom:.1px solid var(--ibiz-color-border)}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row{height:var(--ibiz-control-grid-content-row-height);cursor:pointer}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row>td{height:0;padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row .el-table__expand-icon{margin:var(--ibiz-control-grid-row-expand-icon-margin)}@-moz-document url-prefix(){.ibiz-control-grid__table .el-table__body-wrapper .el-table__row>td{height:100%}}.ibiz-control-grid__table .el-table__body-wrapper .cell{display:flex;align-items:center;height:100%;padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table .el-table__body-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-grid-selection-padding)}.ibiz-control-grid__table .el-table__cell.is-center{--ibiz-grid-column-text-align:center;--ibiz-grid-column-justify-content:center}.ibiz-control-grid__table .el-table__cell.is-left{--ibiz-grid-column-text-align:left;--ibiz-grid-column-justify-content:flex-start}.ibiz-control-grid__table .el-table__cell.is-right{--ibiz-grid-column-text-align:right;--ibiz-grid-column-justify-content:flex-end}.ibiz-control-grid__table .el-scrollbar__wrap{position:relative}.ibiz-control-grid__table .el-table__footer-wrapper tfoot td.el-table__cell{font-size:var(--ibiz-control-grid-footer-font-size);font-weight:var(--ibiz-control-grid-footer-font-weight);color:var(--ibiz-control-grid-footer-text-color);background-color:var(--ibiz-control-grid-footer-bg-color)}.ibiz-control-grid__table .el-table__footer-wrapper tfoot td.el-table__cell:first-child>div{display:inline;vertical-align:4px}.ibiz-control-grid__table .enable-order{position:relative;padding-left:var(--ibiz-spacing-base-tight);transition:transform .25s cubic-bezier(0,0,.2,1)}.ibiz-control-grid__table .enable-order .ibiz-control-grid__drag-icon{padding:var(--ibiz-spacing-none)!important}.ibiz-control-grid__table .enable-order .ibiz-control-grid__drag-icon .cell{display:none}.ibiz-control-grid__table .enable-order:hover .ibiz-control-grid__drag-icon .cell{display:flex}.ibiz-control-grid__table .el-scrollbar__bar.is-horizontal{height:var(--ibiz-control-grid-scrollbar-width)}.ibiz-control-grid__table .el-scrollbar__bar.is-vertical{width:var(--ibiz-control-grid-scrollbar-width)}.ibiz-control-grid__table .el-scrollbar__thumb{background-color:var(--ibiz-control-grid-scrollbar-bg-color)}.ibiz-control-grid__table .el-scrollbar__thumb:hover{background-color:var(--ibiz-control-grid-scrollbar-bg-hover-color);opacity:var(--ibiz-control-grid-scrollbar-bg-hover-opacity)}.ibiz-control-grid__load-more-button{padding:var(--ibiz-control-grid-header-cell-padding);text-align:center}.ibiz-control-grid .el-table td.el-table__cell,.ibiz-control-grid .el-table th.el-table__cell.is-leaf{border-bottom:none}.ibiz-control-grid .ibiz-pagination{--ibiz-pagination-height:var(--ibiz-control-grid-page-height);--ibiz-pagination-text-color:var(--ibiz-control-grid-text-color);--ibiz-pagination-padding:var(--ibiz-control-grid-page-padding)}.ibiz-control-grid.is-single-select .el-table__header-wrapper .el-table__header thead>tr th:nth-child(1){padding-left:var(--ibiz-spacing-tight)}.ibiz-control-grid.is-single-select .el-table__body-wrapper .el-table__body tbody>tr td:nth-child(1){padding-left:var(--ibiz-spacing-tight)}.ibiz-control-grid.is-enable-customized .el-table__header-wrapper .el-table__header thead>tr:first-child th:last-child{padding-right:var(--ibiz-spacing-base-loose)}.ibiz-control-grid.is-enable-customized .ibiz-control-grid-setting-box{display:flex;align-items:center;justify-content:flex-start;position:absolute;top:0;right:0;z-index:1;height:var(--ibiz-control-grid-now-header-height);padding-right:var(--ibiz-spacing-extra-tight);background-color:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid-quick-toolbar{justify-content:center}.ibiz-control-grid-batch-toolbar{position:absolute;top:0;left:54px;z-index:99;display:none;width:calc(100% - 54px);height:var(--ibiz-control-grid-now-header-height);font-size:var(--ibiz-font-size-regular);font-weight:var(--ibiz-font-weight-regular);background-color:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid-batch-toolbar.is-show{display:flex;align-items:center;justify-content:flex-start}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-separator{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-content{height:100%;display:flex;align-items:center;justify-content:flex-start}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-text{flex:none}
|
|
1
|
+
.ibiz-control-grid{--ibiz-control-grid-text-color:var(--ibiz-color-text-0);--ibiz-control-grid-bg-color:transparent;--ibiz-control-grid-padding:var(--ibiz-spacing-none);--ibiz-control-grid-cell-padding:var(--ibiz-spacing-tight);--ibiz-control-grid-selection-padding:var(--ibiz-spacing-base-loose);--ibiz-control-grid-row-edit-bg-color:var(--ibiz-color-fill-2);--ibiz-control-grid-row-bg-color:var(--ibiz-color-bg-1);--ibiz-control-grid-row-bg-color-2:var(--ibiz-color-bg-0);--ibiz-control-grid-row-hover-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-row-select-color:var(--ibiz-color-primary-light-default);--ibiz-control-grid-row-expand-icon-margin:var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-none) var(--ibiz-spacing-tight);--ibiz-control-grid-now-header-height:auto;--ibiz-control-grid-scrollbar-width:4px;--ibiz-control-grid-scrollbar-bg-color:var(--ibiz-color-fill-2);--ibiz-control-grid-scrollbar-bg-hover-opacity:0.5;--ibiz-control-grid-scrollbar-bg-hover-color:var(--ibiz-color-fill-2);--ibiz-control-grid-header-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-header-cell-padding:calc(var(--ibiz-spacing-base-tight) / 2) var(--ibiz-spacing-base-tight);--ibiz-control-grid-header-height:auto;--ibiz-control-grid-header-min-height:54px;--ibiz-control-grid-header-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-header-font-size:var(--ibiz-font-size-regular);--ibiz-control-grid-header-font-weight:var(--ibiz-font-weight-regular);--ibiz-control-grid-content-text-color:var(--ibiz-control-grid-text-color);--ibiz-control-grid-content-row-height:48px;--ibiz-control-grid-page-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-page-height:50px;--ibiz-control-grid-page-padding:var(--ibiz-spacing-none) var(--ibiz-spacing-base-tight);--ibiz-control-grid-footer-text-color:var(--ibiz-color-text-2);--ibiz-control-grid-footer-bg-color:rgba(var(--ibiz-grey-1), 1);--ibiz-control-grid-footer-font-size:var(--ibiz-font-size-regular);--ibiz-control-grid-footer-font-weight:var(--ibiz-font-weight-bold);position:relative;width:100%;height:100%;padding:var(--ibiz-control-grid-padding);background-color:var(--ibiz-control-grid-bg-color)}.ibiz-control-grid .el-table{--el-table-header-bg-color:var(--ibiz-control-grid-header-bg-color);--el-table-current-row-bg-color:var(--ibiz-control-grid-row-select-color);--el-table-border-color:transparent}.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--left.is-first-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--left.is-last-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--right.is-first-column::before,.ibiz-control-grid .el-table__body-wrapper tr td.el-table-fixed-column--right.is-last-column::before{bottom:0}.ibiz-control-grid.is-empty .el-scrollbar .el-scrollbar__view{height:100%}.ibiz-control-grid.is-empty .el-table__empty-text{display:inline-block;height:100%}.ibiz-control-grid .el-table--border .el-table__cell{border-right:none}.ibiz-control-grid .el-table-fixed-column--left,.ibiz-control-grid .el-table-fixed-column--right{--el-bg-color:transparent}.ibiz-control-grid .el-table thead.is-group th.el-table__cell{background:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid.is-enable-page .ibiz-control-grid__table{height:calc(100% - var(--ibiz-control-grid-page-height))}.ibiz-control-grid.is-enable-group .el-table__indent{display:none}.ibiz-control-grid.is-dynamic-grid .el-table__empty-block{height:calc(100% - 48px)!important;min-height:248px}.ibiz-control-grid__add{width:calc(100% - var(--ibiz-spacing-extra-tight));margin:var(--ibiz-spacing-tight) var(--ibiz-spacing-extra-tight);color:var(--ibiz-color-primary);background-color:transparent;border:1px dashed var(--ibiz-color-border)}.ibiz-control-grid__add ion-icon{margin-right:var(--ibiz-spacing-extra-tight)}.ibiz-control-grid__add:focus{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-control-grid__add:hover{color:var(--ibiz-color-primary-hover);background-color:transparent;border:1px dashed var(--ibiz-color-primary-hover)}.ibiz-control-grid__table{width:100%;height:100%}.ibiz-control-grid__table .caret-wrapper{justify-content:center}.ibiz-control-grid__table .caret-wrapper>*+*{margin-top:var(--ibiz-spacing-super-tight)}.ibiz-control-grid__table .sort-caret{--el-text-color-placeholder:--ibiz-control-grid-header-text-color;position:initial;opacity:.6}.ibiz-control-grid__table.el-table .el-table__cell{padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr td{background:var(--ibiz-control-grid-row-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr:nth-child(2n) td{background-color:var(--ibiz-control-grid-row-bg-color-2)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr:hover td{background-color:var(--ibiz-control-grid-row-hover-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.current-row td{background-color:var(--el-table-current-row-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td.uagridcolumn{background-color:var(--ibiz-control-grid-row-hover-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td:not(.uagridcolumn){background-color:var(--ibiz-control-grid-row-edit-bg-color)}.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-date-editor,.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-input__wrapper,.ibiz-control-grid__table.el-table .el-table__body-wrapper tr.editing-row td .el-textarea__inner{--el-input-bg-color:var(--ibiz-color-white)}.ibiz-control-grid__table .el-table__header-wrapper .cell{height:var(--ibiz-control-grid-header-height);min-height:var(--ibiz-control-grid-header-min-height);padding:var(--ibiz-control-grid-header-cell-padding);font-size:var(--ibiz-control-grid-header-font-size);font-weight:var(--ibiz-control-grid-header-font-weight);color:var(--ibiz-control-grid-header-text-color);word-break:break-word;white-space:pre-wrap}.ibiz-control-grid__table .el-table__header-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-grid-selection-padding)}.ibiz-control-grid__table .el-table__header-wrapper .el-table__cell .cell{display:flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content)}.ibiz-control-grid__table .el-table__header-wrapper .el-table-fixed-column--left .cell,.ibiz-control-grid__table .el-table__header-wrapper .el-table-fixed-column--right .cell{display:flex;align-items:center;justify-content:var(--ibiz-grid-column-justify-content)}.ibiz-control-grid__table .el-table__body-wrapper{color:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-0:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-1:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-2:var(--ibiz-control-grid-content-text-color);--ibiz-color-text-3:var(--ibiz-control-grid-content-text-color);border-bottom:.1px solid var(--ibiz-color-border)}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row{height:var(--ibiz-control-grid-content-row-height);cursor:pointer}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row>td{height:0;padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table .el-table__body-wrapper .el-table__row .el-table__expand-icon{margin:var(--ibiz-control-grid-row-expand-icon-margin)}@-moz-document url-prefix(){.ibiz-control-grid__table .el-table__body-wrapper .el-table__row>td{height:100%}}.ibiz-control-grid__table .el-table__body-wrapper .cell{display:flex;align-items:center;height:100%;padding:var(--ibiz-spacing-none)}.ibiz-control-grid__table .el-table__body-wrapper .el-table-column--selection .cell{padding:var(--ibiz-control-grid-selection-padding)}.ibiz-control-grid__table .el-table__cell.is-center{--ibiz-grid-column-text-align:center;--ibiz-grid-column-justify-content:center}.ibiz-control-grid__table .el-table__cell.is-left{--ibiz-grid-column-text-align:left;--ibiz-grid-column-justify-content:flex-start}.ibiz-control-grid__table .el-table__cell.is-right{--ibiz-grid-column-text-align:right;--ibiz-grid-column-justify-content:flex-end}.ibiz-control-grid__table .el-scrollbar__wrap{position:relative}.ibiz-control-grid__table .el-table__footer-wrapper tfoot td.el-table__cell{font-size:var(--ibiz-control-grid-footer-font-size);font-weight:var(--ibiz-control-grid-footer-font-weight);color:var(--ibiz-control-grid-footer-text-color);background-color:var(--ibiz-control-grid-footer-bg-color)}.ibiz-control-grid__table .el-table__footer-wrapper tfoot td.el-table__cell:first-child>div{display:inline;vertical-align:4px}.ibiz-control-grid__table .enable-order{position:relative;padding-left:var(--ibiz-spacing-base-tight);transition:transform .25s cubic-bezier(0,0,.2,1)}.ibiz-control-grid__table .enable-order .ibiz-control-grid__drag-icon{padding:var(--ibiz-spacing-none)!important}.ibiz-control-grid__table .enable-order .ibiz-control-grid__drag-icon .cell{display:none}.ibiz-control-grid__table .enable-order:hover .ibiz-control-grid__drag-icon .cell{display:flex}.ibiz-control-grid__table .el-scrollbar__bar.is-horizontal{height:var(--ibiz-control-grid-scrollbar-width)}.ibiz-control-grid__table .el-scrollbar__bar.is-vertical{width:var(--ibiz-control-grid-scrollbar-width)}.ibiz-control-grid__table .el-scrollbar__thumb{background-color:var(--ibiz-control-grid-scrollbar-bg-color)}.ibiz-control-grid__table .el-scrollbar__thumb:hover{background-color:var(--ibiz-control-grid-scrollbar-bg-hover-color);opacity:var(--ibiz-control-grid-scrollbar-bg-hover-opacity)}.ibiz-control-grid__load-more-button{padding:var(--ibiz-control-grid-header-cell-padding);text-align:center}.ibiz-control-grid .el-table td.el-table__cell,.ibiz-control-grid .el-table th.el-table__cell.is-leaf{border-bottom:none}.ibiz-control-grid .ibiz-pagination{--ibiz-pagination-height:var(--ibiz-control-grid-page-height);--ibiz-pagination-text-color:var(--ibiz-control-grid-text-color);--ibiz-pagination-padding:var(--ibiz-control-grid-page-padding)}.ibiz-control-grid.is-single-select .el-table__header-wrapper .el-table__header thead>tr th:nth-child(1){padding-left:var(--ibiz-spacing-tight)}.ibiz-control-grid.is-single-select .el-table__body-wrapper .el-table__body tbody>tr td:nth-child(1){padding-left:var(--ibiz-spacing-tight)}.ibiz-control-grid.is-enable-customized .el-table__header-wrapper .el-table__header thead>tr:first-child th:last-child{padding-right:var(--ibiz-spacing-base-loose)}.ibiz-control-grid.is-enable-customized .ibiz-control-grid-setting-box{display:flex;align-items:center;justify-content:flex-start;position:absolute;top:0;right:0;z-index:10;height:var(--ibiz-control-grid-now-header-height);padding-right:var(--ibiz-spacing-extra-tight);background-color:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid-quick-toolbar{justify-content:center}.ibiz-control-grid-batch-toolbar{position:absolute;top:0;left:54px;z-index:99;display:none;width:calc(100% - 54px);height:var(--ibiz-control-grid-now-header-height);font-size:var(--ibiz-font-size-regular);font-weight:var(--ibiz-font-weight-regular);background-color:var(--ibiz-control-grid-header-bg-color)}.ibiz-control-grid-batch-toolbar.is-show{display:flex;align-items:center;justify-content:flex-start}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-separator{padding:0 var(--ibiz-spacing-base-tight)}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-content{height:100%;display:flex;align-items:center;justify-content:flex-start}.ibiz-control-grid-batch-toolbar .ibiz-control-grid-batch-toolbar-text{flex:none}
|
|
@@ -171,15 +171,15 @@ const ToolbarControl = /* @__PURE__ */ vue.defineComponent({
|
|
|
171
171
|
"class": [ns.is("loading", c.state.buttonsState[detail.id].loading), ns.em("item", buttonType), calcCssName(detail)],
|
|
172
172
|
"index": "menuitem".concat(detail.id),
|
|
173
173
|
"disabled": c.state.buttonsState[detail.id].disabled,
|
|
174
|
-
"title": core.showTitle(detail.caption)
|
|
175
|
-
"onClick": (e) => {
|
|
176
|
-
if (!detail.uiactionId)
|
|
177
|
-
return;
|
|
178
|
-
handleActionClick(detail, e);
|
|
179
|
-
}
|
|
174
|
+
"title": core.showTitle(detail.caption)
|
|
180
175
|
}, {
|
|
181
176
|
default: () => [vue.createVNode(vue.resolveComponent("el-button"), {
|
|
182
|
-
"loading": c.state.buttonsState[detail.id].loading
|
|
177
|
+
"loading": c.state.buttonsState[detail.id].loading,
|
|
178
|
+
"onClick": (e) => {
|
|
179
|
+
if (!detail.uiactionId)
|
|
180
|
+
return;
|
|
181
|
+
handleActionClick(detail, e);
|
|
182
|
+
}
|
|
183
183
|
}, _isSlot(_slot2 = btnContent(detail, c.state)) ? _slot2 : {
|
|
184
184
|
default: () => [_slot2]
|
|
185
185
|
})]
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var vue = require('vue');
|
|
4
4
|
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
-
var index = require('../../../node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.
|
|
5
|
+
var index = require('../../../node_modules/.pnpm/@amap_amap-jsapi-loader@1.0.1_patch_hash_73bpcwbs2m5ip4qppmz6a7epsa/node_modules/@amap/amap-jsapi-loader/dist/index.cjs');
|
|
6
6
|
require('./ibiz-map-picker.css');
|
|
7
7
|
|
|
8
8
|
"use strict";
|
package/lib/locale/en/index.cjs
CHANGED
|
@@ -747,6 +747,12 @@ var index = {
|
|
|
747
747
|
successImport: "Number of successful imports: ",
|
|
748
748
|
ImportFailed: "Number of import failures: "
|
|
749
749
|
},
|
|
750
|
+
asyncDataExport: {
|
|
751
|
+
exportDetailPrompt: "Export data details-{name}",
|
|
752
|
+
excuteTime: "Execution time",
|
|
753
|
+
downloadFile: "DownLoad File",
|
|
754
|
+
executing: "Executing......"
|
|
755
|
+
},
|
|
750
756
|
asyncActionTab: {
|
|
751
757
|
noSupportType: "Asynchronous operation type {type} is not supported currently",
|
|
752
758
|
noAsyncAction: "There are currently no asynchronous operations available"
|
|
@@ -743,6 +743,12 @@ var index = {
|
|
|
743
743
|
successImport: "\u6210\u529F\u5BFC\u5165\u6570: ",
|
|
744
744
|
ImportFailed: "\u5BFC\u5165\u5931\u8D25\u6570: "
|
|
745
745
|
},
|
|
746
|
+
asyncDataExport: {
|
|
747
|
+
exportDetailPrompt: "\u5BFC\u51FA\u6570\u636E\u8BE6\u60C5-{name}",
|
|
748
|
+
excuteTime: "\u6267\u884C\u65F6\u95F4",
|
|
749
|
+
downloadFile: "\u4E0B\u8F7D\u6587\u4EF6",
|
|
750
|
+
executing: "\u6267\u884C\u4E2D......"
|
|
751
|
+
},
|
|
746
752
|
asyncActionTab: {
|
|
747
753
|
noSupportType: "\u5F02\u6B65\u64CD\u4F5C\u7C7B\u578B{type}\u6682\u672A\u652F\u6301",
|
|
748
754
|
noAsyncAction: "\u6682\u65E0\u5F02\u6B65\u64CD\u4F5C"
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var _commonjsHelpers = require('../../../../../../../_virtual/_commonjsHelpers.cjs');
|
|
6
|
+
var index = require('../../../../../../../_virtual/index.cjs');
|
|
7
|
+
|
|
8
|
+
/*
|
|
9
|
+
*****************************************************************************
|
|
10
|
+
Copyright (c) Microsoft Corporation.
|
|
11
|
+
|
|
12
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
13
|
+
purpose with or without fee is hereby granted.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
16
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
17
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
18
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
19
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
20
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
21
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
22
|
+
*****************************************************************************/
|
|
23
|
+
var dist = index.__module.exports;
|
|
24
|
+
|
|
25
|
+
(function (module, exports) {
|
|
26
|
+
'use strict';(function(q,r){"object"==='object'&&"undefined"!=='object'?module.exports=r():"function"===typeof undefined&&undefined.amd?undefined(r):(q=q||self,q.AMapLoader=r());})(_commonjsHelpers.commonjsGlobal,function(){function q(a,e,h,c){function b(a){return a instanceof h?a:new h(function(b){b(a);})}return new (h||(h=Promise))(function(h,g){function f(a){try{d(c.next(a));}catch(u){g(u);}}function k(a){try{d(c["throw"](a));}catch(u){g(u);}}function d(a){a.done?h(a.value):b(a.value).then(f,k);}d((c=c.apply(a,e||[])).next());})}
|
|
27
|
+
function r(a,g){function e(a){return function(f){return c([a,f])}}function c(d){if(m)throw new TypeError("Generator is already executing.");for(;b;)try{if(m=1,k&&(f=d[0]&2?k["return"]:d[0]?k["throw"]||((f=k["return"])&&f.call(k),0):k.next)&&!(f=f.call(k,d[1])).done)return f;if(k=0,f)d=[d[0]&2,f.value];switch(d[0]){case 0:case 1:f=d;break;case 4:return b.label++,{value:d[1],done:!1};case 5:b.label++;k=d[1];d=[0];continue;case 7:d=b.ops.pop();b.trys.pop();continue;default:if(!(f=b.trys,f=0<f.length&&
|
|
28
|
+
f[f.length-1])&&(6===d[0]||2===d[0])){b=0;continue}if(3===d[0]&&(!f||d[1]>f[0]&&d[1]<f[3]))b.label=d[1];else if(6===d[0]&&b.label<f[1])b.label=f[1],f=d;else if(f&&b.label<f[2])b.label=f[2],b.ops.push(d);else {f[2]&&b.ops.pop();b.trys.pop();continue}}d=g.call(a,b);}catch(w){d=[6,w],k=0;}finally{m=f=0;}if(d[0]&5)throw d[1];return {value:d[0]?d[1]:void 0,done:!0}}var b={label:0,sent:function(){if(f[0]&1)throw f[1];return f[1]},trys:[],ops:[]},m,k,f,l;return l={next:e(0),"throw":e(1),"return":e(2)},"function"===
|
|
29
|
+
typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l}function t(a){var e=[];a.AMapUI&&e.push(x(a.AMapUI));a.Loca&&e.push(y(a.Loca));return Promise.all(e)}function x(a){return new Promise(function(p,h){var c=[];if(a.plugins)for(var b=0;b<a.plugins.length;b+=1)-1==g.AMapUI.plugins.indexOf(a.plugins[b])&&c.push(a.plugins[b]);if(l.AMapUI===e.failed)h("\u524d\u6b21\u8bf7\u6c42 AMapUI \u5931\u8d25");else if(l.AMapUI===e.notload){l.AMapUI=e.loading;g.AMapUI.version=a.version||g.AMapUI.version;b=
|
|
30
|
+
g.AMapUI.version;var m=document.body||document.head,k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/ui/"+b+"/main.js";k.onerror=function(a){l.AMapUI=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.AMapUI=e.loaded;if(c.length)window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}for(p();n.AMapUI.length;)n.AMapUI.splice(0,1)[0]();});else for(p();n.AMapUI.length;)n.AMapUI.splice(0,
|
|
31
|
+
1)[0]();};m.appendChild(k);}else l.AMapUI===e.loaded?a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):c.length?window.AMapUI.loadUI(c,function(){for(var a=0,b=c.length;a<b;a++){var d=c[a].split("/").slice(-1)[0];window.AMapUI[d]=arguments[a];}p();}):p():a.version&&a.version!==g.AMapUI.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c AMapUI \u6df7\u7528"):n.AMapUI.push(function(a){a?h(a):c.length?window.AMapUI.loadUI(c,function(){for(var a=
|
|
32
|
+
0,b=c.length;a<b;a++){var f=c[a].split("/").slice(-1)[0];window.AMapUI[f]=arguments[a];}p();}):p();});})}function y(a){return new Promise(function(p,h){if(l.Loca===e.failed)h("\u524d\u6b21\u8bf7\u6c42 Loca \u5931\u8d25");else if(l.Loca===e.notload){l.Loca=e.loading;g.Loca.version=a.version||g.Loca.version;var c=g.Loca.version,b=g.AMap.version.startsWith("2"),m=c.startsWith("2");if(b&&!m||!b&&m)h("JSAPI \u4e0e Loca \u7248\u672c\u4e0d\u5bf9\u5e94\uff01\uff01");else {b=g.key;m=document.body||document.head;
|
|
33
|
+
var k=document.createElement("script");k.type="text/javascript";k.src="https://webapi.amap.com/loca?v="+c+"&key="+b;k.onerror=function(a){l.Loca=e.failed;h("\u8bf7\u6c42 AMapUI \u5931\u8d25");};k.onload=function(){l.Loca=e.loaded;for(p();n.Loca.length;)n.Loca.splice(0,1)[0]();};m.appendChild(k);}}else l.Loca===e.loaded?a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):p():a.version&&a.version!==g.Loca.version?h("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c Loca \u6df7\u7528"):
|
|
34
|
+
n.Loca.push(function(a){a?h(a):h();});})}if(!window)throw Error("AMap JSAPI can only be used in Browser.");var e;(function(a){a.notload="notload";a.loading="loading";a.loaded="loaded";a.failed="failed";})(e||(e={}));var g={key:"",AMap:{version:"1.4.15",plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}},l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload},n={AMap:[],AMapUI:[],Loca:[]},v=[],z=function(a){"function"==typeof a&&(l.AMap===e.loaded?a(window.AMap):v.push(a));};return {load:function(a){var p=
|
|
35
|
+
this;return new Promise(function(h,c){if(l.AMap==e.failed)c("");else if(l.AMap==e.notload){var b=a.key,m=a.version,k=a.plugins;if(b){window.AMap&&"lbs.amap.com"!==location.host&&c("\u7981\u6b62\u591a\u79cdAPI\u52a0\u8f7d\u65b9\u5f0f\u6df7\u7528");g.key=b;g.AMap.version=m||g.AMap.version;g.AMap.plugins=k||g.AMap.plugins;l.AMap=e.loading;var f=document.body||document.head;window.___onAPILoaded=function(b){delete window.___onAPILoaded;if(b)l.AMap=e.failed,c(b);else for(l.AMap=e.loaded,t(a).then(function(){h(window.AMap);})["catch"](c);v.length;)v.splice(0,
|
|
36
|
+
1)[0]();};var n=document.createElement("script");n.type="text/javascript";b="https://webapi.amap.com/maps?callback=___onAPILoaded&v="+g.AMap.version+"&key="+b+"&plugin="+g.AMap.plugins.join(",");fetch(b).then(function(a){return q(p,void 0,void 0,function(){var b;return r(this,function(c){switch(c.label){case 0:return [4,a.text()];case 1:return b=c.sent(),n.textContent=b.replace("define.amd","undefined"),f.appendChild(n),[2]}})})})["catch"](function(a){l.AMap=e.failed;c(a);});}else c("\u8bf7\u586b\u5199key");}else if(l.AMap==
|
|
37
|
+
e.loaded)if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {b=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&b.push(a.plugins[m]);if(b.length)window.AMap.plugin(b,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);}else if(a.key&&a.key!==g.key)c("\u591a\u4e2a\u4e0d\u4e00\u81f4\u7684 key");
|
|
38
|
+
else if(a.version&&a.version!==g.AMap.version)c("\u4e0d\u5141\u8bb8\u591a\u4e2a\u7248\u672c JSAPI \u6df7\u7528");else {var d=[];if(a.plugins)for(m=0;m<a.plugins.length;m+=1)-1==g.AMap.plugins.indexOf(a.plugins[m])&&d.push(a.plugins[m]);z(function(){if(d.length)window.AMap.plugin(d,function(){t(a).then(function(){h(window.AMap);})["catch"](c);});else t(a).then(function(){h(window.AMap);})["catch"](c);});}})},reset:function(){delete window.AMap;delete window.AMapUI;delete window.Loca;g={key:"",AMap:{version:"1.4.15",
|
|
39
|
+
plugins:[]},AMapUI:{version:"1.1",plugins:[]},Loca:{version:"1.3.2"}};l={AMap:e.notload,AMapUI:e.notload,Loca:e.notload};n={AMap:[],AMapUI:[],Loca:[]};}}});
|
|
40
|
+
} (index.__module, index.__module.exports));
|
|
41
|
+
|
|
42
|
+
var distExports = index.__module.exports;
|
|
43
|
+
var AMapLoader = /*@__PURE__*/_commonjsHelpers.getDefaultExportFromCjs(distExports);
|
|
44
|
+
|
|
45
|
+
exports.default = AMapLoader;
|
package/lib/panel-component/user-message/async-action/async-action/async-action.provider.cjs
CHANGED
|
@@ -4,6 +4,7 @@ var vue = require('vue');
|
|
|
4
4
|
var lodashEs = require('lodash-es');
|
|
5
5
|
var asyncActionPreview = require('../async-action-preview/async-action-preview.cjs');
|
|
6
6
|
var asyncActionResult = require('../async-action-result/async-action-result.cjs');
|
|
7
|
+
var asyncDataExport = require('../async-data-export/async-data-export.cjs');
|
|
7
8
|
var asyncAction = require('./async-action.cjs');
|
|
8
9
|
|
|
9
10
|
"use strict";
|
|
@@ -37,6 +38,19 @@ class AsyncActionProvider {
|
|
|
37
38
|
);
|
|
38
39
|
return true;
|
|
39
40
|
}
|
|
41
|
+
if (asyncAction.actiontype === "DEEXPORTDATA") {
|
|
42
|
+
ibiz.overlay.modal(
|
|
43
|
+
(modal) => {
|
|
44
|
+
return vue.h(asyncDataExport.AsyncDataExport, {
|
|
45
|
+
asyncAction,
|
|
46
|
+
modal
|
|
47
|
+
});
|
|
48
|
+
},
|
|
49
|
+
{},
|
|
50
|
+
{ width: "80%", height: "80%" }
|
|
51
|
+
);
|
|
52
|
+
return true;
|
|
53
|
+
}
|
|
40
54
|
if (lodashEs.isObject(asyncAction.actionresult)) {
|
|
41
55
|
ibiz.overlay.modal(
|
|
42
56
|
(modal) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
1
|
+
.ibiz-async-action-tab{--ibiz-async-action-tab-load-more-height:30px;width:100%;height:100%}.ibiz-async-action-tab__item{min-height:60px;padding:var(--ibiz-spacing-tight) 0;cursor:pointer}.ibiz-async-action-tab__nodata{display:flex;align-items:center;justify-content:center;height:calc(100% - var(--ibiz-async-action-tab-load-more-height))}.ibiz-async-action-tab__load-more{height:var(--ibiz-async-action-tab-load-more-height);line-height:var(--ibiz-async-action-tab-load-more-height);text-align:center}.ibiz-async-action-tab__load-more:hover{color:var(--ibiz-color-primary-hover);cursor:pointer}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vue3Util = require('@ibiz-template/vue3-util');
|
|
5
|
+
require('./async-data-export.css');
|
|
6
|
+
|
|
7
|
+
"use strict";
|
|
8
|
+
function _isSlot(s) {
|
|
9
|
+
return typeof s === "function" || Object.prototype.toString.call(s) === "[object Object]" && !vue.isVNode(s);
|
|
10
|
+
}
|
|
11
|
+
const AsyncDataExport = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
name: "IBizAsyncDataExport",
|
|
13
|
+
props: {
|
|
14
|
+
asyncAction: {
|
|
15
|
+
type: Object,
|
|
16
|
+
required: true
|
|
17
|
+
},
|
|
18
|
+
modal: {
|
|
19
|
+
type: Object,
|
|
20
|
+
required: true
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup(props) {
|
|
24
|
+
const ns = vue3Util.useNamespace("async-data-export");
|
|
25
|
+
const finishedStates = [30, 40];
|
|
26
|
+
const onClose = () => {
|
|
27
|
+
props.modal.dismiss();
|
|
28
|
+
};
|
|
29
|
+
const info = vue.reactive({
|
|
30
|
+
title: "",
|
|
31
|
+
beginTime: "",
|
|
32
|
+
endTime: "",
|
|
33
|
+
fileUrl: "",
|
|
34
|
+
isFinish: false
|
|
35
|
+
});
|
|
36
|
+
info.title = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.exportDetailPrompt", {
|
|
37
|
+
name: props.asyncAction.asyncacitonname
|
|
38
|
+
});
|
|
39
|
+
info.beginTime = props.asyncAction.begintime;
|
|
40
|
+
info.endTime = props.asyncAction.endtime;
|
|
41
|
+
if (props.asyncAction.asyncresultdownloadurl) {
|
|
42
|
+
const asyncResultDownloadObj = JSON.parse(props.asyncAction.asyncresultdownloadurl);
|
|
43
|
+
info.fileUrl = "".concat(ibiz.env.baseUrl, "/").concat(ibiz.env.appId).concat(ibiz.env.downloadFileUrl, "/").concat(asyncResultDownloadObj.folder, "/").concat(asyncResultDownloadObj.fileid).replace("/{cat}", "");
|
|
44
|
+
}
|
|
45
|
+
if (!finishedStates.includes(props.asyncAction.actionstate)) {
|
|
46
|
+
info.isFinish = false;
|
|
47
|
+
} else {
|
|
48
|
+
info.isFinish = true;
|
|
49
|
+
}
|
|
50
|
+
const onDownLoad = () => {
|
|
51
|
+
ibiz.util.file.fileDownload(info.fileUrl);
|
|
52
|
+
};
|
|
53
|
+
return {
|
|
54
|
+
ns,
|
|
55
|
+
info,
|
|
56
|
+
onClose,
|
|
57
|
+
onDownLoad
|
|
58
|
+
};
|
|
59
|
+
},
|
|
60
|
+
render() {
|
|
61
|
+
let _slot, _slot2;
|
|
62
|
+
return vue.createVNode("div", {
|
|
63
|
+
"class": [this.ns.b()]
|
|
64
|
+
}, [vue.createVNode("div", {
|
|
65
|
+
"class": this.ns.b("header")
|
|
66
|
+
}, [vue.createVNode("div", {
|
|
67
|
+
"class": this.ns.e("title")
|
|
68
|
+
}, [this.info.title]), vue.createVNode("div", {
|
|
69
|
+
"class": this.ns.b("toolbar")
|
|
70
|
+
}, [this.info.fileUrl && vue.createVNode(vue.resolveComponent("el-button"), {
|
|
71
|
+
"onClick": this.onDownLoad
|
|
72
|
+
}, _isSlot(_slot = ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.downloadFile")) ? _slot : {
|
|
73
|
+
default: () => [_slot]
|
|
74
|
+
}), vue.createVNode(vue.resolveComponent("el-button"), {
|
|
75
|
+
"onClick": this.onClose
|
|
76
|
+
}, _isSlot(_slot2 = ibiz.i18n.t("app.close")) ? _slot2 : {
|
|
77
|
+
default: () => [_slot2]
|
|
78
|
+
})])]), vue.createVNode("div", {
|
|
79
|
+
"class": this.ns.b("time")
|
|
80
|
+
}, [this.info.isFinish ? vue.createVNode(vue.resolveComponent("el-form-item"), {
|
|
81
|
+
"label": ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.excuteTime")
|
|
82
|
+
}, {
|
|
83
|
+
default: () => [this.info.beginTime, vue.createTextVNode(" ~ "), this.info.endTime]
|
|
84
|
+
}) : vue.createVNode("span", {
|
|
85
|
+
"class": this.ns.be("time", "executing")
|
|
86
|
+
}, [ibiz.i18n.t("panelComponent.userMessage.asyncDataExport.executing")])])]);
|
|
87
|
+
}
|
|
88
|
+
});
|
|
89
|
+
|
|
90
|
+
exports.AsyncDataExport = AsyncDataExport;
|