super-page-runtime 2.2.17 → 2.2.19

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.
@@ -1,7 +1,7 @@
1
1
  import e from "./common-homepage-search.vue2.js";
2
2
  /* empty css */
3
3
  import o from "../../../../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = o(e, [["__scopeId", "data-v-ebee0fff"]]);
4
+ const m = o(e, [["__scopeId", "data-v-ec2b8a28"]]);
5
5
  export {
6
6
  m as default
7
7
  };
@@ -43,7 +43,7 @@ const S = { class: "dialog-footer" }, O = e({ __name: "common-homepage-search",
43
43
  });
44
44
  let t2 = window.localStorage.getItem("HOME_MY_CHARTS_CONDITIONS"), i2 = {};
45
45
  t2 && (i2 = JSON.parse(t2)), i2[b.configure.homeChartSettingUserId] = e3;
46
- const o2 = JSON.stringify(i2);
46
+ const o2 = JSON.stringify(e3);
47
47
  window.localStorage.setItem("HOME_MY_CHARTS_CONDITIONS", JSON.stringify(i2)), N.value = JSON.parse(JSON.stringify(b.pageContext.entity)), y.post(window.$vueApp.config.globalProperties.baseAPI + "/component/home-chart-settings/search-conditions", { id: b.configure.homeChartSettingUserId, searchConditionsJson: o2 }).then((e4) => {
48
48
  h.success("保存成功");
49
49
  });
@@ -2,35 +2,41 @@ import { defineComponent as e, ref as t, resolveDirective as a, withDirectives a
2
2
  import { deepCopy as m } from "../utils/common-util.js";
3
3
  import u from "./assemblys/home-chart-render.vue.js";
4
4
  import h from "agilebuilder-ui/src/utils/request";
5
- import { updateOptionDatasources as g, updateChartDatasources as p } from "../utils/page-helper-util.js";
6
- import { initPageEvents as d } from "../utils/events/event-util.js";
7
- import { setHomeChartInitConfigValue as c } from "../utils/charts/chart-util.js";
8
- const f = { "element-loading-text": "加载中..." }, v = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
9
- const v2 = e2, C = t(true), y = t(false), b = t({});
10
- let S = t(null);
11
- return v2.chartCode && h.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + v2.chartCode).then((e3) => {
5
+ import { updateOptionDatasources as g, updateChartDatasources as d } from "../utils/page-helper-util.js";
6
+ import { initPageEvents as c } from "../utils/events/event-util.js";
7
+ import { setHomeChartInitConfigValue as p } from "../utils/charts/chart-util.js";
8
+ const f = { "element-loading-text": "加载中..." }, C = e({ name: "HomeChart", inheritAttrs: false, __name: "home-chart", props: { chartCode: { type: String, default: "" }, homeChartSettingUserId: { type: Number, default: 0 } }, setup(e2) {
9
+ const C2 = e2, v = t(true), y = t(false), S = t({});
10
+ let b = t(null);
11
+ return C2.chartCode && h.get(window.$vueApp.config.globalProperties.baseAPI + "/mms/home-chart-layout/" + C2.chartCode).then((e3) => {
12
12
  if (e3 && e3.designJson) {
13
- const t2 = JSON.parse(e3.designJson), a2 = window.frameElement;
14
- b.value = t2.chartJson, b.value.homeChartSettingUserId = v2.homeChartSettingUserId, a2 && (b.value.runtime.common.style.pc_style.height = a2.clientHeight + "px");
15
- const i2 = { showHomepageSearch: true, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
13
+ const t2 = JSON.parse(e3.designJson);
14
+ let a2 = window.localStorage.getItem("HOME_MY_CHARTS_ALIAS");
15
+ if (a2) {
16
+ const e4 = JSON.parse(a2);
17
+ e4[C2.homeChartSettingUserId] && (t2.chartJson.runtime.headerInfo ? t2.chartJson.runtime.headerInfo.title = e4[C2.homeChartSettingUserId] : t2.chartJson.runtime.headerInfo = { textAlign: "center", title: e4[C2.homeChartSettingUserId] });
18
+ }
19
+ const i2 = window.frameElement;
20
+ S.value = t2.chartJson, S.value.homeChartSettingUserId = C2.homeChartSettingUserId, i2 && (S.value.runtime.common.style.pc_style.height = i2.clientHeight + "px");
21
+ const n2 = { showHomepageSearch: true, name: e3.pageName, code: e3.pageCode, label: "", dimensions: "", version: 1, isWorkflowEntity: false, variables: t2.variables, systemCode: e3.systemCode, uuid: e3.uuid, allChartUuids: [], backendUrl: e3.backendUrl, rules: {}, pageType: "chart", beanName: t2.beanName, initChartServiceConfigs: [t2.initChartServiceConfigs], entity: { data: {}, task: {}, request: {}, page: {}, context: e3.contextParam, system: e3.systemParam } };
16
22
  if (t2.variables) {
17
- const e4 = i2.entity.page;
23
+ const e4 = n2.entity.page;
18
24
  for (const a3 of t2.variables) a3.name && (a3.isArrayElement ? e4[a3.name] = [] : a3.defaultValue ? e4[a3.name] = a3.defaultValue : e4[a3.name] = void 0);
19
25
  }
20
- t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(i2, t2.initOptionConfigs, void 0), c(b.value.pushHomepage.initConfig, i2, v2.homeChartSettingUserId), d(t2, i2), S.value = i2, setTimeout(() => {
26
+ t2.initOptionConfigs && t2.initOptionConfigs.length > 0 && g(n2, t2.initOptionConfigs, void 0), p(S.value.pushHomepage.initConfig, n2, C2.homeChartSettingUserId), c(t2, n2), b.value = n2, setTimeout(() => {
21
27
  !function(e4, t3) {
22
28
  if (!t3 || 0 == t3.length) return;
23
- e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 && p(e4, t3, null, true);
24
- }(S.value, [t2.initChartServiceConfigs]);
29
+ e4.initChartData = {}, e4.initChartData.data = m(e4.entity.data), e4.initChartData.page = m(e4.entity.page), t3 && t3.length > 0 && d(e4, t3, null, true);
30
+ }(b.value, [t2.initChartServiceConfigs]);
25
31
  }, 200);
26
32
  } else y.value = true;
27
33
  }).finally(() => {
28
- C.value = false;
34
+ v.value = false;
29
35
  }), (e3, t2) => {
30
36
  const m2 = a("loading");
31
- return i((r(), n("div", f, [C.value ? s("", true) : (r(), o(u, { key: 0, configure: b.value, pageContext: l(S) }, null, 8, ["configure", "pageContext"]))])), [[m2, C.value]]);
37
+ return i((r(), n("div", f, [v.value ? s("", true) : (r(), o(u, { key: 0, configure: S.value, pageContext: l(b) }, null, 8, ["configure", "pageContext"]))])), [[m2, v.value]]);
32
38
  };
33
39
  } });
34
40
  export {
35
- v as default
41
+ C as default
36
42
  };
package/dist/es/style.css CHANGED
@@ -1,6 +1,6 @@
1
1
  .el-form-item[data-v-96fc65d8] {
2
2
  margin-bottom: 0px;
3
3
  }
4
- [data-v-ebee0fff] .el-empty {
4
+ [data-v-ec2b8a28] .el-empty {
5
5
  padding: 0;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.2.17",
3
+ "version": "2.2.19",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",