agilebuilder-ui 1.0.90-tmp181 → 1.0.90-tmp183
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.css +1 -1
- package/lib/super-ui.js +191 -80
- package/lib/super-ui.umd.cjs +5 -5
- package/package.json +1 -1
- package/packages/fs-upload-list/src/fs-upload-list.vue +2 -2
- package/packages/super-grid/src/apis.js +79 -0
- package/packages/super-grid/src/dynamic-input.vue +37 -1
- package/packages/super-grid/src/formValidatorUtil.js +74 -15
- package/packages/super-grid/src/normal-column-content.vue +54 -88
- package/packages/super-grid/src/normal-column.vue +4 -16
- package/packages/super-grid/src/super-grid.vue +9 -4
- package/packages/super-grid/src/utils.js +9 -0
- package/src/i18n/langs/cn.js +2 -1
- package/src/i18n/langs/en.js +2 -1
package/lib/super-ui.js
CHANGED
|
@@ -11433,7 +11433,8 @@ const en = {
|
|
|
11433
11433
|
forbiddenExceptionLinkUrl: "please click to apply",
|
|
11434
11434
|
forbiddenExceptionLinkUser: "if you have any questions,please contact",
|
|
11435
11435
|
uploadFileTip: "The file size should lower {fileSize}M",
|
|
11436
|
-
asyncExportJumpMsg: "Or click me to jump to download page."
|
|
11436
|
+
asyncExportJumpMsg: "Or click me to jump to download page.",
|
|
11437
|
+
mustFill: "{label} must fill"
|
|
11437
11438
|
},
|
|
11438
11439
|
superGrid: {
|
|
11439
11440
|
columnConfig: "Column Config",
|
|
@@ -11715,7 +11716,8 @@ const en = {
|
|
|
11715
11716
|
forbiddenExceptionLinkUrl: "请点击进行权限申请",
|
|
11716
11717
|
forbiddenExceptionLinkUser: "如有疑问请联系",
|
|
11717
11718
|
uploadFileTip: "上传的文件不超过{fileSize}M",
|
|
11718
|
-
asyncExportJumpMsg: "或点击我跳转到下载页面"
|
|
11719
|
+
asyncExportJumpMsg: "或点击我跳转到下载页面",
|
|
11720
|
+
mustFill: "{label} 必须填写"
|
|
11719
11721
|
},
|
|
11720
11722
|
// 列表组件
|
|
11721
11723
|
superGrid: {
|
|
@@ -17381,6 +17383,10 @@ function isDisableEdit(e, t, n) {
|
|
|
17381
17383
|
const _ = l.options.actionPermission;
|
|
17382
17384
|
isRowCanUpdate(_, d) === !1 && (o = !0);
|
|
17383
17385
|
}
|
|
17386
|
+
if (o === !1 && l.options.customRules && (l.options.customRules[e] || l.options.customRules._all_fields)) {
|
|
17387
|
+
const _ = l.options.customRules[e] ? l.options.customRules[e] : l.options.customRules._all_fields;
|
|
17388
|
+
_ && _.disabled && (o = !0);
|
|
17389
|
+
}
|
|
17384
17390
|
}
|
|
17385
17391
|
return o;
|
|
17386
17392
|
}
|
|
@@ -18378,23 +18384,49 @@ function getEndObjectRule(e, t, n) {
|
|
|
18378
18384
|
}
|
|
18379
18385
|
function getValidator(e) {
|
|
18380
18386
|
e || (e = store$1.get("_list_code"));
|
|
18381
|
-
const
|
|
18382
|
-
return n && n.forEach((
|
|
18383
|
-
setRules(
|
|
18384
|
-
}),
|
|
18387
|
+
const t = store$1.get(e), n = t.columns, o = t.options.customRules, l = {};
|
|
18388
|
+
return n && n.forEach((s) => {
|
|
18389
|
+
setRules(l, s, e, o);
|
|
18390
|
+
}), l;
|
|
18385
18391
|
}
|
|
18386
|
-
function setRules(e, t, n) {
|
|
18387
|
-
const
|
|
18392
|
+
function setRules(e, t, n, o) {
|
|
18393
|
+
const l = t.prop;
|
|
18388
18394
|
if (t.groupHeader && t.children && t.children.length > 0)
|
|
18389
|
-
t.children.forEach((
|
|
18390
|
-
setRules(e,
|
|
18391
|
-
});
|
|
18392
|
-
else if (
|
|
18393
|
-
const
|
|
18394
|
-
|
|
18395
|
-
|
|
18396
|
-
|
|
18395
|
+
t.children.forEach((s) => {
|
|
18396
|
+
setRules(e, s, n, o);
|
|
18397
|
+
});
|
|
18398
|
+
else if (l) {
|
|
18399
|
+
const s = getColumnCustomRules(t, o);
|
|
18400
|
+
if ((s || t.validations) && !isDisableEdit(l, n)) {
|
|
18401
|
+
let d = t.validations ? JSON.parse(t.validations) : [];
|
|
18402
|
+
d.forEach((m) => {
|
|
18403
|
+
m.pattern && (m.pattern = new RegExp(m.pattern));
|
|
18404
|
+
}), d = d.concat(s), l.indexOf(".") > 0 ? setObjectPropRule(t, e, d) : d && d.length > 0 && (e[l] = [...d]);
|
|
18405
|
+
}
|
|
18406
|
+
}
|
|
18407
|
+
}
|
|
18408
|
+
function getColumnCustomRules(e, t) {
|
|
18409
|
+
const n = e.prop;
|
|
18410
|
+
let o = [], l;
|
|
18411
|
+
const s = "_all_fields";
|
|
18412
|
+
let d;
|
|
18413
|
+
if (t && (d = t[n] ? t[n] : t[s]), d && (d.required || d.rules)) {
|
|
18414
|
+
const m = getI18n().t("imatrixUIMessage.mustFill", {
|
|
18415
|
+
label: e.label
|
|
18416
|
+
});
|
|
18417
|
+
if (o = d.rules ? JSON.parse(JSON.stringify(d.rules)) : null, o && o.length > 0) {
|
|
18418
|
+
const _ = o.filter((E) => E.required);
|
|
18419
|
+
_ && _.length > 0 && (l = _[0]);
|
|
18420
|
+
}
|
|
18421
|
+
d.name === s && o && o.forEach((_) => {
|
|
18422
|
+
_.message = e.label + _.message;
|
|
18423
|
+
}), !l && d.required && (o || (o = []), l = {
|
|
18424
|
+
required: !0,
|
|
18425
|
+
message: m,
|
|
18426
|
+
trigger: "blur"
|
|
18427
|
+
}, o.push(l)), l && !l.message && (l.message = m);
|
|
18397
18428
|
}
|
|
18429
|
+
return o;
|
|
18398
18430
|
}
|
|
18399
18431
|
function validator(e, t, n, o, l, s, d) {
|
|
18400
18432
|
return validatorEntity(e, t, n, o, !0, l, s, d);
|
|
@@ -19449,6 +19481,56 @@ const apis$2 = {
|
|
|
19449
19481
|
reloadSubTableData(e) {
|
|
19450
19482
|
const t = store$1.get(e);
|
|
19451
19483
|
t.options.subTableData = null, this.fetchListData();
|
|
19484
|
+
},
|
|
19485
|
+
/**
|
|
19486
|
+
* v10 行编辑时动态控制字段的编辑权限
|
|
19487
|
+
* @param pageContext 页面解析的上下文对象
|
|
19488
|
+
* @param customRules 格式如下:
|
|
19489
|
+
* [
|
|
19490
|
+
{
|
|
19491
|
+
name: '_all_fields', // _all_fields 表示所有字段
|
|
19492
|
+
disabled: true,
|
|
19493
|
+
required: true,
|
|
19494
|
+
rules: [
|
|
19495
|
+
{
|
|
19496
|
+
required: true,
|
|
19497
|
+
trigger: 'blur'
|
|
19498
|
+
},
|
|
19499
|
+
{
|
|
19500
|
+
type: 'email',
|
|
19501
|
+
trigger: ['blur', 'change']
|
|
19502
|
+
}
|
|
19503
|
+
]
|
|
19504
|
+
},
|
|
19505
|
+
{
|
|
19506
|
+
name: 'xxxx',
|
|
19507
|
+
disabled: true,
|
|
19508
|
+
required: true,
|
|
19509
|
+
rules: [
|
|
19510
|
+
{
|
|
19511
|
+
required: true,
|
|
19512
|
+
message: 'Please input email address',
|
|
19513
|
+
trigger: 'blur'
|
|
19514
|
+
},
|
|
19515
|
+
{
|
|
19516
|
+
type: 'email',
|
|
19517
|
+
message: 'Please input correct email address',
|
|
19518
|
+
trigger: ['blur', 'change']
|
|
19519
|
+
}
|
|
19520
|
+
]
|
|
19521
|
+
}
|
|
19522
|
+
]
|
|
19523
|
+
*/
|
|
19524
|
+
dynamicControlTableEdit(e, t, n) {
|
|
19525
|
+
const o = store$1.get(n);
|
|
19526
|
+
if (!t)
|
|
19527
|
+
return;
|
|
19528
|
+
let l = {};
|
|
19529
|
+
o.options.customRules && (l = JSON.parse(JSON.stringify(o.options.customRules))), t.forEach((s) => {
|
|
19530
|
+
const d = JSON.parse(JSON.stringify(s)), m = s.name;
|
|
19531
|
+
let _;
|
|
19532
|
+
l[m] || (l[m] = {}), _ = l[m].rules, d.rules && (_ || (_ = []), _ = _.concat(d.rules)), d.rules = _, o.options.customRules || (o.options.customRules = {}), o.options.customRules[m] = d;
|
|
19533
|
+
});
|
|
19452
19534
|
}
|
|
19453
19535
|
}, _sfc_main$1n = {
|
|
19454
19536
|
components: {
|
|
@@ -19728,6 +19810,7 @@ const _sfc_main$1m = {
|
|
|
19728
19810
|
type: Object,
|
|
19729
19811
|
default: null
|
|
19730
19812
|
},
|
|
19813
|
+
// 下拉选选项集合
|
|
19731
19814
|
options: {
|
|
19732
19815
|
type: Array,
|
|
19733
19816
|
default: null
|
|
@@ -19761,6 +19844,11 @@ const _sfc_main$1m = {
|
|
|
19761
19844
|
disabled: {
|
|
19762
19845
|
type: Boolean,
|
|
19763
19846
|
default: !1
|
|
19847
|
+
},
|
|
19848
|
+
// 列表配置信息
|
|
19849
|
+
gridOptions: {
|
|
19850
|
+
type: Object,
|
|
19851
|
+
default: null
|
|
19764
19852
|
}
|
|
19765
19853
|
},
|
|
19766
19854
|
data() {
|
|
@@ -19893,7 +19981,25 @@ const _sfc_main$1m = {
|
|
|
19893
19981
|
const t = JSON.parse(this.column.orgTreeSet);
|
|
19894
19982
|
this.type.indexOf("DeptTree") > 0 && t.checkStrictly && (this.isCheckStrictly = t.checkStrictly), t.length ? this.fields = t : t.orgTreeSetArr && (this.fields = t.orgTreeSetArr);
|
|
19895
19983
|
}
|
|
19896
|
-
this.getDateAllowTime()
|
|
19984
|
+
this.getDateAllowTime(), this.gridOptions.customRules || (this.gridOptions.customRules = {}), this.$watch(
|
|
19985
|
+
"gridOptions.customRules." + this.column.prop,
|
|
19986
|
+
(t, n) => {
|
|
19987
|
+
this.packageCustomRules(t);
|
|
19988
|
+
},
|
|
19989
|
+
{
|
|
19990
|
+
immediate: !0,
|
|
19991
|
+
deep: !0
|
|
19992
|
+
}
|
|
19993
|
+
), this.$watch(
|
|
19994
|
+
"gridOptions.customRules._all_fields",
|
|
19995
|
+
(t, n) => {
|
|
19996
|
+
this.packageCustomRules(t);
|
|
19997
|
+
},
|
|
19998
|
+
{
|
|
19999
|
+
immediate: !0,
|
|
20000
|
+
deep: !0
|
|
20001
|
+
}
|
|
20002
|
+
);
|
|
19897
20003
|
},
|
|
19898
20004
|
mounted() {
|
|
19899
20005
|
const e = this;
|
|
@@ -20440,6 +20546,9 @@ const _sfc_main$1m = {
|
|
|
20440
20546
|
},
|
|
20441
20547
|
closeBrowserScan(e) {
|
|
20442
20548
|
this.isShowBrowserScan = !1, this.innerValue = e, this.blurEvent();
|
|
20549
|
+
},
|
|
20550
|
+
packageCustomRules(e) {
|
|
20551
|
+
console.log("packageCustomRules---columnRule=", e), e && (e.disabled !== void 0 && this.$emit("change-disabled", e.disabled), e.required !== void 0 && this.$emit("change-required", e.required));
|
|
20443
20552
|
}
|
|
20444
20553
|
}
|
|
20445
20554
|
};
|
|
@@ -22444,7 +22553,7 @@ function _sfc_render$W(e, t, n, o, l, s) {
|
|
|
22444
22553
|
], 4))
|
|
22445
22554
|
]);
|
|
22446
22555
|
}
|
|
22447
|
-
const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$W]]),
|
|
22556
|
+
const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$W]]), normalColumnContent_vue_vue_type_style_index_0_scoped_ecfe5b27_lang = "", _sfc_main$1h = {
|
|
22448
22557
|
components: {
|
|
22449
22558
|
DynamicInput,
|
|
22450
22559
|
RowOperation,
|
|
@@ -22527,15 +22636,16 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22527
22636
|
},
|
|
22528
22637
|
data() {
|
|
22529
22638
|
let e;
|
|
22530
|
-
const t = store$1.get(this.listCode);
|
|
22639
|
+
const t = store$1.get(this.listCode), n = t.options;
|
|
22531
22640
|
t.options.extraParam && t.options.extraParam.entityMap && (e = t.options.extraParam.entityMap);
|
|
22532
|
-
const
|
|
22533
|
-
let
|
|
22534
|
-
this.column.controlConfig && (
|
|
22535
|
-
let
|
|
22536
|
-
|
|
22537
|
-
const
|
|
22538
|
-
|
|
22641
|
+
const o = getAdditionalParamMap(t);
|
|
22642
|
+
let l = {};
|
|
22643
|
+
this.column.controlConfig && (l = JSON.parse(this.column.controlConfig));
|
|
22644
|
+
let s = !1;
|
|
22645
|
+
l.scanEnable && (s = !0);
|
|
22646
|
+
const d = this.listCode + "_" + this.column.prop;
|
|
22647
|
+
let m;
|
|
22648
|
+
return t.lineEdit !== null && t.lineEdit !== void 0 && (m = t.lineEdit), {
|
|
22539
22649
|
selectRow: null,
|
|
22540
22650
|
that: this,
|
|
22541
22651
|
align: "left",
|
|
@@ -22563,46 +22673,31 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22563
22673
|
showRichEditorViewer: !1,
|
|
22564
22674
|
getFormData: t.options.getFormData,
|
|
22565
22675
|
getTableGridData: t.options.getGridData,
|
|
22566
|
-
additionalParamMap:
|
|
22676
|
+
additionalParamMap: o,
|
|
22567
22677
|
disabled: !1,
|
|
22568
22678
|
additionalSettings: this.getColumnCustomControlControlConfig(this.column.formatter),
|
|
22569
|
-
scanEnable:
|
|
22570
|
-
componentId:
|
|
22571
|
-
controlConfig:
|
|
22572
|
-
rowLinkConfigMapping: {}
|
|
22679
|
+
scanEnable: s,
|
|
22680
|
+
componentId: d,
|
|
22681
|
+
controlConfig: l,
|
|
22682
|
+
rowLinkConfigMapping: {},
|
|
22683
|
+
requiredClass: "",
|
|
22684
|
+
lineEdit: m,
|
|
22685
|
+
options: n
|
|
22573
22686
|
};
|
|
22574
22687
|
},
|
|
22575
22688
|
computed: {
|
|
22576
|
-
|
|
22577
|
-
|
|
22578
|
-
|
|
22579
|
-
|
|
22580
|
-
|
|
22581
|
-
|
|
22582
|
-
|
|
22583
|
-
|
|
22584
|
-
|
|
22585
|
-
|
|
22586
|
-
|
|
22587
|
-
},
|
|
22588
|
-
filterMethod() {
|
|
22589
|
-
return this.column.filterable ? this.filterHandler : null;
|
|
22590
|
-
},
|
|
22591
|
-
fixed() {
|
|
22592
|
-
return this.column.fixed && this.column.fixed === "false" || this.column.fixed === void 0 || this.column.fixed === "" ? !1 : this.column.prop === "operation" && this.column.fixed && this.column.fixed === "left" ? "right" : this.column.fixed;
|
|
22593
|
-
},
|
|
22594
|
-
sortable() {
|
|
22595
|
-
const e = store$1.get(this.listCode);
|
|
22596
|
-
return e && e.options && e.options.isFormSubTable && e.options.showOperationButton || this.column.sortable === "false" || this.column.sortable === !1 || this.column.sortable === "" ? !1 : this.column.sortable === "true" || this.column.sortable === !0 || this.column.sortable ? "custom" : !1;
|
|
22597
|
-
},
|
|
22598
|
-
lineEdit() {
|
|
22599
|
-
let e = !1;
|
|
22600
|
-
if (this.listCode) {
|
|
22601
|
-
const t = store$1.get(this.listCode);
|
|
22602
|
-
t.lineEdit !== null && t.lineEdit !== void 0 ? e = t.lineEdit : e = !1;
|
|
22603
|
-
}
|
|
22604
|
-
return e;
|
|
22605
|
-
},
|
|
22689
|
+
// lineEdit() {
|
|
22690
|
+
// let isLineEdit = false
|
|
22691
|
+
// if (this.listCode) {
|
|
22692
|
+
// const gridParams = store.get(this.listCode)
|
|
22693
|
+
// if (gridParams.lineEdit !== null && gridParams.lineEdit !== undefined) {
|
|
22694
|
+
// isLineEdit = gridParams.lineEdit
|
|
22695
|
+
// } else {
|
|
22696
|
+
// isLineEdit = false
|
|
22697
|
+
// }
|
|
22698
|
+
// }
|
|
22699
|
+
// return isLineEdit
|
|
22700
|
+
// },
|
|
22606
22701
|
...mapGetters(["preventReclick"])
|
|
22607
22702
|
},
|
|
22608
22703
|
watch: {
|
|
@@ -22628,7 +22723,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22628
22723
|
const o = JSON.parse(this.column.fileSet);
|
|
22629
22724
|
o && o.multiple && (this.fileMultiple = !0);
|
|
22630
22725
|
}
|
|
22631
|
-
this.setScanRuleSets();
|
|
22726
|
+
this.setScanRuleSets(), this.requiredClass = this.isRequired(this.row.$editing) ? "m-requried" : "";
|
|
22632
22727
|
},
|
|
22633
22728
|
mounted() {
|
|
22634
22729
|
$on(bus, "un-edit", (t) => {
|
|
@@ -22842,7 +22937,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22842
22937
|
return this.controlConfig;
|
|
22843
22938
|
},
|
|
22844
22939
|
isRequired(e) {
|
|
22845
|
-
return !!(!this.isFormSubTable && this.lineEdit.editable && this.isEditable && e && this.column.validations && this.column.validations.indexOf('"required":true') > 0);
|
|
22940
|
+
return console.log("isRequired---this.lineEdit=", this.lineEdit), !!(!this.isFormSubTable && this.lineEdit && this.lineEdit.editable && this.isEditable && e && this.column.validations && this.column.validations.indexOf('"required":true') > 0);
|
|
22846
22941
|
},
|
|
22847
22942
|
getFormatIconSetting(e) {
|
|
22848
22943
|
this.transferColumnDataToUpperCase(e);
|
|
@@ -22878,6 +22973,9 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22878
22973
|
this.scanEnable && this.controlConfig && this.controlConfig.scanRuleList && formatScanRuleSets(this.controlConfig.scanRuleList).then((e) => {
|
|
22879
22974
|
this.column._scanRuleSets = e;
|
|
22880
22975
|
});
|
|
22976
|
+
},
|
|
22977
|
+
changeRequired(e) {
|
|
22978
|
+
this.requiredClass = e ? "m-requried" : "";
|
|
22881
22979
|
}
|
|
22882
22980
|
},
|
|
22883
22981
|
emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit"]
|
|
@@ -22894,17 +22992,18 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22894
22992
|
function _sfc_render$V(e, t, n, o, l, s) {
|
|
22895
22993
|
const d = resolveComponent("dynamic-input"), m = resolveComponent("el-dropdown-item"), _ = resolveComponent("el-dropdown-menu"), E = resolveComponent("el-dropdown"), S = resolveComponent("row-operation"), k = resolveComponent("secret-info"), O = resolveComponent("FsPreview"), B = resolveComponent("el-icon"), R = resolveComponent("el-link"), H = resolveComponent("el-tooltip"), j = resolveComponent("GridIcon"), q = resolveComponent("view-image-dialog"), V = resolveComponent("rich-editor-viewer"), z = resolveDirective("permission");
|
|
22896
22994
|
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
22897
|
-
|
|
22995
|
+
l.lineEdit.editable && l.isEditable && n.row.$editing || n.isShowForm ? (openBlock(), createBlock(d, {
|
|
22898
22996
|
key: 0,
|
|
22899
22997
|
value: n.row[n.column.prop],
|
|
22900
22998
|
"onUpdate:value": t[0] || (t[0] = (re) => n.row[n.column.prop] = re),
|
|
22901
|
-
class: normalizeClass(
|
|
22999
|
+
class: normalizeClass(l.requiredClass),
|
|
22902
23000
|
column: n.column,
|
|
22903
23001
|
"is-sql": n.isSql,
|
|
22904
|
-
"line-edit":
|
|
23002
|
+
"line-edit": l.lineEdit,
|
|
22905
23003
|
"list-code": n.listCode,
|
|
22906
23004
|
"list-toolbar-form-data": n.listToolbarFormData,
|
|
22907
23005
|
options: n.column.valueSet,
|
|
23006
|
+
"grid-options": l.options,
|
|
22908
23007
|
position: {
|
|
22909
23008
|
row: n.rowIndex,
|
|
22910
23009
|
prop: n.column.prop
|
|
@@ -22921,8 +23020,9 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
22921
23020
|
onRefresMainTableFields: s.refresMainTableFields,
|
|
22922
23021
|
onRefresPortData: s.refresPortData,
|
|
22923
23022
|
onRefresPortsData: s.refresPortsData,
|
|
22924
|
-
onChangeDisabled: s.changeDisabled
|
|
22925
|
-
|
|
23023
|
+
onChangeDisabled: s.changeDisabled,
|
|
23024
|
+
onChangeRequired: s.changeRequired
|
|
23025
|
+
}, null, 8, ["value", "class", "column", "is-sql", "line-edit", "list-code", "list-toolbar-form-data", "options", "grid-options", "position", "disabled", "row", "row-index", "type", "onProhibitToEdit", "onRefreshList", "onRefresData", "onRefresMainTableFields", "onRefresPortData", "onRefresPortsData", "onChangeDisabled", "onChangeRequired"])) : (openBlock(), createElementBlock("span", _hoisted_2$C, [
|
|
22926
23026
|
n.column.operations ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
22927
23027
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.operations, (re, Ne) => (openBlock(), createElementBlock("span", {
|
|
22928
23028
|
key: Ne,
|
|
@@ -23006,8 +23106,9 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23006
23106
|
"show-value": e.$escapeHtml(s.getLabel(n.row, n.rowIndex)),
|
|
23007
23107
|
value: s.getCellValue(n.row),
|
|
23008
23108
|
"additional-param-map": l.additionalParamMap,
|
|
23009
|
-
"additional-settings": l.additionalSettings
|
|
23010
|
-
|
|
23109
|
+
"additional-settings": l.additionalSettings,
|
|
23110
|
+
pageContext: l.options.pageContext
|
|
23111
|
+
}, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "pageContext"]))
|
|
23011
23112
|
], 2)) : l.columnFormatter !== void 0 && l.columnFormatter.type !== void 0 && l.columnFormatter.type === "customControl" && l.columnFormatter.options && l.columnFormatter.options.format && l.columnFormatter.options.format !== "" ? (openBlock(), createElementBlock("span", {
|
|
23012
23113
|
key: 2,
|
|
23013
23114
|
class: normalizeClass(n.isShowForm ? "" : "cell--span")
|
|
@@ -23032,9 +23133,10 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23032
23133
|
listCode: n.listCode,
|
|
23033
23134
|
"component-id": l.componentId,
|
|
23034
23135
|
"additional-settings": l.additionalSettings,
|
|
23136
|
+
pageContext: l.options.pageContext,
|
|
23035
23137
|
onProhibitToEdit: s.prohibitToEdit,
|
|
23036
23138
|
onRefreshList: s.refreshList
|
|
23037
|
-
}, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "onProhibitToEdit", "onRefreshList"]))
|
|
23139
|
+
}, null, 40, ["current-page", "entity", "get-form-data", "get-grid-data", "grid-data", "page-grid-data", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "listCode", "component-id", "additional-settings", "pageContext", "onProhibitToEdit", "onRefreshList"]))
|
|
23038
23140
|
], 2)) : l.columnFormatter !== void 0 && l.columnFormatter.type !== void 0 && l.columnFormatter.type === "secretInfo" ? (openBlock(), createElementBlock("span", {
|
|
23039
23141
|
key: 3,
|
|
23040
23142
|
id: n.column.prop + "DomData" + n.rowIndex,
|
|
@@ -23236,7 +23338,7 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23236
23338
|
}, null, 8, ["onCloseRichEditorContent"])) : createCommentVNode("", !0)
|
|
23237
23339
|
]);
|
|
23238
23340
|
}
|
|
23239
|
-
const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-
|
|
23341
|
+
const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-ecfe5b27"]]), _sfc_main$1g = {
|
|
23240
23342
|
components: {
|
|
23241
23343
|
DynamicInput,
|
|
23242
23344
|
RowOperation,
|
|
@@ -23417,6 +23519,10 @@ const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["rende
|
|
|
23417
23519
|
return this.column && this.column.prop === "operation" && !this.column.width ? "210" : this.column.width ? this.column.width + "" : "130";
|
|
23418
23520
|
},
|
|
23419
23521
|
// 设置字段禁止编辑
|
|
23522
|
+
fnProhibitToEdit(e) {
|
|
23523
|
+
this.$refs[this.column.prop].fnProhibitToEdit(e);
|
|
23524
|
+
},
|
|
23525
|
+
// 设置字段禁止编辑
|
|
23420
23526
|
prohibitToEdit(e) {
|
|
23421
23527
|
$emit(this, "prohibitToEdit", e);
|
|
23422
23528
|
},
|
|
@@ -23506,7 +23612,7 @@ function _sfc_render$U(e, t, n, o, l, s) {
|
|
|
23506
23612
|
_: 1
|
|
23507
23613
|
}, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "width"]);
|
|
23508
23614
|
}
|
|
23509
|
-
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U]
|
|
23615
|
+
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U]]), _sfc_main$1f = {
|
|
23510
23616
|
name: "GroupColumn",
|
|
23511
23617
|
components: {
|
|
23512
23618
|
NormalColumn
|
|
@@ -28444,7 +28550,7 @@ function isHasPermission(e, t) {
|
|
|
28444
28550
|
if (o !== void 0 && o === !0)
|
|
28445
28551
|
return !0;
|
|
28446
28552
|
}
|
|
28447
|
-
const
|
|
28553
|
+
const superGrid_vue_vue_type_style_index_0_scoped_d065edc0_rel_stylesheet_2Fscss_lang = "", _sfc_main$10 = {
|
|
28448
28554
|
components: {
|
|
28449
28555
|
IndexColumn,
|
|
28450
28556
|
SelectionColumn,
|
|
@@ -29852,7 +29958,10 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29852
29958
|
openFold(e) {
|
|
29853
29959
|
this.resizeTableHeight();
|
|
29854
29960
|
},
|
|
29855
|
-
|
|
29961
|
+
/**
|
|
29962
|
+
* 设置字段禁止编辑。只能控制禁止编辑。不能控制必填
|
|
29963
|
+
* @param entity 格式如:{'NAME':false,"DYM_COLUMN":true}。表示NAME字段不可编辑,DYM_COLUMN可以被编辑
|
|
29964
|
+
*/
|
|
29856
29965
|
fnProhibitToEdit(e) {
|
|
29857
29966
|
if (e) {
|
|
29858
29967
|
e.isForceUpdate && (this.$emit("fn-prohibit-to-edit", e), this.$emit("prohibitToEdit", e));
|
|
@@ -29862,7 +29971,10 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29862
29971
|
});
|
|
29863
29972
|
}
|
|
29864
29973
|
},
|
|
29865
|
-
|
|
29974
|
+
/**
|
|
29975
|
+
* 设置字段禁止编辑。只能控制禁止编辑。不能控制必填
|
|
29976
|
+
* @param entity 格式如:{'NAME':false,"DYM_COLUMN":true}。表示NAME字段不可编辑,DYM_COLUMN可以被编辑
|
|
29977
|
+
*/
|
|
29866
29978
|
prohibitToEdit(e) {
|
|
29867
29979
|
this.fnProhibitToEdit(e);
|
|
29868
29980
|
},
|
|
@@ -29970,8 +30082,7 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29970
30082
|
"un-edit",
|
|
29971
30083
|
"refresMainTableFields",
|
|
29972
30084
|
"refresh",
|
|
29973
|
-
"cancel-search"
|
|
29974
|
-
,
|
|
30085
|
+
"cancel-search"
|
|
29975
30086
|
]
|
|
29976
30087
|
}, _hoisted_1$N = {
|
|
29977
30088
|
key: 1,
|
|
@@ -30213,7 +30324,7 @@ function _sfc_render$E(e, t, n, o, l, s) {
|
|
|
30213
30324
|
}, null, 8, ["parent-form-data", "columns", "row-index", "list-code", "drag-column-prop", "is-sql", "base-url", "options", "table-name", "page-code", "list-toolbar-form-data", "list-name", "current-page", "grid-data", "page-grid-data", "line-edit", "onClose", "onRefresData", "onRefresPortData", "onRefresPortsData", "onRefresMainTableFields", "onOpenPage", "onProhibitToEdit"])) : createCommentVNode("", !0)
|
|
30214
30325
|
], 4);
|
|
30215
30326
|
}
|
|
30216
|
-
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$E], ["__scopeId", "data-v-
|
|
30327
|
+
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$E], ["__scopeId", "data-v-d065edc0"]]);
|
|
30217
30328
|
SuperGrid.install = function(e) {
|
|
30218
30329
|
e.component(SuperGrid.name, SuperGrid);
|
|
30219
30330
|
};
|
|
@@ -63415,7 +63526,7 @@ const _hoisted_1$7 = ["accept"], _hoisted_2$4 = ["accept"], _hoisted_3$4 = ["acc
|
|
|
63415
63526
|
};
|
|
63416
63527
|
function _sfc_render$7(e, t, n, o, l, s) {
|
|
63417
63528
|
const d = resolveComponent("el-button"), m = resolveComponent("el-input"), _ = resolveComponent("el-upload"), E = resolveComponent("el-dialog"), S = resolveComponent("el-image"), k = resolveComponent("el-table-column"), O = resolveComponent("el-icon-view"), B = resolveComponent("el-icon"), R = resolveComponent("el-tooltip"), H = resolveComponent("el-icon-delete"), j = resolveComponent("el-table"), q = resolveComponent("FileUploadInputMobile"), V = resolveComponent("fs-preview");
|
|
63418
|
-
return openBlock(), createElementBlock("
|
|
63529
|
+
return openBlock(), createElementBlock("span", null, [
|
|
63419
63530
|
n.disabled ? (openBlock(), createBlock(V, {
|
|
63420
63531
|
key: 1,
|
|
63421
63532
|
entity: n.row,
|