super-page-runtime 2.3.19-sit3 → 2.3.20-sit1

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.
Files changed (28) hide show
  1. package/dist/es/components/runtime/utils/anchor-util.d.ts +13 -0
  2. package/dist/es/components/runtime/utils/anchor-util.js +69 -0
  3. package/dist/es/components/runtime/utils/api/page-expose-util.js +64 -60
  4. package/dist/es/components/runtime/utils/events/data-backfill-util.js +23 -23
  5. package/dist/es/components/runtime/utils/events/standard-event.d.ts +1 -0
  6. package/dist/es/components/runtime/utils/events/standard-event.js +643 -615
  7. package/dist/es/components/runtime/utils/page-store.d.ts +13 -1
  8. package/dist/es/components/runtime/utils/page-store.js +46 -19
  9. package/dist/es/components/runtime/utils/table-utils.d.ts +2 -0
  10. package/dist/es/components/runtime/utils/table-utils.js +63 -54
  11. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +20 -18
  12. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +10 -11
  13. package/dist/es/components/runtime/views/assemblys/chart/table/normal-column.vue.js +3 -2
  14. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.d.ts +27 -0
  15. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue.js +35 -0
  16. package/dist/es/components/runtime/views/assemblys/common/file-task-notice.vue2.js +4 -0
  17. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.d.ts +59 -0
  18. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue.js +32 -0
  19. package/dist/es/components/runtime/views/assemblys/common/format-file-task-notice-message.vue2.js +4 -0
  20. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +176 -156
  21. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +15 -15
  22. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +32 -34
  23. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  24. package/dist/es/components/runtime/views/super-page.vue2.js +193 -192
  25. package/dist/es/i18n/langs/cn.js +1 -1
  26. package/dist/es/i18n/langs/en.js +1 -1
  27. package/dist/es/style.css +76 -76
  28. package/package.json +2 -2
@@ -13,6 +13,10 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
13
13
  pageLoaded: import('vue').Ref<boolean, boolean>;
14
14
  getPageLoaded: () => boolean;
15
15
  setPageLoaded: (state: boolean) => void;
16
+ setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
17
+ getAutoAnchorComponentConditions: () => any[];
18
+ resetAutoAnchorComponentConditions: () => void;
19
+ resetComponentCounters: () => void;
16
20
  }, "pageContext" | "componentsTotalNmber" | "componentsLoadedNumber" | "formPageDataLoaded" | "pageComponentsLoaded" | "pageLoaded">, Pick<{
17
21
  pageContext: any;
18
22
  setPageContext: (newPageContext: any) => void;
@@ -28,6 +32,10 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
28
32
  pageLoaded: import('vue').Ref<boolean, boolean>;
29
33
  getPageLoaded: () => boolean;
30
34
  setPageLoaded: (state: boolean) => void;
35
+ setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
36
+ getAutoAnchorComponentConditions: () => any[];
37
+ resetAutoAnchorComponentConditions: () => void;
38
+ resetComponentCounters: () => void;
31
39
  }, "pageContext">, Pick<{
32
40
  pageContext: any;
33
41
  setPageContext: (newPageContext: any) => void;
@@ -43,4 +51,8 @@ export declare const usePageContextStore: import('pinia').StoreDefinition<"pageC
43
51
  pageLoaded: import('vue').Ref<boolean, boolean>;
44
52
  getPageLoaded: () => boolean;
45
53
  setPageLoaded: (state: boolean) => void;
46
- }, "pageContext" | "setPageContext" | "countComponentsTotalNmber" | "countComponentsLoadedNumber" | "setPageComponentsLoaded" | "setFormPageDataLoadState" | "restorePageLoadState" | "getPageLoaded" | "setPageLoaded">>;
54
+ setAutoAnchorComponentConditions: (uuid: any, conditions: any) => void;
55
+ getAutoAnchorComponentConditions: () => any[];
56
+ resetAutoAnchorComponentConditions: () => void;
57
+ resetComponentCounters: () => void;
58
+ }, "pageContext" | "setPageContext" | "countComponentsTotalNmber" | "countComponentsLoadedNumber" | "setPageComponentsLoaded" | "setFormPageDataLoadState" | "restorePageLoadState" | "getPageLoaded" | "setPageLoaded" | "setAutoAnchorComponentConditions" | "getAutoAnchorComponentConditions" | "resetAutoAnchorComponentConditions" | "resetComponentCounters">>;
@@ -1,26 +1,53 @@
1
- import { ref as e } from "vue";
2
- import { defineStore as o } from "pinia";
3
- import a from "./eventBus.js";
4
- const t = o("pageContextUtil", () => {
5
- const o2 = e({ systemCode: "", systemVersion: -1 }), t2 = e(false), n = e(false), u = e(false), l = e(0), d = e(0);
6
- return { pageContext: o2, setPageContext: function(e2) {
7
- o2.value = e2;
1
+ import { ref as e, nextTick as o } from "vue";
2
+ import { defineStore as t } from "pinia";
3
+ import n from "./eventBus.js";
4
+ const u = t("pageContextUtil", () => {
5
+ const t2 = e({ systemCode: "", systemVersion: -1 }), u2 = e(false), a = e(false), i = e(false), l = e([]), r = e(0), s = e(0);
6
+ let v = null, c = -1, d = -1, m = 0;
7
+ function f() {
8
+ v && clearTimeout(v), v = setTimeout(() => {
9
+ o(() => {
10
+ !function() {
11
+ const e2 = r.value, o2 = s.value;
12
+ if (m++, m >= 100) return void (e2 > 0 && e2 === o2 && p(true));
13
+ if (e2 > 0 && e2 === o2) {
14
+ if (e2 === c && o2 === d && !u2.value) return void p(true);
15
+ c = e2, d = o2, f();
16
+ } else c = -1, d = -1, f();
17
+ }();
18
+ });
19
+ }, 30);
20
+ }
21
+ function p(e2) {
22
+ u2.value = e2, C();
23
+ }
24
+ function C() {
25
+ u2.value && a.value && !i.value && (n.$emit("pageLoaded"), i.value = true);
26
+ }
27
+ return { pageContext: t2, setPageContext: function(e2) {
28
+ t2.value = e2;
8
29
  }, countComponentsTotalNmber: function() {
9
- l.value++, t2.value = false, u.value = false;
30
+ r.value++, u2.value = false, i.value = false;
10
31
  }, countComponentsLoadedNumber: function() {
11
- d.value++, u.value = false;
12
- }, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
13
- t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
14
- }, setFormPageDataLoadState: function(e2) {
15
- n.value = e2, t2.value && n.value && (u.value = true);
16
- }, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
17
- t2.value = false, n.value = false, u.value = false;
18
- }, pageLoaded: u, getPageLoaded: function() {
19
- return u.value;
32
+ s.value++, f();
33
+ }, componentsTotalNmber: r, componentsLoadedNumber: s, setPageComponentsLoaded: p, setFormPageDataLoadState: function(e2) {
34
+ a.value = e2, C();
35
+ }, formPageDataLoaded: a, pageComponentsLoaded: u2, restorePageLoadState: function() {
36
+ u2.value = false, a.value = false, i.value = false;
37
+ }, pageLoaded: i, getPageLoaded: function() {
38
+ return i.value;
20
39
  }, setPageLoaded: function(e2) {
21
- u.value = e2;
40
+ i.value = e2;
41
+ }, setAutoAnchorComponentConditions: function(e2, o2) {
42
+ l.value.push({ uuid: e2, conditions: o2 });
43
+ }, getAutoAnchorComponentConditions: function() {
44
+ return l.value;
45
+ }, resetAutoAnchorComponentConditions: function() {
46
+ l.value = [];
47
+ }, resetComponentCounters: function() {
48
+ r.value = 0, s.value = 0, u2.value = false, i.value = false, c = -1, d = -1, m = 0, v && (clearTimeout(v), v = null);
22
49
  } };
23
50
  });
24
51
  export {
25
- t as usePageContextStore
52
+ u as usePageContextStore
26
53
  };
@@ -32,3 +32,5 @@ export declare function isHasFieldAuth(pageContext: any, configure: any): boolea
32
32
  * @returns
33
33
  */
34
34
  export declare function isHasFieldPermissionAuth(pageContext: any, tableName: any, fieldName: any): boolean;
35
+ export declare function getCurrentUserFileTasks(backendUrl: any, pageCode: any, isTest?: any): any;
36
+ export declare function setFileTaskRead(backendUrl: any, taskId: any, isTest?: any): any;
@@ -1,80 +1,89 @@
1
- import "agilebuilder-ui/src/utils/common-util";
2
- import "agilebuilder-ui/src/utils/util";
3
- import { ExpressionEvaluator as t } from "../views/assemblys/chart/table/chart-table-util.js";
4
- import { getCustomFunc as e } from "./events/event-util.js";
5
- import "agilebuilder-ui/src/utils/request";
6
- import i from "./eventBus.js";
7
- import { getPermissionCodes as o } from "./page-init-util.js";
8
- import { $t as n } from "./i18n-util.js";
9
- import { getFormPropName as s } from "./page-helper-util.js";
10
- function r(t2) {
1
+ import { getBaseUrl as t } from "./common-util.js";
2
+ import e from "agilebuilder-ui/src/utils/request";
3
+ import o from "./eventBus.js";
4
+ import { getPermissionCodes as n } from "./page-init-util.js";
5
+ import { getCustomFunc as i } from "./events/event-util.js";
6
+ import { $t as s } from "./i18n-util.js";
7
+ import { ExpressionEvaluator as r } from "../views/assemblys/chart/table/chart-table-util.js";
8
+ import { getFormPropName as u } from "./page-helper-util.js";
9
+ function a(t2) {
11
10
  const e2 = t2.pageContext && t2.pageContext.code;
12
- i.$emit(e2 + "_open-dialog", t2);
11
+ o.$emit(e2 + "_open-dialog", t2);
13
12
  }
14
- function u(t2, e2) {
15
- const i2 = t2.tableName;
16
- if (!e2 && i2) return i2;
17
- let o2;
18
- return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (o2 = JSON.parse(t2.tableRuntimes[e2].configure)), o2 && o2.props && o2.props.dataOrigin ? o2.props.dataOrigin.tableName : null;
13
+ function p(t2, e2) {
14
+ const o2 = t2.tableName;
15
+ if (!e2 && o2) return o2;
16
+ let n2;
17
+ return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (n2 = JSON.parse(t2.tableRuntimes[e2].configure)), n2 && n2.props && n2.props.dataOrigin ? n2.props.dataOrigin.tableName : null;
19
18
  }
20
- function l(t2, e2, i2, s2) {
19
+ function l(t2, e2, o2, i2) {
21
20
  const r2 = !(!e2.props || !e2.props.base) && e2.props.base.showOperation, u2 = e2.btnList;
22
21
  r2 && u2 && u2.forEach((e3) => {
23
22
  const r3 = {}, u3 = Object.assign({}, e3.props.base);
24
23
  if ("custom" === e3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === e3.isPermission || e3.isPermission + "" == "true") {
25
- const i3 = o(e3, t2);
26
- i3 && (u3.permission = i3);
24
+ const o3 = n(e3, t2);
25
+ o3 && (u3.permission = o3);
27
26
  }
28
- if (u3.label = n(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== s2) {
29
- const t3 = s2(e3);
27
+ if (u3.label = s(u3.title), u3.sourceButton = { uuid: e3.uuid }, r3.props = u3, void 0 !== i2) {
28
+ const t3 = i2(e3);
30
29
  r3.onClick = (t3 == null ? void 0 : t3.onClick) ?? t3, r3.eventName = t3 == null ? void 0 : t3.eventName;
31
30
  }
32
- i2.push(r3);
31
+ o2.push(r3);
33
32
  });
34
33
  }
35
- function p(i2, o2, n2, s2) {
36
- let r2;
37
- const u2 = n2 == null ? void 0 : n2.some((n3) => {
34
+ function c(t2, e2, o2, n2) {
35
+ let s2;
36
+ const u2 = o2 == null ? void 0 : o2.some((o3) => {
38
37
  let u3 = false;
39
- if (n3.scopeFunc) {
40
- const t2 = e(i2, n3.scopeFunc);
41
- if (t2) {
42
- t2.apply(t2, [{ pageContext: i2, configureObj: o2, row: s2 }]) && (u3 = true);
38
+ if (o3.scopeFunc) {
39
+ const s3 = i(t2, o3.scopeFunc);
40
+ if (s3) {
41
+ s3.apply(s3, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
43
42
  }
44
- } else if (n3.showCondition && n3.showCondition.length > 0) {
45
- t.evaluate(i2, n3.showCondition, s2) && (u3 = true);
43
+ } else if (o3.showCondition && o3.showCondition.length > 0) {
44
+ r.evaluate(t2, o3.showCondition, n2) && (u3 = true);
46
45
  } else u3 = true;
47
- if (u3) return r2 = n3, true;
46
+ if (u3) return s2 = o3, true;
48
47
  });
49
- return { show: u2, toPage: r2 };
48
+ return { show: u2, toPage: s2 };
50
49
  }
51
- function a(t2, e2) {
50
+ function m(t2, e2) {
52
51
  var _a;
53
- const i2 = t2.tableName;
54
- let o2 = "";
55
- const n2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
56
- if (n2 && n2.prop) {
57
- const t3 = n2.prop;
58
- o2 = s(t3);
52
+ const o2 = t2.tableName;
53
+ let n2 = "";
54
+ const i2 = (_a = e2 == null ? void 0 : e2.props) == null ? void 0 : _a.base;
55
+ if (i2 && i2.prop) {
56
+ const t3 = i2.prop;
57
+ n2 = u(t3);
59
58
  }
60
- return c(t2, i2, o2);
59
+ return f(t2, o2, n2);
61
60
  }
62
- function c(t2, e2, i2) {
63
- if (!i2 || !e2) return true;
64
- const o2 = t2.branchFieldAuth;
65
- if (o2) {
66
- const t3 = o2.hasAuthFields;
67
- if (t3 && t3[e2] && t3[e2].indexOf(i2) >= 0) return true;
68
- const n2 = o2.allAuthFields;
69
- if (n2 && n2[e2] && n2[e2].indexOf(i2) >= 0) return false;
61
+ function f(t2, e2, o2) {
62
+ if (!o2 || !e2) return true;
63
+ const n2 = t2.branchFieldAuth;
64
+ if (n2) {
65
+ const t3 = n2.hasAuthFields;
66
+ if (t3 && t3[e2] && t3[e2].indexOf(o2) >= 0) return true;
67
+ const i2 = n2.allAuthFields;
68
+ if (i2 && i2[e2] && i2[e2].indexOf(o2) >= 0) return false;
70
69
  }
71
70
  return true;
72
71
  }
72
+ function b(o2, n2, i2) {
73
+ const s2 = t(o2, i2);
74
+ return e.get(s2 + "/common/last-unread-file-task/" + n2);
75
+ }
76
+ function d(o2, n2, i2) {
77
+ const s2 = t(o2, i2);
78
+ return e.put(s2 + "/common/file-task-read/" + n2);
79
+ }
73
80
  export {
74
- p as expressJump,
81
+ c as expressJump,
82
+ b as getCurrentUserFileTasks,
75
83
  l as getOperationButtons,
76
- u as getTableNameByTableUuid,
77
- a as isHasFieldAuth,
78
- c as isHasFieldPermissionAuth,
79
- r as popupToPage
84
+ p as getTableNameByTableUuid,
85
+ m as isHasFieldAuth,
86
+ f as isHasFieldPermissionAuth,
87
+ a as popupToPage,
88
+ d as setFileTaskRead
80
89
  };
@@ -1,27 +1,29 @@
1
- import { defineComponent as e, ref as l, onMounted as i, nextTick as t, resolveComponent as n, createElementBlock as a, openBlock as u, createBlock as o, unref as c, normalizeStyle as s, normalizeClass as p, withCtx as r, createCommentVNode as v, Fragment as y, createTextVNode as g, toDisplayString as d } from "vue";
1
+ import { defineComponent as e, ref as t, onMounted as l, nextTick as i, onUnmounted as n, resolveComponent as o, createElementBlock as a, openBlock as u, createBlock as c, unref as p, normalizeStyle as r, normalizeClass as s, withCtx as v, createCommentVNode as y, Fragment as g, createTextVNode as d, toDisplayString as f } from "vue";
2
2
  import { SuperIcon as k } from "agilebuilder-ui";
3
- import { handleAfterInitEvent as f, handleEvent as m } from "../../../../utils/events/event-util.js";
4
- import { $t as x } from "../../../../utils/i18n-util.js";
5
- const C = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
6
- const T = e2, b = T.configure.runtime ? T.configure.runtime : {}, z = l(b.props ? b.props : {}), _ = b.style, h = b.class;
3
+ import { handleAfterInitEvent as x, handleEvent as C } from "../../../../utils/events/event-util.js";
4
+ import { $t as m } from "../../../../utils/i18n-util.js";
5
+ const V = { class: "page-runtime-header-btn" }, T = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: T2 }) {
6
+ const b = e2, I = b.configure.runtime ? b.configure.runtime : {}, z = t(I.props ? I.props : {}), _ = I.style, h = I.class;
7
7
  function P() {
8
- return "disabled" === z.value.state || R();
8
+ return "disabled" === z.value.state || N();
9
9
  }
10
- function R() {
11
- return void 0 !== T.pageContext.canClick && void 0 !== T.pageContext.clickUuid && (!T.pageContext.canClick && T.pageContext.clickUuid === T.configure.uuid);
10
+ function N() {
11
+ return void 0 !== b.pageContext.canClick && void 0 !== b.pageContext.clickUuid && (!b.pageContext.canClick && b.pageContext.clickUuid === b.configure.uuid);
12
12
  }
13
- const j = l(null);
14
- return i(() => {
15
- t(() => {
16
- f(null, T.pageContext, T.configure, { componentRef: j.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
13
+ const R = t(null);
14
+ return l(() => {
15
+ i(() => {
16
+ x(null, b.pageContext, b.configure, { componentRef: R.value, entity: b.pageContext.entity.data, pageData: b.pageContext.entity.page });
17
17
  });
18
- }), V2({ click: function() {
19
- j.value && j.value.$el.click();
20
- } }), (e3, l2) => {
21
- const i2 = n("el-link"), t2 = n("el-button");
22
- return u(), a("span", C, [z.value.text ? (u(), o(i2, { key: 0, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, loading: R(), onClick: l2[0] || (l2[0] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), o(t2, { key: 1, ref_key: "componentRef", ref: j, disabled: P(), class: p(c(h)), style: s(c(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: R(), onClick: l2[1] || (l2[1] = (l3) => c(m)(l3, e3.pageContext, e3.configure, "click")) }, { default: r(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(y, { key: 0 }, [g(d(c(x)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true)], 64)) : v("", true), z.value.iconType && z.value.iconValue ? (u(), o(c(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(y, { key: 2 }, [z.value.iconValue ? (u(), a(y, { key: 0 }, [g("   ")], 64)) : v("", true), g(" " + d(c(x)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
18
+ }), n(() => {
19
+ b.pageContext.exportNoticeInfo && b.pageContext.exportNoticeInfo.noticeInterval && clearInterval(b.pageContext.exportNoticeInfo.noticeInterval);
20
+ }), T2({ click: function() {
21
+ R.value && R.value.$el.click();
22
+ } }), (e3, t2) => {
23
+ const l2 = o("el-link"), i2 = o("el-button");
24
+ return u(), a("span", V, [z.value.text ? (u(), c(l2, { key: 0, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, loading: N(), onClick: t2[0] || (t2[0] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition && !z.value.isTextIcon ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "loading"])) : (u(), c(i2, { key: 1, ref_key: "componentRef", ref: R, disabled: P(), class: s(p(h)), style: r(p(_)), type: z.value.type, size: z.value.size, round: z.value.round, plain: z.value.plain, loading: N(), onClick: t2[1] || (t2[1] = (t3) => p(C)(t3, e3.pageContext, e3.configure, "click")) }, { default: v(() => [z.value.title && "right" == z.value.iconPosition ? (u(), a(g, { key: 0 }, [d(f(p(m)(z.value.title)) + " ", 1), z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true)], 64)) : y("", true), z.value.iconType && z.value.iconValue ? (u(), c(p(k), { key: 1, iconType: z.value.iconType, iconValue: z.value.iconValue }, null, 8, ["iconType", "iconValue"])) : y("", true), z.value.title && "right" != z.value.iconPosition ? (u(), a(g, { key: 2 }, [z.value.iconValue ? (u(), a(g, { key: 0 }, [d("   ")], 64)) : y("", true), d(" " + f(p(m)(z.value.title)), 1)], 64)) : y("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
23
25
  };
24
26
  } });
25
27
  export {
26
- V as default
28
+ T as default
27
29
  };
@@ -1,7 +1,7 @@
1
1
  import { defineComponent as e, ref as t, onMounted as i, onUnmounted as o, resolveComponent as l, createBlock as a, openBlock as r, withCtx as n, createElementVNode as u, createVNode as s, createTextVNode as p, createCommentVNode as c, createElementBlock as g, Fragment as m, renderList as d } from "vue";
2
2
  import f from "../../object-render.vue.js";
3
- import { updateChartDatasources as v, getValueFromVariable as y } from "../../../../utils/page-helper-util.js";
4
- import { ElLoading as h, ElMessage as C } from "element-plus";
3
+ import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
+ import { ElLoading as y, ElMessage as C } from "element-plus";
5
5
  import b from "agilebuilder-ui/src/utils/request";
6
6
  import "agilebuilder-ui/src/utils/common-util";
7
7
  import "agilebuilder-ui/src/utils/util";
@@ -15,14 +15,13 @@ import "vue-i18n";
15
15
  import "agilebuilder-ui/src/utils/auth";
16
16
  import "axios";
17
17
  import "../../../../utils/events/print-label.js";
18
- import "dayjs";
19
18
  const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "dialogBody" }, O = { class: "dialog-footer" }, x = e({ __name: "common-homepage-search", props: { configure: { type: Object, required: true }, pageContext: { type: Object, default: () => {
20
19
  } } }, setup(e2, { expose: x2 }) {
21
- const N = e2, _ = t(false), j = t({}), J = t(0);
20
+ const N = e2, _ = t(false), J = t({}), j = t(0);
22
21
  let I;
23
22
  i(() => {
24
23
  I = setTimeout(() => {
25
- j.value = JSON.parse(JSON.stringify(N.pageContext.entity));
24
+ J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
26
25
  }, 200);
27
26
  }), o(() => {
28
27
  I && clearTimeout(I);
@@ -30,7 +29,7 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
30
29
  const k = t([]), w = () => {
31
30
  _.value = false;
32
31
  }, T = () => {
33
- const e3 = h.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
32
+ const e3 = y.service({ lock: true, text: "Loading", background: "rgba(0, 0, 0, 0.7)" });
34
33
  v(N.pageContext, N.pageContext.initChartServiceConfigs, null, false).then(() => {
35
34
  _.value = false;
36
35
  }).finally(() => {
@@ -38,26 +37,26 @@ const S = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
38
37
  });
39
38
  };
40
39
  function H() {
41
- N.pageContext.entity = JSON.parse(JSON.stringify(j.value)), J.value++;
40
+ N.pageContext.entity = JSON.parse(JSON.stringify(J.value)), j.value++;
42
41
  }
43
42
  function A() {
44
43
  const e3 = {};
45
44
  N.pageContext.variables.forEach((t3) => {
46
45
  const i3 = "${page." + t3.name + "}";
47
- e3[i3] = y(N.pageContext.entity, i3, null);
46
+ e3[i3] = h(N.pageContext.entity, i3, null);
48
47
  });
49
48
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
50
49
  t2 && (i2 = JSON.parse(t2)), i2[N.configure.homeChartSettingUserId] = e3;
51
50
  const o2 = JSON.stringify(e3);
52
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), j.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
51
+ window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), b.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
53
52
  C.success("保存成功"), T();
54
53
  });
55
54
  }
56
55
  return x2({ openSearch: () => {
57
56
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
58
57
  } }), (t2, i2) => {
59
- const o2 = l("el-empty"), v2 = l("el-form"), y2 = l("el-button"), h2 = l("el-dialog");
60
- return r(), a(h2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: J.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(y2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(y2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(y2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
58
+ const o2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
59
+ return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": i2[0] || (i2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", S, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(o2, { key: 0, description: "未设置筛选条件", "image-size": 50 })), (r(), a(v2, { key: j.value }, { default: n(() => [(r(true), g(m, null, d(k.value, (t3) => (r(), a(f, { key: t3.uuid, configure: t3, pageContext: e2.pageContext }, null, 8, ["configure", "pageContext"]))), 128))]), _: 1 }))], 512)]), footer: n(() => [u("div", O, [s(h2, { type: "primary", onClick: T }, { default: n(() => i2[1] || (i2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => i2[2] || (i2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => i2[3] || (i2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
61
60
  };
62
61
  } });
63
62
  export {
@@ -1,4 +1,4 @@
1
- import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as u, resolveDynamicComponent as i, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
1
+ import { defineComponent as o, ref as e, resolveComponent as t, createBlock as r, openBlock as p, withCtx as l, createElementBlock as s, Fragment as n, createTextVNode as a, toDisplayString as i, resolveDynamicComponent as u, createVNode as c, createCommentVNode as m, createElementVNode as f, normalizeClass as g } from "vue";
2
2
  import "agilebuilder-ui/src/utils/common-util";
3
3
  import "agilebuilder-ui/src/utils/util";
4
4
  import { formatColContent as d } from "./chart-table-util.js";
@@ -14,6 +14,7 @@ import "async-validator";
14
14
  import { expressJump as b } from "../../../../utils/table-utils.js";
15
15
  import "../../../../utils/events/print-label.js";
16
16
  import "../../../../utils/page-store.js";
17
+ import "vue-i18n";
17
18
  const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __name: "normal-column", props: { configure: { type: Object, default: () => ({}) }, pageContext: { type: Object, default: () => ({}) }, column: { type: Object, default: () => ({}) } }, setup(o2) {
18
19
  const C2 = o2, j = e(false);
19
20
  let v = null;
@@ -37,7 +38,7 @@ const k = { key: 0 }, w = { key: 1 }, h = { key: 1 }, x = { key: 2 }, C = o({ __
37
38
  }
38
39
  return C2.column.linkPage && C2.column.linkPage.length > 0 && (j.value = true), (e2, d2) => {
39
40
  const y2 = t("el-table-column"), b2 = t("el-progress"), C3 = t("el-tag"), v2 = t("el-link");
40
- return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(u(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(i(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, u(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, u(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(u(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, u(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
41
+ return "$index" === o2.column.props.base.prop ? (p(), r(y2, { key: 0, label: o2.column.props.base.name, type: "index", align: "center", "header-align": "center", width: "80" }, null, 8, ["label"])) : (p(), r(y2, { key: 1, prop: o2.column.props.base.prop, width: o2.column.props.base.width ? o2.column.props.base.width : "", label: o2.column.props.base.name, "header-align": o2.column.props.base.headerAlign, align: o2.column.props.base.align, fixed: !!o2.column.props.base.fixed && o2.column.props.base.fixed, formatter: O }, { default: l((e3) => [o2.column.props.format && o2.column.props.format.type ? (p(), s(n, { key: 0 }, [a(i(o2.column.props.format.status) + " ", 1), "customControl" === o2.column.props.format.type ? (p(), r(u(o2.column.props.format.customControl), { key: 0, scope: e3, column: o2.column, configure: o2.configure, pageContext: o2.pageContext }, null, 8, ["scope", "column", "configure", "pageContext"])) : "progress" === o2.column.props.format.type ? (p(), r(b2, { key: 1, type: o2.column.props.format.progressType, percentage: e3.row[o2.column.props.base.prop], status: o2.column.props.format.status, "text-inside": o2.column.props.format.showText, "stroke-width": o2.column.props.format.strokeWidth, color: "custom" === o2.column.props.format.colorType ? o2.column.props.format.color : "" }, null, 8, ["type", "percentage", "status", "text-inside", "stroke-width", "color"])) : "icon" === o2.column.props.format.type ? (p(), s(n, { key: 2 }, [o2.column.props.format.isTag ? (p(), s("span", k, [c(C3, { type: o2.column.props.format.tagType, effect: o2.column.props.format.tagEffect, hit: o2.column.props.format.hit, size: o2.column.props.format.size }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["type", "effect", "hit", "size"])])) : (p(), s("span", w, ["pre" === o2.column.props.format.position ? (p(), s("i", { key: 0, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true), f("span", null, i(e3.row[o2.column.props.base.prop]), 1), "suf" === o2.column.props.format.position ? (p(), s("i", { key: 1, class: g(o2.column.props.format.icon) }, null, 2)) : m("", true)]))], 64)) : (p(), s(n, { key: 3 }, [j.value && _(e3.row) ? (p(), r(v2, { key: 0, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(T(e3.row, o2.column.props.format)), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", h, i(T(e3.row, o2.column.props.format)), 1))], 64))], 64)) : j.value && _(e3.row) ? (p(), r(v2, { key: 1, type: "primary", onClick: (o3) => P(e3.row) }, { default: l(() => [a(i(e3.row[o2.column.props.base.prop]), 1)]), _: 2 }, 1032, ["onClick"])) : (p(), s("span", x, i(e3.row[o2.column.props.base.prop]), 1))]), _: 1 }, 8, ["prop", "width", "label", "header-align", "align", "fixed"]));
41
42
  };
42
43
  } });
43
44
  export {
@@ -0,0 +1,27 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ lastFileTask: {
3
+ type: ObjectConstructor;
4
+ default: any;
5
+ };
6
+ backendUrl: {
7
+ type: StringConstructor;
8
+ default: any;
9
+ };
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ clickMsg: (...args: any[]) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
+ lastFileTask: {
14
+ type: ObjectConstructor;
15
+ default: any;
16
+ };
17
+ backendUrl: {
18
+ type: StringConstructor;
19
+ default: any;
20
+ };
21
+ }>> & Readonly<{
22
+ onClickMsg?: (...args: any[]) => any;
23
+ }>, {
24
+ backendUrl: string;
25
+ lastFileTask: Record<string, any>;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { defineComponent as e, resolveComponent as t, createElementBlock as a, createCommentVNode as s, unref as i, openBlock as l, createBlock as n, createElementVNode as r, createVNode as d, withCtx as c, createTextVNode as u, toDisplayString as m } from "vue";
2
+ import "element-plus";
3
+ import k from "./format-file-task-notice-message.vue.js";
4
+ import { useI18n as p } from "vue-i18n";
5
+ const g = { key: 0 }, o = { key: 0 }, T = { key: 0 }, f = { key: 1 }, S = { key: 1 }, y = { key: 0 }, b = e({ __name: "file-task-notice", props: { lastFileTask: { type: Object, default: null }, backendUrl: { type: String, default: null } }, emits: ["clickMsg"], setup(e2, { expose: b2, emit: F }) {
6
+ const { t: P } = p(), v = e2, U = F;
7
+ let M = v.lastFileTask;
8
+ function R() {
9
+ U("clickMsg", v.lastFileTask);
10
+ }
11
+ function _(e3) {
12
+ return e3 ? "Success" === e3 ? P("superPageRuntimeMessage.success") : "Fail" === e3 ? P("superPageRuntimeMessage.fail") : "PartSuccess" === e3 ? P("superPageRuntimeMessage.partSuccess") : void 0 : P("superPageRuntimeMessage.doing");
13
+ }
14
+ function x(e3) {
15
+ return e3.taskState ? "Success" === e3.taskState ? "success" : "Fail" === e3.taskState ? "danger" : "PartSuccess" === e3.taskState ? "warning" : void 0 : "primary";
16
+ }
17
+ function h() {
18
+ let e3 = M.message;
19
+ return e3 || function(e4) {
20
+ if (!e4) return "";
21
+ const t2 = new Date(e4);
22
+ return `${t2.getFullYear()}-${String(t2.getMonth() + 1).padStart(2, "0")}-${String(t2.getDate()).padStart(2, "0")} ${String(t2.getHours()).padStart(2, "0")}:${String(t2.getMinutes()).padStart(2, "0")}`;
23
+ }(M.createdTime) + " " + $() + _(M.taskState);
24
+ }
25
+ function $() {
26
+ return M && M.export ? P("superPageRuntimeMessage.asyncExportType") : P("superPageRuntimeMessage.asyncImportType");
27
+ }
28
+ return b2({}), (p2, b3) => {
29
+ const F2 = t("el-text"), v2 = t("Edit"), U2 = t("el-icon"), C = t("el-link");
30
+ return i(M) && i(M).taskCode ? (l(), a("div", g, [i(M).export ? (l(), a("div", f, ["Success" === i(M).taskState && i(M).serverPath ? (l(), n(C, { key: 0, underline: "always", type: x(i(M)), onClick: b3[1] || (b3[1] = (e3) => R()) }, { default: c(() => [d(k, { message: h(), backendUrl: e2.backendUrl, serverPath: e2.lastFileTask.serverPath, fileName: e2.lastFileTask.fileName, createdTime: e2.lastFileTask.createdTime, endTime: e2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "serverPath", "fileName", "createdTime", "endTime"])]), _: 1 }, 8, ["type"])) : (l(), a("div", S, [i(M).taskState ? (l(), a("span", y, [r("span", null, [d(F2, { type: x(i(M)) }, { default: c(() => [u(m($() + _(i(M).taskState)), 1)]), _: 1 }, 8, ["type"])]), d(F2, { style: { "padding-left": "5px" } }, { default: c(() => [d(U2, { onClick: b3[2] || (b3[2] = (e3) => R()), title: i(P)("superPageRuntimeMessage.hasReadTip") }, { default: c(() => [d(v2)]), _: 1 }, 8, ["title"])]), _: 1 })])) : s("", true), i(M).taskState && "Success" === i(M).taskState ? s("", true) : (l(), n(k, { key: 1, message: h(), backendUrl: e2.backendUrl, createdTime: e2.lastFileTask.createdTime, endTime: e2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "createdTime", "endTime"]))]))])) : (l(), a("div", o, [i(M).taskState ? (l(), a("span", T, [r("span", null, [d(F2, { type: x(i(M)) }, { default: c(() => [u(m($() + _(i(M).taskState)), 1)]), _: 1 }, 8, ["type"])]), d(F2, { style: { "padding-left": "5px" } }, { default: c(() => [d(U2, { onClick: b3[0] || (b3[0] = (e3) => R()), title: i(P)("superPageRuntimeMessage.hasReadTip") }, { default: c(() => [d(v2)]), _: 1 }, 8, ["title"])]), _: 1 })])) : (l(), n(F2, { key: 1, type: x(i(M)) }, { default: c(() => [d(k, { message: h(), backendUrl: e2.backendUrl, createdTime: e2.lastFileTask.createdTime, endTime: e2.lastFileTask.modifiedTime }, null, 8, ["message", "backendUrl", "createdTime", "endTime"])]), _: 1 }, 8, ["type"])), i(M).taskState && "Success" !== i(M).taskState ? (l(), n(k, { key: 2, createdTime: i(M).createdTime, endTime: i(M).modifiedTime, message: h(), backendUrl: e2.backendUrl }, null, 8, ["createdTime", "endTime", "message", "backendUrl"])) : s("", true)]))])) : s("", true);
31
+ };
32
+ } });
33
+ export {
34
+ b as default
35
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./file-task-notice.vue.js";
2
+ export {
3
+ e as default
4
+ };
@@ -0,0 +1,59 @@
1
+ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ message: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ createdTime: {
7
+ type: NumberConstructor;
8
+ default: any;
9
+ };
10
+ endTime: {
11
+ type: NumberConstructor;
12
+ default: any;
13
+ };
14
+ serverPath: {
15
+ type: StringConstructor;
16
+ default: any;
17
+ };
18
+ fileName: {
19
+ type: StringConstructor;
20
+ default: any;
21
+ };
22
+ backendUrl: {
23
+ type: StringConstructor;
24
+ default: any;
25
+ };
26
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
27
+ message: {
28
+ type: BooleanConstructor;
29
+ default: boolean;
30
+ };
31
+ createdTime: {
32
+ type: NumberConstructor;
33
+ default: any;
34
+ };
35
+ endTime: {
36
+ type: NumberConstructor;
37
+ default: any;
38
+ };
39
+ serverPath: {
40
+ type: StringConstructor;
41
+ default: any;
42
+ };
43
+ fileName: {
44
+ type: StringConstructor;
45
+ default: any;
46
+ };
47
+ backendUrl: {
48
+ type: StringConstructor;
49
+ default: any;
50
+ };
51
+ }>> & Readonly<{}>, {
52
+ backendUrl: string;
53
+ message: boolean;
54
+ createdTime: number;
55
+ endTime: number;
56
+ serverPath: string;
57
+ fileName: string;
58
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
59
+ export default _default;
@@ -0,0 +1,32 @@
1
+ import { defineComponent as e, createElementBlock as t, openBlock as i, normalizeStyle as r, createCommentVNode as l, toDisplayString as u, unref as a, Fragment as s, renderList as n } from "vue";
2
+ import "agilebuilder-ui/src/utils/auth";
3
+ import "agilebuilder-ui/src/utils/common-util";
4
+ import "agilebuilder-ui/src/utils/util";
5
+ import "agilebuilder-ui/src/utils/request";
6
+ import "dayjs";
7
+ import "agilebuilder-ui/src/utils/calculator/calculator-util";
8
+ import "../../../utils/global-refs.js";
9
+ import "element-plus";
10
+ import "../../../utils/eventBus.js";
11
+ import "axios";
12
+ import "async-validator";
13
+ import "../../../utils/page-store.js";
14
+ import "agilebuilder-ui/src/utils/i18n-util";
15
+ import { useI18n as o } from "vue-i18n";
16
+ import "../../../utils/events/print-label.js";
17
+ const p = { key: 1 }, d = ["innerHTML"], m = { key: 2 }, g = e({ __name: "format-file-task-notice-message", props: { message: { type: Boolean, default: false }, createdTime: { type: Number, default: null }, endTime: { type: Number, default: null }, serverPath: { type: String, default: null }, fileName: { type: String, default: null }, backendUrl: { type: String, default: null } }, setup(e2) {
18
+ const { t: g2 } = o(), c = e2, f = 0.6 * window.innerHeight;
19
+ function y(e3) {
20
+ if (!e3) return "";
21
+ const t2 = new Date(e3);
22
+ return `${t2.getFullYear()}-${String(t2.getMonth() + 1).padStart(2, "0")}-${String(t2.getDate()).padStart(2, "0")} ${String(t2.getHours()).padStart(2, "0")}:${String(t2.getMinutes()).padStart(2, "0")}:${String(t2.getSeconds()).padStart(2, "0")}`;
23
+ }
24
+ function S() {
25
+ let e3 = c.message;
26
+ return e3 ? e3.split("~~") : [];
27
+ }
28
+ return (o2, c2) => (i(), t("div", { style: r("padding-top: 10px;width: 100%;overflow-y:auto;max-height:" + f + "px;") }, [e2.createdTime ? (i(), t("div", { key: 0, style: r(e2.serverPath ? "padding-top: 10px" : "") }, u(y(e2.createdTime) + a(g2)("superPageRuntimeMessage.startExecute")), 5)) : l("", true), e2.message ? (i(), t("div", p, [(i(true), t(s, null, n(S(), (e3, r2) => (i(), t("div", { key: r2, style: { "padding-top": "10px" }, innerHTML: e3 }, null, 8, d))), 128))])) : l("", true), e2.endTime ? (i(), t("div", m, u(y(e2.endTime) + a(g2)("superPageRuntimeMessage.endExecute")), 1)) : l("", true)], 4));
29
+ } });
30
+ export {
31
+ g as default
32
+ };
@@ -0,0 +1,4 @@
1
+ import e from "./format-file-task-notice-message.vue.js";
2
+ export {
3
+ e as default
4
+ };