agilebuilder-ui 1.0.85-temp1 → 1.0.85-temp3
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/lib/super-ui.js +43 -89
- package/lib/super-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/packages/super-grid/src/custom-formatter.js +311 -387
- package/src/utils/jump-page-utils.js +24 -17
package/lib/super-ui.js
CHANGED
|
@@ -18474,27 +18474,22 @@ bus.$off = emitter.off;
|
|
|
18474
18474
|
function initialization(e, t, n, o, l, s, d, m) {
|
|
18475
18475
|
const y = {};
|
|
18476
18476
|
if (e) {
|
|
18477
|
-
if (Array.isArray(e))
|
|
18477
|
+
if (Array.isArray(e)) {
|
|
18478
|
+
debugger;
|
|
18478
18479
|
for (let k = 0; k < e.length; k++) {
|
|
18479
18480
|
const O = e[k];
|
|
18480
|
-
|
|
18481
|
-
|
|
18482
|
-
|
|
18483
|
-
|
|
18484
|
-
|
|
18485
|
-
|
|
18486
|
-
|
|
18487
|
-
|
|
18488
|
-
|
|
18489
|
-
|
|
18490
|
-
);
|
|
18491
|
-
if (O[jumpConditionType] === "config") {
|
|
18492
|
-
if (e.conditions)
|
|
18493
|
-
debugger;
|
|
18494
|
-
} else
|
|
18495
|
-
O[jumpConditionType];
|
|
18481
|
+
O.jumpConditionType === "none" || (O.jumpConditionType === "config" ? O.conditions && O.conditions.length > 0 && analysisCondition(
|
|
18482
|
+
JSON.stringify(O.conditions),
|
|
18483
|
+
t,
|
|
18484
|
+
E,
|
|
18485
|
+
S,
|
|
18486
|
+
n,
|
|
18487
|
+
s,
|
|
18488
|
+
d,
|
|
18489
|
+
m
|
|
18490
|
+
) : O.jumpConditionType);
|
|
18496
18491
|
const B = initialization(
|
|
18497
|
-
O,
|
|
18492
|
+
O.jumpPageSetting,
|
|
18498
18493
|
t,
|
|
18499
18494
|
n,
|
|
18500
18495
|
o,
|
|
@@ -18503,9 +18498,12 @@ function initialization(e, t, n, o, l, s, d, m) {
|
|
|
18503
18498
|
d,
|
|
18504
18499
|
m
|
|
18505
18500
|
);
|
|
18506
|
-
if (B && B.visible)
|
|
18507
|
-
|
|
18501
|
+
if (B && B.visible) {
|
|
18502
|
+
const R = { ...B };
|
|
18503
|
+
return R.jumpPageSetting = JSON.stringify(O.jumpPageSetting), R;
|
|
18504
|
+
}
|
|
18508
18505
|
}
|
|
18506
|
+
}
|
|
18509
18507
|
y.visible = !0;
|
|
18510
18508
|
let E = {};
|
|
18511
18509
|
o && typeof o == "string" && o !== "" ? E = JSON.parse(o) : o && typeof o == "object" && (E = o);
|
|
@@ -20897,14 +20895,7 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
20897
20895
|
if (this.customFormat) {
|
|
20898
20896
|
let l = e[t];
|
|
20899
20897
|
this.isObjectProp(t) && (l = this.objectPropOriginalValue(e, t));
|
|
20900
|
-
const s = doFormat$1(this.column, l), d = n.call(
|
|
20901
|
-
this,
|
|
20902
|
-
l,
|
|
20903
|
-
s,
|
|
20904
|
-
e,
|
|
20905
|
-
this.column,
|
|
20906
|
-
o
|
|
20907
|
-
);
|
|
20898
|
+
const s = doFormat$1(this.column, l), d = n.call(this, l, s, e, this.column, o);
|
|
20908
20899
|
return typeof d > "u" ? !1 : (window.$vueApp.component(t + o, d), !0);
|
|
20909
20900
|
} else
|
|
20910
20901
|
return !1;
|
|
@@ -20936,12 +20927,7 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
20936
20927
|
if (n.childAnnexDataTableCode) {
|
|
20937
20928
|
const o = analysisFileSetObj(n, this.isSql), l = this.objectPropValue(e, t.prop);
|
|
20938
20929
|
if (l && l.length > 0) {
|
|
20939
|
-
const s = otherFilesToStandard(
|
|
20940
|
-
n,
|
|
20941
|
-
o,
|
|
20942
|
-
l,
|
|
20943
|
-
null
|
|
20944
|
-
);
|
|
20930
|
+
const s = otherFilesToStandard(n, o, l, null);
|
|
20945
20931
|
return s[s.length - 1].showName;
|
|
20946
20932
|
}
|
|
20947
20933
|
} else
|
|
@@ -20951,12 +20937,7 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
20951
20937
|
if (n.childAnnexDataTableCode) {
|
|
20952
20938
|
const o = analysisFileSetObj(n, this.isSql), l = this.objectPropValue(e, t.prop);
|
|
20953
20939
|
if (l && l.length > 0) {
|
|
20954
|
-
const s = otherFilesToStandard(
|
|
20955
|
-
n,
|
|
20956
|
-
o,
|
|
20957
|
-
l,
|
|
20958
|
-
null
|
|
20959
|
-
);
|
|
20940
|
+
const s = otherFilesToStandard(n, o, l, null);
|
|
20960
20941
|
return s[s.length - 1].showName;
|
|
20961
20942
|
}
|
|
20962
20943
|
} else
|
|
@@ -20998,29 +20979,14 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
20998
20979
|
},
|
|
20999
20980
|
onClickFun(e, t, n, o, l) {
|
|
21000
20981
|
const s = this.getColumnValue(e, t);
|
|
21001
|
-
n.call(
|
|
21002
|
-
this,
|
|
21003
|
-
s.originalValue,
|
|
21004
|
-
s.formatValue,
|
|
21005
|
-
e,
|
|
21006
|
-
t,
|
|
21007
|
-
o,
|
|
21008
|
-
l
|
|
21009
|
-
);
|
|
20982
|
+
n.call(this, s.originalValue, s.formatValue, e, t, o, l);
|
|
21010
20983
|
},
|
|
21011
20984
|
isShowButtonFun(e, t, n, o) {
|
|
21012
20985
|
if (n === void 0)
|
|
21013
20986
|
return !0;
|
|
21014
20987
|
if (typeof n == "function") {
|
|
21015
20988
|
const l = this.getColumnValue(e, t);
|
|
21016
|
-
let s = n.call(
|
|
21017
|
-
this,
|
|
21018
|
-
l.originalValue,
|
|
21019
|
-
l.formatValue,
|
|
21020
|
-
e,
|
|
21021
|
-
t,
|
|
21022
|
-
o
|
|
21023
|
-
);
|
|
20989
|
+
let s = n.call(this, l.originalValue, l.formatValue, e, t, o);
|
|
21024
20990
|
return s === void 0 && (s = !0), s;
|
|
21025
20991
|
} else
|
|
21026
20992
|
return n;
|
|
@@ -21042,7 +21008,8 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
21042
21008
|
y,
|
|
21043
21009
|
m.pageContext
|
|
21044
21010
|
);
|
|
21045
|
-
|
|
21011
|
+
debugger;
|
|
21012
|
+
k.jumpPageSetting && (e.formatter.options.format = k.jumpPageSetting), k && k.label && k.label !== "" ? console.log("label存在") : k.label = this.objectPropValueTwo(t, e), k && k.title && k.title !== "" ? console.log("title存在") : k.title = k.label, E = k;
|
|
21046
21013
|
} else
|
|
21047
21014
|
E.visible = !0, E.label = this.objectPropValueTwo(t, e), E.title = E.label;
|
|
21048
21015
|
return E;
|
|
@@ -21053,15 +21020,9 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
21053
21020
|
if (e && e.formatter && e.formatter.options && e.formatter.options.format && (l = e.formatter.options.format), l && l !== "") {
|
|
21054
21021
|
let s = !0;
|
|
21055
21022
|
const d = store$1.get(n), m = JSON.parse(l);
|
|
21056
|
-
if (console.log(
|
|
21057
|
-
"gupre-grid---clickHyperLink--jumpPageSetting=",
|
|
21058
|
-
m
|
|
21059
|
-
), m.beforeClick) {
|
|
21023
|
+
if (console.log("gupre-grid---clickHyperLink--jumpPageSetting=", m), m.beforeClick) {
|
|
21060
21024
|
const y = m.beforeClick;
|
|
21061
|
-
if (console.log(
|
|
21062
|
-
"gupre-grid---clickHyperLink--jumpPageSetting.beforeClick=",
|
|
21063
|
-
y
|
|
21064
|
-
), console.log(
|
|
21025
|
+
if (console.log("gupre-grid---clickHyperLink--jumpPageSetting.beforeClick=", y), console.log(
|
|
21065
21026
|
"gupre-grid---clickHyperLink--gridParams.options[eventCallBack]=",
|
|
21066
21027
|
d.options.eventCallBack
|
|
21067
21028
|
), d.options && d.options.eventCallBack && d.options.eventCallBack[y] && typeof d.options.eventCallBack[y] == "function") {
|
|
@@ -21072,36 +21033,20 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
21072
21033
|
listCode: n,
|
|
21073
21034
|
additionalParamMap: d.additionalParamMap
|
|
21074
21035
|
};
|
|
21075
|
-
s = d.options.eventCallBack[y].call(
|
|
21076
|
-
this,
|
|
21077
|
-
E
|
|
21078
|
-
);
|
|
21036
|
+
s = d.options.eventCallBack[y].call(this, E);
|
|
21079
21037
|
}
|
|
21080
21038
|
}
|
|
21081
21039
|
isPromise$1(s) ? s.then((y) => {
|
|
21082
|
-
this.doClickHyperLink(
|
|
21083
|
-
|
|
21084
|
-
n,
|
|
21085
|
-
o,
|
|
21086
|
-
m,
|
|
21087
|
-
d
|
|
21088
|
-
);
|
|
21089
|
-
}) : this.doClickHyperLink(
|
|
21090
|
-
t,
|
|
21091
|
-
n,
|
|
21092
|
-
o,
|
|
21093
|
-
m,
|
|
21094
|
-
d
|
|
21095
|
-
);
|
|
21040
|
+
this.doClickHyperLink(t, n, o, m, d);
|
|
21041
|
+
}) : this.doClickHyperLink(t, n, o, m, d);
|
|
21096
21042
|
}
|
|
21097
21043
|
},
|
|
21098
21044
|
doClickHyperLink(e, t, n, o, l) {
|
|
21099
21045
|
let s = null;
|
|
21100
|
-
l.options.extraParam && l.options.extraParam.entityMap && (s = l.options.extraParam.entityMap), console.log(
|
|
21101
|
-
|
|
21102
|
-
l.
|
|
21046
|
+
l.options.extraParam && l.options.extraParam.entityMap && (s = l.options.extraParam.entityMap), console.log("ridParams.options.extraParam.entityMap", l.options.extraParam);
|
|
21047
|
+
const d = JSON.parse(
|
|
21048
|
+
JSON.stringify(l.pageContext && l.pageContext.page ? l.pageContext.page : {})
|
|
21103
21049
|
);
|
|
21104
|
-
const d = JSON.parse(JSON.stringify(l.pageContext && l.pageContext.page ? l.pageContext.page : {}));
|
|
21105
21050
|
o._pageData = d, jumpToPage(
|
|
21106
21051
|
o,
|
|
21107
21052
|
l.system,
|
|
@@ -21124,7 +21069,16 @@ const DynamicInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sf
|
|
|
21124
21069
|
o.options.extraParam && o.options.extraParam.entityMap && (y = o.options.extraParam.entityMap);
|
|
21125
21070
|
let E = {}, S;
|
|
21126
21071
|
if (e && e.formatter && e.formatter.options && e.formatter.options.format && (S = e.formatter.options.format), S && S !== "") {
|
|
21127
|
-
const k = initialization(
|
|
21072
|
+
const k = initialization(
|
|
21073
|
+
JSON.parse(S),
|
|
21074
|
+
t,
|
|
21075
|
+
n,
|
|
21076
|
+
d,
|
|
21077
|
+
m,
|
|
21078
|
+
s,
|
|
21079
|
+
y,
|
|
21080
|
+
o.pageContext
|
|
21081
|
+
);
|
|
21128
21082
|
k && k.label && k.label !== "" ? console.log("label存在") : k.label = this.objectPropValueTwo(t, e), k && k.title && k.title !== "" ? console.log("title存在") : k.title = k.label, E = k;
|
|
21129
21083
|
} else
|
|
21130
21084
|
E.visible = !0, E.label = this.objectPropValueTwo(t, e), E.title = E.label;
|