mooho-base-admin-plus 2.8.8 → 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
|
@@ -149,3 +149,5 @@ mooho-base-admin-plus@2.8.5 - 优化表格报错提示
|
|
|
149
149
|
mooho-base-admin-plus@2.8.6 - 公式计算后增加change事件
|
|
150
150
|
mooho-base-admin-plus@2.8.7 - 增加密码加密,增加文件类型验证
|
|
151
151
|
mooho-base-admin-plus@2.8.8 - 下拉框等返回所有数据,避免联动失效
|
|
152
|
+
mooho-base-admin-plus@2.8.9 - 增加流程页面模板插槽
|
|
153
|
+
mooho-base-admin-plus@2.8.10 - 流程页面模板优化
|
|
@@ -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);
|
|
@@ -28316,14 +28343,17 @@ function _sfc_render$N(r, a, o, s, l, u) {
|
|
|
28316
28343
|
"create-enable": r.allow("create"),
|
|
28317
28344
|
onCreate: u.create
|
|
28318
28345
|
}, {
|
|
28319
|
-
|
|
28346
|
+
filter: withCtx(() => [
|
|
28347
|
+
renderSlot(r.$slots, "filter")
|
|
28348
|
+
]),
|
|
28349
|
+
command: withCtx(({ row: E, index: D }) => [
|
|
28320
28350
|
E.application.status != "Draft" && E.application.status != "Rejected" ? (openBlock(), createBlock(d, {
|
|
28321
28351
|
key: 0,
|
|
28322
28352
|
size: "small",
|
|
28323
28353
|
title: r.$t("Front_Btn_Detail"),
|
|
28324
28354
|
type: "info",
|
|
28325
28355
|
"custom-icon": "fa fa-file-alt",
|
|
28326
|
-
onClick: (
|
|
28356
|
+
onClick: (A) => r.$refs.showForm.open(E)
|
|
28327
28357
|
}, null, 8, ["title", "onClick"])) : createCommentVNode("", !0),
|
|
28328
28358
|
(E.application.status == "Draft" || E.application.status == "Rejected") && E.application.applicantID == r.info.id ? (openBlock(), createBlock(d, {
|
|
28329
28359
|
key: 1,
|
|
@@ -28331,13 +28361,17 @@ function _sfc_render$N(r, a, o, s, l, u) {
|
|
|
28331
28361
|
title: r.$t("Front_Btn_Edit"),
|
|
28332
28362
|
type: "primary",
|
|
28333
28363
|
"custom-icon": "fa fa-edit",
|
|
28334
|
-
onClick: (
|
|
28335
|
-
}, null, 8, ["title", "onClick"])) : createCommentVNode("", !0)
|
|
28364
|
+
onClick: (A) => r.$refs.form.open(E)
|
|
28365
|
+
}, null, 8, ["title", "onClick"])) : createCommentVNode("", !0),
|
|
28366
|
+
renderSlot(r.$slots, "command", {
|
|
28367
|
+
row: E,
|
|
28368
|
+
index: D
|
|
28369
|
+
})
|
|
28336
28370
|
]),
|
|
28337
|
-
_:
|
|
28371
|
+
_: 3
|
|
28338
28372
|
}, 8, ["filter", "create-enable", "onCreate"])) : createCommentVNode("", !0)
|
|
28339
28373
|
]),
|
|
28340
|
-
_:
|
|
28374
|
+
_: 3
|
|
28341
28375
|
}),
|
|
28342
28376
|
l.page ? (openBlock(), createBlock(v, {
|
|
28343
28377
|
key: 0,
|
|
@@ -28682,7 +28716,7 @@ const processPage = /* @__PURE__ */ _export_sfc(_sfc_main$N, [["render", _sfc_re
|
|
|
28682
28716
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
28683
28717
|
this.total = o.totalCount, this.data = o.table;
|
|
28684
28718
|
} else {
|
|
28685
|
-
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);
|
|
28686
28720
|
this.total = o.totalCount, this.data = o.data;
|
|
28687
28721
|
}
|
|
28688
28722
|
}
|
|
@@ -29355,7 +29389,7 @@ const CheckGroup = /* @__PURE__ */ _export_sfc(_sfc_main$I, [["render", _sfc_ren
|
|
|
29355
29389
|
let o = this.param;
|
|
29356
29390
|
o[this.column.sourceDataCode] = a.map((l) => l.value).join(",");
|
|
29357
29391
|
let s;
|
|
29358
|
-
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) => {
|
|
29359
29393
|
let u = this.parseData(l, this.column.sourceDataCode), c = this.parseData(l, this.column.sourceDisplayCode);
|
|
29360
29394
|
this.multi || (this.$refs.select.query = c);
|
|
29361
29395
|
let d = a.find((f) => f.value == u);
|
|
@@ -29520,7 +29554,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29520
29554
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29521
29555
|
o.table.length > 0 && (this.selected = o.table.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.table);
|
|
29522
29556
|
} else {
|
|
29523
|
-
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]);
|
|
29524
29558
|
o.data.length > 0 && (this.selected = o.data.map((s) => this.parseData(s, this.sourceDisplayCode)).join(","), this.selectedData = o.data);
|
|
29525
29559
|
}
|
|
29526
29560
|
});
|
|
@@ -29537,7 +29571,7 @@ const comboSelect = /* @__PURE__ */ _export_sfc(_sfc_main$H, [["render", _sfc_re
|
|
|
29537
29571
|
let o = await dataSourceApi.query(a.dataView.dataSource, r);
|
|
29538
29572
|
o.table.length > 0 && (this.selected = this.parseData(o.table[0], this.sourceDisplayCode), this.selectedData = o.table[0]);
|
|
29539
29573
|
} else {
|
|
29540
|
-
let o = await modelApi.query(a.dataView.model, r);
|
|
29574
|
+
let o = await modelApi$1.query(a.dataView.model, r);
|
|
29541
29575
|
o.data.length > 0 && (this.selected = this.parseData(o.data[0], this.sourceDisplayCode), this.selectedData = o.data[0]);
|
|
29542
29576
|
}
|
|
29543
29577
|
});
|
|
@@ -30779,7 +30813,7 @@ const uploadImage = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["render", _sfc_re
|
|
|
30779
30813
|
};
|
|
30780
30814
|
},
|
|
30781
30815
|
async created() {
|
|
30782
|
-
let r = await modelApi.query("DisplayFormat", {});
|
|
30816
|
+
let r = await modelApi$1.query("DisplayFormat", {});
|
|
30783
30817
|
this.displayFormats = r.data;
|
|
30784
30818
|
},
|
|
30785
30819
|
props: {
|
|
@@ -37281,7 +37315,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37281
37315
|
let s;
|
|
37282
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();
|
|
37283
37317
|
let l;
|
|
37284
|
-
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") {
|
|
37285
37319
|
let u = l.data.map((c) => ({
|
|
37286
37320
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
37287
37321
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -37339,7 +37373,7 @@ const draggable = /* @__PURE__ */ getDefaultExportFromCjs(vuedraggable_umdExport
|
|
|
37339
37373
|
(u || "").trim() && (o = {
|
|
37340
37374
|
...o,
|
|
37341
37375
|
...JSON.parse(u)
|
|
37342
|
-
}), 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);
|
|
37343
37377
|
}
|
|
37344
37378
|
}
|
|
37345
37379
|
a.needClear = !1, a.needRefresh = !1;
|
|
@@ -39545,7 +39579,7 @@ const modalFormSort = /* @__PURE__ */ _export_sfc(_sfc_main$t, [["render", _sfc_
|
|
|
39545
39579
|
if (!a)
|
|
39546
39580
|
return;
|
|
39547
39581
|
this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
39548
|
-
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", () => {
|
|
39549
39583
|
this.$refs.form.data = {}, this.$emit("on-after-save", a), this.close();
|
|
39550
39584
|
});
|
|
39551
39585
|
});
|
|
@@ -40387,7 +40421,7 @@ const modalTable = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_ren
|
|
|
40387
40421
|
let s;
|
|
40388
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();
|
|
40389
40423
|
let l;
|
|
40390
|
-
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") {
|
|
40391
40425
|
let u = l.data.map((c) => ({
|
|
40392
40426
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
40393
40427
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -41595,7 +41629,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41595
41629
|
a ? this.$refs["table_" + r.code][0].loadData(JSON.parse(a)) : this.$refs["table_" + r.code][0].loadData([]);
|
|
41596
41630
|
} else if (this.data.id) {
|
|
41597
41631
|
let a, o = {}, s = this.$refs["table_" + r.code][0].tableView, l = s.filtering;
|
|
41598
|
-
(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);
|
|
41599
41633
|
}
|
|
41600
41634
|
}) : r.controlType == "Attachment" && this.$refs["attachment_" + r.code] && this.$refs["attachment_" + r.code][0].setData(this.parseData(this.data, r.code));
|
|
41601
41635
|
});
|
|
@@ -41887,7 +41921,7 @@ const tableSetting = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_r
|
|
|
41887
41921
|
let s;
|
|
41888
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();
|
|
41889
41923
|
let l;
|
|
41890
|
-
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") {
|
|
41891
41925
|
let u = l.data.map((c) => ({
|
|
41892
41926
|
id: (a.sourceDataCode || "").trim() ? this.parseData(c, a.sourceDataCode) : c.id,
|
|
41893
41927
|
name: this.parseData(c, a.sourceDisplayCode),
|
|
@@ -43087,7 +43121,7 @@ const _sfc_main$n = {
|
|
|
43087
43121
|
let o = await dataSourceApi.query(this.tableView.dataSource, a);
|
|
43088
43122
|
this.total = o.totalCount, this.data = o.table;
|
|
43089
43123
|
} else {
|
|
43090
|
-
let o = await modelApi.query(
|
|
43124
|
+
let o = await modelApi$1.query(
|
|
43091
43125
|
this.tableView.model,
|
|
43092
43126
|
a,
|
|
43093
43127
|
this.tableView.isReturnSimple ? this.returnColumns : null,
|
|
@@ -43144,7 +43178,7 @@ const _sfc_main$n = {
|
|
|
43144
43178
|
*/
|
|
43145
43179
|
async edit(r, a) {
|
|
43146
43180
|
let o = r;
|
|
43147
|
-
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 });
|
|
43148
43182
|
},
|
|
43149
43183
|
/**
|
|
43150
43184
|
* 查看项
|
|
@@ -43155,7 +43189,7 @@ const _sfc_main$n = {
|
|
|
43155
43189
|
*/
|
|
43156
43190
|
async show(r, a) {
|
|
43157
43191
|
let o = r;
|
|
43158
|
-
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 });
|
|
43159
43193
|
},
|
|
43160
43194
|
/**
|
|
43161
43195
|
* 删除项
|
|
@@ -43166,7 +43200,7 @@ const _sfc_main$n = {
|
|
|
43166
43200
|
*/
|
|
43167
43201
|
remove(r, a) {
|
|
43168
43202
|
this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
|
|
43169
|
-
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", () => {
|
|
43170
43204
|
this.loadData();
|
|
43171
43205
|
}));
|
|
43172
43206
|
});
|
|
@@ -43295,7 +43329,7 @@ const _sfc_main$n = {
|
|
|
43295
43329
|
this.columns.filter((a) => a.slot == "normal")
|
|
43296
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 () => {
|
|
43297
43331
|
let a;
|
|
43298
|
-
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();
|
|
43299
43333
|
}));
|
|
43300
43334
|
},
|
|
43301
43335
|
// 导出Excel
|
|
@@ -43304,7 +43338,7 @@ const _sfc_main$n = {
|
|
|
43304
43338
|
...this.getAllFilter(),
|
|
43305
43339
|
orderBy: this.orderBy
|
|
43306
43340
|
};
|
|
43307
|
-
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);
|
|
43308
43342
|
},
|
|
43309
43343
|
// 导出PDF
|
|
43310
43344
|
exportPdf() {
|
|
@@ -43312,7 +43346,7 @@ const _sfc_main$n = {
|
|
|
43312
43346
|
...this.getAllFilter(),
|
|
43313
43347
|
orderBy: this.orderBy
|
|
43314
43348
|
};
|
|
43315
|
-
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);
|
|
43316
43350
|
},
|
|
43317
43351
|
// 打印
|
|
43318
43352
|
print() {
|
|
@@ -43320,7 +43354,7 @@ const _sfc_main$n = {
|
|
|
43320
43354
|
...this.getAllFilter(),
|
|
43321
43355
|
orderBy: this.orderBy
|
|
43322
43356
|
};
|
|
43323
|
-
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);
|
|
43324
43358
|
},
|
|
43325
43359
|
// 加载数据源
|
|
43326
43360
|
initDataSource() {
|
|
@@ -43386,7 +43420,7 @@ const _sfc_main$n = {
|
|
|
43386
43420
|
async fillDataSource(r, a, o) {
|
|
43387
43421
|
r._dataSource || (r._dataSource = {}, r._rawData = {}, r._needRefresh = {}, r._needClear = {}), (a.controlType === "ComboSelect" || a.controlType === "MultiComboSelect") && (o.per = 20), this.disableLoader();
|
|
43388
43422
|
let s;
|
|
43389
|
-
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) => ({
|
|
43390
43424
|
id: (a.sourceDataCode || "").trim() ? this.parseData(l, a.sourceDataCode) : l.id,
|
|
43391
43425
|
name: this.parseData(l, a.sourceDisplayCode)
|
|
43392
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)) {
|
|
@@ -43678,7 +43712,7 @@ const _sfc_main$n = {
|
|
|
43678
43712
|
batchSave() {
|
|
43679
43713
|
this.$refs.batchEditTable.validate() && this.confirm("Front_Msg_Sure_To_Save", async () => {
|
|
43680
43714
|
let r = this.$refs.batchEditTable.data;
|
|
43681
|
-
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", () => {
|
|
43682
43716
|
this.$refs.batchEditTable.close(), this.loadData();
|
|
43683
43717
|
});
|
|
43684
43718
|
});
|
|
@@ -44569,11 +44603,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44569
44603
|
return;
|
|
44570
44604
|
} else if (this.task.activityInst.activity.pageMode == "Component")
|
|
44571
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 () => {
|
|
44572
|
-
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;
|
|
44573
44607
|
});
|
|
44574
44608
|
else if (this.task.activityInst.activity.pageMode == "Form")
|
|
44575
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) => {
|
|
44576
|
-
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 () => {
|
|
44577
44611
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44578
44612
|
});
|
|
44579
44613
|
});
|
|
@@ -44582,11 +44616,11 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44582
44616
|
return;
|
|
44583
44617
|
} else if (a.pageMode == "Component")
|
|
44584
44618
|
this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.customComponent = markRaw(this.$pages[a.templateUrl]), this.isCustom = !0, setTimeout(async () => {
|
|
44585
|
-
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;
|
|
44586
44620
|
});
|
|
44587
44621
|
else if (a.pageMode == "Form")
|
|
44588
44622
|
this.form = this.$refs.form, this.readonly = !this.task.activityInst.activity.isEditable || this.task.status != "Pending", this.form.init(a.formViewCode, async (o) => {
|
|
44589
|
-
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(() => {
|
|
44590
44624
|
this.form.onDataChange(), this.form.clearValidate(), this.opened = !0;
|
|
44591
44625
|
});
|
|
44592
44626
|
});
|
|
@@ -44595,7 +44629,7 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44595
44629
|
return;
|
|
44596
44630
|
}
|
|
44597
44631
|
if (this.task.status == "Pending") {
|
|
44598
|
-
let o = await modelApi.query("Outcome", { activityFromID: r.activityInst.activityID });
|
|
44632
|
+
let o = await modelApi$1.query("Outcome", { activityFromID: r.activityInst.activityID });
|
|
44599
44633
|
this.outcomes = o.data;
|
|
44600
44634
|
}
|
|
44601
44635
|
});
|
|
@@ -91968,7 +92002,7 @@ export {
|
|
|
91968
92002
|
initRouter,
|
|
91969
92003
|
lodop,
|
|
91970
92004
|
mixinPage,
|
|
91971
|
-
modelApi,
|
|
92005
|
+
modelApi$1 as modelApi,
|
|
91972
92006
|
pages,
|
|
91973
92007
|
service as request,
|
|
91974
92008
|
router$1 as router,
|