mooho-base-admin-plus 2.8.10 → 2.8.11
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/history.md
CHANGED
|
@@ -12964,7 +12964,7 @@ var FileSaver_min = { exports: {} };
|
|
|
12964
12964
|
});
|
|
12965
12965
|
})(FileSaver_min);
|
|
12966
12966
|
var FileSaver_minExports = FileSaver_min.exports;
|
|
12967
|
-
const saveAs = /* @__PURE__ */ getDefaultExportFromCjs(FileSaver_minExports), modelApi
|
|
12967
|
+
const saveAs = /* @__PURE__ */ getDefaultExportFromCjs(FileSaver_minExports), modelApi = {
|
|
12968
12968
|
add(r, a) {
|
|
12969
12969
|
return service({
|
|
12970
12970
|
url: `api/${r}/add`,
|
|
@@ -13129,7 +13129,7 @@ const saveAs = /* @__PURE__ */ getDefaultExportFromCjs(FileSaver_minExports), mo
|
|
|
13129
13129
|
if (!(a in r.caches)) {
|
|
13130
13130
|
r.caches[a] = [];
|
|
13131
13131
|
try {
|
|
13132
|
-
let o = await modelApi
|
|
13132
|
+
let o = await modelApi.query(a, {});
|
|
13133
13133
|
r.caches[a] = o.data;
|
|
13134
13134
|
} catch (o) {
|
|
13135
13135
|
throw delete r.caches[a], o;
|
|
@@ -13145,7 +13145,7 @@ const saveAs = /* @__PURE__ */ getDefaultExportFromCjs(FileSaver_minExports), mo
|
|
|
13145
13145
|
if (!(a in r.dicts)) {
|
|
13146
13146
|
r.dicts[a] = {};
|
|
13147
13147
|
try {
|
|
13148
|
-
(await modelApi
|
|
13148
|
+
(await modelApi.query("Dict", { type: a })).data.forEach((s) => {
|
|
13149
13149
|
r.dicts[a][s.id] = s.displayName;
|
|
13150
13150
|
});
|
|
13151
13151
|
} catch (o) {
|
|
@@ -19815,7 +19815,7 @@ const home = /* @__PURE__ */ _export_sfc(_sfc_main$1r, [["render", _sfc_render$1
|
|
|
19815
19815
|
created() {
|
|
19816
19816
|
setTimeout(async () => {
|
|
19817
19817
|
if (this.$route.query.id != null) {
|
|
19818
|
-
const r = await modelApi
|
|
19818
|
+
const r = await modelApi.get("Task", this.$route.query.id);
|
|
19819
19819
|
this.$refs.taskForm.open(r);
|
|
19820
19820
|
}
|
|
19821
19821
|
});
|
|
@@ -20408,7 +20408,7 @@ const columnCheck = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_r
|
|
|
20408
20408
|
async save() {
|
|
20409
20409
|
await this.$refs.form.validate() ? this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
20410
20410
|
let a = this.$refs.form.getFullData();
|
|
20411
|
-
a.processProperty = JSON.stringify(this.$refs.propertyTable.data), a.id ? await modelApi
|
|
20411
|
+
a.processProperty = JSON.stringify(this.$refs.propertyTable.data), a.id ? await modelApi.update("ApplicationType", a) : await modelApi.add("ApplicationType", a), this.success("Front_Msg_Success", () => {
|
|
20412
20412
|
this.$refs.form.close(), this.$refs.table.loadData();
|
|
20413
20413
|
});
|
|
20414
20414
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
@@ -20422,7 +20422,7 @@ const columnCheck = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_r
|
|
|
20422
20422
|
async initPropertyData() {
|
|
20423
20423
|
let r = this.$refs.form.data.processID, a = this.$refs.form.data.processProperty;
|
|
20424
20424
|
if (this.processProperties = [], r != null) {
|
|
20425
|
-
let s = (await modelApi
|
|
20425
|
+
let s = (await modelApi.query("ProcessProperty", { processID: r })).data, l = [];
|
|
20426
20426
|
a != null && (l = JSON.parse(a)), this.processProperties = s.map((u) => {
|
|
20427
20427
|
let c = l.find((d) => d.propertyCode == u.propertyCode);
|
|
20428
20428
|
return {
|
|
@@ -20444,7 +20444,7 @@ const columnCheck = /* @__PURE__ */ _export_sfc(_sfc_main$1n, [["render", _sfc_r
|
|
|
20444
20444
|
async saveSetting() {
|
|
20445
20445
|
await this.$refs.notificationSettingForm.validate() ? this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
20446
20446
|
let a = this.$refs.notificationSettingForm.getFullData();
|
|
20447
|
-
this.applicationType.notificationSetting = JSON.stringify(a), await modelApi
|
|
20447
|
+
this.applicationType.notificationSetting = JSON.stringify(a), await modelApi.update("ApplicationType", this.applicationType), this.success("Front_Msg_Success", () => {
|
|
20448
20448
|
this.$refs.notificationSettingForm.close(), this.$refs.table.loadData();
|
|
20449
20449
|
});
|
|
20450
20450
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
@@ -20760,7 +20760,7 @@ const customPage = /* @__PURE__ */ _export_sfc(_sfc_main$1l, [["render", _sfc_re
|
|
|
20760
20760
|
remove(r) {
|
|
20761
20761
|
this.confirm("Front_Msg_Sure_To_Delete_Item", () => {
|
|
20762
20762
|
this.confirm("Front_Msg_Sure_To_Delete_Column", async () => {
|
|
20763
|
-
await modelApi
|
|
20763
|
+
await modelApi.remove("CustomColumn", r.id), this.success("Front_Msg_Success", () => {
|
|
20764
20764
|
this.$refs.columnTable.loadData();
|
|
20765
20765
|
});
|
|
20766
20766
|
});
|
|
@@ -21108,7 +21108,7 @@ const _404 = /* @__PURE__ */ _export_sfc(_sfc_main$1g, [["render", _sfc_render$1
|
|
|
21108
21108
|
remove(r) {
|
|
21109
21109
|
this.confirm("Front_Msg_Sure_To_Delete_Item", () => {
|
|
21110
21110
|
this.confirm("Front_Msg_Sure_To_Delete_Column", async () => {
|
|
21111
|
-
await modelApi
|
|
21111
|
+
await modelApi.remove("ExtendColumn", r.id), this.success("Front_Msg_Success", () => {
|
|
21112
21112
|
this.$refs.columnTable.loadData();
|
|
21113
21113
|
});
|
|
21114
21114
|
});
|
|
@@ -21410,7 +21410,7 @@ const formView = /* @__PURE__ */ _export_sfc(_sfc_main$1e, [["render", _sfc_rend
|
|
|
21410
21410
|
},
|
|
21411
21411
|
async remove(r) {
|
|
21412
21412
|
this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
|
|
21413
|
-
await modelApi
|
|
21413
|
+
await modelApi.remove("I18nText", r.id), this.success("Front_Msg_Success", () => {
|
|
21414
21414
|
this.loadData();
|
|
21415
21415
|
});
|
|
21416
21416
|
});
|
|
@@ -21977,7 +21977,7 @@ const openUser = /* @__PURE__ */ _export_sfc(_sfc_main$18, [["render", _sfc_rend
|
|
|
21977
21977
|
methods: {
|
|
21978
21978
|
// 树展开
|
|
21979
21979
|
async onTreeLoad(r) {
|
|
21980
|
-
let a = await modelApi
|
|
21980
|
+
let a = await modelApi.query("Organization", {
|
|
21981
21981
|
parentID: r.id,
|
|
21982
21982
|
page: 1,
|
|
21983
21983
|
per: 1e3,
|
|
@@ -22155,7 +22155,7 @@ const organizationType = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _
|
|
|
22155
22155
|
},
|
|
22156
22156
|
// 树展开
|
|
22157
22157
|
async onTreeLoad(r) {
|
|
22158
|
-
let a = await modelApi
|
|
22158
|
+
let a = await modelApi.query("Permission", {
|
|
22159
22159
|
parentID: r.id,
|
|
22160
22160
|
page: 1,
|
|
22161
22161
|
per: 1e3,
|
|
@@ -22211,7 +22211,7 @@ const organizationType = /* @__PURE__ */ _export_sfc(_sfc_main$16, [["render", _
|
|
|
22211
22211
|
},
|
|
22212
22212
|
async loadParentData(r, a) {
|
|
22213
22213
|
if (a.push(r), r.parentID && !a.some((o) => o.id == r.parentID)) {
|
|
22214
|
-
let o = await modelApi
|
|
22214
|
+
let o = await modelApi.query("Permission", {
|
|
22215
22215
|
id: r.parentID,
|
|
22216
22216
|
page: 1,
|
|
22217
22217
|
per: 1
|
|
@@ -22752,7 +22752,7 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc
|
|
|
22752
22752
|
async interactiveFormChange(r) {
|
|
22753
22753
|
if (r && r.code == "destinationRoleID")
|
|
22754
22754
|
if (this.$refs.interactiveForm.data.destinationRoleID) {
|
|
22755
|
-
let o = (await modelApi
|
|
22755
|
+
let o = (await modelApi.query("RoleProperty", { roleID: this.$refs.interactiveForm.data.destinationRoleID })).data.map((s) => ({
|
|
22756
22756
|
rolePropertyCode: s.propertyCode,
|
|
22757
22757
|
name: s.propertyName,
|
|
22758
22758
|
processPropertyCode: null
|
|
@@ -23855,7 +23855,7 @@ const processType = /* @__PURE__ */ _export_sfc(_sfc_main$10, [["render", _sfc_r
|
|
|
23855
23855
|
// 确认
|
|
23856
23856
|
async save() {
|
|
23857
23857
|
await this.$refs.form.validate() ? this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
23858
|
-
this.data.id ? await modelApi
|
|
23858
|
+
this.data.id ? await modelApi.update("RoleProperty", this.data) : await modelApi.add("RoleProperty", this.data), this.success("Front_Msg_Success"), this.callback(), this.opened = !1;
|
|
23859
23859
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
23860
23860
|
},
|
|
23861
23861
|
// 打开字段选择界面
|
|
@@ -24572,7 +24572,7 @@ const _sfc_main$_ = {
|
|
|
24572
24572
|
},
|
|
24573
24573
|
computed: {},
|
|
24574
24574
|
async created() {
|
|
24575
|
-
const r = await modelApi
|
|
24575
|
+
const r = await modelApi.query("Dict", { "type.code": "ClientType" });
|
|
24576
24576
|
this.clientTypes = r.data, this.clientType = this.clientTypes[0].code;
|
|
24577
24577
|
},
|
|
24578
24578
|
methods: {
|
|
@@ -24598,7 +24598,7 @@ const _sfc_main$_ = {
|
|
|
24598
24598
|
async addUserRole() {
|
|
24599
24599
|
this.$refs.userRoleForm.columns.find((o) => o.code == "userID").isReadonly = !1;
|
|
24600
24600
|
let r = this.$refs.userRoleTable.param.roleID;
|
|
24601
|
-
const a = await modelApi
|
|
24601
|
+
const a = await modelApi.query("RoleProperty", { roleID: r });
|
|
24602
24602
|
this.roleProperties = a.data.map((o) => ({
|
|
24603
24603
|
...o,
|
|
24604
24604
|
propertyValue: null
|
|
@@ -24607,8 +24607,8 @@ const _sfc_main$_ = {
|
|
|
24607
24607
|
// 用户角色编辑
|
|
24608
24608
|
async editUserRole(r) {
|
|
24609
24609
|
this.$refs.userRoleForm.columns.find((u) => u.code == "userID").isReadonly = !0;
|
|
24610
|
-
let a = r.roleID, o = await modelApi
|
|
24611
|
-
o = await modelApi
|
|
24610
|
+
let a = r.roleID, o = await modelApi.query("RoleProperty", { roleID: a }), s = o.data, l = [];
|
|
24611
|
+
o = await modelApi.query("UserRoleData", { userID: r.userID, roleID: r.roleID }), l = o.data, this.roleProperties = s.map((u) => {
|
|
24612
24612
|
let c = l.find((d) => d.propertyCode == u.propertyCode);
|
|
24613
24613
|
return {
|
|
24614
24614
|
...u,
|
|
@@ -24630,7 +24630,7 @@ const _sfc_main$_ = {
|
|
|
24630
24630
|
// 填充数据源
|
|
24631
24631
|
async fillDataSource(r, a) {
|
|
24632
24632
|
let o;
|
|
24633
|
-
r.isSourceCustom ? o = await customModelApi.query(r.source, a) : o = await modelApi
|
|
24633
|
+
r.isSourceCustom ? o = await customModelApi.query(r.source, a) : o = await modelApi.query(r.source, a), o.data.forEach((s) => {
|
|
24634
24634
|
r._dataSource.push({
|
|
24635
24635
|
id: (r.sourceDataCode || "").trim() ? this.parseData(s, r.sourceDataCode) : s.id,
|
|
24636
24636
|
name: this.parseData(s, r.sourceDisplayCode)
|
|
@@ -24667,7 +24667,7 @@ const _sfc_main$_ = {
|
|
|
24667
24667
|
userRole: a,
|
|
24668
24668
|
userRoleDatas: o
|
|
24669
24669
|
};
|
|
24670
|
-
a.id ? await modelApi
|
|
24670
|
+
a.id ? await modelApi.update("UserRole", s) : await modelApi.add("UserRole", s), this.success("Front_Msg_Success", () => {
|
|
24671
24671
|
this.$refs.userRoleDataTable.loadData([]), this.$refs.userRoleTable.loadData(), this.$refs.userRoleForm.close();
|
|
24672
24672
|
});
|
|
24673
24673
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
@@ -27659,7 +27659,7 @@ const tableView = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_rend
|
|
|
27659
27659
|
});
|
|
27660
27660
|
},
|
|
27661
27661
|
async openRequest(r) {
|
|
27662
|
-
const a = await modelApi
|
|
27662
|
+
const a = await modelApi.get("ApiOutLog", r.apiOutLogID);
|
|
27663
27663
|
try {
|
|
27664
27664
|
this.json = JSON.stringify(JSON.parse(a.requestBody), null, 2);
|
|
27665
27665
|
} catch {
|
|
@@ -27668,7 +27668,7 @@ const tableView = /* @__PURE__ */ _export_sfc(_sfc_main$Q, [["render", _sfc_rend
|
|
|
27668
27668
|
this.title = this.$t("Front_Label_Request"), this.description = this.$t("Front_Label_Request_Desc"), this.isShow = !0;
|
|
27669
27669
|
},
|
|
27670
27670
|
async openResponse(r) {
|
|
27671
|
-
const a = await modelApi
|
|
27671
|
+
const a = await modelApi.get("ApiOutLog", r.apiOutLogID);
|
|
27672
27672
|
try {
|
|
27673
27673
|
this.json = JSON.stringify(JSON.parse(a.responseBody), null, 2);
|
|
27674
27674
|
} catch {
|
|
@@ -27846,7 +27846,7 @@ const taskQueue = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_rend
|
|
|
27846
27846
|
// 填充数据源
|
|
27847
27847
|
async fillDataSource(r, a) {
|
|
27848
27848
|
let o;
|
|
27849
|
-
r.isSourceCustom ? o = await customModelApi.query(r.source, a, [r.sourceDataCode, r.sourceDisplayCode]) : o = await modelApi
|
|
27849
|
+
r.isSourceCustom ? o = await customModelApi.query(r.source, a, [r.sourceDataCode, r.sourceDisplayCode]) : o = await modelApi.query(r.source, a, [r.sourceDataCode, r.sourceDisplayCode]), o.data.forEach((s) => {
|
|
27850
27850
|
r._dataSource.push({
|
|
27851
27851
|
id: (r.sourceDataCode || "").trim() ? this.parseData(s, r.sourceDataCode) : s.id,
|
|
27852
27852
|
name: this.parseData(s, r.sourceDisplayCode)
|
|
@@ -27883,7 +27883,7 @@ const taskQueue = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_rend
|
|
|
27883
27883
|
userRole: a,
|
|
27884
27884
|
userRoleDatas: o
|
|
27885
27885
|
};
|
|
27886
|
-
a.id ? await modelApi
|
|
27886
|
+
a.id ? await modelApi.update("UserRole", s) : await modelApi.add("UserRole", s), this.success("Front_Msg_Success", () => {
|
|
27887
27887
|
this.$refs.userRoleDataTable.loadData([]), this.$refs.userRoleTable.loadData(), this.$refs.userRoleForm.close();
|
|
27888
27888
|
});
|
|
27889
27889
|
}) : this.error("Front_Msg_Form_Validate_Fail");
|
|
@@ -27897,8 +27897,8 @@ const taskQueue = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_rend
|
|
|
27897
27897
|
},
|
|
27898
27898
|
// 初始化用户角色数据
|
|
27899
27899
|
async initUserRoleData(r, a) {
|
|
27900
|
-
let o = await modelApi
|
|
27901
|
-
this.$refs.userRoleForm.data.id && (o = await modelApi
|
|
27900
|
+
let o = await modelApi.query("RoleProperty", { roleID: a }), s = o.data, l = [];
|
|
27901
|
+
this.$refs.userRoleForm.data.id && (o = await modelApi.query("UserRoleData", { userID: r, roleID: a }), l = o.data), this.roleProperties = s.map((u) => {
|
|
27902
27902
|
let c = l.find((d) => d.propertyCode == u.propertyCode);
|
|
27903
27903
|
return {
|
|
27904
27904
|
...u,
|
|
@@ -27923,7 +27923,7 @@ const taskQueue = /* @__PURE__ */ _export_sfc(_sfc_main$P, [["render", _sfc_rend
|
|
|
27923
27923
|
for (let a in r)
|
|
27924
27924
|
typeof r[a] == "object" && delete r[a];
|
|
27925
27925
|
this.user.dataPermission = JSON.stringify(r), this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
27926
|
-
await modelApi
|
|
27926
|
+
await modelApi.update("User", this.user), this.success("Front_Msg_Success"), this.$refs.dataPermissionForm.close();
|
|
27927
27927
|
});
|
|
27928
27928
|
}
|
|
27929
27929
|
}
|
|
@@ -28716,7 +28716,7 @@ const processPage = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_re
|
|
|
28716
28716
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
28717
28717
|
this.total = o.totalCount, this.data = o.table;
|
|
28718
28718
|
} else {
|
|
28719
|
-
let o = await modelApi
|
|
28719
|
+
let o = await modelApi.query(this.tableView.model, a, null, null, this.tableView.functionName, this.tableView.functionType);
|
|
28720
28720
|
this.total = o.totalCount, this.data = o.data;
|
|
28721
28721
|
}
|
|
28722
28722
|
}
|
|
@@ -29389,7 +29389,7 @@ const CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_ren
|
|
|
29389
29389
|
let o = this.param;
|
|
29390
29390
|
o[this.column.sourceDataCode] = a.map((l) => l.value).join(",");
|
|
29391
29391
|
let s;
|
|
29392
|
-
this.column.isSourceCustom ? s = await customModelApi.query(this.column.source, o, [this.column.sourceDataCode, this.column.sourceDisplayCode]) : s = await modelApi
|
|
29392
|
+
this.column.isSourceCustom ? s = await customModelApi.query(this.column.source, o, [this.column.sourceDataCode, this.column.sourceDisplayCode]) : s = await modelApi.query(this.column.source, o, [this.column.sourceDataCode, this.column.sourceDisplayCode]), s.data.forEach((l) => {
|
|
29393
29393
|
let u = this.parseData(l, this.column.sourceDataCode), c = this.parseData(l, this.column.sourceDisplayCode);
|
|
29394
29394
|
this.multi || (this.$refs.select.query = c);
|
|
29395
29395
|
let d = a.find((f) => f.value == u);
|
|
@@ -29554,7 +29554,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29554
29554
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29555
29555
|
o.table.length > 0 && (this.selected = o.table.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.table);
|
|
29556
29556
|
} else {
|
|
29557
|
-
let o = await modelApi
|
|
29557
|
+
let o = await modelApi.query(a.dataView.model, r, [this.sourceDataCode, this.sourceDisplayCode]);
|
|
29558
29558
|
o.data.length > 0 && (this.selected = o.data.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.data);
|
|
29559
29559
|
}
|
|
29560
29560
|
});
|
|
@@ -29571,7 +29571,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29571
29571
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29572
29572
|
o.table.length > 0 && (this.selected = this.parseData(o.table[0], this.sourceDisplayCode), this.selectedData = o.table[0]);
|
|
29573
29573
|
} else {
|
|
29574
|
-
let o = await modelApi
|
|
29574
|
+
let o = await modelApi.query(a.dataView.model, r);
|
|
29575
29575
|
o.data.length > 0 && (this.selected = this.parseData(o.data[0], this.sourceDisplayCode), this.selectedData = o.data[0]);
|
|
29576
29576
|
}
|
|
29577
29577
|
});
|
|
@@ -30813,7 +30813,7 @@ const uploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_re
|
|
|
30813
30813
|
};
|
|
30814
30814
|
},
|
|
30815
30815
|
async created() {
|
|
30816
|
-
let r = await modelApi
|
|
30816
|
+
let r = await modelApi.query("DisplayFormat", {});
|
|
30817
30817
|
this.displayFormats = r.data;
|
|
30818
30818
|
},
|
|
30819
30819
|
props: {
|
|
@@ -37315,7 +37315,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37315
37315
|
let s;
|
|
37316
37316
|
(a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") && (s = this.parseTreeData(r, a.code), a.dataSource = null), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
37317
37317
|
let l;
|
|
37318
|
-
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi
|
|
37318
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
37319
37319
|
let u = l.data.map((c) => ({
|
|
37320
37320
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
37321
37321
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -37373,7 +37373,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37373
37373
|
(u || "").trim() && (o = {
|
|
37374
37374
|
...o,
|
|
37375
37375
|
...JSON.parse(u)
|
|
37376
|
-
}), a.isSourceCustom ? s = await customModelApi.query(a.sourceModel, o, null, l.isReturnSimple ? l : null) : s = await modelApi
|
|
37376
|
+
}), a.isSourceCustom ? s = await customModelApi.query(a.sourceModel, o, null, l.isReturnSimple ? l : null) : s = await modelApi.query(a.sourceModel, o, null, l.isReturnSimple ? l : null, l.functionName, l.functionType), this.$refs["list_" + a.code][0].loadData(s.data);
|
|
37377
37377
|
}
|
|
37378
37378
|
}
|
|
37379
37379
|
a.needClear = !1, a.needRefresh = !1;
|
|
@@ -39579,7 +39579,7 @@ const modalFormSort = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_
|
|
|
39579
39579
|
if (!a)
|
|
39580
39580
|
return;
|
|
39581
39581
|
this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
39582
|
-
this.formView.isCustom ? a.id ? await customModelApi.update(this.formView.model, a) : await customModelApi.add(this.formView.model, a) : a.id ? await modelApi
|
|
39582
|
+
this.formView.isCustom ? a.id ? await customModelApi.update(this.formView.model, a) : await customModelApi.add(this.formView.model, a) : a.id ? await modelApi.update(this.formView.model, a) : await modelApi.add(this.formView.model, a), this.success("Front_Msg_Success", () => {
|
|
39583
39583
|
this.$refs.form.data = {}, this.$emit("on-after-save", a), this.close();
|
|
39584
39584
|
});
|
|
39585
39585
|
});
|
|
@@ -40421,7 +40421,7 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_ren
|
|
|
40421
40421
|
let s;
|
|
40422
40422
|
(a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") && (s = this.parseTreeFilterData(r, a), a.dataSource = null), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
40423
40423
|
let l;
|
|
40424
|
-
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi
|
|
40424
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
40425
40425
|
let u = l.data.map((c) => ({
|
|
40426
40426
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
40427
40427
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -41629,7 +41629,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41629
41629
|
a ? this.$refs["table_" + r.code][0].loadData(JSON.parse(a)) : this.$refs["table_" + r.code][0].loadData([]);
|
|
41630
41630
|
} else if (this.data.id) {
|
|
41631
41631
|
let a, o = {}, s = this.$refs["table_" + r.code][0].tableView, l = s.filtering;
|
|
41632
|
-
(l || "").trim() && (o = JSON.parse(l)), o[r.sourceDataCode] = this.data.id, r.isSourceCustom ? a = await customModelApi.query(r.sourceModel, o, null, s.isReturnSimple ? s : null) : a = await modelApi
|
|
41632
|
+
(l || "").trim() && (o = JSON.parse(l)), o[r.sourceDataCode] = this.data.id, r.isSourceCustom ? a = await customModelApi.query(r.sourceModel, o, null, s.isReturnSimple ? s : null) : a = await modelApi.query(r.sourceModel, o, null, s.isReturnSimple ? s : null, s.functionName, s.functionType), this.$refs["table_" + r.code][0].loadData(a.data);
|
|
41633
41633
|
}
|
|
41634
41634
|
}) : r.controlType == "Attachment" && this.$refs["attachment_" + r.code] && this.$refs["attachment_" + r.code][0].setData(this.parseData(this.data, r.code));
|
|
41635
41635
|
});
|
|
@@ -41921,7 +41921,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41921
41921
|
let s;
|
|
41922
41922
|
(a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") && (s = this.parseTreeData(r, a.code), a.dataSource = null), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
41923
41923
|
let l;
|
|
41924
|
-
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi
|
|
41924
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
41925
41925
|
let u = l.data.map((c) => ({
|
|
41926
41926
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
41927
41927
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -43121,7 +43121,7 @@ const _sfc_main$n = {
|
|
|
43121
43121
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
43122
43122
|
this.total = o.totalCount, this.data = o.table;
|
|
43123
43123
|
} else {
|
|
43124
|
-
let o = await modelApi
|
|
43124
|
+
let o = await modelApi.query(
|
|
43125
43125
|
this.tableView.model,
|
|
43126
43126
|
a,
|
|
43127
43127
|
this.tableView.isReturnSimple ? this.returnColumns : null,
|
|
@@ -43178,7 +43178,7 @@ const _sfc_main$n = {
|
|
|
43178
43178
|
*/
|
|
43179
43179
|
async edit(r, a) {
|
|
43180
43180
|
let o = r;
|
|
43181
|
-
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi
|
|
43181
|
+
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi.get(this.tableView.model, r.id)), this.$emit("edit", { row: o, index: a });
|
|
43182
43182
|
},
|
|
43183
43183
|
/**
|
|
43184
43184
|
* 查看项
|
|
@@ -43189,7 +43189,7 @@ const _sfc_main$n = {
|
|
|
43189
43189
|
*/
|
|
43190
43190
|
async show(r, a) {
|
|
43191
43191
|
let o = r;
|
|
43192
|
-
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi
|
|
43192
|
+
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi.get(this.tableView.model, r.id)), this.$emit("show", { row: o, index: a });
|
|
43193
43193
|
},
|
|
43194
43194
|
/**
|
|
43195
43195
|
* 删除项
|
|
@@ -43200,7 +43200,7 @@ const _sfc_main$n = {
|
|
|
43200
43200
|
*/
|
|
43201
43201
|
remove(r, a) {
|
|
43202
43202
|
this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
|
|
43203
|
-
this.embedded ? (this.staticData.splice((this.current - 1) * this.size + a, 1), this.loadData(), this.$emit("on-change", r)) : (this.tableView.isCustom ? await customModelApi.remove(this.tableView.model, r.id) : await modelApi
|
|
43203
|
+
this.embedded ? (this.staticData.splice((this.current - 1) * this.size + a, 1), this.loadData(), this.$emit("on-change", r)) : (this.tableView.isCustom ? await customModelApi.remove(this.tableView.model, r.id) : await modelApi.remove(this.tableView.model, r.id), this.success("Front_Msg_Success", () => {
|
|
43204
43204
|
this.loadData();
|
|
43205
43205
|
}));
|
|
43206
43206
|
});
|
|
@@ -43329,7 +43329,7 @@ const _sfc_main$n = {
|
|
|
43329
43329
|
this.columns.filter((a) => a.slot == "normal")
|
|
43330
43330
|
) : r === "batchEdit" && this.error("Front_Msg_Not_Supported") : r === "exportExcel" ? this.exportExcel() : r === "exportPdf" ? this.exportPdf() : r === "print" ? this.print() : r === "batchEdit" && this.$refs.batchEditTable.init(this.tableView.batchEditView, async () => {
|
|
43331
43331
|
let a;
|
|
43332
|
-
this.tableView.isCustom ? a = await customModelApi.query(this.tableView.model, {}) : a = await modelApi
|
|
43332
|
+
this.tableView.isCustom ? a = await customModelApi.query(this.tableView.model, {}) : a = await modelApi.query(this.tableView.model, {}), this.$refs.batchEditTable.loadData(a.data), this.$refs.batchEditTable.open();
|
|
43333
43333
|
}));
|
|
43334
43334
|
},
|
|
43335
43335
|
// 导出Excel
|
|
@@ -43338,7 +43338,7 @@ const _sfc_main$n = {
|
|
|
43338
43338
|
...this.getAllFilter(),
|
|
43339
43339
|
orderBy: this.orderBy
|
|
43340
43340
|
};
|
|
43341
|
-
this.tableView.isCustom ? customModelApi.exportExcel(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportExcel(this.tableView, r) : modelApi
|
|
43341
|
+
this.tableView.isCustom ? customModelApi.exportExcel(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportExcel(this.tableView, r) : modelApi.exportExcel(this.tableView, r);
|
|
43342
43342
|
},
|
|
43343
43343
|
// 导出PDF
|
|
43344
43344
|
exportPdf() {
|
|
@@ -43346,7 +43346,7 @@ const _sfc_main$n = {
|
|
|
43346
43346
|
...this.getAllFilter(),
|
|
43347
43347
|
orderBy: this.orderBy
|
|
43348
43348
|
};
|
|
43349
|
-
this.tableView.isCustom ? customModelApi.exportPdf(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportPdf(this.tableView, r) : modelApi
|
|
43349
|
+
this.tableView.isCustom ? customModelApi.exportPdf(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportPdf(this.tableView, r) : modelApi.exportPdf(this.tableView, r);
|
|
43350
43350
|
},
|
|
43351
43351
|
// 打印
|
|
43352
43352
|
print() {
|
|
@@ -43354,7 +43354,7 @@ const _sfc_main$n = {
|
|
|
43354
43354
|
...this.getAllFilter(),
|
|
43355
43355
|
orderBy: this.orderBy
|
|
43356
43356
|
};
|
|
43357
|
-
this.tableView.isCustom ? customModelApi.printList(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.printList(this.tableView, r) : modelApi
|
|
43357
|
+
this.tableView.isCustom ? customModelApi.printList(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.printList(this.tableView, r) : modelApi.printList(this.tableView, r);
|
|
43358
43358
|
},
|
|
43359
43359
|
// 加载数据源
|
|
43360
43360
|
initDataSource() {
|
|
@@ -43420,7 +43420,7 @@ const _sfc_main$n = {
|
|
|
43420
43420
|
async fillDataSource(r, a, o) {
|
|
43421
43421
|
r._dataSource || (r._dataSource = {}, r._rawData = {}, r._needRefresh = {}, r._needClear = {}), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
43422
43422
|
let s;
|
|
43423
|
-
if (a.isSourceCustom ? s = await customModelApi.query(a.source, o) : s = await modelApi
|
|
43423
|
+
if (a.isSourceCustom ? s = await customModelApi.query(a.source, o) : s = await modelApi.query(a.source, o), this.enableLoader(), r._rawData[a.code] = s.data, r._dataSource[a.code] = s.data.map((l) => ({
|
|
43424
43424
|
id: (a.sourceDataCode || "").trim() ? this.parseData(l, a.sourceDataCode) : l.id,
|
|
43425
43425
|
name: this.parseData(l, a.sourceDisplayCode)
|
|
43426
43426
|
})), r && this.parseData(r, a.code) == null && a.isDefaultFirst && s.data.length > 0 && (this.setData(r, a.code, this.parseData(s.data[0], a.sourceDataCode)), a.sourceDataCode == "id" && a.code.length > 2)) {
|
|
@@ -43712,7 +43712,7 @@ const _sfc_main$n = {
|
|
|
43712
43712
|
batchSave() {
|
|
43713
43713
|
this.$refs.batchEditTable.validate() && this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
43714
43714
|
let r = this.$refs.batchEditTable.data;
|
|
43715
|
-
this.tableView.isCustom ? await customModelApi.batchSave(this.tableView.model, r) : await modelApi
|
|
43715
|
+
this.tableView.isCustom ? await customModelApi.batchSave(this.tableView.model, r) : await modelApi.batchSave(this.tableView.model, r), this.success("Front_Msg_Success", () => {
|
|
43716
43716
|
this.$refs.batchEditTable.close(), this.loadData();
|
|
43717
43717
|
});
|
|
43718
43718
|
});
|
|
@@ -44603,11 +44603,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44603
44603
|
return;
|
|
44604
44604
|
} else if (this.task.activityInst.activity.pageMode == "Component")
|
|
44605
44605
|
this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.customComponent = markRaw(this.$pages[this.task.activityInst.activity.templateUrl]), this.isCustom = !0, setTimeout(async () => {
|
|
44606
|
-
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi
|
|
44606
|
+
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi.get(a.model, r.processInst.modelID), this.customComponentReady(), this.opened = !0;
|
|
44607
44607
|
});
|
|
44608
44608
|
else if (this.task.activityInst.activity.pageMode == "Form")
|
|
44609
44609
|
this.form = this.$refs.form, this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.form.init(this.task.activityInst.activity.formViewCode, async (o) => {
|
|
44610
|
-
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi
|
|
44610
|
+
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi.get(a.model, r.processInst.modelID), this.width = this.form.formView.width || "800", this.name = this.form.formView.name, this.description = this.form.formView.description, this.form.data = this.model, setTimeout(async () => {
|
|
44611
44611
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44612
44612
|
});
|
|
44613
44613
|
});
|
|
@@ -44616,11 +44616,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44616
44616
|
return;
|
|
44617
44617
|
} else if (a.pageMode == "Component")
|
|
44618
44618
|
this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.customComponent = markRaw(this.$pages[a.templateUrl]), this.isCustom = !0, setTimeout(async () => {
|
|
44619
|
-
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi
|
|
44619
|
+
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi.get(a.model, r.processInst.modelID), this.customComponentReady(), this.opened = !0;
|
|
44620
44620
|
});
|
|
44621
44621
|
else if (a.pageMode == "Form")
|
|
44622
44622
|
this.form = this.$refs.form, this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.form.init(a.formViewCode, async (o) => {
|
|
44623
|
-
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi
|
|
44623
|
+
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi.get(a.model, r.processInst.modelID), this.width = this.form.formView.width || "800", this.name = this.form.formView.name, this.description = this.form.formView.description, this.form.data = this.model, setTimeout(() => {
|
|
44624
44624
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44625
44625
|
});
|
|
44626
44626
|
});
|
|
@@ -44629,7 +44629,7 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44629
44629
|
return;
|
|
44630
44630
|
}
|
|
44631
44631
|
if (this.task.status == "Pending") {
|
|
44632
|
-
let o = await modelApi
|
|
44632
|
+
let o = await modelApi.query("Outcome", { activityFromID: r.activityInst.activityID });
|
|
44633
44633
|
this.outcomes = o.data;
|
|
44634
44634
|
}
|
|
44635
44635
|
});
|
|
@@ -92002,7 +92002,7 @@ export {
|
|
|
92002
92002
|
initRouter,
|
|
92003
92003
|
lodop,
|
|
92004
92004
|
mixinPage,
|
|
92005
|
-
modelApi
|
|
92005
|
+
modelApi,
|
|
92006
92006
|
pages,
|
|
92007
92007
|
service as request,
|
|
92008
92008
|
router$1 as router,
|