super-page-runtime 2.1.89 → 2.1.92
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.
- package/dist/es/components/runtime/utils/api/page-expose-util.js +2 -4
- package/dist/es/components/runtime/utils/page-helper-util.js +5 -9
- package/dist/es/components/runtime/views/assemblys/chart/table/table-runtime.vue2.js +3 -1
- package/dist/es/components/runtime/views/assemblys/form/rich-text/richtext-runtime.vue2.js +3 -4
- package/package.json +1 -1
|
@@ -219,10 +219,8 @@ const functions = {
|
|
|
219
219
|
if (!params.taskParamMap) {
|
|
220
220
|
params.taskParamMap = pageContext.entity.task;
|
|
221
221
|
}
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
225
|
-
}
|
|
222
|
+
const backendUrl = pageContext.backendUrl;
|
|
223
|
+
const baseUrl = getBaseUrl(backendUrl, pageContext.isTest);
|
|
226
224
|
return http.post(`${baseUrl}/dsc/service-flow/execute/${pageCode}/${flowCode}`, params);
|
|
227
225
|
},
|
|
228
226
|
openPage: function(pageContext, openParam) {
|
|
@@ -3,7 +3,7 @@ import dayjs from "dayjs";
|
|
|
3
3
|
import { executeExpression } from "agilebuilder-ui/src/utils/calculator/calculator-util";
|
|
4
4
|
import { getComponentRef } from "./global-refs.js";
|
|
5
5
|
import { watch } from "vue";
|
|
6
|
-
import { deepCopy } from "./common-util.js";
|
|
6
|
+
import { deepCopy, getBaseUrl } from "./common-util.js";
|
|
7
7
|
function getComponentOptionConfigs(component, pageContext2) {
|
|
8
8
|
if (!component.props || !component.props.dataOrigin) {
|
|
9
9
|
return;
|
|
@@ -181,10 +181,8 @@ function updateChartDatasources(pageContext2, dataSourceConfs, appendParams, isI
|
|
|
181
181
|
systemCode: pageContext2.systemCode,
|
|
182
182
|
pageCode: pageContext2.code
|
|
183
183
|
};
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
187
|
-
}
|
|
184
|
+
const backendUrl = pageContext2.backendUrl;
|
|
185
|
+
const baseUrl = getBaseUrl(backendUrl, pageContext2.isTest);
|
|
188
186
|
const url = baseUrl + "/common/common-data/find-chart-datas";
|
|
189
187
|
http.post(url, param).then((result) => {
|
|
190
188
|
if (!pageContext2.chartDataSourceMap) {
|
|
@@ -240,10 +238,8 @@ function updateOptionDatasources(pageContext2, dataSourceConfs, query) {
|
|
|
240
238
|
systemCode: pageContext2.systemCode,
|
|
241
239
|
query
|
|
242
240
|
};
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
246
|
-
}
|
|
241
|
+
const backendUrl = pageContext2.backendUrl;
|
|
242
|
+
const baseUrl = getBaseUrl(backendUrl, pageContext2.isTest);
|
|
247
243
|
const url = baseUrl + "/common/common-data/find-datas";
|
|
248
244
|
http.post(url, param).then((result) => {
|
|
249
245
|
if (!pageContext2.optionSourceMap) {
|
|
@@ -123,7 +123,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
123
123
|
}
|
|
124
124
|
updateTable(resultData);
|
|
125
125
|
resultData.hasRender = true;
|
|
126
|
-
dataConfig
|
|
126
|
+
if (dataConfig) {
|
|
127
|
+
dataConfig.autoRefresh = false;
|
|
128
|
+
}
|
|
127
129
|
}
|
|
128
130
|
function updateTable(resultData) {
|
|
129
131
|
setCustomColumns(resultData);
|
|
@@ -7,6 +7,7 @@ import { handleAfterInitEvent, handleFormEvent } from "../../../../utils/events/
|
|
|
7
7
|
import http from "agilebuilder-ui/src/utils/request";
|
|
8
8
|
import { $t } from "../../../../utils/i18n-util.js";
|
|
9
9
|
import { getToken } from "agilebuilder-ui/src/utils/auth";
|
|
10
|
+
import { getBaseUrl } from "../../../../utils/common-util.js";
|
|
10
11
|
const _hoisted_1 = { style: { "width": "100%", "height": "100%" } };
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
12
13
|
__name: "richtext-runtime",
|
|
@@ -195,10 +196,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
195
196
|
"Content-Type": "multipart/form-data"
|
|
196
197
|
}
|
|
197
198
|
};
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
baseUrl = window["$vueApp"].config.globalProperties.baseURL;
|
|
201
|
-
}
|
|
199
|
+
const backendUrl = props.pageContext.backendUrl;
|
|
200
|
+
const baseUrl = getBaseUrl(backendUrl, props.pageContext.isTest);
|
|
202
201
|
return http.post(baseUrl + "/common/fs-upload/rich-editor-image", params, config);
|
|
203
202
|
}
|
|
204
203
|
function dataURLtoFile(dataurl, filename) {
|