agilebuilder-ui 1.1.2-tmp7 → 1.1.2-tmp9
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
CHANGED
|
@@ -18431,6 +18431,7 @@ const customFormatter$1 = {
|
|
|
18431
18431
|
bus.$off(this.componentId + "-pickFileDone"), bus.$off(this.componentId + "-uploadFileDone"), bus.$off(this.componentId + "-scanDone");
|
|
18432
18432
|
},
|
|
18433
18433
|
methods: {
|
|
18434
|
+
...customFormatter$1,
|
|
18434
18435
|
/**
|
|
18435
18436
|
* @author: 梁旭
|
|
18436
18437
|
* @description: 获取提示标题
|
|
@@ -18926,10 +18927,6 @@ const customFormatter$1 = {
|
|
|
18926
18927
|
return this.dataSourceType === "mysql" ? !0 : 1;
|
|
18927
18928
|
if (e === "inactiveValue")
|
|
18928
18929
|
return this.dataSourceType === "mysql" ? !1 : 0;
|
|
18929
|
-
if (e === "offColor")
|
|
18930
|
-
return "#ff4949";
|
|
18931
|
-
if (e === "onColor")
|
|
18932
|
-
return "#13ce66";
|
|
18933
18930
|
}
|
|
18934
18931
|
},
|
|
18935
18932
|
scanClick() {
|
|
@@ -18965,7 +18962,7 @@ const customFormatter$1 = {
|
|
|
18965
18962
|
const o = JSON.parse(JSON.stringify(n));
|
|
18966
18963
|
o && Array.isArray(o) ? (format.multPage = !0, o.forEach((l) => {
|
|
18967
18964
|
l.jumpPageSetting.displayTextJudge && l.jumpPageSetting.dynamicTags && l.jumpPageSetting.dynamicTags.length > 0 && (l.jumpPageSetting.displayText = l.jumpPageSetting.dynamicTags.join("-#-#"));
|
|
18968
|
-
})) : o.displayTextJudge && o.dynamicTags && o.dynamicTags.length > 0 && (o.displayText = o.dynamicTags.join("-#-#")),
|
|
18965
|
+
})) : o.displayTextJudge && o.dynamicTags && o.dynamicTags.length > 0 && (o.displayText = o.dynamicTags.join("-#-#")), this.jumpPageLink(this.column, this.row, this.listCode, this.rowIndex, o);
|
|
18969
18966
|
} else
|
|
18970
18967
|
this.callCustomEvent(e);
|
|
18971
18968
|
}
|
|
@@ -19345,11 +19342,9 @@ function _sfc_render$_(e, t, n, o, l, u) {
|
|
|
19345
19342
|
disabled: n.disabled,
|
|
19346
19343
|
"inactive-text": u.getSwitchConfig("inactiveText"),
|
|
19347
19344
|
"inactive-value": u.getSwitchConfig("inactiveValue"),
|
|
19348
|
-
"active-color": u.getSwitchConfig("onColor"),
|
|
19349
|
-
"inactive-color": u.getSwitchConfig("offColor"),
|
|
19350
19345
|
onChange: t[82] || (t[82] = (ne) => u.cellEvent("change", ne)),
|
|
19351
19346
|
onInput: t[83] || (t[83] = (ne) => u.cellEvent("input", ne, !0))
|
|
19352
|
-
}, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"
|
|
19347
|
+
}, null, 8, ["modelValue", "active-text", "active-value", "disabled", "inactive-text", "inactive-value"])) : n.type === "slider" ? (openBlock(), createBlock(X, {
|
|
19353
19348
|
key: 16,
|
|
19354
19349
|
ref: "item",
|
|
19355
19350
|
modelValue: l.innerValue,
|
|
@@ -36481,6 +36476,11 @@ const _sfc_main$s = {
|
|
|
36481
36476
|
openTree: {
|
|
36482
36477
|
type: Boolean,
|
|
36483
36478
|
default: !0
|
|
36479
|
+
},
|
|
36480
|
+
// 当前表单变量数据信息
|
|
36481
|
+
pageModels: {
|
|
36482
|
+
type: Object,
|
|
36483
|
+
default: null
|
|
36484
36484
|
}
|
|
36485
36485
|
},
|
|
36486
36486
|
data() {
|
|
@@ -36514,14 +36514,18 @@ const _sfc_main$s = {
|
|
|
36514
36514
|
}
|
|
36515
36515
|
},
|
|
36516
36516
|
getPropName(e, t, n) {
|
|
36517
|
-
return getPropNameWhenJoinTable(e, t, n);
|
|
36517
|
+
return e && e.startsWith("${") && (e = e.substring(e.indexOf(".") + 1, e.length - 1)), getPropNameWhenJoinTable(e, t, n);
|
|
36518
|
+
},
|
|
36519
|
+
getPropType(e) {
|
|
36520
|
+
let t = "data";
|
|
36521
|
+
return e && e.startsWith("${") && (t = e.substring(2, e.indexOf("."))), t;
|
|
36518
36522
|
},
|
|
36519
36523
|
// 清空已选的结果
|
|
36520
36524
|
emptyOrganizationResult() {
|
|
36521
36525
|
const e = this.fields;
|
|
36522
36526
|
e && e.length > 0 && (e.forEach((t) => {
|
|
36523
|
-
const n = this.getPropName(t.model);
|
|
36524
|
-
this.setValue(n, null);
|
|
36527
|
+
const n = this.getPropName(t.model), o = this.getPropType(t.model);
|
|
36528
|
+
this.setValue(n, null, o);
|
|
36525
36529
|
}), this.selectOrganizationAllInfo = {}, this.selectOrganizationInfo = null, this.searchField = null);
|
|
36526
36530
|
},
|
|
36527
36531
|
// 关闭组织树
|
|
@@ -36533,23 +36537,31 @@ const _sfc_main$s = {
|
|
|
36533
36537
|
typeof o > "u" && (o = !1);
|
|
36534
36538
|
const l = this.treeType, u = this.fields;
|
|
36535
36539
|
u && u.length > 0 && u.forEach((d) => {
|
|
36536
|
-
const v = d.type, _ = this.getOrgSelectData(v, e, this.isUserTree(l), o), E = this.getPropName(d.model);
|
|
36537
|
-
this.getOrgDataModel(E, _, o, v, t, n);
|
|
36540
|
+
const v = d.type, _ = this.getOrgSelectData(v, e, this.isUserTree(l), o), E = this.getPropName(d.model), S = this.getPropType(d.model);
|
|
36541
|
+
this.getOrgDataModel(E, _, o, v, t, n, S);
|
|
36538
36542
|
});
|
|
36539
36543
|
},
|
|
36540
36544
|
/**
|
|
36541
36545
|
* @param orgDataType 字段属性:id、name、loginName、code、email、telephone
|
|
36542
36546
|
*/
|
|
36543
|
-
getOrgDataModel(e, t, n, o, l, u) {
|
|
36547
|
+
getOrgDataModel(e, t, n, o, l, u, d) {
|
|
36544
36548
|
if (n) {
|
|
36545
|
-
const
|
|
36546
|
-
this.selectOrganizationAllInfo[o] = t, this.setValue(e, t), this.$emit("replace", e,
|
|
36549
|
+
const v = this.getModelValue(e, d);
|
|
36550
|
+
this.selectOrganizationAllInfo[o] = t, this.setValue(e, t, d), this.$emit("replace", e, v, t);
|
|
36547
36551
|
} else
|
|
36548
|
-
this.setValue(e, t);
|
|
36549
|
-
},
|
|
36550
|
-
getModelValue(e) {
|
|
36551
|
-
let
|
|
36552
|
-
|
|
36552
|
+
this.setValue(e, t, d);
|
|
36553
|
+
},
|
|
36554
|
+
getModelValue(e, t) {
|
|
36555
|
+
let n = this.models;
|
|
36556
|
+
t && t === "page" && (n = this.pageModels);
|
|
36557
|
+
let o = "";
|
|
36558
|
+
if (this.isJoinTable === !1 && e && e.indexOf(".") > 0)
|
|
36559
|
+
o = this.getParentObject(e, n)[e.substring(e.lastIndexOf(".") + 1)];
|
|
36560
|
+
else {
|
|
36561
|
+
const l = this.getPropName(e);
|
|
36562
|
+
t && t === "page" ? o = n ? n[l] : null : o = n[l];
|
|
36563
|
+
}
|
|
36564
|
+
return o;
|
|
36553
36565
|
},
|
|
36554
36566
|
// 是否是人员树
|
|
36555
36567
|
isUserTree(e) {
|
|
@@ -36673,9 +36685,9 @@ const _sfc_main$s = {
|
|
|
36673
36685
|
if (l && l.length > 0) {
|
|
36674
36686
|
const u = l[0];
|
|
36675
36687
|
if (u) {
|
|
36676
|
-
const d = this.getPropName(u.model), v = this.getModelValue(d);
|
|
36677
|
-
if (
|
|
36678
|
-
this.selectOrganizationInfo =
|
|
36688
|
+
const d = this.getPropName(u.model), v = this.getPropType(u.model), _ = this.getModelValue(d, v);
|
|
36689
|
+
if (_ && _ !== null && _ !== "") {
|
|
36690
|
+
this.selectOrganizationInfo = _, this.searchField = o;
|
|
36679
36691
|
break;
|
|
36680
36692
|
}
|
|
36681
36693
|
}
|
|
@@ -36690,14 +36702,21 @@ const _sfc_main$s = {
|
|
|
36690
36702
|
}
|
|
36691
36703
|
}
|
|
36692
36704
|
},
|
|
36693
|
-
setValue(e, t) {
|
|
36694
|
-
|
|
36705
|
+
setValue(e, t, n) {
|
|
36706
|
+
n || (n = this.getPropType(e));
|
|
36707
|
+
let o = this.models;
|
|
36708
|
+
n && n === "page" && (o = this.pageModels), this.setEntityValue(e, t, o);
|
|
36709
|
+
},
|
|
36710
|
+
setEntityValue(e, t, n) {
|
|
36711
|
+
if (n) {
|
|
36695
36712
|
if (this.isJoinTable === !1 && e && e.indexOf(".") > 0) {
|
|
36696
|
-
const
|
|
36697
|
-
|
|
36698
|
-
} else
|
|
36699
|
-
|
|
36700
|
-
|
|
36713
|
+
const o = this.getParentObject(e, n);
|
|
36714
|
+
o && setEntityFieldValue(o, e.substring(e.lastIndexOf(".") + 1), t);
|
|
36715
|
+
} else {
|
|
36716
|
+
const o = this.getPropName(e);
|
|
36717
|
+
setEntityFieldValue(n, o, t);
|
|
36718
|
+
}
|
|
36719
|
+
console.log("this.value===models=", n), this.$emit("setValue", e, t), (t == null || t === "") && this.$emit("clear", e);
|
|
36701
36720
|
}
|
|
36702
36721
|
},
|
|
36703
36722
|
getParentObject(e, t) {
|