super-page-runtime 2.2.77-sit8 → 2.2.78

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 (68) hide show
  1. package/dist/es/components/runtime/utils/api/page-expose-util.js +56 -56
  2. package/dist/es/components/runtime/utils/barcode-util.js +5 -5
  3. package/dist/es/components/runtime/utils/charts/chart-columnline-util.js +74 -74
  4. package/dist/es/components/runtime/utils/charts/chart-pie-util.js +46 -45
  5. package/dist/es/components/runtime/utils/charts/chart-scatter-util.js +16 -14
  6. package/dist/es/components/runtime/utils/charts/chart-util.d.ts +1 -1
  7. package/dist/es/components/runtime/utils/charts/chart-util.js +9 -7
  8. package/dist/es/components/runtime/utils/events/event-util.js +113 -113
  9. package/dist/es/components/runtime/utils/events/print-label.js +38 -37
  10. package/dist/es/components/runtime/utils/events/standard-event.js +523 -508
  11. package/dist/es/components/runtime/utils/events/validator-util.js +62 -72
  12. package/dist/es/components/runtime/utils/form/scan-util.js +4 -3
  13. package/dist/es/components/runtime/utils/page-helper-util.js +210 -210
  14. package/dist/es/components/runtime/utils/page-init-util.js +50 -47
  15. package/dist/es/components/runtime/utils/page-permission-util.js +16 -16
  16. package/dist/es/components/runtime/utils/page-store.js +1 -1
  17. package/dist/es/components/runtime/utils/table-utils.js +23 -23
  18. package/dist/es/components/runtime/views/assemblys/button/button/button-runtime.vue2.js +13 -16
  19. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue.js +1 -4
  20. package/dist/es/components/runtime/views/assemblys/button/button-group/buttongroup-runtime.vue2.js +11 -15
  21. package/dist/es/components/runtime/views/assemblys/chart/column-line/column-line-runtime.vue2.js +16 -12
  22. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header-group.vue.js +10 -6
  23. package/dist/es/components/runtime/views/assemblys/chart/common/common-chart-header.vue.js +11 -9
  24. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue.js +1 -1
  25. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +1 -1
  26. package/dist/es/components/runtime/views/assemblys/chart/gauge/gauge-runtime.vue2.js +13 -12
  27. package/dist/es/components/runtime/views/assemblys/chart/pie/pie-runtime.vue2.js +14 -13
  28. package/dist/es/components/runtime/views/assemblys/chart/radar/radar-runtime.vue2.js +15 -14
  29. package/dist/es/components/runtime/views/assemblys/chart/scatter/scatter-runtime.vue2.js +17 -16
  30. package/dist/es/components/runtime/views/assemblys/chart/table/chart-table-util.js +122 -131
  31. package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +57 -90
  32. package/dist/es/components/runtime/views/assemblys/common/export-form-report-dialog.vue.js +26 -22
  33. package/dist/es/components/runtime/views/assemblys/common/remove-signer-dialog.vue.js +4 -4
  34. package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +1 -1
  35. package/dist/es/components/runtime/views/assemblys/common/task-informition-dialog.vue.js +2 -2
  36. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue.js +1 -1
  37. package/dist/es/components/runtime/views/assemblys/container/card/card-runtime.vue2.js +6 -6
  38. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue.js +1 -1
  39. package/dist/es/components/runtime/views/assemblys/container/fixed/YxAffix.vue2.js +35 -38
  40. package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
  41. package/dist/es/components/runtime/views/assemblys/container/tools/tools-runtime.vue.js +1 -1
  42. package/dist/es/components/runtime/views/assemblys/data/bar-code/barcode-runtime.vue2.js +12 -10
  43. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +94 -92
  44. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +124 -123
  45. package/dist/es/components/runtime/views/assemblys/data/table/table-runtime.vue2.js +14 -16
  46. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue.js +1 -1
  47. package/dist/es/components/runtime/views/assemblys/data/tree/tree-runtime.vue2.js +77 -80
  48. package/dist/es/components/runtime/views/assemblys/form/checkbox/checkbox-runtime.vue2.js +1 -0
  49. package/dist/es/components/runtime/views/assemblys/form/custom/custom-runtime.vue2.js +29 -34
  50. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +41 -39
  51. package/dist/es/components/runtime/views/assemblys/form/file-upload/fileupload-runtime.vue2.js +22 -22
  52. package/dist/es/components/runtime/views/assemblys/form/input-text/inputtext-runtime.vue2.js +51 -50
  53. package/dist/es/components/runtime/views/assemblys/form/label/label-runtime.vue2.js +8 -6
  54. package/dist/es/components/runtime/views/assemblys/form/link/link-runtime.vue2.js +10 -9
  55. package/dist/es/components/runtime/views/assemblys/form/radio/radio-runtime.vue2.js +1 -0
  56. package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +1 -0
  57. package/dist/es/components/runtime/views/assemblys/form/select/select-runtime.vue2.js +8 -8
  58. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +4 -5
  59. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -4
  60. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue2.js +7 -7
  61. package/dist/es/components/runtime/views/home-chart.vue.js +7 -7
  62. package/dist/es/components/runtime/views/super-page-dialog.vue.js +10 -9
  63. package/dist/es/components/runtime/views/{super-page-dialog.vue3.js → super-page-dialog.vue2.js} +0 -1
  64. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  65. package/dist/es/components/runtime/views/super-page.vue2.js +126 -126
  66. package/dist/es/index.js +0 -1
  67. package/dist/es/style.css +99 -225
  68. package/package.json +2 -2
@@ -1,16 +1,16 @@
1
1
  import e from "agilebuilder-ui/src/utils/request";
2
2
  import { getAdditionalParamMap as t } from "./events/standard-event.js";
3
3
  import { PageDimensions as s } from "./interfaces/page-design-types.js";
4
- import { getFormPropName as i, getValueFromVariable as n, setVariableValue as o, formatVariableValue as r } from "./page-helper-util.js";
4
+ import { getFormPropName as i, getValueFromVariable as o, setVariableValue as n, formatVariableValue as r } from "./page-helper-util.js";
5
5
  import { getSessionCache as l } from "agilebuilder-ui/src/utils/auth";
6
6
  import { functions as a } from "./api/page-expose-util.js";
7
7
  import { isWorkflowPage as p, deepCopy as u } from "./common-util.js";
8
8
  import { packageCustomValidator as d } from "./events/validator-util.js";
9
- import { isMobileBrowser as m } from "agilebuilder-ui/src/utils/common-util";
10
- function f(t2) {
9
+ import { isMobileBrowser as c } from "agilebuilder-ui/src/utils/common-util";
10
+ function m(t2) {
11
11
  return e.get(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/runtime/" + t2);
12
12
  }
13
- function c(e2) {
13
+ function f(e2) {
14
14
  var _a;
15
15
  if (null == e2) return null;
16
16
  const t2 = { uuid: e2.uuid, name: e2.name, label: e2.label, code: e2.code, version: e2.version, dimensions: e2.dimensions, systemCode: e2.systemCode, systemVersion: e2.systemVersion, backendUrl: e2.backendUrl, rules: {}, tableUuids: e2.tableUuids, listCodesMap: e2.listCodesMap, formNoRuleCode: e2.props ? e2.props.formNoRuleCode : null, judgeHeavyList: g(e2), pageType: e2.pageType, beanName: e2.props ? e2.props.beanName : null, importBeanName: e2.props ? e2.props.importBeanName : null, subTablePageInfo: e2.subTablePageInfo, workflowCode: e2.workflowCode, workflowVersion: e2.workflowVersion, refercePropMap: (_a = e2.runtime) == null ? void 0 : _a.refercePropMap, subTableWatchProps: e2.subTableWatchProps, dataTypeMaps: e2.dataTypeMaps, isWorkflowEntity: e2.isWorkflowEntity, allChartUuids: e2.allChartUuids, entity: { data: {}, task: {}, request: {}, page: {}, context: e2.contextParam, system: e2.systemParam } };
@@ -23,7 +23,7 @@ function c(e2) {
23
23
  for (const t3 of e2.variables) t3.name && (t3.isArrayElement ? s2[t3.name] = [] : t3.defaultValue ? s2[t3.name] = t3.defaultValue : s2[t3.name] = void 0);
24
24
  }
25
25
  return function(e3) {
26
- if (m()) {
26
+ if (c()) {
27
27
  e3.entity.page._isMobile = "true";
28
28
  const t3 = navigator ? navigator.userAgent : null;
29
29
  t3 ? t3.indexOf(" uni-app ") > 0 ? (e3.entity.page._isMobileApp = "true", e3.entity.page._isMobileBrowser = "false") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "true") : (e3.entity.page._isMobileApp = "false", e3.entity.page._isMobileBrowser = "false");
@@ -40,6 +40,7 @@ function g(e2) {
40
40
  e3.duplicateFieldList && e3.duplicateFieldList.length > 0 && (e3.duplicateFieldList = e3.duplicateFieldList.map((e4) => "string" == typeof e4 ? { propDbName: e4 } : e4));
41
41
  }), e2.props.judgeHeavyList) : null;
42
42
  } catch (e3) {
43
+ console.error("getJudgeHeavyList error:", e3);
43
44
  }
44
45
  }
45
46
  function b(e2) {
@@ -56,14 +57,17 @@ function b(e2) {
56
57
  }
57
58
  function y(e2, t2) {
58
59
  if (e2) {
59
- Object.assign(t2, e2);
60
- E(e2.paramStoreId, t2), delete e2.paramStoreId, e2.jumpMode && (t2.jumpMode = e2.jumpMode);
60
+ console.log("packageAdditionalMapWithPageRequest----pageRequest=", e2), Object.assign(t2, e2);
61
+ E(e2.paramStoreId, t2), delete e2.paramStoreId, console.log("packageAdditionalMapWithPageRequest----requestObj=", t2), e2.jumpMode && (t2.jumpMode = e2.jumpMode);
61
62
  }
62
63
  }
63
64
  function h(e2, t2) {
64
- if (e2 && (e2.params && Object.assign(t2, e2.params), e2.query)) {
65
- Object.assign(t2, e2.query);
66
- E(e2.query.paramStoreId, t2);
65
+ if (console.log("packageAdditionalMapWithRoute----route=", e2), e2) {
66
+ if (e2.params && Object.assign(t2, e2.params), console.log("packageAdditionalMapWithRoute----route.query=", e2.query), e2.query) {
67
+ Object.assign(t2, e2.query);
68
+ E(e2.query.paramStoreId, t2);
69
+ }
70
+ console.log("packageAdditionalMapWithRoute----requestObj=", t2);
67
71
  }
68
72
  }
69
73
  function E(e2, t2) {
@@ -71,49 +75,49 @@ function E(e2, t2) {
71
75
  const s2 = l(e2);
72
76
  if (s2) {
73
77
  const e3 = JSON.parse(s2);
74
- Object.assign(t2, e3);
78
+ Object.assign(t2, e3), console.log("已获取到附加参数", e3);
75
79
  }
76
80
  }
77
81
  }
78
82
  function v(e2, t2) {
79
83
  let s2, i2 = t2;
80
84
  t2 || (s2 = e2.props.base ? e2.props.base : {}, i2 = s2.prop);
81
- let n2 = null;
82
- return t2 && !t2.startsWith("${") ? n2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), n2 = i2.split("."), e2 && n2.length < 2 && (n2 = [e2.uuid])) : e2 && (n2 = ["page", e2.uuid]) : n2 = ["page", e2.uuid], n2 || e2 ? n2 : ["temp"];
85
+ let o2 = null;
86
+ return t2 && !t2.startsWith("${") ? o2 = ["data", t2] : !e2 || i2 && i2.startsWith("${") ? i2.startsWith("${") ? (i2 = i2.substring(2, i2.length - 1), o2 = i2.split("."), e2 && o2.length < 2 && (o2 = [e2.uuid])) : e2 && (o2 = ["page", e2.uuid]) : o2 = ["page", e2.uuid], o2 || e2 ? o2 : ["temp"];
83
87
  }
84
- function w(e2, t2, s2) {
88
+ function M(e2, t2, s2) {
85
89
  const i2 = v(t2, s2), r2 = e2.entity;
86
90
  if (null == r2.data.ID && null == r2.data.id) {
87
91
  let l2, a2, p2 = false;
88
92
  t2 && (l2 = t2.props.base ? t2.props.base : {}, a2 = t2.name, p2 = l2.multiple);
89
- const u2 = n(r2, s2, null);
93
+ const u2 = o(r2, s2, null);
90
94
  if (null == u2) {
91
95
  const t3 = P(e2, l2 ? l2.defaultValue : null, a2, p2);
92
- null != t3 && o(r2, i2, t3);
96
+ null != t3 && n(r2, i2, t3);
93
97
  }
94
98
  }
95
99
  return i2;
96
100
  }
97
101
  function P(e2, t2, s2, i2) {
98
- let n2;
99
- if (t2 && (n2 = r(e2, t2), null != n2 && null != n2 && s2)) {
102
+ let o2;
103
+ if (t2 && (o2 = r(e2, t2), null != o2 && null != o2 && s2)) {
100
104
  let e3 = false;
101
- "checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (n2 = (n2 + "").split(","));
105
+ "checkbox" == s2 ? e3 = true : "select" == s2 && (e3 = i2), e3 && (o2 = (o2 + "").split(","));
102
106
  }
103
- return n2;
107
+ return o2;
104
108
  }
105
- function M(e2, t2) {
109
+ function w(e2, t2) {
106
110
  const s2 = [];
107
111
  if (e2.autoPermissions) for (const i2 of e2.autoPermissions) s2.push(t2.code + "." + i2.simpleCode);
108
112
  if (e2.functionCodes) {
109
- const i2 = e2.sourceTypes ? e2.sourceTypes : [], n2 = e2.functionCodes;
110
- for (let e3 = 0; e3 < n2.length; e3++) {
111
- const o2 = n2[e3], r2 = e3 < i2.length ? i2[e3] : "";
113
+ const i2 = e2.sourceTypes ? e2.sourceTypes : [], o2 = e2.functionCodes;
114
+ for (let e3 = 0; e3 < o2.length; e3++) {
115
+ const n2 = o2[e3], r2 = e3 < i2.length ? i2[e3] : "";
112
116
  let l2 = "";
113
- if ("service" == r2) l2 = o2;
114
- else if ("standard" === r2) l2 = t2.code + "." + o2;
117
+ if ("service" == r2) l2 = n2;
118
+ else if ("standard" === r2) l2 = t2.code + "." + n2;
115
119
  else {
116
- l2 = "custom" === j(o2, t2).type ? o2 : t2.code + "." + o2;
120
+ l2 = "custom" === j(n2, t2).type ? n2 : t2.code + "." + n2;
117
121
  }
118
122
  s2.includes(l2) || s2.push(l2);
119
123
  }
@@ -127,33 +131,32 @@ function j(e2, t2) {
127
131
  }
128
132
  return null;
129
133
  }
130
- function C(s2, i2, n2) {
131
- const o2 = s2.tableRuntimes, r2 = t(i2);
134
+ function C(s2, i2, o2) {
135
+ const n2 = s2.tableRuntimes, r2 = t(i2);
132
136
  let l2;
133
137
  const a2 = i2.code;
134
- return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: o2, additionalParamMapJson: l2, pageCode: a2, publishVersion: n2, pageType: s2.pageType });
138
+ return r2 && Object.keys(r2) > 0 && (l2 = JSON.stringify(r2)), e.post(window.$vueApp.config.globalProperties.baseAPI + "/component/super-page-design/super-grids", { tableRuntimes: n2, additionalParamMapJson: l2, pageCode: a2, publishVersion: o2, pageType: s2.pageType });
135
139
  }
136
- const I = ["button-detail", "print-label"];
137
- function O(e2, t2) {
140
+ function I(e2, t2) {
138
141
  var _a, _b;
139
142
  const s2 = t2.props && t2.props.base ? t2.props.base.prop : null;
140
- let n2 = false;
141
- if (p(e2) && I.indexOf(t2.name) < 0 && e2.fieldPermissionMap) {
143
+ let o2 = false;
144
+ if (p(e2) && "button-detail" !== t2.name && e2.fieldPermissionMap) {
142
145
  const s3 = e2.fieldPermissionMap.get("all_fields");
143
- false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", n2 = true);
146
+ false === (s3 == null ? void 0 : s3.canEdit) && ((_a = t2.runtime) == null ? void 0 : _a.props) && (t2.runtime.props.state = "disabled", o2 = true);
144
147
  }
145
148
  if (s2) {
146
- const o2 = i(s2);
147
- if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[o2] || (e2.rules[o2] = []), t2.props.rules.forEach((e3) => {
149
+ const n2 = i(s2);
150
+ if (e2.rules || (e2.rules = {}), t2.props.rules && t2.props.rules.length > 0 && (e2.rules[n2] || (e2.rules[n2] = []), t2.props.rules.forEach((e3) => {
148
151
  d(e3);
149
- }), e2.rules[o2] = t2.props.rules), !n2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
150
- const s3 = e2.fieldPermissionMap.get(o2);
152
+ }), e2.rules[n2] = t2.props.rules), !o2 && "button-detail" !== t2.name && e2.fieldPermissionMap) {
153
+ const s3 = e2.fieldPermissionMap.get(n2);
151
154
  t2.runtime.props || (t2.runtime.props = {}), s3 ? false === s3.canEdit ? t2.runtime.props.state = "disabled" : s3.canEdit && (t2.runtime.props.state = "", t2.runtime.props.required = true) : t2.runtime.props.state = "";
152
155
  }
153
- ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: o2, events: t2.props.customRuleEvents }));
156
+ ((_b = t2.props) == null ? void 0 : _b.customRuleEvents) && (e2.customRuleEvents || (e2.customRuleEvents = []), e2.customRuleEvents.push({ prop: n2, events: t2.props.customRuleEvents }));
154
157
  }
155
158
  }
156
- function _(e2, t2) {
159
+ function O(e2, t2) {
157
160
  if (e2.initInfo) {
158
161
  ["dynamicControlFormEdit", "disableElement", "enableElement", "hideElement", "showElement"].forEach((s2) => {
159
162
  const i2 = e2.initInfo[s2];
@@ -169,16 +172,16 @@ function _(e2, t2) {
169
172
  }
170
173
  }
171
174
  export {
172
- _ as controlObjectRenderState,
173
- c as convertToPageContext,
175
+ O as controlObjectRenderState,
176
+ f as convertToPageContext,
174
177
  P as getDefaultValue,
175
- w as getFormModelFields,
178
+ M as getFormModelFields,
176
179
  v as getModelFields,
177
- M as getPermissionCodes,
180
+ w as getPermissionCodes,
178
181
  b as packageAdditionalMapWithLocationSearch,
179
182
  y as packageAdditionalMapWithPageRequest,
180
183
  h as packageAdditionalMapWithRoute,
181
- O as packageFormRules,
182
- f as queryPageDesignByCode,
184
+ I as packageFormRules,
185
+ m as queryPageDesignByCode,
183
186
  C as queryPageSuperGrids
184
187
  };
@@ -1,30 +1,30 @@
1
1
  var o = ((o2) => (o2.AUTHENTICATED = "AUTHENTICATED", o2.ANONYMOUS = "ANONYMOUS", o2.AUTHORIZED = "AUTHORIZED", o2))(o || {});
2
- const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", props: { base: { type: "info", plain: true } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", props: { base: { type: "primary" } }, functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", props: { base: { type: "danger", plain: true } }, functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", props: { base: { type: "primary", plain: true } }, functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", props: { base: { type: "success", plain: true } }, functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", props: { base: { type: "primary" } }, functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", props: { base: { type: "success", text: true } }, functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", props: { base: { type: "danger", text: true } }, functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", props: { base: { type: "primary", text: true } }, functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消", props: { base: { type: "info", text: true } }, functions: [] } }, s = {};
3
- function n(o2) {
2
+ const e = { page: { label: "页面", functions: [{ label: "页面", path: "temp" }] }, gets: { group: "表单标准功能", label: "获取表单数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/gets$POST" }] }, workflowGets: { group: "标准流程", label: "获取表单及流程数据", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/gets$POST" }] }, save: { group: "表单标准功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, submit: { group: "表单标准功能", label: "提交", functions: [{ path: "/commons/submits$POST" }] }, exportForm: { group: "表单标准功能", label: "导出报告", functions: [{ path: "/commons/export-reports$POST" }] }, exportPDF: { group: "表单标准功能", label: "导出PDF", functions: [{ path: "/commons/exportPDF$POST" }] }, agree: { group: "表单标准功能", label: "同意", functions: [{ path: "/commons/approves$POST" }] }, disagree: { group: "表单标准功能", label: "不同意", functions: [{ path: "/commons/refuses$POST" }] }, back: { group: "表单标准功能", label: "返回", functions: [] }, workflowSave: { group: "流程表单功能", label: "暂存", functions: [{ label: "暂存", code: "save", funcType: "AUTHENTICATED", path: "/workflow-commons$POST" }, { label: "修改", code: "update", funcType: "AUTHENTICATED", path: "/workflow-commons$PUT" }] }, submitProcess: { group: "流程表单功能", label: "提交流程", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/submit$POST" }] }, submitTask: { group: "流程表单功能", label: "提交任务", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.submit", path: "/workflow-commons/complete-tasks$POST" }] }, approve: { group: "流程表单功能", label: "同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.approve", path: "/workflow-commons/complete-tasks$POST" }] }, refuse: { group: "流程表单功能", label: "不同意", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.refuse", path: "/workflow-commons/complete-tasks$POST" }] }, assign: { group: "流程表单功能", label: "指派", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/assigns$POST" }] }, drawTask: { group: "流程表单功能", label: "领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/draw-tasks$POST" }] }, abandonReceive: { group: "流程表单功能", label: "放弃领取", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }] }, readed: { group: "流程表单功能", label: "已阅", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.readed", path: "/workflow-commons/complete-tasks$POST" }] }, agreement: { group: "流程表单功能", label: "赞成", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.agreement", path: "/workflow-commons/complete-tasks$POST" }] }, oppose: { group: "流程表单功能", label: "反对", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.oppose", path: "/workflow-commons/complete-tasks$POST" }] }, kiken: { group: "流程表单功能", label: "弃权", functions: [{ funcType: "AUTHENTICATED", code: "completeTask.kiken", path: "/workflow-commons/complete-tasks$POST" }] }, addSigner: { group: "流程表单功能", label: "加签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/add-signers$POST" }] }, removeSigner: { group: "流程表单功能", label: "减签", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/abandon-receives$POST" }, { code: "getRemoveSigners", label: "获取可减签人员", funcType: "AUTHENTICATED", path: "/workflow-commons/get-remove-signers$POST" }] }, copyTask: { group: "流程表单功能", label: "抄送", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/copies$POST" }] }, retrieveTask: { group: "流程表单功能", label: "取回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/retrieves$POST" }] }, returnToPreviousTask: { group: "流程表单功能", label: "驳回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/return-to-previous-tasks$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, listData: { group: "列表功能", label: "列表数据", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list$POST" }] }, listSubData: { group: "列表功能", label: "列表子级", functions: [{ funcType: "AUTHENTICATED", path: "/commons/list-subs$POST" }] }, saveList: { group: "列表功能", label: "暂存", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }, { funcType: "AUTHENTICATED", code: "update", label: "修改", path: "/commons$POST" }] }, delete: { group: "列表功能", label: "删除", functions: [{ path: "/commons/{tableName}$DELETE" }] }, submitList: { group: "列表功能", label: "提交", functions: [{ path: "/commons/batch-submits$POST" }] }, agreeList: { group: "列表功能", label: "同意", functions: [{ path: "/commons/batch-approves$POST" }] }, disagreeList: { group: "列表功能", label: "不同意", functions: [{ path: "/commons/batch-refuses$POST" }] }, import: { group: "列表功能", label: "导入", functions: [{ path: "/commons/import-data$POST" }] }, export: { group: "列表功能", label: "导出", functions: [{ path: "/commons/export-list-data$POST" }] }, search: { group: "列表功能", label: "查询", functions: [] }, showMobileSearch: { group: "列表功能", label: "显示移动端查询区域", functions: [] }, downloadTemplate: { group: "列表功能", label: "下载导入模板", functions: [{ path: "/commons/download-files$GET" }] }, lineEditCreate: { group: "列表行编辑功能", label: "新建", functions: [{ code: "create", label: "暂存", path: "/commons$POST" }] }, lineEditSave: { group: "列表行编辑功能", label: "保存", functions: [{ code: "create", label: "保存", path: "/commons$POST" }, { code: "update", label: "修改", path: "/commons$POST" }] }, lineEditDelete: { group: "列表行编辑功能", label: "删除", functions: [{ code: "delete", path: "/commons/{tableName}$DELETE" }] }, lineEditUpdate: { group: "列表行编辑功能", label: "修改", functions: [{ code: "update", label: "修改", path: "/commons$POST" }] }, restoreEdit: { group: "列表行编辑功能", label: "取消编辑", functions: [] } }, n = {};
3
+ function t(o2) {
4
4
  return o2 ? e[o2] : void 0;
5
5
  }
6
- function t(o2) {
6
+ function a(o2) {
7
7
  if (!o2) return;
8
- let n2 = s[o2];
9
- if (null == n2) {
10
- for (const s2 in e) {
11
- const t2 = e[s2].functions;
12
- if (t2) {
13
- for (const e2 of t2) {
14
- if (o2 === (e2.code ? e2.code : s2)) {
15
- n2 = e2;
8
+ let t2 = n[o2];
9
+ if (null == t2) {
10
+ for (const n2 in e) {
11
+ const a2 = e[n2].functions;
12
+ if (a2) {
13
+ for (const e2 of a2) {
14
+ if (o2 === (e2.code ? e2.code : n2)) {
15
+ t2 = e2;
16
16
  break;
17
17
  }
18
18
  }
19
- if (n2) break;
19
+ if (t2) break;
20
20
  }
21
21
  }
22
- s[o2] = n2 || "";
22
+ n[o2] = t2 || "";
23
23
  }
24
- return n2 || void 0;
24
+ return t2 || void 0;
25
25
  }
26
26
  export {
27
27
  o as FuncType,
28
- t as getFunctionInfo,
29
- n as getStandPermissionInfo
28
+ a as getFunctionInfo,
29
+ t as getStandPermissionInfo
30
30
  };
@@ -12,7 +12,7 @@ const t = o("pageContextUtil", () => {
12
12
  }, componentsTotalNmber: l, componentsLoadedNumber: d, setPageComponentsLoaded: function(e2) {
13
13
  t2.value = e2, t2.value && n.value && (a.$emit("pageLoaded"), u.value = true);
14
14
  }, setFormPageDataLoadState: function(e2) {
15
- n.value = e2, t2.value && n.value && (u.value = true);
15
+ n.value = e2, t2.value && n.value && (console.log("setpageLoaded+++++++++++++++++++", t2.value, n.value), u.value = true);
16
16
  }, formPageDataLoaded: n, pageComponentsLoaded: t2, restorePageLoadState: function() {
17
17
  t2.value = false, n.value = false, u.value = false;
18
18
  }, pageLoaded: u, getPageLoaded: function() {
@@ -3,43 +3,43 @@ import "agilebuilder-ui/src/utils/util";
3
3
  import "agilebuilder-ui/src/utils/request";
4
4
  import t from "./eventBus.js";
5
5
  import { getPermissionCodes as e } from "./page-init-util.js";
6
- import { getCustomFunc as i } from "./events/event-util.js";
7
- import { $t as o } from "./i18n-util.js";
6
+ import { getCustomFunc as o } from "./events/event-util.js";
7
+ import { $t as i } from "./i18n-util.js";
8
8
  import { ExpressionEvaluator as s } from "../views/assemblys/chart/table/chart-table-util.js";
9
9
  function n(e2) {
10
- const i2 = e2.pageContext && e2.pageContext.code;
11
- t.$emit(i2 + "_open-dialog", e2);
10
+ const o2 = e2.pageContext && e2.pageContext.code;
11
+ console.log("弹框显示页面--popupToPage====params=", e2), t.$emit(o2 + "_open-dialog", e2);
12
12
  }
13
13
  function r(t2, e2) {
14
- const i2 = t2.tableName;
15
- if (!e2 && i2) return i2;
16
- let o2;
17
- 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;
14
+ const o2 = t2.tableName;
15
+ if (!e2 && o2) return o2;
16
+ let i2;
17
+ return t2.tableRuntimes && e2 && t2.tableRuntimes[e2] && (i2 = JSON.parse(t2.tableRuntimes[e2].configure)), i2 && i2.props && i2.props.dataOrigin ? i2.props.dataOrigin.tableName : null;
18
18
  }
19
- function u(t2, i2, s2, n2) {
20
- const r2 = !(!i2.props || !i2.props.base) && i2.props.base.showOperation, u2 = i2.btnList;
21
- r2 && u2 && u2.forEach((i3) => {
22
- const r3 = {}, u3 = Object.assign({}, i3.props.base);
23
- if ("custom" === i3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === i3.isPermission || i3.isPermission + "" == "true") {
24
- const o2 = e(i3, t2);
25
- o2 && (u3.permission = o2);
19
+ function u(t2, o2, s2, n2) {
20
+ const r2 = !(!o2.props || !o2.props.base) && o2.props.base.showOperation, u2 = o2.btnList;
21
+ console.log("configure.btnList===", o2.btnList, "configure====", o2), r2 && u2 && u2.forEach((o3) => {
22
+ const r3 = {}, u3 = Object.assign({}, o3.props.base);
23
+ if ("custom" === o3.name ? u3.customControl = u3.name : u3.elementType = "el-button", void 0 === o3.isPermission || o3.isPermission + "" == "true") {
24
+ const i2 = e(o3, t2);
25
+ i2 && (u3.permission = i2);
26
26
  }
27
- u3.label = o(u3.title), u3.sourceButton = { uuid: i3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(i3)), s2.push(r3);
27
+ u3.label = i(u3.title), u3.sourceButton = { uuid: o3.uuid }, r3.props = u3, void 0 !== n2 && (r3.onClick = n2(o3)), s2.push(r3);
28
28
  });
29
29
  }
30
- function l(t2, e2, o2, n2) {
30
+ function l(t2, e2, i2, n2) {
31
31
  let r2;
32
- const u2 = o2 == null ? void 0 : o2.some((o3) => {
32
+ const u2 = i2 == null ? void 0 : i2.some((i3) => {
33
33
  let u3 = false;
34
- if (o3.scopeFunc) {
35
- const s2 = i(t2, o3.scopeFunc);
34
+ if (i3.scopeFunc) {
35
+ const s2 = o(t2, i3.scopeFunc);
36
36
  if (s2) {
37
37
  s2.apply(s2, [{ pageContext: t2, configureObj: e2, row: n2 }]) && (u3 = true);
38
38
  }
39
- } else if (o3.showCondition && o3.showCondition.length > 0) {
40
- s.evaluate(t2, o3.showCondition, n2) && (u3 = true);
39
+ } else if (i3.showCondition && i3.showCondition.length > 0) {
40
+ s.evaluate(t2, i3.showCondition, n2) && (u3 = true);
41
41
  } else u3 = true;
42
- if (u3) return r2 = o3, true;
42
+ if (u3) return r2 = i3, true;
43
43
  });
44
44
  return { show: u2, toPage: r2 };
45
45
  }
@@ -1,25 +1,22 @@
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";
2
- import { SuperIcon as k } from "agilebuilder-ui";
3
- import { handleAfterInitEvent as f, handleEvent as m } from "../../../../utils/events/event-util.js";
1
+ import { defineComponent as e, ref as t, onMounted as i, nextTick as n, resolveComponent as l, createElementBlock as a, openBlock as o, createVNode as u, unref as c, normalizeStyle as p, normalizeClass as r, withCtx as s, createCommentVNode as v, createBlock as g, Fragment as d, createTextVNode as y, toDisplayString as f } from "vue";
2
+ import { SuperIcon as m } from "agilebuilder-ui";
3
+ import { handleAfterInitEvent as k, handleEvent as x } from "../../../../utils/events/event-util.js";
4
4
  import { $t as C } from "../../../../utils/i18n-util.js";
5
- const x = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
6
- const b = e2, T = b.configure.runtime ? b.configure.runtime : {}, z = l(T.props ? T.props : {}), _ = T.style, h = T.class;
5
+ const b = { class: "page-runtime-header-btn" }, V = e({ __name: "button-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: V2 }) {
6
+ const T = e2, _ = T.configure.runtime ? T.configure.runtime : {}, h = t(_.props ? _.props : {}), z = _.style, j = _.class;
7
7
  function P() {
8
- return "disabled" === z.value.state || R();
8
+ return void 0 !== T.pageContext.canClick && void 0 !== T.pageContext.clickUuid && (!T.pageContext.canClick && T.pageContext.clickUuid === T.configure.uuid);
9
9
  }
10
- function R() {
11
- return void 0 !== b.pageContext.canClick && void 0 !== b.pageContext.clickUuid && (!b.pageContext.canClick && b.pageContext.clickUuid === b.configure.uuid);
12
- }
13
- const j = l(null);
10
+ const R = t(null);
14
11
  return i(() => {
15
- t(() => {
16
- f(null, b.pageContext, b.configure, { componentRef: j.value, entity: b.pageContext.entity.data, pageData: b.pageContext.entity.page });
12
+ n(() => {
13
+ k(null, T.pageContext, T.configure, { componentRef: R.value, entity: T.pageContext.entity.data, pageData: T.pageContext.entity.page });
17
14
  });
18
15
  }), 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", x, [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 ? (u(), a(y, { key: 0 }, [g(d(c(C)(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(C)(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(C)(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(C)(z.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "round", "plain", "loading"]))]);
16
+ R.value && R.value.$el.click();
17
+ } }), (e3, t2) => {
18
+ const i2 = l("el-button");
19
+ return o(), a("span", b, [u(i2, { ref_key: "componentRef", ref: R, disabled: "disabled" === h.value.state || P(), class: r(c(j)), style: p(c(z)), type: h.value.type, size: h.value.size, text: h.value.text, round: h.value.round, plain: h.value.plain, loading: P(), onClick: t2[0] || (t2[0] = (t3) => c(x)(t3, e3.pageContext, e3.configure, "click")) }, { default: s(() => [h.value.title && "right" == h.value.iconPosition ? (o(), a(d, { key: 0 }, [y(f(c(C)(h.value.title)) + " ", 1), h.value.iconValue ? (o(), a(d, { key: 0 }, [y("   ")], 64)) : v("", true)], 64)) : v("", true), h.value.iconType && h.value.iconValue ? (o(), g(c(m), { key: 1, iconType: h.value.iconType, iconValue: h.value.iconValue }, null, 8, ["iconType", "iconValue"])) : v("", true), h.value.title && "right" != h.value.iconPosition ? (o(), a(d, { key: 2 }, [h.value.iconValue ? (o(), a(d, { key: 0 }, [y("   ")], 64)) : v("", true), y(" " + f(c(C)(h.value.title)), 1)], 64)) : v("", true)]), _: 1 }, 8, ["disabled", "class", "style", "type", "size", "text", "round", "plain", "loading"])]);
23
20
  };
24
21
  } });
25
22
  export {
@@ -1,7 +1,4 @@
1
1
  import t from "./buttongroup-runtime.vue2.js";
2
- /* empty css */
3
- import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const r = o(t, [["__scopeId", "data-v-9d55ce0b"]]);
5
2
  export {
6
- r as default
3
+ t as default
7
4
  };
@@ -1,21 +1,17 @@
1
- import { defineComponent as e, computed as t, ref as n, onMounted as o, nextTick as u, resolveComponent as r, createBlock as a, openBlock as p, normalizeStyle as g, normalizeClass as i, unref as s, withCtx as l, createElementBlock as c, Fragment as f, renderList as m } from "vue";
2
- import x from "../../object-render.vue.js";
3
- import { handleAfterInitEvent as y } from "../../../../utils/events/event-util.js";
4
- const C = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
- const C2 = e2, v = C2.configure.runtime ? C2.configure.runtime : {}, b = v.class, d = t(() => {
6
- var _a;
7
- const { gap: e3 } = ((_a = C2.configure) == null ? void 0 : _a.props) ?? {};
8
- return { ...e3 ? { gap: `${e3}px` } : {}, ...v.style ?? {} };
9
- }), _ = n(null);
10
- return o(() => {
11
- u(() => {
12
- y(null, C2.pageContext, C2.configure, { componentRef: _.value, entity: C2.pageContext.entity.data, pageData: C2.pageContext.entity.page });
1
+ import { defineComponent as e, ref as t, onMounted as n, nextTick as o, resolveComponent as u, createBlock as r, openBlock as a, normalizeStyle as i, normalizeClass as l, unref as p, withCtx as s, createElementBlock as g, Fragment as c, renderList as f } from "vue";
2
+ import m from "../../object-render.vue.js";
3
+ import { handleAfterInitEvent as x } from "../../../../utils/events/event-util.js";
4
+ const y = e({ __name: "buttongroup-runtime", props: { pageContext: {}, configure: {} }, setup(e2) {
5
+ const y2 = e2, C = y2.configure.runtime ? y2.configure.runtime : {}, d = C.style, v = C.class, _ = t(null);
6
+ return n(() => {
7
+ o(() => {
8
+ x(null, y2.pageContext, y2.configure, { componentRef: _.value, entity: y2.pageContext.entity.data, pageData: y2.pageContext.entity.page });
13
9
  });
14
10
  }), (e3, t2) => {
15
- const n2 = r("el-button-group");
16
- return p(), a(n2, { ref_key: "componentRef", ref: _, class: i(["amb-button-group-main", s(b)]), style: g(d.value) }, { default: l(() => [(p(true), c(f, null, m(e3.configure.items, (t3, n3) => (p(), a(x, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
11
+ const n2 = u("el-button-group");
12
+ return a(), r(n2, { ref_key: "componentRef", ref: _, class: l(p(v)), style: i(p(d)) }, { default: s(() => [(a(true), g(c, null, f(e3.configure.items, (t3, n3) => (a(), r(m, { key: t3.uuid, pageContext: e3.pageContext, configure: t3 }, null, 8, ["pageContext", "configure"]))), 128))]), _: 1 }, 8, ["class", "style"]);
17
13
  };
18
14
  } });
19
15
  export {
20
- C as default
16
+ y as default
21
17
  };
@@ -1,8 +1,8 @@
1
- import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as a, normalizeClass as i, normalizeStyle as u, unref as s, withDirectives as l, createVNode as c, vShow as p } from "vue";
1
+ import { defineComponent as e, ref as r, onMounted as o, watch as t, createElementBlock as n, openBlock as i, normalizeClass as a, normalizeStyle as l, unref as u, withDirectives as s, createVNode as c, vShow as p } from "vue";
2
2
  import { getCustomTheme as f, initChartOption as g, monitorChartClickToVariable as m, clearChartSelected as h, exportCommonChart as d } from "../../../../utils/charts/chart-util.js";
3
- import { getChartDatasFromPage as x, updateChartDatasources as v, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
4
- import { updateChartOption as I } from "../../../../utils/charts/chart-columnline-util.js";
5
- import { doClickJumpPageEvent as k } from "../../../../utils/events/event-util.js";
3
+ import { getChartDatasFromPage as v, updateChartDatasources as x, monitorFieldChange as C } from "../../../../utils/page-helper-util.js";
4
+ import { updateChartOption as k } from "../../../../utils/charts/chart-columnline-util.js";
5
+ import { doClickJumpPageEvent as I } from "../../../../utils/events/event-util.js";
6
6
  import R from "../common/common-chart-header.vue.js";
7
7
  import { use as j } from "echarts/core";
8
8
  import { CanvasRenderer as y } from "echarts/renderers";
@@ -18,21 +18,24 @@ const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
18
18
  "clearDrill" == q ? z.value && z.value.closeDrill && z.value.closeDrill(0) : "clickEvent" === q && Z(e3);
19
19
  }
20
20
  function Z(e3) {
21
- if (e3.seriesIndex >= Q.series.length) return;
22
- const r2 = Q.series[e3.seriesIndex].uuid, o2 = B[r2];
23
- if (!o2) return;
21
+ if (console.log("clik0", e3), e3.seriesIndex >= Q.series.length) return;
22
+ console.log("clik1", e3);
23
+ const r2 = Q.series[e3.seriesIndex].uuid;
24
+ console.log("clik2", r2);
25
+ const o2 = B[r2];
26
+ if (console.log("clik3", o2), !o2) return;
24
27
  const t2 = { data: e3.data, dataIndex: e3.dataIndex, name: e3.name, seriesId: e3.seriesId, seriesIndex: e3.seriesIndex, seriesName: e3.seriesName, seriesType: e3.seriesType, value: e3.value };
25
- k(N.pageContext, o2, t2);
28
+ I(N.pageContext, o2, t2);
26
29
  }
27
30
  g(N.configure, Q), o(() => {
28
- const e3 = x(N.pageContext, N.configure);
31
+ const e3 = v(N.pageContext, N.configure);
29
32
  e3 && oe(e3), U.value && (F || Object.keys(B).length > 0) && U.value.chart.on("click", function(e4) {
30
33
  F ? z.value && z.value.drill && z.value.drill(e4, N.configure.cacheDatas) : Z(e4);
31
34
  }), !F && N.configure.clickSet && U.value && m(N.pageContext, N.configure, U.value.chart);
32
35
  });
33
36
  let $ = M.groupValue;
34
37
  function ee(e3) {
35
- L && (true !== e3 && (L.autoRefresh = true), v(N.pageContext, [L], M.drillParams));
38
+ L ? (true !== e3 && (L.autoRefresh = true), x(N.pageContext, [L], M.drillParams)) : console.log("无数据源配置,不需要查询!");
36
39
  }
37
40
  t(M, () => {
38
41
  $ != M.groupValue && ($ = M.groupValue, L && (L.services[0].groupValue = M.groupValue), ee(false));
@@ -40,13 +43,14 @@ const H = e({ __name: "column-line-runtime", props: { pageContext: {}, configure
40
43
  const re = M.monitorFields;
41
44
  function oe(e3) {
42
45
  var _a;
43
- e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender ? e3.hasRender = true : (e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, I(N.pageContext, N.configure, Q, e3));
46
+ if (e3 || (e3 = []), (e3 = e3.length > 0 ? e3[0] : {}) || (e3 = {}), e3.hasRender) return e3.hasRender = true, void console.log("重复更新!", e3);
47
+ e3.hasRender = true, L.autoRefresh || ($ = e3.groupValue, $ && "checkbox" !== M.groupComponent && ($ = $.join(",")), M.groupValue = $), L.autoRefresh && F || h(N.pageContext, N.configure, (_a = U.value) == null ? void 0 : _a.chart), L.autoRefresh = false, k(N.pageContext, N.configure, Q, e3);
44
48
  }
45
49
  return C(N.pageContext, re, () => {
46
50
  ee(true);
47
51
  }), H2({ updateChartDatas: oe, exportChart: function() {
48
52
  return d(U.value);
49
- }, chartOption: Q }), (e3, r2) => (a(), n("div", { style: u(s(J)), class: i([s(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [l(c(R, { ref_key: "headerRef", ref: z, headerInfo: s(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, s(M).showHeader || e3.pageContext.showHomepageSearch]]), c(s(O), { ref_key: "chartRef", ref: U, theme: s(X), option: s(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
53
+ }, chartOption: Q }), (e3, r2) => (i(), n("div", { style: l(u(J)), class: a([u(K), "amb-widget-chart amb-widget-flex"]), ref_key: "thisRef", ref: S }, [s(c(R, { ref_key: "headerRef", ref: z, headerInfo: u(M), configure: e3.configure, pageContext: e3.pageContext, onDrillEnd: Y }, null, 8, ["headerInfo", "configure", "pageContext"]), [[p, u(M).showHeader || e3.pageContext.showHomepageSearch]]), c(u(O), { ref_key: "chartRef", ref: U, theme: u(X), option: u(Q), autoresize: "" }, null, 8, ["theme", "option"])], 6));
50
54
  } });
51
55
  export {
52
56
  H as default
@@ -1,9 +1,13 @@
1
- import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as d, Fragment as n, renderList as p } from "vue";
2
- const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup: (e2) => (l(e2.headerInfo, () => {
3
- }), (l2, t2) => {
4
- const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), V = o("el-radio-button"), b = o("el-radio-group");
5
- return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[0] || (t2[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(n, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[1] || (t2[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(b, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t2[2] || (t2[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: d(() => [(r(true), u(n, null, p(e2.headerInfo.options, (e3) => (r(), a(V, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
6
- }) });
1
+ import { defineComponent as e, watch as l, resolveComponent as o, createBlock as a, createElementBlock as u, openBlock as r, withCtx as n, Fragment as d, renderList as p } from "vue";
2
+ const t = e({ __name: "common-chart-header-group", props: { headerInfo: { type: Object, required: true } }, setup(e2) {
3
+ const t2 = e2;
4
+ return l(t2.headerInfo, () => {
5
+ console.log("props.headerInfo", t2.headerInfo);
6
+ }), (l2, t3) => {
7
+ const h = o("el-checkbox"), f = o("el-checkbox-group"), m = o("el-radio"), I = o("el-radio-button"), V = o("el-radio-group");
8
+ return "checkbox" == e2.headerInfo.groupComponent ? (r(), a(f, { key: 0, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[0] || (t3[0] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(h, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"])) : "radio" == e2.headerInfo.groupComponent ? (r(true), u(d, { key: 1 }, p(e2.headerInfo.options, (l3) => (r(), a(m, { modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[1] || (t3[1] = (l4) => e2.headerInfo.groupValue = l4), value: l3.value, label: l3.label }, null, 8, ["modelValue", "value", "label"]))), 256)) : (r(), a(V, { key: 2, modelValue: e2.headerInfo.groupValue, "onUpdate:modelValue": t3[2] || (t3[2] = (l3) => e2.headerInfo.groupValue = l3) }, { default: n(() => [(r(true), u(d, null, p(e2.headerInfo.options, (e3) => (r(), a(I, { label: e3.label, value: e3.value }, null, 8, ["label", "value"]))), 256))]), _: 1 }, 8, ["modelValue"]));
9
+ };
10
+ } });
7
11
  export {
8
12
  t as default
9
13
  };