agilebuilder-ui 1.0.90-tmp182 → 1.0.90-tmp184
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 +194 -81
- 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 +42 -1
- package/packages/super-grid/src/formValidatorUtil.js +74 -15
- package/packages/super-grid/src/normal-column-content.vue +41 -74
- 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
|
};
|
|
@@ -20459,6 +20568,7 @@ function _sfc_render$_(e, t, n, o, l, s) {
|
|
|
20459
20568
|
parent: l.parentFormData,
|
|
20460
20569
|
prop: n.column.prop,
|
|
20461
20570
|
row: n.row,
|
|
20571
|
+
"page-context": n.options.pageContext,
|
|
20462
20572
|
"row-index": n.position ? n.position.row : null,
|
|
20463
20573
|
"select-options": n.options,
|
|
20464
20574
|
value: l.innerValue,
|
|
@@ -20467,7 +20577,7 @@ function _sfc_render$_(e, t, n, o, l, s) {
|
|
|
20467
20577
|
"component-id": l.componentId,
|
|
20468
20578
|
onChange: t[0] || (t[0] = (ue) => s.cellEvent("change", ue)),
|
|
20469
20579
|
onInput: t[1] || (t[1] = (ue) => s.cellEvent("input", ue))
|
|
20470
|
-
}, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "row", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id"]))
|
|
20580
|
+
}, null, 40, ["disabled", "entity", "grid-data", "page-grid-data", "additional-settings", "parent", "prop", "row", "page-context", "row-index", "select-options", "value", "additional-param-map", "listCode", "component-id"]))
|
|
20471
20581
|
], 4)) : (openBlock(), createElementBlock("div", {
|
|
20472
20582
|
key: 1,
|
|
20473
20583
|
style: normalizeStyle(n.row.validateErrorField && n.row.validateErrorField === n.column.prop ? "border:1px solid red" : "")
|
|
@@ -22444,7 +22554,7 @@ function _sfc_render$W(e, t, n, o, l, s) {
|
|
|
22444
22554
|
], 4))
|
|
22445
22555
|
]);
|
|
22446
22556
|
}
|
|
22447
|
-
const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$W]]),
|
|
22557
|
+
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
22558
|
components: {
|
|
22449
22559
|
DynamicInput,
|
|
22450
22560
|
RowOperation,
|
|
@@ -22527,15 +22637,16 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22527
22637
|
},
|
|
22528
22638
|
data() {
|
|
22529
22639
|
let e;
|
|
22530
|
-
const t = store$1.get(this.listCode);
|
|
22640
|
+
const t = store$1.get(this.listCode), n = t.options;
|
|
22531
22641
|
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
|
-
|
|
22642
|
+
const o = getAdditionalParamMap(t);
|
|
22643
|
+
let l = {};
|
|
22644
|
+
this.column.controlConfig && (l = JSON.parse(this.column.controlConfig));
|
|
22645
|
+
let s = !1;
|
|
22646
|
+
l.scanEnable && (s = !0);
|
|
22647
|
+
const d = this.listCode + "_" + this.column.prop;
|
|
22648
|
+
let m;
|
|
22649
|
+
return t.lineEdit !== null && t.lineEdit !== void 0 && (m = t.lineEdit), {
|
|
22539
22650
|
selectRow: null,
|
|
22540
22651
|
that: this,
|
|
22541
22652
|
align: "left",
|
|
@@ -22563,46 +22674,31 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22563
22674
|
showRichEditorViewer: !1,
|
|
22564
22675
|
getFormData: t.options.getFormData,
|
|
22565
22676
|
getTableGridData: t.options.getGridData,
|
|
22566
|
-
additionalParamMap:
|
|
22677
|
+
additionalParamMap: o,
|
|
22567
22678
|
disabled: !1,
|
|
22568
22679
|
additionalSettings: this.getColumnCustomControlControlConfig(this.column.formatter),
|
|
22569
|
-
scanEnable:
|
|
22570
|
-
componentId:
|
|
22571
|
-
controlConfig:
|
|
22572
|
-
rowLinkConfigMapping: {}
|
|
22680
|
+
scanEnable: s,
|
|
22681
|
+
componentId: d,
|
|
22682
|
+
controlConfig: l,
|
|
22683
|
+
rowLinkConfigMapping: {},
|
|
22684
|
+
requiredClass: "",
|
|
22685
|
+
lineEdit: m,
|
|
22686
|
+
options: n
|
|
22573
22687
|
};
|
|
22574
22688
|
},
|
|
22575
22689
|
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
|
-
},
|
|
22690
|
+
// lineEdit() {
|
|
22691
|
+
// let isLineEdit = false
|
|
22692
|
+
// if (this.listCode) {
|
|
22693
|
+
// const gridParams = store.get(this.listCode)
|
|
22694
|
+
// if (gridParams.lineEdit !== null && gridParams.lineEdit !== undefined) {
|
|
22695
|
+
// isLineEdit = gridParams.lineEdit
|
|
22696
|
+
// } else {
|
|
22697
|
+
// isLineEdit = false
|
|
22698
|
+
// }
|
|
22699
|
+
// }
|
|
22700
|
+
// return isLineEdit
|
|
22701
|
+
// },
|
|
22606
22702
|
...mapGetters(["preventReclick"])
|
|
22607
22703
|
},
|
|
22608
22704
|
watch: {
|
|
@@ -22628,7 +22724,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22628
22724
|
const o = JSON.parse(this.column.fileSet);
|
|
22629
22725
|
o && o.multiple && (this.fileMultiple = !0);
|
|
22630
22726
|
}
|
|
22631
|
-
this.setScanRuleSets();
|
|
22727
|
+
this.setScanRuleSets(), this.requiredClass = this.isRequired(this.row.$editing) ? "m-requried" : "";
|
|
22632
22728
|
},
|
|
22633
22729
|
mounted() {
|
|
22634
22730
|
$on(bus, "un-edit", (t) => {
|
|
@@ -22778,6 +22874,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22778
22874
|
o,
|
|
22779
22875
|
this.listCode
|
|
22780
22876
|
);
|
|
22877
|
+
debugger;
|
|
22781
22878
|
return l.jumpPageSetting && t !== void 0 && (this.rowLinkConfigMapping[t] = l.jumpPageSetting), l.icon = this.getHyperIconClass(l), l;
|
|
22782
22879
|
},
|
|
22783
22880
|
getHyperIconClass(e) {
|
|
@@ -22841,7 +22938,7 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22841
22938
|
return this.controlConfig;
|
|
22842
22939
|
},
|
|
22843
22940
|
isRequired(e) {
|
|
22844
|
-
return !!(!this.isFormSubTable && this.lineEdit.editable && this.isEditable && e && this.column.validations && this.column.validations.indexOf('"required":true') > 0);
|
|
22941
|
+
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);
|
|
22845
22942
|
},
|
|
22846
22943
|
getFormatIconSetting(e) {
|
|
22847
22944
|
this.transferColumnDataToUpperCase(e);
|
|
@@ -22877,6 +22974,9 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22877
22974
|
this.scanEnable && this.controlConfig && this.controlConfig.scanRuleList && formatScanRuleSets(this.controlConfig.scanRuleList).then((e) => {
|
|
22878
22975
|
this.column._scanRuleSets = e;
|
|
22879
22976
|
});
|
|
22977
|
+
},
|
|
22978
|
+
changeRequired(e) {
|
|
22979
|
+
this.requiredClass = e ? "m-requried" : "";
|
|
22880
22980
|
}
|
|
22881
22981
|
},
|
|
22882
22982
|
emits: ["refresData", "refresPortData", "refresPortsData", "refresMainTableFields", "prohibitToEdit"]
|
|
@@ -22893,17 +22993,18 @@ const GridIcon = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_re
|
|
|
22893
22993
|
function _sfc_render$V(e, t, n, o, l, s) {
|
|
22894
22994
|
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");
|
|
22895
22995
|
return openBlock(), createElementBlock("div", _hoisted_1$Z, [
|
|
22896
|
-
|
|
22996
|
+
l.lineEdit.editable && l.isEditable && n.row.$editing || n.isShowForm ? (openBlock(), createBlock(d, {
|
|
22897
22997
|
key: 0,
|
|
22898
22998
|
value: n.row[n.column.prop],
|
|
22899
22999
|
"onUpdate:value": t[0] || (t[0] = (re) => n.row[n.column.prop] = re),
|
|
22900
|
-
class: normalizeClass(
|
|
23000
|
+
class: normalizeClass(l.requiredClass),
|
|
22901
23001
|
column: n.column,
|
|
22902
23002
|
"is-sql": n.isSql,
|
|
22903
|
-
"line-edit":
|
|
23003
|
+
"line-edit": l.lineEdit,
|
|
22904
23004
|
"list-code": n.listCode,
|
|
22905
23005
|
"list-toolbar-form-data": n.listToolbarFormData,
|
|
22906
23006
|
options: n.column.valueSet,
|
|
23007
|
+
"grid-options": l.options,
|
|
22907
23008
|
position: {
|
|
22908
23009
|
row: n.rowIndex,
|
|
22909
23010
|
prop: n.column.prop
|
|
@@ -22920,8 +23021,9 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
22920
23021
|
onRefresMainTableFields: s.refresMainTableFields,
|
|
22921
23022
|
onRefresPortData: s.refresPortData,
|
|
22922
23023
|
onRefresPortsData: s.refresPortsData,
|
|
22923
|
-
onChangeDisabled: s.changeDisabled
|
|
22924
|
-
|
|
23024
|
+
onChangeDisabled: s.changeDisabled,
|
|
23025
|
+
onChangeRequired: s.changeRequired
|
|
23026
|
+
}, 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, [
|
|
22925
23027
|
n.column.operations ? (openBlock(), createElementBlock("span", _hoisted_3$u, [
|
|
22926
23028
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(n.column.operations, (re, Ne) => (openBlock(), createElementBlock("span", {
|
|
22927
23029
|
key: Ne,
|
|
@@ -23005,8 +23107,9 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23005
23107
|
"show-value": e.$escapeHtml(s.getLabel(n.row, n.rowIndex)),
|
|
23006
23108
|
value: s.getCellValue(n.row),
|
|
23007
23109
|
"additional-param-map": l.additionalParamMap,
|
|
23008
|
-
"additional-settings": l.additionalSettings
|
|
23009
|
-
|
|
23110
|
+
"additional-settings": l.additionalSettings,
|
|
23111
|
+
pageContext: l.options.pageContext
|
|
23112
|
+
}, null, 8, ["entity", "parent", "prop", "row", "row-index", "select-options", "show-value", "value", "additional-param-map", "additional-settings", "pageContext"]))
|
|
23010
23113
|
], 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", {
|
|
23011
23114
|
key: 2,
|
|
23012
23115
|
class: normalizeClass(n.isShowForm ? "" : "cell--span")
|
|
@@ -23031,9 +23134,10 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23031
23134
|
listCode: n.listCode,
|
|
23032
23135
|
"component-id": l.componentId,
|
|
23033
23136
|
"additional-settings": l.additionalSettings,
|
|
23137
|
+
pageContext: l.options.pageContext,
|
|
23034
23138
|
onProhibitToEdit: s.prohibitToEdit,
|
|
23035
23139
|
onRefreshList: s.refreshList
|
|
23036
|
-
}, 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"]))
|
|
23140
|
+
}, 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"]))
|
|
23037
23141
|
], 2)) : l.columnFormatter !== void 0 && l.columnFormatter.type !== void 0 && l.columnFormatter.type === "secretInfo" ? (openBlock(), createElementBlock("span", {
|
|
23038
23142
|
key: 3,
|
|
23039
23143
|
id: n.column.prop + "DomData" + n.rowIndex,
|
|
@@ -23235,7 +23339,7 @@ function _sfc_render$V(e, t, n, o, l, s) {
|
|
|
23235
23339
|
}, null, 8, ["onCloseRichEditorContent"])) : createCommentVNode("", !0)
|
|
23236
23340
|
]);
|
|
23237
23341
|
}
|
|
23238
|
-
const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-
|
|
23342
|
+
const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$V], ["__scopeId", "data-v-ecfe5b27"]]), _sfc_main$1g = {
|
|
23239
23343
|
components: {
|
|
23240
23344
|
DynamicInput,
|
|
23241
23345
|
RowOperation,
|
|
@@ -23416,6 +23520,10 @@ const NormalColumnContent = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["rende
|
|
|
23416
23520
|
return this.column && this.column.prop === "operation" && !this.column.width ? "210" : this.column.width ? this.column.width + "" : "130";
|
|
23417
23521
|
},
|
|
23418
23522
|
// 设置字段禁止编辑
|
|
23523
|
+
fnProhibitToEdit(e) {
|
|
23524
|
+
this.$refs[this.column.prop].fnProhibitToEdit(e);
|
|
23525
|
+
},
|
|
23526
|
+
// 设置字段禁止编辑
|
|
23419
23527
|
prohibitToEdit(e) {
|
|
23420
23528
|
$emit(this, "prohibitToEdit", e);
|
|
23421
23529
|
},
|
|
@@ -23505,7 +23613,7 @@ function _sfc_render$U(e, t, n, o, l, s) {
|
|
|
23505
23613
|
_: 1
|
|
23506
23614
|
}, 8, ["align", "class-name", "filter-method", "filters", "fixed", "header-align", "prop", "sortable", "width"]);
|
|
23507
23615
|
}
|
|
23508
|
-
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U]
|
|
23616
|
+
const NormalColumn = /* @__PURE__ */ _export_sfc$1(_sfc_main$1g, [["render", _sfc_render$U]]), _sfc_main$1f = {
|
|
23509
23617
|
name: "GroupColumn",
|
|
23510
23618
|
components: {
|
|
23511
23619
|
NormalColumn
|
|
@@ -28443,7 +28551,7 @@ function isHasPermission(e, t) {
|
|
|
28443
28551
|
if (o !== void 0 && o === !0)
|
|
28444
28552
|
return !0;
|
|
28445
28553
|
}
|
|
28446
|
-
const
|
|
28554
|
+
const superGrid_vue_vue_type_style_index_0_scoped_d065edc0_rel_stylesheet_2Fscss_lang = "", _sfc_main$10 = {
|
|
28447
28555
|
components: {
|
|
28448
28556
|
IndexColumn,
|
|
28449
28557
|
SelectionColumn,
|
|
@@ -29851,7 +29959,10 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29851
29959
|
openFold(e) {
|
|
29852
29960
|
this.resizeTableHeight();
|
|
29853
29961
|
},
|
|
29854
|
-
|
|
29962
|
+
/**
|
|
29963
|
+
* 设置字段禁止编辑。只能控制禁止编辑。不能控制必填
|
|
29964
|
+
* @param entity 格式如:{'NAME':false,"DYM_COLUMN":true}。表示NAME字段不可编辑,DYM_COLUMN可以被编辑
|
|
29965
|
+
*/
|
|
29855
29966
|
fnProhibitToEdit(e) {
|
|
29856
29967
|
if (e) {
|
|
29857
29968
|
e.isForceUpdate && (this.$emit("fn-prohibit-to-edit", e), this.$emit("prohibitToEdit", e));
|
|
@@ -29861,7 +29972,10 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29861
29972
|
});
|
|
29862
29973
|
}
|
|
29863
29974
|
},
|
|
29864
|
-
|
|
29975
|
+
/**
|
|
29976
|
+
* 设置字段禁止编辑。只能控制禁止编辑。不能控制必填
|
|
29977
|
+
* @param entity 格式如:{'NAME':false,"DYM_COLUMN":true}。表示NAME字段不可编辑,DYM_COLUMN可以被编辑
|
|
29978
|
+
*/
|
|
29865
29979
|
prohibitToEdit(e) {
|
|
29866
29980
|
this.fnProhibitToEdit(e);
|
|
29867
29981
|
},
|
|
@@ -29969,8 +30083,7 @@ const superGrid_vue_vue_type_style_index_0_scoped_de02727c_rel_stylesheet_2Fscss
|
|
|
29969
30083
|
"un-edit",
|
|
29970
30084
|
"refresMainTableFields",
|
|
29971
30085
|
"refresh",
|
|
29972
|
-
"cancel-search"
|
|
29973
|
-
,
|
|
30086
|
+
"cancel-search"
|
|
29974
30087
|
]
|
|
29975
30088
|
}, _hoisted_1$N = {
|
|
29976
30089
|
key: 1,
|
|
@@ -30212,7 +30325,7 @@ function _sfc_render$E(e, t, n, o, l, s) {
|
|
|
30212
30325
|
}, 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)
|
|
30213
30326
|
], 4);
|
|
30214
30327
|
}
|
|
30215
|
-
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$E], ["__scopeId", "data-v-
|
|
30328
|
+
const SuperGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$E], ["__scopeId", "data-v-d065edc0"]]);
|
|
30216
30329
|
SuperGrid.install = function(e) {
|
|
30217
30330
|
e.component(SuperGrid.name, SuperGrid);
|
|
30218
30331
|
};
|
|
@@ -63414,7 +63527,7 @@ const _hoisted_1$7 = ["accept"], _hoisted_2$4 = ["accept"], _hoisted_3$4 = ["acc
|
|
|
63414
63527
|
};
|
|
63415
63528
|
function _sfc_render$7(e, t, n, o, l, s) {
|
|
63416
63529
|
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");
|
|
63417
|
-
return openBlock(), createElementBlock("
|
|
63530
|
+
return openBlock(), createElementBlock("span", null, [
|
|
63418
63531
|
n.disabled ? (openBlock(), createBlock(V, {
|
|
63419
63532
|
key: 1,
|
|
63420
63533
|
entity: n.row,
|