mooho-base-admin-plus 2.8.9 → 2.8.10
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$1 = {
|
|
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.query(a, {});
|
|
13132
|
+
let o = await modelApi$1.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.query("Dict", { type: a })).data.forEach((s) => {
|
|
13148
|
+
(await modelApi$1.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.get("Task", this.$route.query.id);
|
|
19818
|
+
const r = await modelApi$1.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.update("ApplicationType", a) : await modelApi.add("ApplicationType", a), this.success("Front_Msg_Success", () => {
|
|
20411
|
+
a.processProperty = JSON.stringify(this.$refs.propertyTable.data), a.id ? await modelApi$1.update("ApplicationType", a) : await modelApi$1.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.query("ProcessProperty", { processID: r })).data, l = [];
|
|
20425
|
+
let s = (await modelApi$1.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.update("ApplicationType", this.applicationType), this.success("Front_Msg_Success", () => {
|
|
20447
|
+
this.applicationType.notificationSetting = JSON.stringify(a), await modelApi$1.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.remove("CustomColumn", r.id), this.success("Front_Msg_Success", () => {
|
|
20763
|
+
await modelApi$1.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.remove("ExtendColumn", r.id), this.success("Front_Msg_Success", () => {
|
|
21111
|
+
await modelApi$1.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.remove("I18nText", r.id), this.success("Front_Msg_Success", () => {
|
|
21413
|
+
await modelApi$1.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.query("Organization", {
|
|
21980
|
+
let a = await modelApi$1.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.query("Permission", {
|
|
22158
|
+
let a = await modelApi$1.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.query("Permission", {
|
|
22214
|
+
let o = await modelApi$1.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.query("RoleProperty", { roleID: this.$refs.interactiveForm.data.destinationRoleID })).data.map((s) => ({
|
|
22755
|
+
let o = (await modelApi$1.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.update("RoleProperty", this.data) : await modelApi.add("RoleProperty", this.data), this.success("Front_Msg_Success"), this.callback(), this.opened = !1;
|
|
23858
|
+
this.data.id ? await modelApi$1.update("RoleProperty", this.data) : await modelApi$1.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.query("Dict", { "type.code": "ClientType" });
|
|
24575
|
+
const r = await modelApi$1.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.query("RoleProperty", { roleID: r });
|
|
24601
|
+
const a = await modelApi$1.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.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) => {
|
|
24610
|
+
let a = r.roleID, o = await modelApi$1.query("RoleProperty", { roleID: a }), s = o.data, l = [];
|
|
24611
|
+
o = await modelApi$1.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.query(r.source, a), o.data.forEach((s) => {
|
|
24633
|
+
r.isSourceCustom ? o = await customModelApi.query(r.source, a) : o = await modelApi$1.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.update("UserRole", s) : await modelApi.add("UserRole", s), this.success("Front_Msg_Success", () => {
|
|
24670
|
+
a.id ? await modelApi$1.update("UserRole", s) : await modelApi$1.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.get("ApiOutLog", r.apiOutLogID);
|
|
27662
|
+
const a = await modelApi$1.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.get("ApiOutLog", r.apiOutLogID);
|
|
27671
|
+
const a = await modelApi$1.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.query(r.source, a, [r.sourceDataCode, r.sourceDisplayCode]), o.data.forEach((s) => {
|
|
27849
|
+
r.isSourceCustom ? o = await customModelApi.query(r.source, a, [r.sourceDataCode, r.sourceDisplayCode]) : o = await modelApi$1.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.update("UserRole", s) : await modelApi.add("UserRole", s), this.success("Front_Msg_Success", () => {
|
|
27886
|
+
a.id ? await modelApi$1.update("UserRole", s) : await modelApi$1.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.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) => {
|
|
27900
|
+
let o = await modelApi$1.query("RoleProperty", { roleID: a }), s = o.data, l = [];
|
|
27901
|
+
this.$refs.userRoleForm.data.id && (o = await modelApi$1.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.update("User", this.user), this.success("Front_Msg_Success"), this.$refs.dataPermissionForm.close();
|
|
27926
|
+
await modelApi$1.update("User", this.user), this.success("Front_Msg_Success"), this.$refs.dataPermissionForm.close();
|
|
27927
27927
|
});
|
|
27928
27928
|
}
|
|
27929
27929
|
}
|
|
@@ -28207,7 +28207,6 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]
|
|
|
28207
28207
|
data() {
|
|
28208
28208
|
return {
|
|
28209
28209
|
filter: {},
|
|
28210
|
-
applicationType: {},
|
|
28211
28210
|
page: {},
|
|
28212
28211
|
messageData: {
|
|
28213
28212
|
message: null
|
|
@@ -28215,9 +28214,38 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]
|
|
|
28215
28214
|
messageOpened: !1
|
|
28216
28215
|
};
|
|
28217
28216
|
},
|
|
28217
|
+
props: {
|
|
28218
|
+
// 表格视图
|
|
28219
|
+
tableViewCode: {
|
|
28220
|
+
type: String
|
|
28221
|
+
},
|
|
28222
|
+
// 表单视图
|
|
28223
|
+
formViewCode: {
|
|
28224
|
+
type: String
|
|
28225
|
+
},
|
|
28226
|
+
// 查看表单视图
|
|
28227
|
+
showViewCode: {
|
|
28228
|
+
type: String
|
|
28229
|
+
},
|
|
28230
|
+
// 申请类别
|
|
28231
|
+
applicationTypeCode: {
|
|
28232
|
+
type: String
|
|
28233
|
+
}
|
|
28234
|
+
},
|
|
28218
28235
|
computed: {},
|
|
28219
28236
|
async mounted() {
|
|
28220
|
-
|
|
28237
|
+
if (this.$route.meta.data.id) {
|
|
28238
|
+
let r = await this.loadPage(this.$route.meta.data.id);
|
|
28239
|
+
this.page = r.customPage, this.init();
|
|
28240
|
+
} else if (this.applicationTypeCode) {
|
|
28241
|
+
let r = await modelApi.query("ApplicationType", { code: this.applicationTypeCode });
|
|
28242
|
+
r.data.length > 0 && (this.page = {
|
|
28243
|
+
tableViewCode,
|
|
28244
|
+
formViewCode,
|
|
28245
|
+
showViewCode,
|
|
28246
|
+
applicationType: r.data[0]
|
|
28247
|
+
}, this.init());
|
|
28248
|
+
}
|
|
28221
28249
|
},
|
|
28222
28250
|
// watch: {
|
|
28223
28251
|
// $route() {
|
|
@@ -28229,9 +28257,8 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["render", _sfc_render$O]
|
|
|
28229
28257
|
methods: {
|
|
28230
28258
|
...mapActions("admin/viewPage", { loadPage: "load" }),
|
|
28231
28259
|
// 初始化
|
|
28232
|
-
async init(
|
|
28233
|
-
|
|
28234
|
-
this.page = a.customPage, setTimeout(() => {
|
|
28260
|
+
async init() {
|
|
28261
|
+
setTimeout(() => {
|
|
28235
28262
|
this.allow("all") || (this.filter.createUserID = this.info.id), this.$refs.table.init(this.page.tableViewCode, () => {
|
|
28236
28263
|
this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
|
|
28237
28264
|
}), (this.page.formViewCode || "").trim() && this.$refs.form.init(this.page.formViewCode), ((this.page.formViewCode || "").trim() || (this.page.showViewCode || "").trim()) && this.$refs.showForm.init((this.page.showViewCode || "").trim() ? this.page.showViewCode : this.page.formViewCode);
|
|
@@ -28689,7 +28716,7 @@ const processPage = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_re
|
|
|
28689
28716
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
28690
28717
|
this.total = o.totalCount, this.data = o.table;
|
|
28691
28718
|
} else {
|
|
28692
|
-
let o = await modelApi.query(this.tableView.model, a, null, null, this.tableView.functionName, this.tableView.functionType);
|
|
28719
|
+
let o = await modelApi$1.query(this.tableView.model, a, null, null, this.tableView.functionName, this.tableView.functionType);
|
|
28693
28720
|
this.total = o.totalCount, this.data = o.data;
|
|
28694
28721
|
}
|
|
28695
28722
|
}
|
|
@@ -29362,7 +29389,7 @@ const CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_ren
|
|
|
29362
29389
|
let o = this.param;
|
|
29363
29390
|
o[this.column.sourceDataCode] = a.map((l) => l.value).join(",");
|
|
29364
29391
|
let s;
|
|
29365
|
-
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) => {
|
|
29392
|
+
this.column.isSourceCustom ? s = await customModelApi.query(this.column.source, o, [this.column.sourceDataCode, this.column.sourceDisplayCode]) : s = await modelApi$1.query(this.column.source, o, [this.column.sourceDataCode, this.column.sourceDisplayCode]), s.data.forEach((l) => {
|
|
29366
29393
|
let u = this.parseData(l, this.column.sourceDataCode), c = this.parseData(l, this.column.sourceDisplayCode);
|
|
29367
29394
|
this.multi || (this.$refs.select.query = c);
|
|
29368
29395
|
let d = a.find((f) => f.value == u);
|
|
@@ -29527,7 +29554,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29527
29554
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29528
29555
|
o.table.length > 0 && (this.selected = o.table.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.table);
|
|
29529
29556
|
} else {
|
|
29530
|
-
let o = await modelApi.query(a.dataView.model, r, [this.sourceDataCode, this.sourceDisplayCode]);
|
|
29557
|
+
let o = await modelApi$1.query(a.dataView.model, r, [this.sourceDataCode, this.sourceDisplayCode]);
|
|
29531
29558
|
o.data.length > 0 && (this.selected = o.data.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.data);
|
|
29532
29559
|
}
|
|
29533
29560
|
});
|
|
@@ -29544,7 +29571,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29544
29571
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29545
29572
|
o.table.length > 0 && (this.selected = this.parseData(o.table[0], this.sourceDisplayCode), this.selectedData = o.table[0]);
|
|
29546
29573
|
} else {
|
|
29547
|
-
let o = await modelApi.query(a.dataView.model, r);
|
|
29574
|
+
let o = await modelApi$1.query(a.dataView.model, r);
|
|
29548
29575
|
o.data.length > 0 && (this.selected = this.parseData(o.data[0], this.sourceDisplayCode), this.selectedData = o.data[0]);
|
|
29549
29576
|
}
|
|
29550
29577
|
});
|
|
@@ -30786,7 +30813,7 @@ const uploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_re
|
|
|
30786
30813
|
};
|
|
30787
30814
|
},
|
|
30788
30815
|
async created() {
|
|
30789
|
-
let r = await modelApi.query("DisplayFormat", {});
|
|
30816
|
+
let r = await modelApi$1.query("DisplayFormat", {});
|
|
30790
30817
|
this.displayFormats = r.data;
|
|
30791
30818
|
},
|
|
30792
30819
|
props: {
|
|
@@ -37288,7 +37315,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37288
37315
|
let s;
|
|
37289
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();
|
|
37290
37317
|
let l;
|
|
37291
|
-
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") {
|
|
37318
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi$1.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
37292
37319
|
let u = l.data.map((c) => ({
|
|
37293
37320
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
37294
37321
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -37346,7 +37373,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37346
37373
|
(u || "").trim() && (o = {
|
|
37347
37374
|
...o,
|
|
37348
37375
|
...JSON.parse(u)
|
|
37349
|
-
}), 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);
|
|
37376
|
+
}), a.isSourceCustom ? s = await customModelApi.query(a.sourceModel, o, null, l.isReturnSimple ? l : null) : s = await modelApi$1.query(a.sourceModel, o, null, l.isReturnSimple ? l : null, l.functionName, l.functionType), this.$refs["list_" + a.code][0].loadData(s.data);
|
|
37350
37377
|
}
|
|
37351
37378
|
}
|
|
37352
37379
|
a.needClear = !1, a.needRefresh = !1;
|
|
@@ -39552,7 +39579,7 @@ const modalFormSort = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_
|
|
|
39552
39579
|
if (!a)
|
|
39553
39580
|
return;
|
|
39554
39581
|
this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
39555
|
-
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", () => {
|
|
39582
|
+
this.formView.isCustom ? a.id ? await customModelApi.update(this.formView.model, a) : await customModelApi.add(this.formView.model, a) : a.id ? await modelApi$1.update(this.formView.model, a) : await modelApi$1.add(this.formView.model, a), this.success("Front_Msg_Success", () => {
|
|
39556
39583
|
this.$refs.form.data = {}, this.$emit("on-after-save", a), this.close();
|
|
39557
39584
|
});
|
|
39558
39585
|
});
|
|
@@ -40394,7 +40421,7 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_ren
|
|
|
40394
40421
|
let s;
|
|
40395
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();
|
|
40396
40423
|
let l;
|
|
40397
|
-
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") {
|
|
40424
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi$1.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
40398
40425
|
let u = l.data.map((c) => ({
|
|
40399
40426
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
40400
40427
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -41602,7 +41629,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41602
41629
|
a ? this.$refs["table_" + r.code][0].loadData(JSON.parse(a)) : this.$refs["table_" + r.code][0].loadData([]);
|
|
41603
41630
|
} else if (this.data.id) {
|
|
41604
41631
|
let a, o = {}, s = this.$refs["table_" + r.code][0].tableView, l = s.filtering;
|
|
41605
|
-
(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);
|
|
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$1.query(r.sourceModel, o, null, s.isReturnSimple ? s : null, s.functionName, s.functionType), this.$refs["table_" + r.code][0].loadData(a.data);
|
|
41606
41633
|
}
|
|
41607
41634
|
}) : r.controlType == "Attachment" && this.$refs["attachment_" + r.code] && this.$refs["attachment_" + r.code][0].setData(this.parseData(this.data, r.code));
|
|
41608
41635
|
});
|
|
@@ -41894,7 +41921,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41894
41921
|
let s;
|
|
41895
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();
|
|
41896
41923
|
let l;
|
|
41897
|
-
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") {
|
|
41924
|
+
if (a.isSourceCustom ? l = await customModelApi.query(a.source, o) : l = await modelApi$1.query(a.source, o), this.enableLoader(), a.rawData = l.data, a.controlType === "TreeSelect" || a.controlType === "MultiTreeSelect") {
|
|
41898
41925
|
let u = l.data.map((c) => ({
|
|
41899
41926
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
41900
41927
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -43094,7 +43121,7 @@ const _sfc_main$n = {
|
|
|
43094
43121
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
43095
43122
|
this.total = o.totalCount, this.data = o.table;
|
|
43096
43123
|
} else {
|
|
43097
|
-
let o = await modelApi.query(
|
|
43124
|
+
let o = await modelApi$1.query(
|
|
43098
43125
|
this.tableView.model,
|
|
43099
43126
|
a,
|
|
43100
43127
|
this.tableView.isReturnSimple ? this.returnColumns : null,
|
|
@@ -43151,7 +43178,7 @@ const _sfc_main$n = {
|
|
|
43151
43178
|
*/
|
|
43152
43179
|
async edit(r, a) {
|
|
43153
43180
|
let o = r;
|
|
43154
|
-
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 });
|
|
43181
|
+
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi$1.get(this.tableView.model, r.id)), this.$emit("edit", { row: o, index: a });
|
|
43155
43182
|
},
|
|
43156
43183
|
/**
|
|
43157
43184
|
* 查看项
|
|
@@ -43162,7 +43189,7 @@ const _sfc_main$n = {
|
|
|
43162
43189
|
*/
|
|
43163
43190
|
async show(r, a) {
|
|
43164
43191
|
let o = r;
|
|
43165
|
-
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 });
|
|
43192
|
+
this.tableView.isCustom ? o = await customModelApi.get(this.tableView.model, r.id) : this.tableView.isDataSource || (o = await modelApi$1.get(this.tableView.model, r.id)), this.$emit("show", { row: o, index: a });
|
|
43166
43193
|
},
|
|
43167
43194
|
/**
|
|
43168
43195
|
* 删除项
|
|
@@ -43173,7 +43200,7 @@ const _sfc_main$n = {
|
|
|
43173
43200
|
*/
|
|
43174
43201
|
remove(r, a) {
|
|
43175
43202
|
this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
|
|
43176
|
-
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", () => {
|
|
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$1.remove(this.tableView.model, r.id), this.success("Front_Msg_Success", () => {
|
|
43177
43204
|
this.loadData();
|
|
43178
43205
|
}));
|
|
43179
43206
|
});
|
|
@@ -43302,7 +43329,7 @@ const _sfc_main$n = {
|
|
|
43302
43329
|
this.columns.filter((a) => a.slot == "normal")
|
|
43303
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 () => {
|
|
43304
43331
|
let a;
|
|
43305
|
-
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();
|
|
43332
|
+
this.tableView.isCustom ? a = await customModelApi.query(this.tableView.model, {}) : a = await modelApi$1.query(this.tableView.model, {}), this.$refs.batchEditTable.loadData(a.data), this.$refs.batchEditTable.open();
|
|
43306
43333
|
}));
|
|
43307
43334
|
},
|
|
43308
43335
|
// 导出Excel
|
|
@@ -43311,7 +43338,7 @@ const _sfc_main$n = {
|
|
|
43311
43338
|
...this.getAllFilter(),
|
|
43312
43339
|
orderBy: this.orderBy
|
|
43313
43340
|
};
|
|
43314
|
-
this.tableView.isCustom ? customModelApi.exportExcel(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportExcel(this.tableView, r) : modelApi.exportExcel(this.tableView, r);
|
|
43341
|
+
this.tableView.isCustom ? customModelApi.exportExcel(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportExcel(this.tableView, r) : modelApi$1.exportExcel(this.tableView, r);
|
|
43315
43342
|
},
|
|
43316
43343
|
// 导出PDF
|
|
43317
43344
|
exportPdf() {
|
|
@@ -43319,7 +43346,7 @@ const _sfc_main$n = {
|
|
|
43319
43346
|
...this.getAllFilter(),
|
|
43320
43347
|
orderBy: this.orderBy
|
|
43321
43348
|
};
|
|
43322
|
-
this.tableView.isCustom ? customModelApi.exportPdf(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportPdf(this.tableView, r) : modelApi.exportPdf(this.tableView, r);
|
|
43349
|
+
this.tableView.isCustom ? customModelApi.exportPdf(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.exportPdf(this.tableView, r) : modelApi$1.exportPdf(this.tableView, r);
|
|
43323
43350
|
},
|
|
43324
43351
|
// 打印
|
|
43325
43352
|
print() {
|
|
@@ -43327,7 +43354,7 @@ const _sfc_main$n = {
|
|
|
43327
43354
|
...this.getAllFilter(),
|
|
43328
43355
|
orderBy: this.orderBy
|
|
43329
43356
|
};
|
|
43330
|
-
this.tableView.isCustom ? customModelApi.printList(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.printList(this.tableView, r) : modelApi.printList(this.tableView, r);
|
|
43357
|
+
this.tableView.isCustom ? customModelApi.printList(this.tableView, r) : this.tableView.isDataSource ? dataSourceApi.printList(this.tableView, r) : modelApi$1.printList(this.tableView, r);
|
|
43331
43358
|
},
|
|
43332
43359
|
// 加载数据源
|
|
43333
43360
|
initDataSource() {
|
|
@@ -43393,7 +43420,7 @@ const _sfc_main$n = {
|
|
|
43393
43420
|
async fillDataSource(r, a, o) {
|
|
43394
43421
|
r._dataSource || (r._dataSource = {}, r._rawData = {}, r._needRefresh = {}, r._needClear = {}), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
43395
43422
|
let s;
|
|
43396
|
-
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) => ({
|
|
43423
|
+
if (a.isSourceCustom ? s = await customModelApi.query(a.source, o) : s = await modelApi$1.query(a.source, o), this.enableLoader(), r._rawData[a.code] = s.data, r._dataSource[a.code] = s.data.map((l) => ({
|
|
43397
43424
|
id: (a.sourceDataCode || "").trim() ? this.parseData(l, a.sourceDataCode) : l.id,
|
|
43398
43425
|
name: this.parseData(l, a.sourceDisplayCode)
|
|
43399
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)) {
|
|
@@ -43685,7 +43712,7 @@ const _sfc_main$n = {
|
|
|
43685
43712
|
batchSave() {
|
|
43686
43713
|
this.$refs.batchEditTable.validate() && this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
43687
43714
|
let r = this.$refs.batchEditTable.data;
|
|
43688
|
-
this.tableView.isCustom ? await customModelApi.batchSave(this.tableView.model, r) : await modelApi.batchSave(this.tableView.model, r), this.success("Front_Msg_Success", () => {
|
|
43715
|
+
this.tableView.isCustom ? await customModelApi.batchSave(this.tableView.model, r) : await modelApi$1.batchSave(this.tableView.model, r), this.success("Front_Msg_Success", () => {
|
|
43689
43716
|
this.$refs.batchEditTable.close(), this.loadData();
|
|
43690
43717
|
});
|
|
43691
43718
|
});
|
|
@@ -44576,11 +44603,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44576
44603
|
return;
|
|
44577
44604
|
} else if (this.task.activityInst.activity.pageMode == "Component")
|
|
44578
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 () => {
|
|
44579
|
-
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;
|
|
44606
|
+
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi$1.get(a.model, r.processInst.modelID), this.customComponentReady(), this.opened = !0;
|
|
44580
44607
|
});
|
|
44581
44608
|
else if (this.task.activityInst.activity.pageMode == "Form")
|
|
44582
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) => {
|
|
44583
|
-
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 () => {
|
|
44610
|
+
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi$1.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 () => {
|
|
44584
44611
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44585
44612
|
});
|
|
44586
44613
|
});
|
|
@@ -44589,11 +44616,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44589
44616
|
return;
|
|
44590
44617
|
} else if (a.pageMode == "Component")
|
|
44591
44618
|
this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.customComponent = markRaw(this.$pages[a.templateUrl]), this.isCustom = !0, setTimeout(async () => {
|
|
44592
|
-
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;
|
|
44619
|
+
a.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi$1.get(a.model, r.processInst.modelID), this.customComponentReady(), this.opened = !0;
|
|
44593
44620
|
});
|
|
44594
44621
|
else if (a.pageMode == "Form")
|
|
44595
44622
|
this.form = this.$refs.form, this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.form.init(a.formViewCode, async (o) => {
|
|
44596
|
-
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(() => {
|
|
44623
|
+
o.dataView.isCustom ? this.model = await customModelApi.get(a.model, r.processInst.modelID) : this.model = await modelApi$1.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(() => {
|
|
44597
44624
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44598
44625
|
});
|
|
44599
44626
|
});
|
|
@@ -44602,7 +44629,7 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44602
44629
|
return;
|
|
44603
44630
|
}
|
|
44604
44631
|
if (this.task.status == "Pending") {
|
|
44605
|
-
let o = await modelApi.query("Outcome", { activityFromID: r.activityInst.activityID });
|
|
44632
|
+
let o = await modelApi$1.query("Outcome", { activityFromID: r.activityInst.activityID });
|
|
44606
44633
|
this.outcomes = o.data;
|
|
44607
44634
|
}
|
|
44608
44635
|
});
|
|
@@ -91975,7 +92002,7 @@ export {
|
|
|
91975
92002
|
initRouter,
|
|
91976
92003
|
lodop,
|
|
91977
92004
|
mixinPage,
|
|
91978
|
-
modelApi,
|
|
92005
|
+
modelApi$1 as modelApi,
|
|
91979
92006
|
pages,
|
|
91980
92007
|
service as request,
|
|
91981
92008
|
router$1 as router,
|