mooho-base-admin-plus 2.10.75 → 2.10.77
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/README.md +0 -2
- package/history.md +2 -0
- package/package/mooho-base-admin-plus.min.esm.js +138 -46
- package/package/mooho-base-admin-plus.min.js +3 -3
- package/package/style.css +1 -1
- package/package.json +1 -1
- package/src/components/input/dialog-select.vue +17 -2
- package/src/components/view/filter-edit.vue +1 -1
- package/src/components/view/table-filter.vue +13 -4
- package/src/components/view/view-form.vue +41 -35
- package/src/components/view/view-table.vue +2 -2
- package/src/pages/system/role.vue +53 -3
- package/src/pages/system/user.vue +69 -3
- package/token.txt +2 -0
package/README.md
CHANGED
package/history.md
CHANGED
|
@@ -246,3 +246,5 @@ mooho-base-admin-plus@2.10.72 - modal-form组件增加excelTableTop插槽
|
|
|
246
246
|
mooho-base-admin-plus@2.10.73 - 更新lodop获取方式,避免跨域问题
|
|
247
247
|
mooho-base-admin-plus@2.10.74 - 表格批量选择允许自定义来源和目标视图
|
|
248
248
|
mooho-base-admin-plus@2.10.75 - 修复Excel表格只读状态可编辑的bug
|
|
249
|
+
mooho-base-admin-plus@2.10.76 - 增加筛选控件使用父对象作为条件的功能
|
|
250
|
+
mooho-base-admin-plus@2.10.77 - 内嵌表格增加重新加载方法
|
|
@@ -25081,6 +25081,21 @@ const _sfc_main$$ = {
|
|
|
25081
25081
|
this.$refs.userRoleDataTable.loadData([]), this.$refs.userRoleTable.loadData(), this.$refs.userRoleForm.close();
|
|
25082
25082
|
});
|
|
25083
25083
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
25084
|
+
},
|
|
25085
|
+
selectChange(a, r) {
|
|
25086
|
+
console.log("selectChange", a, r), a ? r.propertyDisplayValue = r._dataSource.find((o) => o.id == a).name : r.propertyDisplayValue = null;
|
|
25087
|
+
},
|
|
25088
|
+
multiSelectChange(a, r) {
|
|
25089
|
+
let o = [];
|
|
25090
|
+
a.forEach((s) => {
|
|
25091
|
+
o.push(r._dataSource.find((l) => l.id == s).name);
|
|
25092
|
+
}), r.propertyDisplayValue = o.join(",");
|
|
25093
|
+
},
|
|
25094
|
+
dialogSelectChange(a, r) {
|
|
25095
|
+
a ? r.propertyDisplayValue = a.name : r.propertyDisplayValue = null;
|
|
25096
|
+
},
|
|
25097
|
+
multiDialogSelectChange(a, r, o) {
|
|
25098
|
+
o.propertyDisplayValue = r;
|
|
25084
25099
|
}
|
|
25085
25100
|
}
|
|
25086
25101
|
}, _hoisted_1$K = { class: "i-layout-page-header" }, _hoisted_2$w = { class: "title" }, _hoisted_3$r = { class: "description" }, _hoisted_4$i = { class: "ivu-ml-8 ivu-mr-8" };
|
|
@@ -25197,21 +25212,28 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25197
25212
|
type: "text",
|
|
25198
25213
|
size: "small",
|
|
25199
25214
|
modelValue: L.propertyValue,
|
|
25200
|
-
"onUpdate:modelValue": (U) => L.propertyValue = U
|
|
25201
|
-
|
|
25215
|
+
"onUpdate:modelValue": (U) => L.propertyValue = U,
|
|
25216
|
+
onOnChange: () => {
|
|
25217
|
+
L.propertyDisplayValue = L.propertyValue;
|
|
25218
|
+
}
|
|
25219
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : L.controlType === "NumberInput" ? (openBlock(), createBlock(y, {
|
|
25202
25220
|
key: 1,
|
|
25203
25221
|
type: "number",
|
|
25204
25222
|
size: "small",
|
|
25205
25223
|
number: "",
|
|
25206
25224
|
modelValue: L.propertyValue,
|
|
25207
|
-
"onUpdate:modelValue": (U) => L.propertyValue = U
|
|
25208
|
-
|
|
25225
|
+
"onUpdate:modelValue": (U) => L.propertyValue = U,
|
|
25226
|
+
onOnChange: () => {
|
|
25227
|
+
L.propertyDisplayValue = L.propertyValue;
|
|
25228
|
+
}
|
|
25229
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : L.controlType === "Select" ? (openBlock(), createBlock(S, {
|
|
25209
25230
|
key: 2,
|
|
25210
25231
|
size: "small",
|
|
25211
25232
|
modelValue: L.propertyValue,
|
|
25212
25233
|
"onUpdate:modelValue": (U) => L.propertyValue = U,
|
|
25213
25234
|
clearable: !0,
|
|
25214
|
-
transfer: !0
|
|
25235
|
+
transfer: !0,
|
|
25236
|
+
onOnChange: (U) => c.selectChange(U, L)
|
|
25215
25237
|
}, {
|
|
25216
25238
|
default: withCtx(() => [
|
|
25217
25239
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(L._dataSource, (U) => (openBlock(), createBlock(_, {
|
|
@@ -25225,7 +25247,7 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25225
25247
|
}, 1032, ["value"]))), 128))
|
|
25226
25248
|
]),
|
|
25227
25249
|
_: 2
|
|
25228
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])) : L.controlType === "MultiSelect" ? (openBlock(), createBlock(S, {
|
|
25250
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : L.controlType === "MultiSelect" ? (openBlock(), createBlock(S, {
|
|
25229
25251
|
key: 3,
|
|
25230
25252
|
size: "small",
|
|
25231
25253
|
"model-value": L.propertyValue == null ? null : JSON.parse(L.propertyValue),
|
|
@@ -25234,7 +25256,8 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25234
25256
|
},
|
|
25235
25257
|
multiple: !0,
|
|
25236
25258
|
clearable: "",
|
|
25237
|
-
transfer: !0
|
|
25259
|
+
transfer: !0,
|
|
25260
|
+
onOnChange: (U) => c.multiSelectChange(U, L)
|
|
25238
25261
|
}, {
|
|
25239
25262
|
default: withCtx(() => [
|
|
25240
25263
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(L._dataSource, (U) => (openBlock(), createBlock(_, {
|
|
@@ -25248,7 +25271,7 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25248
25271
|
}, 1032, ["value"]))), 128))
|
|
25249
25272
|
]),
|
|
25250
25273
|
_: 2
|
|
25251
|
-
}, 1032, ["model-value", "onUpdate:modelValue"])) : L.controlType === "DialogSelect" ? (openBlock(), createBlock(C, {
|
|
25274
|
+
}, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : L.controlType === "DialogSelect" ? (openBlock(), createBlock(C, {
|
|
25252
25275
|
key: 4,
|
|
25253
25276
|
modelValue: L.propertyValue,
|
|
25254
25277
|
"onUpdate:modelValue": (U) => L.propertyValue = U,
|
|
@@ -25256,8 +25279,9 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25256
25279
|
source: L.source,
|
|
25257
25280
|
"source-data-code": L.sourceDataCode,
|
|
25258
25281
|
"source-display-code": L.sourceDisplayCode,
|
|
25259
|
-
param: c.getParam(L)
|
|
25260
|
-
|
|
25282
|
+
param: c.getParam(L),
|
|
25283
|
+
onOnChange: (U) => c.dialogSelectChange(U, L)
|
|
25284
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "onOnChange"])) : L.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(C, {
|
|
25261
25285
|
key: 5,
|
|
25262
25286
|
modelValue: L.propertyValue,
|
|
25263
25287
|
"onUpdate:modelValue": (U) => L.propertyValue = U,
|
|
@@ -25266,8 +25290,9 @@ function _sfc_render$$(a, r, o, s, l, c) {
|
|
|
25266
25290
|
source: L.source,
|
|
25267
25291
|
"source-data-code": L.sourceDataCode,
|
|
25268
25292
|
"source-display-code": L.sourceDisplayCode,
|
|
25269
|
-
param: c.getParam(L)
|
|
25270
|
-
|
|
25293
|
+
param: c.getParam(L),
|
|
25294
|
+
onOnChange: (U, B) => c.multiDialogSelectChange(U, B, L)
|
|
25295
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "onOnChange"])) : L.controlType === "Check" ? (openBlock(), createBlock(b, {
|
|
25271
25296
|
key: 6,
|
|
25272
25297
|
"model-value": !!a.parseData(L, F),
|
|
25273
25298
|
"onUpdate:modelValue": (U) => a.setData(L, F, U)
|
|
@@ -26920,8 +26945,7 @@ function _sfc_render$W(a, r, o, s, l, c) {
|
|
|
26920
26945
|
createVNode$1(d, {
|
|
26921
26946
|
type: "text",
|
|
26922
26947
|
modelValue: l.paramData.val,
|
|
26923
|
-
"onUpdate:modelValue": r[37] || (r[37] = (D) => l.paramData.val = D)
|
|
26924
|
-
onOnFocus: c.openValueSelect
|
|
26948
|
+
"onUpdate:modelValue": r[37] || (r[37] = (D) => l.paramData.val = D)
|
|
26925
26949
|
}, {
|
|
26926
26950
|
prepend: withCtx(() => [
|
|
26927
26951
|
createVNode$1(u, {
|
|
@@ -26930,7 +26954,7 @@ function _sfc_render$W(a, r, o, s, l, c) {
|
|
|
26930
26954
|
}, null, 8, ["onClick"])
|
|
26931
26955
|
]),
|
|
26932
26956
|
_: 1
|
|
26933
|
-
}, 8, ["modelValue"
|
|
26957
|
+
}, 8, ["modelValue"])
|
|
26934
26958
|
]),
|
|
26935
26959
|
_: 1
|
|
26936
26960
|
})
|
|
@@ -28661,6 +28685,21 @@ const taskQueue = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_rend
|
|
|
28661
28685
|
this.user.dataPermission = JSON.stringify(a), this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
28662
28686
|
await modelApi.update("User", this.user), this.success("Front_Msg_Success"), this.$refs.dataPermissionForm.close();
|
|
28663
28687
|
});
|
|
28688
|
+
},
|
|
28689
|
+
selectChange(a, r) {
|
|
28690
|
+
console.log("selectChange", a, r), a ? r.propertyDisplayValue = r._dataSource.find((o) => o.id == a).name : r.propertyDisplayValue = null;
|
|
28691
|
+
},
|
|
28692
|
+
multiSelectChange(a, r) {
|
|
28693
|
+
let o = [];
|
|
28694
|
+
a.forEach((s) => {
|
|
28695
|
+
o.push(r._dataSource.find((l) => l.id == s).name);
|
|
28696
|
+
}), r.propertyDisplayValue = o.join(",");
|
|
28697
|
+
},
|
|
28698
|
+
dialogSelectChange(a, r) {
|
|
28699
|
+
a ? r.propertyDisplayValue = a.name : r.propertyDisplayValue = null;
|
|
28700
|
+
},
|
|
28701
|
+
multiDialogSelectChange(a, r, o) {
|
|
28702
|
+
o.propertyDisplayValue = r;
|
|
28664
28703
|
}
|
|
28665
28704
|
}
|
|
28666
28705
|
}, _hoisted_1$z = { class: "i-layout-page-header" };
|
|
@@ -28794,21 +28833,28 @@ function _sfc_render$N(a, r, o, s, l, c) {
|
|
|
28794
28833
|
type: "text",
|
|
28795
28834
|
size: "small",
|
|
28796
28835
|
modelValue: E.propertyValue,
|
|
28797
|
-
"onUpdate:modelValue": (P) => E.propertyValue = P
|
|
28798
|
-
|
|
28836
|
+
"onUpdate:modelValue": (P) => E.propertyValue = P,
|
|
28837
|
+
onOnChange: () => {
|
|
28838
|
+
E.propertyDisplayValue = E.propertyValue;
|
|
28839
|
+
}
|
|
28840
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : E.controlType === "NumberInput" ? (openBlock(), createBlock(y, {
|
|
28799
28841
|
key: 1,
|
|
28800
28842
|
type: "number",
|
|
28801
28843
|
size: "small",
|
|
28802
28844
|
number: "",
|
|
28803
28845
|
modelValue: E.propertyValue,
|
|
28804
|
-
"onUpdate:modelValue": (P) => E.propertyValue = P
|
|
28805
|
-
|
|
28846
|
+
"onUpdate:modelValue": (P) => E.propertyValue = P,
|
|
28847
|
+
onOnChange: () => {
|
|
28848
|
+
E.propertyDisplayValue = E.propertyValue;
|
|
28849
|
+
}
|
|
28850
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : E.controlType === "Select" ? (openBlock(), createBlock(S, {
|
|
28806
28851
|
key: 2,
|
|
28807
28852
|
size: "small",
|
|
28808
28853
|
modelValue: E.propertyValue,
|
|
28809
28854
|
"onUpdate:modelValue": (P) => E.propertyValue = P,
|
|
28810
28855
|
clearable: !0,
|
|
28811
|
-
transfer: !0
|
|
28856
|
+
transfer: !0,
|
|
28857
|
+
onOnChange: (P) => c.selectChange(P, E)
|
|
28812
28858
|
}, {
|
|
28813
28859
|
default: withCtx(() => [
|
|
28814
28860
|
(openBlock(!0), createElementBlock(Fragment, null, renderList(E._dataSource, (P) => (openBlock(), createBlock(_, {
|
|
@@ -28822,17 +28868,42 @@ function _sfc_render$N(a, r, o, s, l, c) {
|
|
|
28822
28868
|
}, 1032, ["value"]))), 128))
|
|
28823
28869
|
]),
|
|
28824
28870
|
_: 2
|
|
28825
|
-
}, 1032, ["modelValue", "onUpdate:modelValue"])) : E.controlType === "
|
|
28871
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "onOnChange"])) : E.controlType === "MultiSelect" ? (openBlock(), createBlock(S, {
|
|
28826
28872
|
key: 3,
|
|
28873
|
+
size: "small",
|
|
28874
|
+
"model-value": E.propertyValue == null ? null : JSON.parse(E.propertyValue),
|
|
28875
|
+
"onUpdate:modelValue": (P) => {
|
|
28876
|
+
E.propertyValue = P.length == 0 ? null : JSON.stringify(P);
|
|
28877
|
+
},
|
|
28878
|
+
multiple: !0,
|
|
28879
|
+
clearable: "",
|
|
28880
|
+
transfer: !0,
|
|
28881
|
+
onOnChange: (P) => c.multiSelectChange(P, E)
|
|
28882
|
+
}, {
|
|
28883
|
+
default: withCtx(() => [
|
|
28884
|
+
(openBlock(!0), createElementBlock(Fragment, null, renderList(E._dataSource, (P) => (openBlock(), createBlock(_, {
|
|
28885
|
+
key: P.id,
|
|
28886
|
+
value: P.id
|
|
28887
|
+
}, {
|
|
28888
|
+
default: withCtx(() => [
|
|
28889
|
+
createTextVNode(toDisplayString$2(P.name), 1)
|
|
28890
|
+
]),
|
|
28891
|
+
_: 2
|
|
28892
|
+
}, 1032, ["value"]))), 128))
|
|
28893
|
+
]),
|
|
28894
|
+
_: 2
|
|
28895
|
+
}, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : E.controlType === "DialogSelect" ? (openBlock(), createBlock(C, {
|
|
28896
|
+
key: 4,
|
|
28827
28897
|
modelValue: E.propertyValue,
|
|
28828
28898
|
"onUpdate:modelValue": (P) => E.propertyValue = P,
|
|
28829
28899
|
size: "small",
|
|
28830
28900
|
source: E.source,
|
|
28831
28901
|
"source-data-code": E.sourceDataCode,
|
|
28832
28902
|
"source-display-code": E.sourceDisplayCode,
|
|
28833
|
-
param: c.getParam(E)
|
|
28834
|
-
|
|
28835
|
-
|
|
28903
|
+
param: c.getParam(E),
|
|
28904
|
+
onOnChange: (P) => c.dialogSelectChange(P, E)
|
|
28905
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "onOnChange"])) : E.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(C, {
|
|
28906
|
+
key: 5,
|
|
28836
28907
|
modelValue: E.propertyValue,
|
|
28837
28908
|
"onUpdate:modelValue": (P) => E.propertyValue = P,
|
|
28838
28909
|
size: "small",
|
|
@@ -28840,9 +28911,10 @@ function _sfc_render$N(a, r, o, s, l, c) {
|
|
|
28840
28911
|
source: E.source,
|
|
28841
28912
|
"source-data-code": E.sourceDataCode,
|
|
28842
28913
|
"source-display-code": E.sourceDisplayCode,
|
|
28843
|
-
param: c.getParam(E)
|
|
28844
|
-
|
|
28845
|
-
|
|
28914
|
+
param: c.getParam(E),
|
|
28915
|
+
onOnChange: (P, I) => c.multiDialogSelectChange(P, I, E)
|
|
28916
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "onOnChange"])) : E.controlType === "Check" ? (openBlock(), createBlock(b, {
|
|
28917
|
+
key: 6,
|
|
28846
28918
|
"model-value": !!a.parseData(E, T),
|
|
28847
28919
|
"onUpdate:modelValue": (P) => a.setData(E, T, P)
|
|
28848
28920
|
}, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("", !0)
|
|
@@ -30497,11 +30569,15 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$G, [["render", _sfc_re
|
|
|
30497
30569
|
// 多选保存
|
|
30498
30570
|
multiSave() {
|
|
30499
30571
|
let a = this.$refs.dialogTable.getSelected(), r = a.length == 0 ? null : a.map((s) => this.parseData(s, this.sourceDataCode)), o = a.length == 0 ? null : a.map((s) => this.parseData(s, this.sourceDisplayCode)).join(",");
|
|
30500
|
-
this.$emit("update:modelValue", JSON.stringify(r)), this.selected = o, this.selectedData = r, this.$emit("on-change", r), this.$refs.dialogTable.close();
|
|
30572
|
+
this.$emit("update:modelValue", JSON.stringify(r)), this.selected = o, this.selectedData = r, this.$emit("on-change", r, o), this.$refs.dialogTable.close();
|
|
30501
30573
|
},
|
|
30502
30574
|
// 关闭
|
|
30503
30575
|
close() {
|
|
30504
30576
|
this.$refs.dialogTable.close();
|
|
30577
|
+
},
|
|
30578
|
+
// 双击行选中
|
|
30579
|
+
dialogTableRowDblclick(a) {
|
|
30580
|
+
this.multi || this.dialogCheck(a);
|
|
30505
30581
|
}
|
|
30506
30582
|
}
|
|
30507
30583
|
};
|
|
@@ -30534,7 +30610,8 @@ function _sfc_render$F(a, r, o, s, l, c) {
|
|
|
30534
30610
|
autoLoad: !1,
|
|
30535
30611
|
"select-enable": o.multi,
|
|
30536
30612
|
"check-cross-page": !0,
|
|
30537
|
-
"footer-enable": o.multi
|
|
30613
|
+
"footer-enable": o.multi,
|
|
30614
|
+
onOnRowDblclick: c.dialogTableRowDblclick
|
|
30538
30615
|
}, {
|
|
30539
30616
|
command: withCtx(({ row: p }) => [
|
|
30540
30617
|
o.multi ? createCommentVNode("", !0) : (openBlock(), createBlock(u, {
|
|
@@ -30573,7 +30650,7 @@ function _sfc_render$F(a, r, o, s, l, c) {
|
|
|
30573
30650
|
})
|
|
30574
30651
|
]),
|
|
30575
30652
|
_: 1
|
|
30576
|
-
}, 8, ["view-code", "select-enable", "footer-enable"])
|
|
30653
|
+
}, 8, ["view-code", "select-enable", "footer-enable", "onOnRowDblclick"])
|
|
30577
30654
|
]);
|
|
30578
30655
|
}
|
|
30579
30656
|
const DialogSelect = /* @__PURE__ */ _export_sfc(_sfc_main$F, [["render", _sfc_render$F]]), __vite_glob_1_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
@@ -40622,6 +40699,15 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_ren
|
|
|
40622
40699
|
// 字段
|
|
40623
40700
|
columns: {
|
|
40624
40701
|
type: Array
|
|
40702
|
+
},
|
|
40703
|
+
/**
|
|
40704
|
+
* 内嵌表格的父对象
|
|
40705
|
+
*/
|
|
40706
|
+
parentData: {
|
|
40707
|
+
type: Object,
|
|
40708
|
+
default() {
|
|
40709
|
+
return {};
|
|
40710
|
+
}
|
|
40625
40711
|
}
|
|
40626
40712
|
},
|
|
40627
40713
|
watch: {
|
|
@@ -40756,7 +40842,7 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_ren
|
|
|
40756
40842
|
let o = this.columns.filter((l) => l.needRefresh === !0)[0];
|
|
40757
40843
|
if (o == null)
|
|
40758
40844
|
break;
|
|
40759
|
-
let s = this.getParam(this.data, o);
|
|
40845
|
+
let s = this.getParam(this.data, o, this.parentData);
|
|
40760
40846
|
(o.controlType === "Select" || o.controlType === "MultiSelect" || o.controlType === "TreeSelect" || o.controlType === "MultiTreeSelect" || o.controlType === "SelectWithOther" || o.controlType === "ComboSelect" || o.controlType === "MultiComboSelect" || o.controlType === "Radio") && (s != null ? this.fillDataSource(this.data, o, s) : (o.dataSource = [], this.setData(this.data, o.code, null), o.triggers.forEach((l) => {
|
|
40761
40847
|
l.needRefresh = !0;
|
|
40762
40848
|
}))), o.needRefresh = !1;
|
|
@@ -40850,7 +40936,7 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_ren
|
|
|
40850
40936
|
async loadOption(a, r, o) {
|
|
40851
40937
|
if (r.isStaticItem || r.dataType && r.dataType.startsWith("Enum:"))
|
|
40852
40938
|
return;
|
|
40853
|
-
let s = this.getParam(a, r);
|
|
40939
|
+
let s = this.getParam(a, r, this.parentData);
|
|
40854
40940
|
s != null ? (s[r.sourceDisplayCode + "_c"] = o, this.fillDataSource(a, r, s)) : (r.rawData = [], r.dataSource = [], this.setData(a, r.code, null), r.triggers.forEach((l) => {
|
|
40855
40941
|
l.needClear = !0;
|
|
40856
40942
|
}));
|
|
@@ -41065,7 +41151,7 @@ function _sfc_render$r(a, r, o, s, l, c) {
|
|
|
41065
41151
|
source: A.source,
|
|
41066
41152
|
"source-data-code": A.sourceDataCode,
|
|
41067
41153
|
"source-display-code": A.sourceDisplayCode,
|
|
41068
|
-
param: a.getParam(l.data, A),
|
|
41154
|
+
param: a.getParam(l.data, A, o.parentData),
|
|
41069
41155
|
controlWidth: A.controlWidth,
|
|
41070
41156
|
onOnChange: (O) => c.onSelectDataChange(A, O)
|
|
41071
41157
|
}, null, 8, ["model-value", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : A.controlType === "MultiDialogSelect" ? (openBlock(), createBlock(v, {
|
|
@@ -41077,7 +41163,7 @@ function _sfc_render$r(a, r, o, s, l, c) {
|
|
|
41077
41163
|
source: A.source,
|
|
41078
41164
|
"source-data-code": A.sourceDataCode,
|
|
41079
41165
|
"source-display-code": A.sourceDisplayCode,
|
|
41080
|
-
param: a.getParam(l.data, A),
|
|
41166
|
+
param: a.getParam(l.data, A, o.parentData),
|
|
41081
41167
|
controlWidth: A.controlWidth,
|
|
41082
41168
|
onOnChange: (O) => c.onSelectDataChange(A, O)
|
|
41083
41169
|
}, null, 8, ["model-value", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : A.controlType === "Date" || A.controlType === "DateTime" || A.controlType === "Year" || A.controlType === "Month" || A.controlType === "DateRange" ? (openBlock(), createBlock(y, {
|
|
@@ -41861,15 +41947,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
|
|
|
41861
41947
|
watch: {
|
|
41862
41948
|
data() {
|
|
41863
41949
|
this.data && Object.keys(this.data).length > 0 && this.columns.forEach(async (a) => {
|
|
41864
|
-
(a.controlType == "Table" || a.controlType == "ExcelTable") && this.$refs["table_" + a.code] ?
|
|
41865
|
-
if (a.tableStoreType == "Inner") {
|
|
41866
|
-
let r = this.parseData(this.data, a.code);
|
|
41867
|
-
r && this.$refs["table_" + a.code][0].loadData(JSON.parse(r));
|
|
41868
|
-
} else if (this.data.id) {
|
|
41869
|
-
let r, o = {}, s = this.$refs["table_" + a.code][0].tableView, l = s.filtering;
|
|
41870
|
-
(l || "").trim() && (o = JSON.parse(l)), o[a.sourceDataCode] = this.data.id, a.isSourceCustom ? r = await customModelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null) : r = await modelApi.query(a.sourceModel, o, null, s.isReturnSimple ? s : null, s.functionName, s.functionType), this.$refs["table_" + a.code][0].loadData(r.data);
|
|
41871
|
-
}
|
|
41872
|
-
}) : a.controlType == "Attachment" && this.$refs["attachment_" + a.code] && this.$refs["attachment_" + a.code].length > 0 && this.$refs["attachment_" + a.code][0].setData(this.parseData(this.data, a.code));
|
|
41950
|
+
(a.controlType == "Table" || a.controlType == "ExcelTable") && this.$refs["table_" + a.code] ? this.reloadTable(a.code) : a.controlType == "Attachment" && this.$refs["attachment_" + a.code] && this.$refs["attachment_" + a.code].length > 0 && this.$refs["attachment_" + a.code][0].setData(this.parseData(this.data, a.code));
|
|
41873
41951
|
});
|
|
41874
41952
|
}
|
|
41875
41953
|
// staticData() {
|
|
@@ -42375,6 +42453,19 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_r
|
|
|
42375
42453
|
async openModalForm(a, r) {
|
|
42376
42454
|
let o;
|
|
42377
42455
|
a.formView.isCustom ? o = await customModelApi.get(a.formView.model, r) : o = await modelApi.get(a.formView.model, r), a.open(o);
|
|
42456
|
+
},
|
|
42457
|
+
// 重新加载内嵌表格数据
|
|
42458
|
+
reloadTable(a) {
|
|
42459
|
+
let r = this.column.find((o) => o.code == a);
|
|
42460
|
+
setTimeout(async () => {
|
|
42461
|
+
if (r.tableStoreType == "Inner") {
|
|
42462
|
+
let o = this.parseData(this.data, r.code);
|
|
42463
|
+
o && this.$refs["table_" + r.code][0].loadData(JSON.parse(o));
|
|
42464
|
+
} else if (this.data.id) {
|
|
42465
|
+
let o, s = {}, l = this.$refs["table_" + r.code][0].tableView, c = l.filtering;
|
|
42466
|
+
(c || "").trim() && (s = JSON.parse(c)), s[r.sourceDataCode] = this.data.id, r.isSourceCustom ? o = await customModelApi.query(r.sourceModel, s, null, l.isReturnSimple ? l : null) : o = await modelApi.query(r.sourceModel, s, null, l.isReturnSimple ? l : null, l.functionName, l.functionType), this.$refs["table_" + r.code][0].loadData(o.data);
|
|
42467
|
+
}
|
|
42468
|
+
});
|
|
42378
42469
|
}
|
|
42379
42470
|
// // 打印
|
|
42380
42471
|
// print() {
|
|
@@ -105472,7 +105563,7 @@ const _sfc_main$n = {
|
|
|
105472
105563
|
async loadOption(a, r, o) {
|
|
105473
105564
|
if (r.isStaticItem || r.dataType && r.dataType.startsWith("Enum:"))
|
|
105474
105565
|
return;
|
|
105475
|
-
let s = this.getParam(a, r);
|
|
105566
|
+
let s = this.getParam(a, r, this.parentData);
|
|
105476
105567
|
s != null ? (s[r.sourceDisplayCode + "_c"] = o, this.fillDataSource(a, r, s)) : (a._rawData[r.code] = [], a._dataSource[r.code] = [], this.setData(a, r.code, null), r.triggers.forEach((l) => {
|
|
105477
105568
|
l.needClear = !0;
|
|
105478
105569
|
}));
|
|
@@ -105548,6 +105639,7 @@ function _sfc_render$n(a, r, o, s, l, c) {
|
|
|
105548
105639
|
ref: "tableFilter",
|
|
105549
105640
|
columns: l.filterColumns,
|
|
105550
105641
|
"table-view": l.tableView,
|
|
105642
|
+
"parent-data": o.parentData,
|
|
105551
105643
|
onOnKeyup: c.onKeyup
|
|
105552
105644
|
}, {
|
|
105553
105645
|
column: withCtx(({ column: he }) => [
|
|
@@ -105557,7 +105649,7 @@ function _sfc_render$n(a, r, o, s, l, c) {
|
|
|
105557
105649
|
}, void 0, !0)
|
|
105558
105650
|
]),
|
|
105559
105651
|
_: 3
|
|
105560
|
-
}, 8, ["columns", "table-view", "onOnKeyup"]),
|
|
105652
|
+
}, 8, ["columns", "table-view", "parent-data", "onOnKeyup"]),
|
|
105561
105653
|
createVNode$1(S, mergeProps(a.getGrid(l.tableView.filterWidth), {
|
|
105562
105654
|
style: { "text-align": (l.tableView.filterAlign || "").trim() ? l.tableView.filterAlign.toLowerCase() : "left" }
|
|
105563
105655
|
}), {
|
|
@@ -106307,7 +106399,7 @@ function _sfc_render$n(a, r, o, s, l, c) {
|
|
|
106307
106399
|
], 2)
|
|
106308
106400
|
], 2);
|
|
106309
106401
|
}
|
|
106310
|
-
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-
|
|
106402
|
+
const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-22006e27"]]), __vite_glob_1_33 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
106311
106403
|
__proto__: null,
|
|
106312
106404
|
default: viewTable
|
|
106313
106405
|
}, Symbol.toStringTag, { value: "Module" })), _sfc_main$m = {
|