agilebuilder-ui 1.0.86 → 1.0.87
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 +14 -2
- package/lib/super-ui.umd.cjs +2 -2
- package/package.json +2 -2
- package/packages/super-grid/src/apis.js +20 -0
- package/packages/super-grid/src/utils.js +7 -2
- package/src/permission.js +7 -1
- package/src/store/modules/user.js +4 -1
- package/src/utils/permissionAuth.js +1 -1
package/lib/super-ui.js
CHANGED
|
@@ -12327,7 +12327,7 @@ function isDevpAccess() {
|
|
|
12327
12327
|
const e = getUsername();
|
|
12328
12328
|
if (e && e === "0bba9791-d4f1-47ca-b5e6-1fc840b54f3a") {
|
|
12329
12329
|
const n = getPostManagementCodes();
|
|
12330
|
-
if (n && n.indexOf(DEV_ROLE_PROJECT_ADMIN_CODE) >= 0 || n.
|
|
12330
|
+
if (n && n.indexOf(DEV_ROLE_PROJECT_ADMIN_CODE) >= 0 || n.indexOf(DEV_ROLE_PROJECT_VIEWER_CODE) >= 0)
|
|
12331
12331
|
return !0;
|
|
12332
12332
|
}
|
|
12333
12333
|
return !1;
|
|
@@ -17681,7 +17681,8 @@ function getHeaderAlign(e, t) {
|
|
|
17681
17681
|
return typeof t.options.headerAlign < "u" ? n = t.options.headerAlign : e.titleAlign && e.titleAlign !== "" ? n = e.titleAlign : n = "left", n;
|
|
17682
17682
|
}
|
|
17683
17683
|
function getHeaderLable(e) {
|
|
17684
|
-
|
|
17684
|
+
let t = e.label;
|
|
17685
|
+
return e.titleValueSet ? t = formatHeader(e) : t = t.replace(/\\n/g, "</br>"), (t == null || t === "") && (t = e.prop), t;
|
|
17685
17686
|
}
|
|
17686
17687
|
function formatHeader(e) {
|
|
17687
17688
|
return doFormatWithValueSet(e.titleValueSetValue, e.label);
|
|
@@ -19434,6 +19435,17 @@ const apis$2 = {
|
|
|
19434
19435
|
!isDynamicDataSourceSource(l) && l.valueSet && l.valueSet.length > 0 && (t[s] = l.valueSet);
|
|
19435
19436
|
}), t;
|
|
19436
19437
|
},
|
|
19438
|
+
// 获得该列表中,下拉选是选项组的字段信息,返回的key是属性名,value是选项集合
|
|
19439
|
+
getTableSelectOptions(e) {
|
|
19440
|
+
const t = {};
|
|
19441
|
+
return e || (e = store$1.get("_list_code")), store$1.get(e).columns.forEach((l) => {
|
|
19442
|
+
const s = l.prop;
|
|
19443
|
+
!isDynamicDataSourceSource(l) && l.valueSet && l.valueSet.length > 0 && (t[s] = {
|
|
19444
|
+
options: l.valueSet,
|
|
19445
|
+
column: l
|
|
19446
|
+
});
|
|
19447
|
+
}), t;
|
|
19448
|
+
},
|
|
19437
19449
|
// 取消列表的编辑状态
|
|
19438
19450
|
restoreGridEdit(e) {
|
|
19439
19451
|
e || (e = store$1.get("_list_code"));
|