super-page-runtime 2.3.13-sit4 → 2.3.14-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 (23) hide show
  1. package/dist/es/components/runtime/utils/ai-chat-util.js +16 -0
  2. package/dist/es/components/runtime/utils/assemblys-config.js +1 -1
  3. package/dist/es/components/runtime/utils/events/standard-event.d.ts +4 -0
  4. package/dist/es/components/runtime/utils/events/standard-event.js +343 -296
  5. package/dist/es/components/runtime/utils/events/validator-util.js +76 -71
  6. package/dist/es/components/runtime/utils/page-init-util.js +107 -87
  7. package/dist/es/components/runtime/utils/page-permission-util.js +12 -12
  8. package/dist/es/components/runtime/views/assemblys/chart/common/common-homepage-search.vue2.js +15 -14
  9. package/dist/es/components/runtime/views/assemblys/data/table/main-table-runtime.vue.js +12 -11
  10. package/dist/es/components/runtime/views/assemblys/data/table/sub-table-runtime.vue.js +19 -18
  11. package/dist/es/components/runtime/views/assemblys/form/date-picker/datepicker-runtime.vue2.js +38 -27
  12. package/dist/es/components/runtime/views/assemblys/object-render.vue.js +17 -17
  13. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue.js +7 -0
  14. package/dist/es/components/runtime/views/assemblys/workflow/extract-workflow/extract-workflow-runtime.vue2.js +37 -0
  15. package/dist/es/components/runtime/views/assemblys/workflow/workflow-button/workflowbutton-runtime.vue.js +1 -1
  16. package/dist/es/components/runtime/views/assemblys/workflow/workflow-node/workflownode-runtime.vue2.js +12 -12
  17. package/dist/es/components/runtime/views/super-page.vue.d.ts +2 -0
  18. package/dist/es/components/runtime/views/super-page.vue.js +1 -1
  19. package/dist/es/components/runtime/views/super-page.vue2.js +184 -180
  20. package/dist/es/i18n/langs/cn.js +1 -1
  21. package/dist/es/i18n/langs/en.js +1 -1
  22. package/dist/es/style.css +82 -79
  23. package/package.json +2 -2
@@ -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" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, 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/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$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 t(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" }] }, workflowStart: { group: "流程表单功能", label: "起草", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/start$POST" }] }, 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/return-to-previous-tasks$POST" }] }, returnTaskTo: { group: "流程表单功能", label: "退回", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/returnTaskTo$POST" }, { code: "returnableTaskInformation", label: "获取可退回环节信息", funcType: "AUTHENTICATED", path: "/workflow-commons/returnable-task/{taskId}$POST" }] }, endInstance: { group: "流程表单功能", label: "强制结束", functions: [{ funcType: "AUTHENTICATED", path: "/workflow-commons/end-instance$POST" }] }, extractWorkflow: { group: "流程表单功能", label: "抽单", functions: [{ label: "发起抽单", code: "initiateExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/initiate-extract$POST" }] }, cancelExtractWorkflow: { group: "流程表单功能", label: "取消抽单", functions: [{ label: "取消抽单", code: "cancelExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/cancel-extract$POST" }] }, approveExtractWorkflow: { group: "流程表单功能", label: "同意抽单", functions: [{ label: "同意抽单", code: "approveExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/approve-extract$POST" }] }, refuseExtractWorkflow: { group: "流程表单功能", label: "不同意抽单", functions: [{ label: "不同意抽单", code: "refuseExtract", funcType: "AUTHENTICATED", path: "/workflow-commons/refuse-extract$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: [] } }, t = {};
3
+ function a(o2) {
4
4
  return o2 ? e[o2] : void 0;
5
5
  }
6
6
  function n(o2) {
7
7
  if (!o2) return;
8
- let t2 = s[o2];
9
- if (null == t2) {
10
- for (const s2 in e) {
11
- const n2 = e[s2].functions;
8
+ let a2 = t[o2];
9
+ if (null == a2) {
10
+ for (const t2 in e) {
11
+ const n2 = e[t2].functions;
12
12
  if (n2) {
13
13
  for (const e2 of n2) {
14
- if (o2 === (e2.code ? e2.code : s2)) {
15
- t2 = e2;
14
+ if (o2 === (e2.code ? e2.code : t2)) {
15
+ a2 = e2;
16
16
  break;
17
17
  }
18
18
  }
19
- if (t2) break;
19
+ if (a2) break;
20
20
  }
21
21
  }
22
- s[o2] = t2 || "";
22
+ t[o2] = a2 || "";
23
23
  }
24
- return t2 || void 0;
24
+ return a2 || void 0;
25
25
  }
26
26
  export {
27
27
  o as FuncType,
28
28
  n as getFunctionInfo,
29
- t as getStandPermissionInfo
29
+ a as getStandPermissionInfo
30
30
  };
@@ -1,12 +1,13 @@
1
- import { defineComponent as e, ref as t, onMounted as o, onUnmounted as i, 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";
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
3
  import { updateChartDatasources as v, getValueFromVariable as h } from "../../../../utils/page-helper-util.js";
4
4
  import { ElLoading as y, ElMessage as C } from "element-plus";
5
- import S from "agilebuilder-ui/src/utils/request";
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";
8
8
  import "async-validator";
9
9
  import "../../../../utils/global-refs.js";
10
+ import "agilebuilder-ui/src/utils/calculator/calculator-util";
10
11
  import "../../../../utils/eventBus.js";
11
12
  import "../../../../utils/page-store.js";
12
13
  import "agilebuilder-ui/src/utils/i18n-util";
@@ -14,15 +15,15 @@ import "vue-i18n";
14
15
  import "agilebuilder-ui/src/utils/auth";
15
16
  import "axios";
16
17
  import "../../../../utils/events/print-label.js";
17
- const b = { 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: () => {
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: () => {
18
19
  } } }, setup(e2, { expose: x2 }) {
19
20
  const N = e2, _ = t(false), J = t({}), j = t(0);
20
21
  let I;
21
- o(() => {
22
+ i(() => {
22
23
  I = setTimeout(() => {
23
24
  J.value = JSON.parse(JSON.stringify(N.pageContext.entity));
24
25
  }, 200);
25
- }), i(() => {
26
+ }), o(() => {
26
27
  I && clearTimeout(I);
27
28
  });
28
29
  const k = t([]), w = () => {
@@ -41,21 +42,21 @@ const b = { style: { overflow: "auto", height: "calc(100vh - 140px)" }, ref: "di
41
42
  function A() {
42
43
  const e3 = {};
43
44
  N.pageContext.variables.forEach((t3) => {
44
- const o3 = "${page." + t3.name + "}";
45
- e3[o3] = h(N.pageContext.entity, o3, null);
45
+ const i3 = "${page." + t3.name + "}";
46
+ e3[i3] = h(N.pageContext.entity, i3, null);
46
47
  });
47
- let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), o2 = {};
48
- t2 && (o2 = JSON.parse(t2)), o2[N.configure.homeChartSettingUserId] = e3;
49
- const i2 = JSON.stringify(e3);
50
- window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(o2)), J.value = JSON.parse(JSON.stringify(N.pageContext.entity)), S.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: N.configure.homeChartSettingUserId, searchConditionsJson: i2 }).then((e4) => {
48
+ let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
49
+ t2 && (i2 = JSON.parse(t2)), i2[N.configure.homeChartSettingUserId] = e3;
50
+ const o2 = JSON.stringify(e3);
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) => {
51
52
  C.success("保存成功"), T();
52
53
  });
53
54
  }
54
55
  return x2({ openSearch: () => {
55
56
  _.value = true, k.value = N.configure.pushHomepage.searchConditions;
56
- } }), (t2, o2) => {
57
- const i2 = l("el-empty"), v2 = l("el-form"), h2 = l("el-button"), y2 = l("el-dialog");
58
- return r(), a(y2, { modelValue: _.value, "onUpdate:modelValue": o2[0] || (o2[0] = (e3) => _.value = e3), title: "筛选", close: w, "append-to-body": "", fullscreen: "", top: "40vh", append: "", width: "70%", draggable: "" }, { default: n(() => [u("div", b, [k.value && 0 !== k.value.length ? c("", true) : (r(), a(i2, { 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(() => o2[1] || (o2[1] = [p(" 确定 ")])), _: 1 }), s(h2, { type: "default", onClick: H }, { default: n(() => o2[2] || (o2[2] = [p("重置")])), _: 1 }), s(h2, { type: "primary", onClick: A }, { default: n(() => o2[3] || (o2[3] = [p(" 保存为默认条件 ")])), _: 1 })])]), _: 1 }, 8, ["modelValue"]);
57
+ } }), (t2, i2) => {
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"]);
59
60
  };
60
61
  } });
61
62
  export {
@@ -19,40 +19,41 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
19
19
  oe || (oe = window.$vueApp.config.globalProperties.baseURL);
20
20
  const ie = t({}), ae = [], le = t({});
21
21
  le.value = function() {
22
+ var _a;
22
23
  const e3 = Y.systemCode, t2 = Y.code;
23
24
  let n2 = J.props && J.props.dataOrigin && "[]" !== J.props.dataOrigin.sqlFilterCondition ? J.props.dataOrigin.sqlFilterCondition : null;
24
25
  null == n2 && (n2 = []);
25
- const o2 = { isSql: true, optionTableHeight: 0, rowKeyProp: J.props.dataOrigin.principalLinkage, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
+ const o2 = (_a = J.props) == null ? void 0 : _a.dataOrigin.principalLinkage, i2 = { isSql: true, optionTableHeight: 0, rowKeyProp: o2, extraParam: { beanName: Y.beanName, functionCode: t2 + ".listData", tableName: ne, systemCode: e3, pageCode: Y.code, pageVersion: Y.version }, initSearchForm: n2, lineEditOptions: { aftersaveIsCreateRow: false, autoSave: false, enter: Se, esc: Ee }, indexContinuous: !(!J.props || !J.props.otherSettings) && J.props.otherSettings.serialNumberContinuous, initSearch: !J.props || false !== J.props.dataOrigin.initializationQuery, resizeHeight: je, pageCode: Y.code, pageVersion: Y.version, additionalParamMap: I(Y), showOverflowTooltip: !(!J.props || !J.props.otherSettings || void 0 !== J.props.otherSettings.isBreakLine && false !== J.props.otherSettings.isBreakLine), isEnableEnterEvent: J.props && J.props.otherSettings && J.props.otherSettings.isEnableEnterEvent, isWithDataPermission: !!(J.props && J.props.otherSettings && J.props.otherSettings.isWithDataPermission) && J.props.otherSettings.isWithDataPermission, pageDevMode: false, isWorkflowEntity: R(Y), tableClass: Z, tableStyle: X, pageContext: Y, configureObj: J, backendUrl: oe, cellStyleRender: qe, rowStyleRender: We, titleStyleRender: Qe, validateEitConditions: Xe };
26
27
  return function(e4) {
27
- var _a;
28
- ((_a = J.props.highOrder) == null ? void 0 : _a.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
29
- }(o2), function(e4) {
28
+ var _a2;
29
+ ((_a2 = J.props.highOrder) == null ? void 0 : _a2.mergeFields) && J.props.highOrder.mergeFields.length > 0 && (e4.mergeFields = J.props.highOrder.mergeFields.join(","));
30
+ }(i2), function(e4) {
30
31
  const t3 = [];
31
32
  e4.operations || (e4.operations = {});
32
33
  B(Y, J, t3, ye), e4.operations.operation = t3;
33
- }(o2), function(e4) {
34
+ }(i2), function(e4) {
34
35
  J.props && J.props.dataOrigin && J.props.dataOrigin.sortField && (e4.initSortInfo = [], J.props.dataOrigin.sortField.forEach((t3) => {
35
36
  const n3 = { order: "desc" === t3.type ? "desc" : "asc" };
36
37
  n3.prop = t3.name, e4.initSortInfo.push(n3);
37
38
  }));
38
- }(o2), function(e4) {
39
+ }(i2), function(e4) {
39
40
  const t3 = J.props ? J.props.dataOrigin : {};
40
41
  if (t3.treeTable) {
41
42
  let n3;
42
43
  const o3 = t3.rowKey;
43
44
  if (n3 = o3 && o3.indexOf("~~") > 0 ? o3.substring(o3.indexOf("~~") + 2) : o3, e4.parentProp = n3, t3.checkStrictly && (e4.checkStrictly = t3.checkStrictly), e4.parentProp) {
44
- const o4 = t3.lazy, i2 = t3.defaultExpandAll;
45
- e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i2 && i2;
45
+ const o4 = t3.lazy, i3 = t3.defaultExpandAll;
46
+ e4.lazy = null == o4 || o4, e4.defaultExpandAll = null != i3 && i3;
46
47
  const a2 = { parentProp: n3, lazy: e4.lazy, defaultExpandAll: e4.defaultExpandAll };
47
48
  e4.extraParam.listViewTreeSetting = JSON.stringify(a2), e4.subRowUrl = oe + "/dsc/commons/list-subs";
48
49
  }
49
50
  }
50
- }(o2), function(e4) {
51
+ }(i2), function(e4) {
51
52
  const t3 = J.runtime && J.runtime.events ? J.runtime.events : [];
52
53
  c(e4, t3, Y, J);
53
54
  const n3 = Y.customEvents;
54
55
  n3 && (e4.eventCallBack = n3);
55
- }(o2), o2;
56
+ }(i2), i2;
56
57
  }();
57
58
  const re = t(), ue = t(), se = function() {
58
59
  let e3 = oe + "/dsc/commons/list";
@@ -369,7 +370,7 @@ const z = ["id"], W = e({ __name: "main-table-runtime", props: { pageContext: {}
369
370
  return (_a = ue.value) == null ? void 0 : _a.handleSearch(e3, t2);
370
371
  } }), (e3, t2) => {
371
372
  const n2 = a("super-grid");
372
- return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "onNewOpenGridDialog"])], 8, z);
373
+ return r(), l("div", { ref_key: "tableDivRef", ref: re, id: u(ce) + "_tableDiv" }, [s(n2, { ref_key: "gridRef", ref: ue, url: u(se), options: le.value, code: u(ce), settings: u(ve), "search-form-info": ge.value, "list-toolbar-form-data": u(fe), isDialog: u(Y).isDialog, onSelect: Fe, onSelectAll: He, onSelectionChange: Ue, onCellClick: Le, onCellDblclick: Me, onRowClick: $e, onRowDblclick: _e, onHeaderClick: Ae, onRefresh: Ge, onNewOpenGridDialog: u(P), onCanShowMobileSearch: ze, onGridOnmounted: we }, null, 8, ["url", "options", "code", "settings", "search-form-info", "list-toolbar-form-data", "isDialog", "onNewOpenGridDialog"])], 8, z);
373
374
  };
374
375
  } });
375
376
  export {
@@ -1,23 +1,24 @@
1
1
  import { defineComponent as e, ref as t, onMounted as n, onUnmounted as o, resolveComponent as l, createElementBlock as a, openBlock as i, createBlock as u, createCommentVNode as r, unref as s } from "vue";
2
2
  import { setTableEvents as c, gridSelectRecord as p, gridSelectAllRecords as d, gridSelectionChange as f, cellClick as v, cellDblClick as b, rowClick as g, rowDblClick as m, headerClick as h, getHandleEvent as S } from "../../../../utils/events/event-util.js";
3
- import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as C } from "../../../../utils/page-helper-util.js";
4
- import { getModelFields as D, getDefaultValue as y } from "../../../../utils/page-init-util.js";
3
+ import { caculateShowCondition as w, setVariableValue as T, getVariableValue as x, getSizeConfig as D } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFields as C, getDefaultValue as y } from "../../../../utils/page-init-util.js";
5
5
  import P from "../../../../utils/eventBus.js";
6
6
  import { popupToPage as R, getOperationButtons as I } from "../../../../utils/table-utils.js";
7
7
  import { getListCode as O, getBaseUrl as _ } from "../../../../utils/common-util.js";
8
8
  import { getAdditionalParamMap as k } from "../../../../utils/events/standard-event.js";
9
9
  import { getRowStyleUtil as M, getCellStyleUtil as A, getHeaderCellStyleUtil as F } from "../../chart/table/chart-table-util.js";
10
10
  const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure: {} }, emits: ["setSafeDeleteTableCode"], setup(e2, { expose: $2, emit: j }) {
11
+ var _a;
11
12
  const L = e2, B = L.pageContext;
12
13
  let N = L.configure;
13
14
  const E = L.configure.runtime ? L.configure.runtime : {};
14
15
  B.isTest ? E.value = L.configure.runtime ? L.configure.runtime : {} : B.tableRuntimes && B.tableRuntimes[N.uuid] && (N = JSON.parse(B.tableRuntimes[N.uuid].configure), E.value = N.runtime ? N.runtime : {});
15
16
  const G = O(B.code, B.version, N.uuid), H = B.entity.data, V = N.code ? N.code : G, U = k(B), z = E && E.events ? E.events : [], q = t([]), J = B.superGridItems, K = J ? J[N.uuid] : null, Q = E.style, W = E.class, X = L.pageContext.entity ? L.pageContext.entity : {};
16
- let Y = D(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
+ let Y = C(L.configure, V), Z = _(B.backendUrl, B.isTest);
17
18
  Z || (Z = window.$vueApp.config.globalProperties.baseURL);
18
19
  const ee = t(false);
19
20
  let te = t(0);
20
- const ne = N.props.dataOrigin.principalLinkage, oe = t({ isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
+ const ne = (_a = N.props) == null ? void 0 : _a.dataOrigin.principalLinkage, oe = t({ title: (N == null ? void 0 : N.title) || null, isSql: true, subTableData: null, rowKeyProp: ne, extraParam: {}, operations: {}, hiddenColumns: [], pageCode: B.code, pageVersion: B.version, pageContext: B, configureObj: N, showPageArea: false, showRowForm: false, showOverflowTooltip: !(!N.props || !N.props.otherSettings || void 0 !== N.props.otherSettings.isBreakLine && false !== N.props.otherSettings.isBreakLine), backendUrl: Z, cellStyleRender: function(e3) {
21
22
  return A(e3, e3.cellStyle, L);
22
23
  }, rowStyleRender: function(e3) {
23
24
  return M(e3, null, L);
@@ -36,7 +37,7 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
36
37
  e4 ? e4.push("operation") : e4 = ["operation"], oe.value.hiddenColumns = e4;
37
38
  }
38
39
  oe.value.showOperationButton = !(!N.props || !N.props.base) && N.props.base.showOperation, oe.value.isPdfEditor = false, oe.value.tableRecordMaxNum = N.props && N.props.otherSettings ? N.props.otherSettings.tableRecordMaxNum : null;
39
- let t2 = C(B, N);
40
+ let t2 = D(B, N);
40
41
  t2 && t2.fixHeight && (oe.value.formSetHeight = t2.fixHeight), t2 && t2.maxHeight && (oe.value.formSetMaxHeight = t2.maxHeight), oe.value.validateEitConditions = Ge;
41
42
  }
42
43
  function re() {
@@ -83,11 +84,11 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
83
84
  const n2 = function() {
84
85
  let e5 = [], t3 = w(L.pageContext, N.props.base.showOperationCondition);
85
86
  if (t3 && Se(null, null, null, null, null, true, "canAdd")) {
86
- const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: we };
87
+ const t4 = { props: { elementType: "el-button", icon: "Plus", type: "primary", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: we };
87
88
  e5.push(t4);
88
89
  }
89
90
  if (t3 && Te(null, null, null, null, null, true)) {
90
- const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: De, isShow: xe };
91
+ const t4 = { props: { elementType: "el-button", icon: "Minus", type: "danger", circle: true, size: "mini", permission: "true" }, onClick: Ce, isShow: xe };
91
92
  e5.push(t4);
92
93
  }
93
94
  return I(B, N, e5, me), e5;
@@ -177,10 +178,10 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
177
178
  let i2 = Te(0, 0, n2, 0, 0, a2);
178
179
  return true === i2 && (i2 = w(L.pageContext, N.props.base.showDeleteBtnCondition, n2)), i2;
179
180
  }
180
- function Ce(e3, t2, n2, o2, l2) {
181
+ function De(e3, t2, n2, o2, l2) {
181
182
  ae.value.createRow(G, {}, { getDefaultValueFunc: y }, { originalValue: e3, formatValue: t2, row: n2, column: o2, rowIndex: l2 });
182
183
  }
183
- function De(e3, t2, n2, o2, l2) {
184
+ function Ce(e3, t2, n2, o2, l2) {
184
185
  ae.value.deleteRow(l2, G, false);
185
186
  }
186
187
  function ye(e3) {
@@ -279,20 +280,20 @@ const $ = e({ __name: "sub-table-runtime", props: { pageContext: {}, configure:
279
280
  }, getSuperGridTableRef: function() {
280
281
  return ae.value.getSuperGridTableRef();
281
282
  }, setCurrentRowIndex: function(e3) {
282
- var _a;
283
- (_a = ae.value) == null ? void 0 : _a.setCurrentRowIndex(e3);
283
+ var _a2;
284
+ (_a2 = ae.value) == null ? void 0 : _a2.setCurrentRowIndex(e3);
284
285
  }, setScrollTopByRowIndex: function(e3) {
285
- var _a;
286
- (_a = ae.value) == null ? void 0 : _a.setScrollTopByRowIndex(e3);
286
+ var _a2;
287
+ (_a2 = ae.value) == null ? void 0 : _a2.setScrollTopByRowIndex(e3);
287
288
  }, getTableData: function() {
288
- var _a;
289
- return (_a = ae.value) == null ? void 0 : _a.getTableData();
289
+ var _a2;
290
+ return (_a2 = ae.value) == null ? void 0 : _a2.getTableData();
290
291
  }, addRequiredClass: function(e3, t2, n2) {
291
- var _a;
292
- (_a = ae.value) == null ? void 0 : _a.addRequiredClass(e3, G, t2, n2);
292
+ var _a2;
293
+ (_a2 = ae.value) == null ? void 0 : _a2.addRequiredClass(e3, G, t2, n2);
293
294
  } }), (e3, t2) => {
294
295
  const n2 = l("super-grid");
295
- return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "onNewOpenGridDialog"])) : r("", true)]);
296
+ return i(), a("div", null, [ee.value ? (i(), u(n2, { key: 0, ref_key: "gridRef", ref: ae, url: s(Z) + "/dsc/commons/sub-table", options: oe.value, code: s(G), settings: s(K), isDialog: s(B).isDialog, onSelect: _e, onSelectAll: ke, onSelectionChange: Me, onCellClick: Ae, onCellDblclick: Fe, onRowClick: $e, onRowDblclick: je, onHeaderClick: Le, onFnProhibitToEdit: Ie, onChangeGridData: ye, onReloadGrid: fe, onRefresMainTableFields: Oe, onSetSelectOptions: Re, onChangeRowsPerPage: Pe, onNewOpenGridDialog: s(R), onChangeFormData: Be }, null, 8, ["url", "options", "code", "settings", "isDialog", "onNewOpenGridDialog"])) : r("", true)]);
296
297
  };
297
298
  } });
298
299
  export {
@@ -1,31 +1,42 @@
1
1
  import { defineComponent as e, ref as a, onMounted as l, nextTick as t, computed as o, resolveComponent as u, createBlock as r, openBlock as n, normalizeStyle as i, normalizeClass as p, unref as s, withCtx as c, createElementBlock as d, createCommentVNode as v, Fragment as f, createTextVNode as g, toDisplayString as m } from "vue";
2
2
  import { getFormModelFields as h } from "../../../../utils/page-init-util.js";
3
3
  import { getDateShortCuts as y } from "../../../../utils/form/date-shortcuts.js";
4
- import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as F, isDateDataType as k } from "../../../../utils/page-helper-util.js";
4
+ import { getModelFieldFromPageContext as C, getValueFromVariable as x, setVariableValue as b, getVariableValue as k, isDateDataType as F } from "../../../../utils/page-helper-util.js";
5
5
  import { handleAfterInitEvent as T, getCustomFunc as V, handleFormEvent as j } from "../../../../utils/events/event-util.js";
6
6
  import R from "../common/title-suffix-element.vue.js";
7
7
  import Y from "dayjs";
8
8
  import { $t as _ } from "../../../../utils/i18n-util.js";
9
9
  import { addRequiredClassUtil as z } from "../../../../utils/common-util.js";
10
- const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: P2 }) {
11
- const S = e2, w = a(null), q = S.pageContext.entity ? S.pageContext.entity : {}, A = S.configure.runtime ? S.configure.runtime : {}, D = A.style, I = A.class, M = A.headerStyle, B = A.titleExceedStyle, N = a(A.props ? A.props : {});
12
- let U = h(S.pageContext, S.configure, N.value.prop);
13
- if (S.pageContext.modelFieldsMap && U && U.length > 0 && "data" === U[0]) {
14
- const e3 = C(U, S.pageContext);
10
+ const D = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure: {} }, setup(e2, { expose: D2 }) {
11
+ var _a;
12
+ const P = e2, S = a(null), w = P.pageContext.entity ? P.pageContext.entity : {}, q = P.configure.runtime ? P.configure.runtime : {}, A = q.style, I = q.class, M = q.headerStyle, B = q.titleExceedStyle, N = a(q.props ? q.props : {});
13
+ let U = h(P.pageContext, P.configure, N.value.prop);
14
+ if (P.pageContext.modelFieldsMap && U && U.length > 0 && "data" === U[0]) {
15
+ const e3 = C(U, P.pageContext);
15
16
  e3 && function(e4) {
16
17
  const a2 = e4.dataType;
17
- k(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
18
+ F(a2) && ("year" === N.value.dateType && "YYYY" === N.value.valueFormat || "month" === N.value.dateType && "YYYY-MM" === N.value.valueFormat) && (N.value.valueFormat = "x");
18
19
  }(e3);
19
20
  }
20
21
  let W = null, $ = false;
21
22
  if (N.value.dateType && N.value.dateType.includes("range")) {
22
23
  $ = true;
23
24
  let e3 = N.value.prop2;
24
- e3 && e3.startsWith("${") || (e3 = "${page." + S.configure.uuid + "-2}");
25
- const a2 = x(q, e3, null);
26
- if (e3 = e3.substring(2, e3.length - 1), W = e3.split("."), !(a2 || q.data && (q.data.id || q.data.ID)) && N.value.defaultValue2) {
27
- const e4 = x(q, N.value.defaultValue2);
28
- b(q, W, e4);
25
+ e3 && e3.startsWith("${") || (e3 = "${page." + P.configure.uuid + "-2}");
26
+ const a2 = x(w, e3, null);
27
+ if (e3 = e3.substring(2, e3.length - 1), W = e3.split("."), !(a2 || w.data && (w.data.id || w.data.ID)) && N.value.defaultValue2) {
28
+ const e4 = x(w, N.value.defaultValue2);
29
+ if (null != e4 && "" !== e4) b(w, W, e4);
30
+ else if (((_a = N.value.moreDefaultValue2) == null ? void 0 : _a.length) > 0) {
31
+ const e5 = N.value.moreDefaultValue2;
32
+ for (let a3 = 0; a3 < e5.length; a3++) {
33
+ const l2 = x(w, e5[a3]);
34
+ if (null != l2 && "" !== l2) {
35
+ b(w, W, l2);
36
+ break;
37
+ }
38
+ }
39
+ }
29
40
  }
30
41
  }
31
42
  const E = a(null), O = a(null), G = a(null);
@@ -46,45 +57,45 @@ const P = e({ __name: "datepicker-runtime", props: { pageContext: {}, configure:
46
57
  if (l(() => {
47
58
  t(() => {
48
59
  const e3 = J.value;
49
- T(e3, S.pageContext, S.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: S.pageContext.entity.data, pageData: S.pageContext.entity.page });
60
+ T(e3, P.pageContext, P.configure, { formItemRef: E.value, componentRef: O.value, titleRef: G.value, value: e3, entity: P.pageContext.entity.data, pageData: P.pageContext.entity.page });
50
61
  });
51
62
  }), U) {
52
- const e3 = F(q, U), a2 = H(e3, N.value.valueFormat);
53
- e3 !== a2 && b(q, U, a2);
63
+ const e3 = k(w, U), a2 = H(e3, N.value.valueFormat);
64
+ e3 !== a2 && b(w, U, a2);
54
65
  }
55
66
  if (W) {
56
- const e3 = F(q, W), a2 = H(e3, N.value.valueFormat);
57
- e3 !== a2 && b(q, W, a2);
67
+ const e3 = k(w, W), a2 = H(e3, N.value.valueFormat);
68
+ e3 !== a2 && b(w, W, a2);
58
69
  }
59
70
  const J = o({ get() {
60
71
  if ($) {
61
72
  const e3 = [];
62
- let a2 = F(q, U);
73
+ let a2 = k(w, U);
63
74
  e3.push(H(a2, N.value.valueFormat));
64
- let l2 = F(q, W);
75
+ let l2 = k(w, W);
65
76
  return e3.push(H(l2, N.value.valueFormat)), e3;
66
77
  }
67
- return H(F(q, U), N.value.valueFormat);
78
+ return H(k(w, U), N.value.valueFormat);
68
79
  }, set(e3) {
69
- $ ? Array.isArray(e3) ? (b(q, U, e3[0]), b(q, W, e3[1]), w.value = "") : null === e3 && (b(q, U, null), b(q, W, null)) : (b(q, U, e3), null != e3 && (w.value = ""));
80
+ $ ? Array.isArray(e3) ? (b(w, U, e3[0]), b(w, W, e3[1]), S.value = "") : null === e3 && (b(w, U, null), b(w, W, null)) : (b(w, U, e3), null != e3 && (S.value = ""));
70
81
  } }), K = a(y(N.value.dateScopeDetails, N.value.sourceType, N.value.dateType));
71
82
  if (N.value.shortcutsFunc) {
72
- const e3 = V(S.pageContext, N.value.shortcutsFunc);
83
+ const e3 = V(P.pageContext, N.value.shortcutsFunc);
73
84
  if (e3) {
74
- let a2 = e3.apply(e3, [{ pageContext: S.pageContext, configureObj: S.configure }]);
85
+ let a2 = e3.apply(e3, [{ pageContext: P.pageContext, configureObj: P.configure }]);
75
86
  if (a2) {
76
87
  Array.isArray(a2) || (a2 = [a2]), K.value || (K.value = []);
77
88
  for (let e4 of a2) e4.text && e4.value && K.value.push(e4);
78
89
  }
79
90
  }
80
91
  }
81
- return P2({ addRequiredClass: function() {
82
- w.value = z();
92
+ return D2({ addRequiredClass: function() {
93
+ S.value = z();
83
94
  } }), (e3, a2) => {
84
95
  const l2 = u("el-time-picker"), t2 = u("el-date-picker"), o2 = u("el-form-item");
85
- return n(), r(o2, { ref_key: "formItemRef", ref: E, required: N.value.required, class: p(s(I) + (w.value ? " " + w.value : "")), "label-width": N.value.labelWidth, style: i(s(D)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(M), ...s(B) }) }, [N.value.prefixType ? (n(), r(R, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), r(t2, { key: 1, ref_key: "componentRef", ref: O, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
96
+ return n(), r(o2, { ref_key: "formItemRef", ref: E, required: N.value.required, class: p(s(I) + (S.value ? " " + S.value : "")), "label-width": N.value.labelWidth, style: i(s(A)) }, { label: c(() => [N.value.tittleShow ? (n(), d("div", { key: 0, ref_key: "titleRef", ref: G, style: i({ ...s(M), ...s(B) }) }, [N.value.prefixType ? (n(), r(R, { key: 0, pageContext: e3.pageContext, property: N.value }, null, 8, ["pageContext", "property"])) : (n(), d(f, { key: 1 }, [g(m(s(_)(N.value.title)), 1)], 64))], 4)) : v("", true)]), default: c(() => ["time" == N.value.dateType || "timerange" == N.value.dateType ? (n(), r(l2, { key: 0, ref_key: "componentRef", ref: O, "is-range": "timerange" == N.value.dateType, style: { width: "100%" }, "range-separator": "-", clearable: N.value.clearable, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, "unlink-panels": true, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[0] || (a2[0] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[1] || (a2[1] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[2] || (a2[2] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[3] || (a2[3] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[4] || (a2[4] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[5] || (a2[5] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[6] || (a2[6] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["is-range", "clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"])) : (n(), r(t2, { key: 1, ref_key: "componentRef", ref: O, clearable: N.value.clearable, style: { width: "100%" }, "unlink-panels": true, disabled: "disabled" === N.value.state, readonly: "readonly" === N.value.state, size: N.value.size, placeholder: N.value.placeholder, "start-placeholder": N.value.placeholder, "end-placeholder": N.value.endPlaceholder ? N.value.endPlaceholder : N.value.placeholder, format: N.value.format, "value-format": N.value.valueFormat, modelValue: J.value, "onUpdate:modelValue": a2[7] || (a2[7] = (e4) => J.value = e4), shortcuts: K.value, type: N.value.dateType, onChange: a2[8] || (a2[8] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "change")), onBlur: a2[9] || (a2[9] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "blur")), onFocus: a2[10] || (a2[10] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "focus")), onVisibleChange: a2[11] || (a2[11] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "visible-change")), onPanelChange: a2[12] || (a2[12] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "panel-change")), onClear: a2[13] || (a2[13] = (a3) => s(j)(a3, e3.pageContext, e3.configure, "clear")) }, null, 8, ["clearable", "disabled", "readonly", "size", "placeholder", "start-placeholder", "end-placeholder", "format", "value-format", "modelValue", "shortcuts", "type"]))]), _: 1 }, 8, ["required", "class", "label-width", "style"]);
86
97
  };
87
98
  } });
88
99
  export {
89
- P as default
100
+ D as default
90
101
  };
@@ -1,22 +1,22 @@
1
- import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as l, createBlock as p, openBlock as a, resolveDynamicComponent as c, normalizeClass as g, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
1
+ import { defineComponent as e, ref as o, computed as t, markRaw as n, onMounted as i, onUnmounted as s, withDirectives as r, createCommentVNode as u, unref as p, createBlock as l, openBlock as a, resolveDynamicComponent as g, normalizeClass as c, normalizeStyle as f, vShow as m, nextTick as d } from "vue";
2
2
  import C from "./error-render.vue.js";
3
3
  import { getRuntimeComponentByName as v } from "../../utils/assemblys-config.js";
4
4
  import { PageDimensions as b } from "../../utils/interfaces/page-design-types.js";
5
5
  import { addComponentRef as x, addComponentRefByCode as h } from "../../utils/global-refs.js";
6
6
  import { getPermissionCodes as y, packageFormRules as j, controlObjectRenderState as w } from "../../utils/page-init-util.js";
7
- import { caculateShowCondition as N, getFormPropName as _, getSizeConfig as P } from "../../utils/page-helper-util.js";
8
- import { isWorkflowPage as L, getPropClassName as O, isNumber as S } from "../../utils/common-util.js";
9
- import { isShowMobileEvent as H, isShowComponent as T } from "../../utils/events/event-util.js";
10
- import { usePageContextStore as $ } from "../../utils/page-store.js";
11
- import { isHasFieldAuth as F } from "../../utils/table-utils.js";
12
- import { checkPermission as M } from "agilebuilder-ui/src/utils/permission.js";
7
+ import { caculateShowCondition as N, getFormPropName as T, getSizeConfig as _ } from "../../utils/page-helper-util.js";
8
+ import { isWorkflowPage as M, getPropClassName as P, isNumber as L } from "../../utils/common-util.js";
9
+ import { isShowMobileEvent as O, isShowComponent as S } from "../../utils/events/event-util.js";
10
+ import { usePageContextStore as H } from "../../utils/page-store.js";
11
+ import { isHasFieldAuth as $ } from "../../utils/table-utils.js";
12
+ import { checkPermission as F } from "agilebuilder-ui/src/utils/permission.js";
13
13
  const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }, setup(e2) {
14
14
  var _a, _b;
15
15
  const k2 = e2;
16
16
  null == k2.configure.style && (k2.configure.style = {});
17
17
  const A = y(k2.configure, k2.pageContext);
18
18
  k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.functionCode = A);
19
- const B = M(A || "true", k2.pageContext.systemCode), E = F(k2.pageContext, k2.configure), J = B && E;
19
+ const B = F(A || "true", k2.pageContext.systemCode), E = $(k2.pageContext, k2.configure), J = B && E;
20
20
  k2.configure && k2.configure.props && k2.configure.props.base && (k2.configure.props.base.isHasFieldAuthPermission = J), j(k2.pageContext, k2.configure, J);
21
21
  let R = o(null), W = o(true), q = o("");
22
22
  if (k2.configure && k2.configure.props) {
@@ -25,7 +25,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
25
25
  var _a2;
26
26
  let o2 = true;
27
27
  if (J) if (R.value && null !== R.value) o2 = "show" === R.value;
28
- else if (H(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = N(k2.pageContext, e3);
28
+ else if (O(k2.pageContext, k2.configure)) if (e3 && e3.length > 0) o2 = N(k2.pageContext, e3);
29
29
  else {
30
30
  const e4 = (_a2 = k2.configure.props.base) == null ? void 0 : _a2.state;
31
31
  e4 && "hidden" === e4 && (o2 = false);
@@ -38,11 +38,11 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
38
38
  const e4 = k2.configure.props.base.editConditions;
39
39
  if (e4.length > 0) {
40
40
  const o2 = k2.configure.runtime ? k2.configure.runtime : {}, n2 = o2.props ? o2.props : {};
41
- if (n2.rawSate = n2.state, L(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
41
+ if (n2.rawSate = n2.state, M(k2.pageContext) && k2.pageContext.fieldPermissionMap) {
42
42
  const e5 = k2.configure.props.base;
43
43
  if (e5 && e5.prop) {
44
44
  let o3 = e5.prop;
45
- o3 = _(o3);
45
+ o3 = T(o3);
46
46
  const t2 = k2.pageContext.fieldPermissionMap.get(o3);
47
47
  t2 && false === t2.canEdit && (q.value = "disabled");
48
48
  }
@@ -59,7 +59,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
59
59
  z.value = n(v(k2.configure.name));
60
60
  const D = o(true);
61
61
  null == z.value && (z.value = C, D.value = false);
62
- const G = o(null), I = o({}), K = o(""), Q = O(k2.configure);
62
+ const G = o(null), I = o({}), K = o(""), Q = P(k2.configure);
63
63
  Q && (K.value = Q);
64
64
  const U = k2.configure.runtime && k2.configure.runtime.common ? k2.configure.runtime.common : {};
65
65
  if (U.class && (K.value += " " + U.class), U.style) {
@@ -69,7 +69,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
69
69
  const t2 = U.style[e3 + "_class"];
70
70
  t2 && (K.value += " " + t2);
71
71
  }
72
- const V = $();
72
+ const V = H();
73
73
  function X(e3) {
74
74
  if (G.value = e3, e3 && !e3.show && (e3.show = function() {
75
75
  R.value = "show";
@@ -89,11 +89,11 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
89
89
  const o2 = k2.configure.props ? k2.configure.props.base : null;
90
90
  if (o2 && o2.prop) {
91
91
  let e4 = o2.prop;
92
- e4 = _(e4), w(k2.pageContext, e4);
92
+ e4 = T(e4), w(k2.pageContext, e4), k2.pageContext.propTitleMap = k2.pageContext.propTitleMap || {}, k2.pageContext.propTitleMap[e4] = o2.title ? o2.title : e4;
93
93
  }
94
94
  !function() {
95
95
  if (!G.value) return;
96
- const e4 = P(k2.pageContext, k2.configure);
96
+ const e4 = _(k2.pageContext, k2.configure);
97
97
  "table" !== k2.configure.name && e4 && e4.isCalcHeight && d(() => {
98
98
  let e5 = G.value.$el;
99
99
  e5 || (e5 = G.value);
@@ -101,7 +101,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
101
101
  if (!e5 || !o3) return;
102
102
  const t2 = e5.getBoundingClientRect();
103
103
  let n2 = window.innerHeight - t2.y - 80, i2 = n2 + "";
104
- S(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
104
+ L(n2) && (i2 = n2 + "px"), I.value.height = i2, I.value["overflow-y"] = "auto", I.value["overflow-x"] = "hidden", k2.configure.sytle || (k2.configure.sytle = {}), k2.configure.sytle._heightStyle = i2;
105
105
  });
106
106
  }();
107
107
  }
@@ -122,7 +122,7 @@ const k = e({ __name: "object-render", props: { pageContext: {}, configure: {} }
122
122
  const t2 = k2.configure.props ? k2.configure.props : {}, n2 = k2.configure.style ? k2.configure.style : {}, i2 = t2.position;
123
123
  "top" == i2 || "bottom" == i2 || n2.position;
124
124
  };
125
- return (e3, o2) => l(J) && l(T)(e3.configure) ? r((a(), p(c(z.value), { key: 0, ref: X, style: f(I.value), class: g(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, l(W)]]) : u("", true);
125
+ return (e3, o2) => p(J) && p(S)(e3.configure) ? r((a(), l(g(z.value), { key: 0, ref: X, style: f(I.value), class: c(K.value), configure: e3.configure, pageContext: e3.pageContext }, null, 8, ["style", "class", "configure", "pageContext"])), [[m, p(W)]]) : u("", true);
126
126
  } });
127
127
  export {
128
128
  k as default
@@ -0,0 +1,7 @@
1
+ import r from "./extract-workflow-runtime.vue2.js";
2
+ /* empty css */
3
+ import t from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
+ const e = t(r, [["__scopeId", "data-v-074ae461"]]);
5
+ export {
6
+ e as default
7
+ };