super-page-runtime 2.2.55 → 2.2.56
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/events/event-util.js +23 -23
- package/dist/es/components/runtime/utils/events/standard-event.d.ts +4 -0
- package/dist/es/components/runtime/utils/events/standard-event.js +78 -58
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts +31 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.js +35 -0
- package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue2.js +4 -0
- package/dist/es/components/runtime/views/assemblys/container/tabs/tabs-runtime.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue.js +1 -1
- package/dist/es/components/runtime/views/super-page.vue2.js +144 -130
- package/dist/es/i18n/langs/cn.js +1 -1
- package/dist/es/i18n/langs/en.js +1 -1
- package/dist/es/style.css +68 -66
- package/package.json +2 -2
|
@@ -208,7 +208,7 @@ function q(e2, t2, i2, o2) {
|
|
|
208
208
|
if (r3) {
|
|
209
209
|
const i4 = r3.func, u3 = r3.isStandard, c2 = r3.event, l2 = z(e3, t3, i4, o3), a2 = L(e3);
|
|
210
210
|
if (function(e4, n2) {
|
|
211
|
-
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName);
|
|
211
|
+
return e4 && ("exportForm" === n2.eventName || "exportPDF" === n2.eventName || "import" === n2.eventName || "assign" === n2.eventName || "copyTask" === n2.eventName || "addSigner" === n2.eventName || "returnTaskTo" === n2.eventName || "removeSigner" === n2.eventName || "saveQueryCharts" === n2.eventName);
|
|
212
212
|
}(u3, c2)) return void (e3.canClick = true);
|
|
213
213
|
n(l2) ? l2.then((n2) => {
|
|
214
214
|
n2 ? V(e3, t3, o3, u3, n2, a2) : e3.canClick = true;
|
|
@@ -285,47 +285,47 @@ function H(e2) {
|
|
|
285
285
|
}
|
|
286
286
|
});
|
|
287
287
|
}
|
|
288
|
-
function
|
|
288
|
+
function Q(e2, n2, t2, i2) {
|
|
289
289
|
var o2;
|
|
290
|
-
n2 && (
|
|
290
|
+
n2 && (W("loadBeforeSend", w(null, (o2 = { pageContext: t2, configureObj: i2 }).pageContext, o2.configureObj, "beforeListLoad", o2), e2), W("beforeRequest", function(e3) {
|
|
291
291
|
return w(null, e3.pageContext, e3.configureObj, "beforeRequest", e3);
|
|
292
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
292
|
+
}({ pageContext: t2, configureObj: i2 }), e2), W("gridDataLoaded", function(e3) {
|
|
293
293
|
return w(null, e3.pageContext, e3.configureObj, "onListLoad", e3);
|
|
294
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
294
|
+
}({ pageContext: t2, configureObj: i2 }), e2), W("gridComplete", function(e3) {
|
|
295
295
|
return w(null, e3.pageContext, e3.configureObj, "afterListLoad", e3);
|
|
296
|
-
}({ pageContext: t2, configureObj: i2 }), e2),
|
|
296
|
+
}({ pageContext: t2, configureObj: i2 }), e2), W("resizeHeight", function(e3) {
|
|
297
297
|
return w(null, e3.pageContext, e3.configureObj, "resizeTableHeight", e3);
|
|
298
|
-
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}),
|
|
298
|
+
}({ pageContext: t2, configureObj: i2 }), e2), e2.lineEditOptions || (e2.lineEditOptions = {}), W("beforeInsertRow", function(e3) {
|
|
299
299
|
return w(null, e3.pageContext, e3.configureObj, "beforeAddRow", e3);
|
|
300
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
300
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterInsertRow", function(e3) {
|
|
301
301
|
return w(null, e3.pageContext, e3.configureObj, "afterAddRow", e3);
|
|
302
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
302
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeDelete", function(e3) {
|
|
303
303
|
return w(null, e3.pageContext, e3.configureObj, "beforeRemoveRow", e3);
|
|
304
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
304
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("afterDelete", function(e3) {
|
|
305
305
|
return w(null, e3.pageContext, e3.configureObj, "afterRemoveRow", e3);
|
|
306
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
306
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeEdit", function(e3) {
|
|
307
307
|
return w(null, e3.pageContext, e3.configureObj, "beforeEdit", e3);
|
|
308
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
308
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestore", function(e3) {
|
|
309
309
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestore", e3);
|
|
310
|
-
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions),
|
|
310
|
+
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), W("beforeRestoreValidate", function(e3) {
|
|
311
311
|
return w(null, e3.pageContext, e3.configureObj, "beforeRestoreValidate", e3);
|
|
312
312
|
}({ pageContext: t2, configureObj: i2 }), e2.lineEditOptions), function(e3, n3, t3) {
|
|
313
313
|
n3 && (t3[e3] = n3);
|
|
314
314
|
}("filterDataEvent", w(null, t2, i2, "filter-data", { pageContext: t2, configureObj: i2 }), e2));
|
|
315
315
|
}
|
|
316
|
-
function
|
|
316
|
+
function W(e2, n2, t2) {
|
|
317
317
|
n2 && (t2[e2] = n2);
|
|
318
318
|
}
|
|
319
|
-
function
|
|
319
|
+
function G(e2, n2, t2) {
|
|
320
320
|
return h(null, e2, n2, "select", t2);
|
|
321
321
|
}
|
|
322
|
-
function
|
|
322
|
+
function J(e2, n2, t2) {
|
|
323
323
|
return h(null, e2, n2, "select-all", t2);
|
|
324
324
|
}
|
|
325
|
-
function
|
|
325
|
+
function K(e2, n2, t2) {
|
|
326
326
|
return h(null, e2, n2, "selection-change", t2);
|
|
327
327
|
}
|
|
328
|
-
function
|
|
328
|
+
function M(e2, n2, t2) {
|
|
329
329
|
return h(null, e2, n2, "cell-click", t2);
|
|
330
330
|
}
|
|
331
331
|
function X(e2, n2, t2) {
|
|
@@ -371,7 +371,7 @@ function oe(n2, t2) {
|
|
|
371
371
|
export {
|
|
372
372
|
j as appendDefaultMethods,
|
|
373
373
|
H as canExecuteButton,
|
|
374
|
-
|
|
374
|
+
M as cellClick,
|
|
375
375
|
X as cellDblClick,
|
|
376
376
|
_ as doAfterClickEvent,
|
|
377
377
|
U as doBeforeClickEvent,
|
|
@@ -384,9 +384,9 @@ export {
|
|
|
384
384
|
B as getEventNameByType,
|
|
385
385
|
w as getHandleEvent,
|
|
386
386
|
S as getTableUuid,
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
387
|
+
J as gridSelectAllRecords,
|
|
388
|
+
G as gridSelectRecord,
|
|
389
|
+
K as gridSelectionChange,
|
|
390
390
|
y as handleAfterInitEvent,
|
|
391
391
|
ie as handleChartEvent,
|
|
392
392
|
h as handleEvent,
|
|
@@ -398,5 +398,5 @@ export {
|
|
|
398
398
|
O as removeCustomFuncFromWindow,
|
|
399
399
|
Y as rowClick,
|
|
400
400
|
Z as rowDblClick,
|
|
401
|
-
|
|
401
|
+
Q as setTableEvents
|
|
402
402
|
};
|
|
@@ -43,6 +43,7 @@ export declare const standardEvents: {
|
|
|
43
43
|
queryCharts: (params: any) => void;
|
|
44
44
|
resetCharts: (params: any) => void;
|
|
45
45
|
exportCharts: (params: any) => void;
|
|
46
|
+
saveQueryCharts: (params: any) => void;
|
|
46
47
|
};
|
|
47
48
|
export declare function exportFormReport(pageContext: any, configureObj: any, templateFile: any, isPdf: any): void;
|
|
48
49
|
export declare function getSaveFormRequestWithRow(pageContext: PageContext, configureObj: any, url: string, isUnControlVersion: boolean, mainDefaultValueColumns: any, dynamicColumnInfo: any, row: any, otherParams: any): any;
|
|
@@ -80,3 +81,6 @@ export declare function refreshPage(pageContext: PageContext, id?: any): void;
|
|
|
80
81
|
* @param pageContext
|
|
81
82
|
*/
|
|
82
83
|
export declare function getFormData(pageContext: PageContext, id?: any, isNeedId?: boolean): Promise<unknown>;
|
|
84
|
+
export declare function saveChartConditionBase(pageContext: any, conditionName: string): any;
|
|
85
|
+
export declare function listChartConditions(pageContext: any): any;
|
|
86
|
+
export declare function deleteChartCondition(conditionId: any): any;
|
|
@@ -6,13 +6,13 @@ import { getToken as d, getSessionCache as m, setSessionCache as f } from "agile
|
|
|
6
6
|
import { getComponentRef as g } from "../global-refs.js";
|
|
7
7
|
import b from "../eventBus.js";
|
|
8
8
|
import C from "axios";
|
|
9
|
-
import { handleEvent as
|
|
9
|
+
import { handleEvent as y, getTableUuid as T, doAfterClickEvent as h } from "./event-util.js";
|
|
10
10
|
import { setStoreInfo as P } from "../store-util.js";
|
|
11
11
|
import { getPermissionCodes as w, getDefaultValue as k, getModelFields as N } from "../page-init-util.js";
|
|
12
|
-
import { updateChartDatasources as
|
|
12
|
+
import { updateChartDatasources as v, caculateShowCondition as M, getVariableValue as R, setVariableValue as S } from "../page-helper-util.js";
|
|
13
13
|
import I from "./print-label.js";
|
|
14
|
-
import { getTableNameByTableUuid as
|
|
15
|
-
import { getWorkflowRules as
|
|
14
|
+
import { getTableNameByTableUuid as A } from "../table-utils.js";
|
|
15
|
+
import { getWorkflowRules as x, packageCustomRules as U } from "./validator-util.js";
|
|
16
16
|
import { functions as O } from "../api/page-expose-util.js";
|
|
17
17
|
import { usePageContextStore as E } from "../page-store.js";
|
|
18
18
|
const _ = { save: function(e2) {
|
|
@@ -47,10 +47,10 @@ const _ = { save: function(e2) {
|
|
|
47
47
|
if (!a2 || 0 === a2.length) return l({ showClose: true, type: "warning", message: u().t("superPageRuntimeMessage.pleaseSelectRecord") }), void s2(true);
|
|
48
48
|
p.confirm(u().t("superPageRuntimeMessage.whetherToConfirmDeletion"), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
49
49
|
var _a;
|
|
50
|
-
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 =
|
|
50
|
+
const r2 = e3.pageContext, u2 = e3.configureObj, l2 = u2.props.base, p2 = r2.systemCode, d2 = r2.backendUrl, m2 = u2.props.base.tableUuid ? u2.props.base.tableUuid : e3.tableUuid, f2 = A(r2, m2);
|
|
51
51
|
let b2 = n(d2, r2.isTest) + "/dsc/commons/" + f2;
|
|
52
52
|
b2 = o(b2, p2, d2, r2.isTest);
|
|
53
|
-
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission,
|
|
53
|
+
const C2 = void 0 === l2.isPermission || "true" === l2.isPermission || l2.isPermission, y2 = t(r2), T2 = w(u2, r2), h2 = { ids: a2, functionCode: T2, isPermission: C2 + "", systemCode: p2, isWorkflowEntity: y2, listCodesMap: r2.listCodesMap, pageCode: r2.code, pageVersion: r2.version };
|
|
54
54
|
r2.beanName && (h2.beanName = r2.beanName);
|
|
55
55
|
const P2 = u2.props.deleteLogicSetting;
|
|
56
56
|
P2 && ("object" == typeof P2 ? h2.deleteLogicSetting = JSON.stringify(P2) : "string" == typeof P2 && (h2.deleteLogicSetting = P2));
|
|
@@ -88,10 +88,10 @@ const _ = { save: function(e2) {
|
|
|
88
88
|
t2.tableName && (f2 += "&tableName=" + t2.tableName);
|
|
89
89
|
t2.code && (f2 += "&pageCode=" + t2.code);
|
|
90
90
|
t2.version && (f2 += "&pageVersion=" + t2.version);
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
const
|
|
94
|
-
h2 && (f2 += "&" +
|
|
91
|
+
const y2 = d();
|
|
92
|
+
y2 && (f2 += "&JWT=" + y2);
|
|
93
|
+
const T2 = "_RUN_CURRENT_ROLE", h2 = m(T2);
|
|
94
|
+
h2 && (f2 += "&" + T2 + "=" + h2);
|
|
95
95
|
if (o2) {
|
|
96
96
|
f2 += "&isPermission=" + (void 0 === o2.isPermission || "true" === o2.isPermission || o2.isPermission);
|
|
97
97
|
}
|
|
@@ -267,6 +267,11 @@ const _ = { save: function(e2) {
|
|
|
267
267
|
i2 && (i2.state = a2);
|
|
268
268
|
});
|
|
269
269
|
}(e2);
|
|
270
|
+
}, saveQueryCharts: function(e2) {
|
|
271
|
+
!function(e3) {
|
|
272
|
+
const t2 = e3.pageContext, s2 = e3.configureObj, n2 = t2.code + "_";
|
|
273
|
+
b.$emit(n2 + "save-chart-condition", { pageContext: t2, configureObj: s2 });
|
|
274
|
+
}(e2);
|
|
270
275
|
} };
|
|
271
276
|
function j(e2) {
|
|
272
277
|
const t2 = e2.pageContext, s2 = t2.initChartServiceConfigs;
|
|
@@ -275,7 +280,7 @@ function j(e2) {
|
|
|
275
280
|
let o2 = null;
|
|
276
281
|
n2 && n2.runtime && (o2 = n2.runtime.props);
|
|
277
282
|
const i2 = o2 ? o2.state : void 0;
|
|
278
|
-
o2 && (o2.state = "disabled"),
|
|
283
|
+
o2 && (o2.state = "disabled"), v(t2, s2, void 0, e2.isInitChart).then(() => {
|
|
279
284
|
o2 && (o2.state = i2);
|
|
280
285
|
}).catch(() => {
|
|
281
286
|
o2 && (o2.state = i2);
|
|
@@ -283,11 +288,11 @@ function j(e2) {
|
|
|
283
288
|
}
|
|
284
289
|
function D(e2, s2, o2, i2) {
|
|
285
290
|
var _a;
|
|
286
|
-
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2),
|
|
287
|
-
u2 && (
|
|
291
|
+
const a2 = o2.templateUuid, r2 = o2.templateName, c2 = e2.systemCode, u2 = (_a = s2.props.base) == null ? void 0 : _a.logSetting, l2 = t(e2), p2 = e2.beanName, m2 = s2.props.base, f2 = s2.tableName ? s2.tableName : e2.tableName, g2 = e2.backendUrl, b2 = O.getFormViewData(e2), y2 = void 0 === m2.isPermission || "true" === m2.isPermission || m2.isPermission, T2 = { entity: b2, fileName: a2, showName: r2, beanName: p2, isWorkflowForm: l2, functionCode: w(s2, e2), tableName: f2, isPermission: y2 + "", systemCode: c2, listCodesMap: e2.listCodesMap, pageCode: e2.code, pageVersion: e2.version };
|
|
292
|
+
u2 && (T2.logSettingText = u2.join(""));
|
|
288
293
|
const P2 = se(e2);
|
|
289
294
|
let k2;
|
|
290
|
-
|
|
295
|
+
T2.additionalParamMap = P2, k2 = i2 ? function(e3, t2, s3, o3) {
|
|
291
296
|
return new Promise((i3, a3) => {
|
|
292
297
|
const r3 = n(t2, o3) + "/dsc/commons/export-pdf";
|
|
293
298
|
C.defaults.headers.common.Authorization = d();
|
|
@@ -298,7 +303,7 @@ function D(e2, s2, o2, i2) {
|
|
|
298
303
|
a3(e4);
|
|
299
304
|
});
|
|
300
305
|
});
|
|
301
|
-
}(r2, g2,
|
|
306
|
+
}(r2, g2, T2, e2.isTest) : function(e3, t2, s3, o3) {
|
|
302
307
|
return new Promise((i3, a3) => {
|
|
303
308
|
const r3 = n(t2, o3) + "/dsc/commons/export-reports";
|
|
304
309
|
C.defaults.headers.common.Authorization = d();
|
|
@@ -312,7 +317,7 @@ function D(e2, s2, o2, i2) {
|
|
|
312
317
|
a3(e4);
|
|
313
318
|
});
|
|
314
319
|
});
|
|
315
|
-
}(r2, g2,
|
|
320
|
+
}(r2, g2, T2, e2.isTest), k2 && k2.then(() => {
|
|
316
321
|
h(e2, s2);
|
|
317
322
|
});
|
|
318
323
|
}
|
|
@@ -342,10 +347,10 @@ function B(e2, n2, o2, i2, a2, r2, c2) {
|
|
|
342
347
|
b2 && (f2.autoSetValueData = b2);
|
|
343
348
|
const C2 = (_a = n2.props.base) == null ? void 0 : _a.logSetting;
|
|
344
349
|
C2 && (f2.logSettingText = C2.join("")), f2.systemCode || (f2.systemCode = l2);
|
|
345
|
-
const
|
|
346
|
-
|
|
347
|
-
const
|
|
348
|
-
return f2.additionalParamMap =
|
|
350
|
+
const y2 = e2.beanName;
|
|
351
|
+
y2 && (f2.beanName = y2), a2 && (f2.dynamicColumnInfo = a2), i2 && (f2.mainDefaultValueColumns = i2);
|
|
352
|
+
const T2 = se(e2);
|
|
353
|
+
return f2.additionalParamMap = T2, void 0 !== o2 && (f2.unControlVersion = o2), f2;
|
|
349
354
|
}
|
|
350
355
|
function W(e2, t2, s2, i2, a2, r2, u2, l2) {
|
|
351
356
|
const p2 = e2.systemCode, d2 = e2.backendUrl, m2 = B(e2, t2, i2, a2, r2, null, u2);
|
|
@@ -363,7 +368,7 @@ function F(t2, s2, n2, o2, i2) {
|
|
|
363
368
|
const a2 = q(t2, s2, i2);
|
|
364
369
|
a2 && "list" === a2 ? (!function(t3, s3, n3, o3) {
|
|
365
370
|
let i3 = s3.props.base.successOperation;
|
|
366
|
-
const a3 = s3.props.base.isNeedValueMapping, r2 =
|
|
371
|
+
const a3 = s3.props.base.isNeedValueMapping, r2 = T(t3, s3);
|
|
367
372
|
i3 || (i3 = "refresh");
|
|
368
373
|
if ("refresh" === i3) {
|
|
369
374
|
if (r2) {
|
|
@@ -402,7 +407,7 @@ function H(e2, t2, s2) {
|
|
|
402
407
|
b.$emit(a2 + "close-dialog", { isNeedValueMapping: i2, dataModel: t2, sourceTableName: o2, jumpMode: n2 });
|
|
403
408
|
}
|
|
404
409
|
}
|
|
405
|
-
function
|
|
410
|
+
function $(e2, t2, s2, n2, o2) {
|
|
406
411
|
var _a;
|
|
407
412
|
o2 || (o2 = t2.runtime && t2.runtime.linkPage && t2.runtime.linkPage.valueMappings ? t2.runtime.linkPage.valueMappings : null) || (o2 = (_a = t2.props.linkPage) == null ? void 0 : _a.valueMappings);
|
|
408
413
|
const i2 = e2.tableName;
|
|
@@ -412,13 +417,13 @@ function G(e2, t2, s2, n2, o2) {
|
|
|
412
417
|
Array.isArray(e3) && e3.length > 0 && (n3 = e3[0]), t3.forEach((e4) => {
|
|
413
418
|
const t4 = e4.source;
|
|
414
419
|
if (!t4) return;
|
|
415
|
-
const o3 = t4.split("."), i3 =
|
|
420
|
+
const o3 = t4.split("."), i3 = R(n3, o3), a2 = e4.target, r2 = N(null, a2);
|
|
416
421
|
S(s3.entity, r2, i3);
|
|
417
422
|
});
|
|
418
423
|
}
|
|
419
|
-
}(s2, o2, e2),
|
|
424
|
+
}(s2, o2, e2), y(null, e2, t2, "setValue", { sourceModel: s2, sourceTableName: n2, entity: e2.entity.data, targetTableName: i2 });
|
|
420
425
|
}
|
|
421
|
-
function
|
|
426
|
+
function G(e2, t2, s2, n2) {
|
|
422
427
|
var _a;
|
|
423
428
|
t2 && !t2.props.base && (t2.props.base = {});
|
|
424
429
|
let o2 = n2;
|
|
@@ -426,7 +431,7 @@ function $(e2, t2, s2, n2) {
|
|
|
426
431
|
const i2 = q(e2, t2);
|
|
427
432
|
if (i2 && "list" === i2 && !o2 && (o2 = "refresh"), "refresh" === o2) {
|
|
428
433
|
if (i2 && "list" === i2) {
|
|
429
|
-
const s3 =
|
|
434
|
+
const s3 = T(e2, t2);
|
|
430
435
|
if (s3) {
|
|
431
436
|
g(e2, s3).refresh();
|
|
432
437
|
}
|
|
@@ -439,17 +444,17 @@ function $(e2, t2, s2, n2) {
|
|
|
439
444
|
function J(e2, t2, s2, i2) {
|
|
440
445
|
return new Promise((r2, l2) => {
|
|
441
446
|
const d2 = e2.pageContext, m2 = e2.configureObj, f2 = e2.mainDefaultValueColumns, g2 = e2.dynamicColumnInfo, b2 = e2.ids, C2 = m2.props.base.successOperation;
|
|
442
|
-
let
|
|
443
|
-
C2 && "noOperation" === C2 && (
|
|
444
|
-
let
|
|
447
|
+
let y2 = false;
|
|
448
|
+
C2 && "noOperation" === C2 && (y2 = true);
|
|
449
|
+
let T2 = d2.tableName;
|
|
445
450
|
if (t2) {
|
|
446
451
|
const t3 = m2.props.base.tableUuid ? m2.props.base.tableUuid : e2.tableUuid;
|
|
447
|
-
|
|
452
|
+
T2 = A(d2, t3);
|
|
448
453
|
}
|
|
449
454
|
const h2 = function(e3, t3, s3, i3, r3, l3, d3, m3, f3) {
|
|
450
455
|
return new Promise((g3, b3) => {
|
|
451
|
-
const C3 = t3.props.base.title,
|
|
452
|
-
p.confirm(u().t(
|
|
456
|
+
const C3 = t3.props.base.title, y3 = "superPageRuntimeMessage.whetherToConfirm" + a(d3);
|
|
457
|
+
p.confirm(u().t(y3, { name: C3 }), u().t("superPageRuntimeMessage.tips"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), type: "warning" }).then(() => {
|
|
453
458
|
const a2 = e3.systemCode, u2 = e3.backendUrl, p2 = B(e3, t3, i3, r3, l3, m3, null);
|
|
454
459
|
p2.tableName = f3;
|
|
455
460
|
let d4 = n(u2, e3.isTest) + s3;
|
|
@@ -462,7 +467,7 @@ function J(e2, t2, s2, i2) {
|
|
|
462
467
|
b3("点击了取消按钮");
|
|
463
468
|
});
|
|
464
469
|
});
|
|
465
|
-
}(d2, m2, i2,
|
|
470
|
+
}(d2, m2, i2, y2, f2, g2, s2, b2, T2);
|
|
466
471
|
h2 ? h2.then((e3) => {
|
|
467
472
|
F(d2, m2, e3, "superPageRuntimeMessage.successfulSave", t2), r2(e3);
|
|
468
473
|
}).catch((e3) => {
|
|
@@ -472,7 +477,7 @@ function J(e2, t2, s2, i2) {
|
|
|
472
477
|
}
|
|
473
478
|
function z(e2, s2) {
|
|
474
479
|
var _a;
|
|
475
|
-
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 =
|
|
480
|
+
const i2 = e2.pageContext, a2 = e2.configureObj, r2 = e2.tableConfigure, p2 = a2.props.base, d2 = a2.props.base.tableUuid ? a2.props.base.tableUuid : e2.tableUuid, m2 = A(i2, d2), f2 = new FormData();
|
|
476
481
|
f2.append("multipartFile", s2), m2 && f2.append("tableName", m2), i2.importBeanName && f2.append("importBeanName", i2.importBeanName), i2.beanName && f2.append("beanName", i2.beanName);
|
|
477
482
|
const g2 = (_a = r2.props.importSetting) == null ? void 0 : _a.listViewImportDuplicate;
|
|
478
483
|
g2 && f2.append("importDuplicateRule", g2);
|
|
@@ -480,25 +485,25 @@ function z(e2, s2) {
|
|
|
480
485
|
b2 && f2.append("judgeHeavyList", JSON.stringify(b2));
|
|
481
486
|
const C2 = fe(a2);
|
|
482
487
|
C2 && f2.append("autoSetValueData", C2);
|
|
483
|
-
const
|
|
484
|
-
|
|
485
|
-
const
|
|
486
|
-
|
|
488
|
+
const y2 = i2.formNoRuleCode;
|
|
489
|
+
y2 && f2.append("formNoRuleCode", y2);
|
|
490
|
+
const T2 = e2.listCode;
|
|
491
|
+
T2 && f2.append("listCode", T2);
|
|
487
492
|
let P2 = false;
|
|
488
493
|
P2 = void 0 !== p2.isAsync && null !== p2.isAsync && p2.isAsync, f2.append("isAsync", P2 + ""), f2.append("pageCode", i2.code);
|
|
489
494
|
const k2 = t(i2);
|
|
490
495
|
null != k2 && f2.append("isWorkflowEntity", k2 + "");
|
|
491
496
|
const N2 = w(a2, i2);
|
|
492
497
|
N2 && f2.append("functionCode", N2);
|
|
493
|
-
const
|
|
494
|
-
f2.append("additionalParamMapStr", JSON.stringify(
|
|
495
|
-
const
|
|
496
|
-
f2.append("isPermission",
|
|
497
|
-
const
|
|
498
|
-
|
|
498
|
+
const v2 = se(i2);
|
|
499
|
+
f2.append("additionalParamMapStr", JSON.stringify(v2));
|
|
500
|
+
const M2 = void 0 === p2.isPermission || "true" === p2.isPermission || p2.isPermission;
|
|
501
|
+
f2.append("isPermission", M2 + "");
|
|
502
|
+
const R2 = i2.systemCode;
|
|
503
|
+
R2 && f2.append("systemCode", R2);
|
|
499
504
|
const S2 = i2.backendUrl;
|
|
500
505
|
let I2 = n(S2, i2.isTest) + "/dsc/commons/import-data";
|
|
501
|
-
I2 = o(I2,
|
|
506
|
+
I2 = o(I2, R2, S2, i2.isTest), c.post(I2, f2).then((e3) => {
|
|
502
507
|
if (P2) l({ showClose: true, type: "success", message: u().t("superPageRuntimeMessage.asyncImport") });
|
|
503
508
|
else {
|
|
504
509
|
let t2 = false;
|
|
@@ -585,7 +590,7 @@ function Z(e2) {
|
|
|
585
590
|
let s3 = false;
|
|
586
591
|
if (((_b = (_a = n2.props) == null ? void 0 : _a.base) == null ? void 0 : _b.isMustOpinion) && (s3 = true), true === s3) {
|
|
587
592
|
const t3 = e2.pageContext, o2 = (_d = (_c = n2.props) == null ? void 0 : _c.base) == null ? void 0 : _d.mustOpinionConditions;
|
|
588
|
-
s3 =
|
|
593
|
+
s3 = M(t3, n2, o2);
|
|
589
594
|
}
|
|
590
595
|
true === s3 ? p.prompt(u().t("superPageRuntimeMessage.pleaseInputOpinion"), u().t("superPageRuntimeMessage.opinion"), { confirmButtonText: u().t("superPageRuntimeMessage.sure"), cancelButtonText: u().t("superPageRuntimeMessage.cancel"), inputType: "textarea", inputValue: null, closeOnClickModal: false, inputValidator: (e3) => !(!e3 || !e3.trim()) || u().t("superPageRuntimeMessage.pleaseInputOpinion") }).then(({ value: e3 }) => {
|
|
591
596
|
t2(e3);
|
|
@@ -775,9 +780,9 @@ function de(e2, s2, o2) {
|
|
|
775
780
|
}), C2.listCodesMap = t3;
|
|
776
781
|
}
|
|
777
782
|
f2 && (C2.ids = me(f2)), g2 ? C2.taskId = g2 : d2 ? C2.id = d2 : (p2 && p2._t_ && m(p2._t_ + "_id") && (C2.id = m(p2._t_ + "_id")), e3.notIdInitializationList && (C2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList))), p2 && (C2.additionalParamMap = p2), e3.beanName && (C2.beanName = e3.beanName), e3.refercePropMap && (C2.refercePropMap = e3.refercePropMap);
|
|
778
|
-
const
|
|
779
|
-
h2.restorePageLoadState(),
|
|
780
|
-
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules =
|
|
783
|
+
const T2 = n(e3.backendUrl, e3.isTest) + "/dsc/workflow-commons/gets", h2 = E();
|
|
784
|
+
h2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(T2, C2).then((t3) => {
|
|
785
|
+
e3.definitionId = t3.definitionId, e3.entity.task = t3.taskParamMap, Q(t3, true, e3), e3.workflowRules = x(e3);
|
|
781
786
|
const s4 = e3.pageType;
|
|
782
787
|
s4 && "form" === s4 && function(e4) {
|
|
783
788
|
(function(e5) {
|
|
@@ -809,7 +814,7 @@ function de(e2, s2, o2) {
|
|
|
809
814
|
}
|
|
810
815
|
e5.actionPermissionMap = s5;
|
|
811
816
|
}(e4);
|
|
812
|
-
}(e3), e3.canClick = true,
|
|
817
|
+
}(e3), e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), h2.setFormPageDataLoadState(true), o3(t3);
|
|
813
818
|
}).catch((t3) => {
|
|
814
819
|
e3.canClick = true, i3(t3);
|
|
815
820
|
});
|
|
@@ -819,20 +824,20 @@ function de(e2, s2, o2) {
|
|
|
819
824
|
const a2 = e3.systemCode, u2 = e3.code, l2 = e3.version, p2 = se(e3);
|
|
820
825
|
let d2 = t2 || null, f2 = t2 ? [t2] : null;
|
|
821
826
|
void 0 === s3 || s3 ? (d2 || (d2 = p2 && p2.id ? p2.id : null), f2 || (f2 = p2 ? p2.ids : null)) : (d2 = null, f2 = null, p2._id = p2.id, p2.id = null);
|
|
822
|
-
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest),
|
|
823
|
-
if (!
|
|
827
|
+
const g2 = p2 ? p2.taskId : null, b2 = u2, C2 = n(e3.backendUrl, e3.isTest), T2 = { pageCode: u2, pageVersion: l2, tableName: e3.tableName, formNoRuleCode: e3.formNoRuleCode, id: d2, systemCode: a2, functionCode: b2 + ".gets", listCodesMap: e3.listCodesMap };
|
|
828
|
+
if (!T2.id && p2 && p2._t_ && m(p2._t_ + "_id") && (T2.id = m(p2._t_ + "_id")), f2 && (T2.ids = me(f2)), e3.notIdInitializationList && (T2.noIdAndTaskIdInitSetting = JSON.stringify(e3.notIdInitializationList)), p2 && (T2.additionalParamMap = p2), e3.beanName && (T2.beanName = e3.beanName), g2 && (T2.taskId = g2), (!e3.listCodesMap || 0 === Object.keys(e3.listCodesMap).length) && e3.tableUuids) {
|
|
824
829
|
const t3 = {};
|
|
825
830
|
e3.tableUuids.forEach((e4) => {
|
|
826
831
|
const s4 = r(u2, l2, e4);
|
|
827
832
|
t3[s4] = s4;
|
|
828
|
-
}),
|
|
833
|
+
}), T2.listCodesMap = t3;
|
|
829
834
|
}
|
|
830
|
-
e3.refercePropMap && (
|
|
835
|
+
e3.refercePropMap && (T2.refercePropMap = e3.refercePropMap);
|
|
831
836
|
const h2 = C2 + "/dsc/commons/gets", P2 = E();
|
|
832
|
-
P2.restorePageLoadState(),
|
|
837
|
+
P2.restorePageLoadState(), y(null, e3, e3, "beforeFormLoadData"), c.post(h2, T2).then((t3) => {
|
|
833
838
|
t3 && (e3.entity.data = t3.entity, e3.initFormNo = t3.formNo);
|
|
834
839
|
const s4 = e3.customRules, n2 = e3.rules, i4 = U(s4, n2);
|
|
835
|
-
e3.rules = i4, e3.canClick = true,
|
|
840
|
+
e3.rules = i4, e3.canClick = true, y(null, e3, e3, "afterFormLoadData"), P2.setFormPageDataLoadState(true), o3(t3);
|
|
836
841
|
}).catch((t3) => {
|
|
837
842
|
e3.canClick = true, i3(t3);
|
|
838
843
|
});
|
|
@@ -854,9 +859,22 @@ function fe(e2) {
|
|
|
854
859
|
}
|
|
855
860
|
return null;
|
|
856
861
|
}
|
|
862
|
+
function ge(e2, t2) {
|
|
863
|
+
const s2 = e2.entity ? e2.entity : {}, n2 = { data: s2.data, page: s2.page }, o2 = { pageCode: e2.code, queryCondition: JSON.stringify(n2), name: t2 }, i2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition";
|
|
864
|
+
return c.post(i2, o2);
|
|
865
|
+
}
|
|
866
|
+
function be(e2) {
|
|
867
|
+
const t2 = e2.code, s2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/list/" + t2;
|
|
868
|
+
return c.get(s2);
|
|
869
|
+
}
|
|
870
|
+
function Ce(e2) {
|
|
871
|
+
const t2 = window.$vueApp.config.globalProperties.baseAPI + "/component/chart-search-condition/" + e2;
|
|
872
|
+
return c.delete(t2);
|
|
873
|
+
}
|
|
857
874
|
export {
|
|
858
875
|
F as dealAfterOperate,
|
|
859
876
|
Q as dealCompleteTaskParam,
|
|
877
|
+
Ce as deleteChartCondition,
|
|
860
878
|
ne as doAddSigner,
|
|
861
879
|
ee as doAssign,
|
|
862
880
|
oe as doCreateCopyTask,
|
|
@@ -872,8 +890,10 @@ export {
|
|
|
872
890
|
ae as getTaskInformitions,
|
|
873
891
|
le as isVisibleWorkflowButton,
|
|
874
892
|
Y as judgeDataNumber,
|
|
875
|
-
|
|
893
|
+
be as listChartConditions,
|
|
894
|
+
G as refreshFormOrListPage,
|
|
876
895
|
pe as refreshPage,
|
|
896
|
+
ge as saveChartConditionBase,
|
|
877
897
|
_ as standardEvents,
|
|
878
|
-
|
|
898
|
+
$ as updateValuesWhenCloseDialog
|
|
879
899
|
};
|
package/dist/es/components/runtime/views/assemblys/common/save-chart-condition-dialog.vue.d.ts
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
declare function refreshConditionList(): void;
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
pageContext: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: any;
|
|
6
|
+
};
|
|
7
|
+
}>, {
|
|
8
|
+
refreshConditionList: typeof refreshConditionList;
|
|
9
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
close: (...args: any[]) => void;
|
|
11
|
+
confirm: (...args: any[]) => void;
|
|
12
|
+
open: (...args: any[]) => void;
|
|
13
|
+
opend: (...args: any[]) => void;
|
|
14
|
+
closed: (...args: any[]) => void;
|
|
15
|
+
save: (...args: any[]) => void;
|
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
|
+
pageContext: {
|
|
18
|
+
type: ObjectConstructor;
|
|
19
|
+
default: any;
|
|
20
|
+
};
|
|
21
|
+
}>> & Readonly<{
|
|
22
|
+
onClose?: (...args: any[]) => any;
|
|
23
|
+
onConfirm?: (...args: any[]) => any;
|
|
24
|
+
onOpen?: (...args: any[]) => any;
|
|
25
|
+
onOpend?: (...args: any[]) => any;
|
|
26
|
+
onClosed?: (...args: any[]) => any;
|
|
27
|
+
onSave?: (...args: any[]) => any;
|
|
28
|
+
}>, {
|
|
29
|
+
pageContext: Record<string, any>;
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { defineComponent as e, ref as t, onMounted as l, resolveComponent as o, createElementBlock as a, openBlock as n, createVNode as s, withCtx as u, createTextVNode as i, toDisplayString as r, createElementVNode as d } from "vue";
|
|
2
|
+
import { ElMessage as p } from "element-plus";
|
|
3
|
+
import { useI18n as c } from "vue-i18n";
|
|
4
|
+
import { listChartConditions as m, deleteChartCondition as g } from "../../../utils/events/standard-event.js";
|
|
5
|
+
const f = { class: "dialog-footer" }, v = e({ __name: "save-chart-condition-dialog", props: { pageContext: { type: Object, default: null } }, emits: ["open", "opend", "close", "closed", "save", "confirm"], setup(e2, { expose: v2, emit: h }) {
|
|
6
|
+
const { t: C } = c(), y = e2, _ = h, b = t([]), w = t(null), M = t([]);
|
|
7
|
+
function P() {
|
|
8
|
+
_("save", w.value);
|
|
9
|
+
}
|
|
10
|
+
function R() {
|
|
11
|
+
0 === b.value.length || b.value.length > 1 ? p({ showClose: true, type: "warning", message: C("superPageRuntimeMessage.pleaseSelectCondition") }) : _("confirm", b.value[0]);
|
|
12
|
+
}
|
|
13
|
+
function $() {
|
|
14
|
+
m(y.pageContext).then((e3) => {
|
|
15
|
+
M.value = e3;
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
function k(e3) {
|
|
19
|
+
b.value = e3;
|
|
20
|
+
}
|
|
21
|
+
return l(() => {
|
|
22
|
+
$();
|
|
23
|
+
}), v2({ refreshConditionList: $ }), (e3, t2) => {
|
|
24
|
+
const l2 = o("el-input"), c2 = o("el-col"), m2 = o("el-button"), v3 = o("el-row"), h2 = o("el-table-column"), y2 = o("Delete"), b2 = o("el-icon"), x = o("el-table"), O = o("el-dialog");
|
|
25
|
+
return n(), a("div", null, [s(O, { "model-value": "", title: e3.$t("superPageRuntimeMessage.saveCondition"), "close-on-click-modal": false, "append-to-body": "", width: "40%", "max-height": "400", onOpen: t2[2] || (t2[2] = (e4) => _("open")), onOpend: t2[3] || (t2[3] = (e4) => _("opend")), onClose: t2[4] || (t2[4] = (e4) => _("close")), onClosed: t2[5] || (t2[5] = (e4) => _("closed")) }, { footer: u(() => [d("div", f, [s(m2, { type: "primary", onClick: R }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.sure")), 1)]), _: 1 }), s(m2, { onClick: t2[1] || (t2[1] = (e4) => _("close")) }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.cancel")), 1)]), _: 1 })])]), default: u(() => [s(v3, { style: { "padding-bottom": "10px" }, gutter: 10 }, { default: u(() => [s(c2, { span: 18 }, { default: u(() => [s(l2, { modelValue: w.value, "onUpdate:modelValue": t2[0] || (t2[0] = (e4) => w.value = e4), placeholder: e3.$t("superPageRuntimeMessage.pleaseInputConditionName") }, null, 8, ["modelValue", "placeholder"])]), _: 1 }), s(c2, { span: 6 }, { default: u(() => [s(m2, { type: "primary", onClick: P }, { default: u(() => [i(r(e3.$t("superPageRuntimeMessage.save")), 1)]), _: 1 })]), _: 1 })]), _: 1 }), s(x, { data: M.value, border: "", style: { width: "100%" }, onSelect: k }, { default: u(() => [s(h2, { type: "selection", align: "center", width: "55" }), s(h2, { prop: "name", label: e3.$t("superPageRuntimeMessage.conditionName") }, null, 8, ["label"]), s(h2, { label: e3.$t("superPageRuntimeMessage.operating"), width: "60" }, { default: u((e4) => [s(b2, { size: "14", style: { color: "#5893ef", cursor: "pointer" }, onClick: (t3) => {
|
|
26
|
+
return l3 = e4.row, void g(l3.id).then(() => {
|
|
27
|
+
p({ showClose: true, type: "success", message: C("superPageRuntimeMessage.successfulDelete") }), $();
|
|
28
|
+
});
|
|
29
|
+
var l3;
|
|
30
|
+
} }, { default: u(() => [s(y2)]), _: 2 }, 1032, ["onClick"])]), _: 1 }, 8, ["label"])]), _: 1 }, 8, ["data"])]), _: 1 }, 8, ["title"])]);
|
|
31
|
+
};
|
|
32
|
+
} });
|
|
33
|
+
export {
|
|
34
|
+
v as default
|
|
35
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import t from "./tabs-runtime.vue2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import e from "../../../../../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = e(t, [["__scopeId", "data-v-
|
|
4
|
+
const r = e(t, [["__scopeId", "data-v-ad75c0d0"]]);
|
|
5
5
|
export {
|
|
6
6
|
r as default
|
|
7
7
|
};
|