super-page-runtime 2.1.60 → 2.1.62

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.
@@ -744,7 +744,11 @@ function dealAfterWithList(pageContext, configureObj, row, successTip) {
744
744
  }
745
745
  }
746
746
  function refreshFormOrListPage(pageContext, configureObj, isRefreshWhenClosePopup) {
747
- let successOperation = isRefreshWhenClosePopup ? "refresh" : configureObj.props.base.successOperation;
747
+ var _a;
748
+ if (configureObj && !configureObj.props.base) {
749
+ configureObj.props.base = {};
750
+ }
751
+ let successOperation = isRefreshWhenClosePopup ? "refresh" : (_a = configureObj.props.base) == null ? void 0 : _a.successOperation;
748
752
  console.log(
749
753
  "refreshFormOrListPage22=====successOperation=",
750
754
  successOperation,
@@ -1391,7 +1395,7 @@ function submitProcessFunc(params) {
1391
1395
  });
1392
1396
  }
1393
1397
  async function completeTaskFunc(params, operationResult) {
1394
- let validateOpinionResult = await validateOpinion(params);
1398
+ const validateOpinionResult = await validateOpinion(params);
1395
1399
  return new Promise((resolve, reject) => {
1396
1400
  var _a;
1397
1401
  if (validateOpinionResult) {
@@ -10,7 +10,7 @@ function popupToPage(params) {
10
10
  eventBus.$emit(pageCode + "_open-dialog", params);
11
11
  }
12
12
  function getTableNameByTableUuid(pageContext, tableUuid) {
13
- let tableName = pageContext.tableName;
13
+ const tableName = pageContext.tableName;
14
14
  if (!tableUuid && tableName) {
15
15
  return tableName;
16
16
  }
@@ -42,7 +42,6 @@ function getOperationButtons(pageContext, configure, operations, clickEventFunc)
42
42
  myButtonProps.label = myButtonProps.title;
43
43
  myButtonProps.sourceButton = { uuid: buttonConfigure.uuid };
44
44
  myButtonSet["props"] = myButtonProps;
45
- debugger;
46
45
  if (clickEventFunc !== void 0) {
47
46
  myButtonSet["onClick"] = clickEventFunc(buttonConfigure);
48
47
  } else {
@@ -95,7 +95,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  if (!linkConfigure) {
96
96
  return;
97
97
  }
98
- doClickJumpPageEvent(props.pageContext, linkConfigure, void 0);
98
+ const params = {
99
+ data: clickParams.data,
100
+ dataIndex: clickParams.dataIndex,
101
+ name: clickParams.name,
102
+ seriesId: clickParams.seriesId,
103
+ seriesIndex: clickParams.seriesIndex,
104
+ seriesName: clickParams.seriesName,
105
+ seriesType: clickParams.seriesType,
106
+ value: clickParams.value
107
+ };
108
+ doClickJumpPageEvent(props.pageContext, linkConfigure, params);
99
109
  }
100
110
  let hisGroupValue = headerInfo.groupValue;
101
111
  watch(headerInfo, () => {
@@ -4,7 +4,7 @@ import eventBus from "../../../../utils/eventBus.js";
4
4
  import { ExpressionEvaluator } from "./chart-table-util.js";
5
5
  const _hoisted_1 = { key: 0 };
6
6
  const _hoisted_2 = { key: 1 };
7
- const _hoisted_3 = { key: 3 };
7
+ const _hoisted_3 = { key: 1 };
8
8
  const _hoisted_4 = { key: 2 };
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "normal-column",
@@ -223,7 +223,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
223
223
  class: normalizeClass(__props.column.props.format.icon)
224
224
  }, null, 2)) : createCommentVNode("", true)
225
225
  ]))
226
- ], 64)) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(formatContent(scope.row, __props.column.props.format)), 1))
226
+ ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 3 }, [
227
+ resloveLinkText.value && showLink(scope.row) ? (openBlock(), createBlock(_component_el_link, {
228
+ key: 0,
229
+ type: "primary",
230
+ onClick: ($event) => clickLink(scope.row)
231
+ }, {
232
+ default: withCtx(() => [
233
+ createTextVNode(toDisplayString(formatContent(scope.row, __props.column.props.format)), 1)
234
+ ]),
235
+ _: 2
236
+ }, 1032, ["onClick"])) : (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(formatContent(scope.row, __props.column.props.format)), 1))
237
+ ], 64))
227
238
  ], 64)) : resloveLinkText.value && showLink(scope.row) ? (openBlock(), createBlock(_component_el_link, {
228
239
  key: 1,
229
240
  type: "primary",
@@ -464,8 +464,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
464
464
  }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(tableColumnsConfig.value, (column, index) => {
465
465
  return openBlock(), createBlock(_sfc_main$3, {
466
466
  key: index,
467
- column
468
- }, null, 8, ["column"]);
467
+ column,
468
+ configure: __props.configure,
469
+ pageContext: __props.pageContext
470
+ }, null, 8, ["column", "configure", "pageContext"]);
469
471
  }), 128))
470
472
  ]),
471
473
  _: 1
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList } from "vue";
1
+ import { defineComponent, computed, ref, watch, onMounted, nextTick, resolveComponent, openBlock, createBlock, normalizeClass, unref, normalizeStyle, withCtx, createElementBlock, toDisplayString, createCommentVNode, createVNode, Fragment, renderList, createTextVNode } from "vue";
2
2
  import { getVariableValue, setVariableValue, getOptionDatasFromPage, autoSetAfterSelect, queryOptionDatasources } from "../../../../utils/page-helper-util.js";
3
3
  import { getFormModelFields } from "../../../../utils/page-init-util.js";
4
4
  import { handleFormEvent, handleAfterInitEvent } from "../../../../utils/events/event-util.js";
@@ -123,19 +123,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
123
  onMounted(() => {
124
124
  nextTick(() => {
125
125
  const value = dynamicModelMethod.value;
126
- handleAfterInitEvent(
126
+ handleAfterInitEvent(value, props.pageContext, props.configure, {
127
+ formItemRef: formItemRef.value,
128
+ componentRef: componentRef.value,
129
+ titleRef: titleRef.value,
127
130
  value,
128
- props.pageContext,
129
- props.configure,
130
- {
131
- formItemRef: formItemRef.value,
132
- componentRef: componentRef.value,
133
- titleRef: titleRef.value,
134
- value,
135
- entity: props.pageContext.entity.data,
136
- pageData: props.pageContext.entity.page
137
- }
138
- );
131
+ entity: props.pageContext.entity.data,
132
+ pageData: props.pageContext.entity.page
133
+ });
139
134
  });
140
135
  });
141
136
  __expose({
@@ -175,12 +170,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
175
170
  (openBlock(true), createElementBlock(Fragment, null, renderList(listOptions.value, (item) => {
176
171
  return openBlock(), createBlock(_component_el_radio, {
177
172
  key: item.value,
178
- value: item.value,
179
- label: item.label,
173
+ label: item.value,
180
174
  onClick: ($event) => unref(handleFormEvent)(item.value, _ctx.pageContext, _ctx.configure, "click", {
181
175
  values: dynamicModelMethod.value
182
176
  })
183
- }, null, 8, ["value", "label", "onClick"]);
177
+ }, {
178
+ default: withCtx(() => [
179
+ createTextVNode(toDisplayString(item.label), 1)
180
+ ]),
181
+ _: 2
182
+ }, 1032, ["label", "onClick"]);
184
183
  }), 128))
185
184
  ]),
186
185
  _: 1
@@ -452,7 +452,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
452
452
  const loginName = getUsername();
453
453
  return new Promise((resolve, reject) => {
454
454
  if (loginName) {
455
- debugger;
456
455
  if ((jumpMode === "popup" || isMobile) && parentPageContext.value.systemCode !== popPageSetting.customSystem) {
457
456
  const systemCode = popPageSetting.customSystem;
458
457
  imatrixUiStore.dispatch("getCurrentUserPermissions", { loginName, systemCode }).then(() => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "super-page-runtime",
3
- "version": "2.1.60",
3
+ "version": "2.1.62",
4
4
  "description": "AgileBuilder super page runtime",
5
5
  "license": "ISC",
6
6
  "main": "dist/es/index.js",