agilebuilder-ui 1.0.40 → 1.0.41-beta1
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 +35 -27
- package/lib/super-ui.umd.cjs +3 -3
- package/package.json +1 -1
- package/packages/super-grid/src/apis.js +2 -1
- package/packages/super-grid/src/dynamic-input.vue +37 -6
- package/packages/super-grid/src/group-column.vue +2 -1
- package/src/views/layout/components/Menubar/index.vue +9 -2
package/lib/super-ui.js
CHANGED
|
@@ -12339,7 +12339,7 @@ function parseCondition(entity, conditionList, isSql, tableName, additionalParam
|
|
|
12339
12339
|
n.indexOf("parent_+_") !== -1 ? (n = n.replace("parent_+_", ""), n = n.split("_+_")[1], i = getValue$2(parentFormData, n, isSql)) : i = getValue$2(entity, n, isSql), o && i == null && (i = getValue$2(entity, o, isSql));
|
|
12340
12340
|
const l = t.operator, f = t.propValue, p = t.dataType, y = t.variableIsNull;
|
|
12341
12341
|
let x;
|
|
12342
|
-
pageContext ? x = getPropValueNew
|
|
12342
|
+
pageContext ? x = getPropValueNew(f, pageContext) : x = getPropValue(
|
|
12343
12343
|
f,
|
|
12344
12344
|
entity,
|
|
12345
12345
|
additionalParamMap,
|
|
@@ -12436,7 +12436,7 @@ function getLastNDay(e) {
|
|
|
12436
12436
|
console.log(`getLastNDay从 ${k} 开始,到 ${O} 结束`), retur[t];
|
|
12437
12437
|
}
|
|
12438
12438
|
function getPropValue(e, t, n, o, i, l, f) {
|
|
12439
|
-
return getPropValueNew
|
|
12439
|
+
return getPropValueNew(e, { entity: { data: t, context: o, request: n, parent: i, row: l, task: f } });
|
|
12440
12440
|
}
|
|
12441
12441
|
function getAdditionalParamMap$1(e) {
|
|
12442
12442
|
if (e && e.entity) {
|
|
@@ -12446,7 +12446,7 @@ function getAdditionalParamMap$1(e) {
|
|
|
12446
12446
|
return n && Object.assign(t, n), t;
|
|
12447
12447
|
}
|
|
12448
12448
|
}
|
|
12449
|
-
function getPropValueNew
|
|
12449
|
+
function getPropValueNew(e, t) {
|
|
12450
12450
|
let n = null;
|
|
12451
12451
|
if (e && e !== null && e !== "") {
|
|
12452
12452
|
const o = t && t.entity ? t.entity.data : null, i = getAdditionalParamMap$1(t), l = t && t.entity ? t.entity.context : null, f = t && t.entity ? t.entity.parent ? t.entity.parent : t.entity.data : null, p = t && t.entity ? t.entity.row : null, y = t && t.entity ? t.entity.task : null, x = t && t.entity ? t.entity.system : null;
|
|
@@ -12511,7 +12511,7 @@ function analysisValue(e, t, n, o, i) {
|
|
|
12511
12511
|
const f = e.split("-#-#");
|
|
12512
12512
|
return f != null && f.length > 0 && f.forEach((p) => {
|
|
12513
12513
|
let y;
|
|
12514
|
-
i ? y = getPropValueNew
|
|
12514
|
+
i ? y = getPropValueNew(
|
|
12515
12515
|
p,
|
|
12516
12516
|
i
|
|
12517
12517
|
) : y = getPropValue(
|
|
@@ -17327,6 +17327,9 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
|
|
|
17327
17327
|
if (this.column.componentType === "inputNumber" && this.setInputNumberConfig(), this.column.valueSetOptions && this.column.componentType !== "inputNumber") {
|
|
17328
17328
|
const t = JSON.parse(this.column.valueSetOptions);
|
|
17329
17329
|
t && t.valueSetOptions && (this.valueSetOptions = t.valueSetOptions), t.dynamicDataSourceCode && t.dynamicDataSourceCode !== "" && (this.dynamicDataSourceCode = t.dynamicDataSourceCode);
|
|
17330
|
+
} else if (this.column.componentType === "switch") {
|
|
17331
|
+
const t = JSON.parse(this.column.valueSetOptions);
|
|
17332
|
+
t && (this.valueSetOptions = t);
|
|
17330
17333
|
}
|
|
17331
17334
|
if (this.column.orgTreeSet) {
|
|
17332
17335
|
const t = JSON.parse(this.column.orgTreeSet);
|
|
@@ -17691,6 +17694,7 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
|
|
|
17691
17694
|
const t = Number(e);
|
|
17692
17695
|
return setEntityFieldValue(this.row, this.column.prop, t), t;
|
|
17693
17696
|
}
|
|
17697
|
+
return e;
|
|
17694
17698
|
},
|
|
17695
17699
|
refresData(e) {
|
|
17696
17700
|
$emit(this, "refresData", e);
|
|
@@ -17737,6 +17741,18 @@ const ViewImageDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$19, [["render",
|
|
|
17737
17741
|
},
|
|
17738
17742
|
isInvalidValue(e) {
|
|
17739
17743
|
return e == null || e === "";
|
|
17744
|
+
},
|
|
17745
|
+
getSwitchConfig(e) {
|
|
17746
|
+
if (this.valueSetOptions && this.valueSetOptions[e])
|
|
17747
|
+
return this.valueSetOptions[e];
|
|
17748
|
+
if (e === "activeValue")
|
|
17749
|
+
return this.dataSourceType === "mysql" ? !0 : 1;
|
|
17750
|
+
if (e === "inactiveValue")
|
|
17751
|
+
return this.dataSourceType === "mysql" ? !1 : 0;
|
|
17752
|
+
if (e === "offColor")
|
|
17753
|
+
return "#ff4949";
|
|
17754
|
+
if (e === "onColor")
|
|
17755
|
+
return "#13ce66";
|
|
17740
17756
|
}
|
|
17741
17757
|
}
|
|
17742
17758
|
};
|
|
@@ -18037,29 +18053,29 @@ function _sfc_render$U(e, t, n, o, i, l) {
|
|
|
18037
18053
|
onChange: t[73] || (t[73] = (z) => l.cellEvent("change", z)),
|
|
18038
18054
|
onFocus: t[74] || (t[74] = (z) => l.cellEvent("focus", z)),
|
|
18039
18055
|
onInput: t[75] || (t[75] = (z) => l.cellEvent("input", z))
|
|
18040
|
-
}, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) :
|
|
18056
|
+
}, null, 8, ["modelValue", "controls-position", "disabled", "max", "min", "precision", "step"])) : n.type === "switch" || n.column.dataType === "BOOLEAN" ? (openBlock(), createBlock(H, {
|
|
18041
18057
|
key: 15,
|
|
18042
18058
|
ref: "item",
|
|
18043
18059
|
modelValue: i.innerValue,
|
|
18044
18060
|
"onUpdate:modelValue": t[76] || (t[76] = (z) => i.innerValue = z),
|
|
18061
|
+
"active-text": l.getSwitchConfig("activeText"),
|
|
18062
|
+
"active-value": l.getSwitchConfig("activeValue"),
|
|
18045
18063
|
disabled: i.disabled,
|
|
18046
|
-
"
|
|
18047
|
-
"inactive-
|
|
18064
|
+
"inactive-text": l.getSwitchConfig("inactiveText"),
|
|
18065
|
+
"inactive-value": l.getSwitchConfig("inactiveValue"),
|
|
18066
|
+
"active-color": l.getSwitchConfig("onColor"),
|
|
18067
|
+
"inactive-color": l.getSwitchConfig("offColor"),
|
|
18048
18068
|
onChange: t[77] || (t[77] = (z) => l.cellEvent("change", z)),
|
|
18049
18069
|
onInput: t[78] || (t[78] = (z) => l.cellEvent("input", z, !0))
|
|
18050
|
-
}, null, 8, ["modelValue", "disabled"
|
|
18070
|
+
}, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value", "active-color", "inactive-color"])) : n.type === "slider" ? (openBlock(), createBlock(J, {
|
|
18051
18071
|
key: 16,
|
|
18052
18072
|
ref: "item",
|
|
18053
18073
|
modelValue: i.innerValue,
|
|
18054
18074
|
"onUpdate:modelValue": t[79] || (t[79] = (z) => i.innerValue = z),
|
|
18055
|
-
"active-value": 1,
|
|
18056
18075
|
disabled: i.disabled,
|
|
18057
|
-
"inactive-value": 0,
|
|
18058
|
-
"active-color": "#13ce66",
|
|
18059
|
-
"inactive-color": "#ff4949",
|
|
18060
18076
|
onChange: t[80] || (t[80] = (z) => l.cellEvent("change", z)),
|
|
18061
18077
|
onInput: t[81] || (t[81] = (z) => l.cellEvent("input", z, !0))
|
|
18062
|
-
}, null, 8, ["modelValue", "disabled"])) : n.type === "
|
|
18078
|
+
}, null, 8, ["modelValue", "disabled"])) : n.type === "rate" ? (openBlock(), createBlock(q, {
|
|
18063
18079
|
key: 17,
|
|
18064
18080
|
ref: "item",
|
|
18065
18081
|
modelValue: i.innerValue,
|
|
@@ -18067,16 +18083,8 @@ function _sfc_render$U(e, t, n, o, i, l) {
|
|
|
18067
18083
|
disabled: i.disabled,
|
|
18068
18084
|
onChange: t[83] || (t[83] = (z) => l.cellEvent("change", z)),
|
|
18069
18085
|
onInput: t[84] || (t[84] = (z) => l.cellEvent("input", z, !0))
|
|
18070
|
-
}, null, 8, ["modelValue", "disabled"])) : n.type === "rate" ? (openBlock(), createBlock(q, {
|
|
18071
|
-
key: 18,
|
|
18072
|
-
ref: "item",
|
|
18073
|
-
modelValue: i.innerValue,
|
|
18074
|
-
"onUpdate:modelValue": t[85] || (t[85] = (z) => i.innerValue = z),
|
|
18075
|
-
disabled: i.disabled,
|
|
18076
|
-
onChange: t[86] || (t[86] = (z) => l.cellEvent("change", z)),
|
|
18077
|
-
onInput: t[87] || (t[87] = (z) => l.cellEvent("input", z, !0))
|
|
18078
18086
|
}, null, 8, ["modelValue", "disabled"])) : i.deptManTree || i.deptTree || i.wgManTree || i.wgTree ? (openBlock(), createBlock(F, {
|
|
18079
|
-
key:
|
|
18087
|
+
key: 18,
|
|
18080
18088
|
"check-strictly": i.isCheckStrictly,
|
|
18081
18089
|
"department-info": i.departmentInfo,
|
|
18082
18090
|
disabled: i.disabled,
|
|
@@ -18125,11 +18133,11 @@ function _sfc_render$U(e, t, n, o, i, l) {
|
|
|
18125
18133
|
_: 1
|
|
18126
18134
|
}, 8, ["title", "visible"]),
|
|
18127
18135
|
i.showSingleImgFlag ? (openBlock(), createBlock(fe, {
|
|
18128
|
-
key:
|
|
18136
|
+
key: 19,
|
|
18129
18137
|
deleteable: !i.disabled,
|
|
18130
18138
|
downloadable: !i.disabled,
|
|
18131
18139
|
"file-list": i.fileList,
|
|
18132
|
-
onClose: t[
|
|
18140
|
+
onClose: t[85] || (t[85] = (z) => i.showSingleImgFlag = !1),
|
|
18133
18141
|
onDelete: l.deleteFile
|
|
18134
18142
|
}, null, 8, ["deleteable", "downloadable", "file-list", "onDelete"])) : createCommentVNode("", !0)
|
|
18135
18143
|
], 4));
|
|
@@ -20750,7 +20758,7 @@ const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["render", _sf
|
|
|
20750
20758
|
}
|
|
20751
20759
|
},
|
|
20752
20760
|
created() {
|
|
20753
|
-
this.label = this.getHeader();
|
|
20761
|
+
this.label = this.getHeader(), console.log("%c描述-181624", "color:#2E3435;background:#F8BB07;padding:3px;border-radius:2px", this.column);
|
|
20754
20762
|
},
|
|
20755
20763
|
methods: {
|
|
20756
20764
|
getHeader() {
|
|
@@ -20767,7 +20775,7 @@ const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$13, [["render", _sf
|
|
|
20767
20775
|
function _sfc_render$O(e, t, n, o, i, l) {
|
|
20768
20776
|
const f = resolveComponent("el-table-column");
|
|
20769
20777
|
return openBlock(), createBlock(f, {
|
|
20770
|
-
width:
|
|
20778
|
+
width: n.column.width ? n.column.width : 150,
|
|
20771
20779
|
align: n.column.groupHeader ? "center" : ""
|
|
20772
20780
|
}, {
|
|
20773
20781
|
header: withCtx(() => [
|
|
@@ -20797,7 +20805,7 @@ function _sfc_render$O(e, t, n, o, i, l) {
|
|
|
20797
20805
|
}, null, 8, ["is-sql", "column", "list-code"]))), 128))
|
|
20798
20806
|
]),
|
|
20799
20807
|
_: 1
|
|
20800
|
-
}, 8, ["align"]);
|
|
20808
|
+
}, 8, ["width", "align"]);
|
|
20801
20809
|
}
|
|
20802
20810
|
const GroupColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$12, [["render", _sfc_render$O]]);
|
|
20803
20811
|
/**!
|