mooho-base-admin-plus 2.10.5 → 2.10.7
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 +2 -0
- package/package/mooho-base-admin-plus.min.esm.js +12 -5
- package/package/mooho-base-admin-plus.min.js +2 -2
- package/package.json +1 -1
- package/src/components/workflow/flow-chart.vue +0 -1
- package/src/components/workflow/task-form.vue +11 -6
- package/src/libs/request/index.js +6 -0
- package/src/pages/template/processPage.vue +4 -3
package/history.md
CHANGED
|
@@ -176,3 +176,5 @@ mooho-base-admin-plus@2.9.5 - 修复上一版本bug
|
|
|
176
176
|
mooho-base-admin-plus@2.9.6 - 增加流程撤回
|
|
177
177
|
mooho-base-admin-plus@2.10.0 - 优化表格默认筛选、排序设置
|
|
178
178
|
mooho-base-admin-plus@2.10.5 - 修复引用代码无法获取router的问题
|
|
179
|
+
mooho-base-admin-plus@2.10.6 - 流程权限、流程图两点折线报错的Bug
|
|
180
|
+
mooho-base-admin-plus@2.10.7 - 增加流程结果忽略验证选项
|
|
@@ -19155,7 +19155,7 @@ service.interceptors.request.use(
|
|
|
19155
19155
|
let r = window.$mode === "development" ? Setting.apiBaseURL.dev : Setting.apiBaseURL.prd;
|
|
19156
19156
|
a.url = r + a.url;
|
|
19157
19157
|
const o = util$2.cookies.get("token");
|
|
19158
|
-
return a.headers.Authorization = "Bearer " + o, a;
|
|
19158
|
+
return a.headers.Authorization = "Bearer " + o, router && router.currentRoute && router.currentRoute.value && (a.headers["Frontend-Url"] = router.currentRoute.value.path), a;
|
|
19159
19159
|
},
|
|
19160
19160
|
(a) => {
|
|
19161
19161
|
console.log(a), Promise.reject(a);
|
|
@@ -22644,7 +22644,7 @@ const printTemplate = /* @__PURE__ */ _export_sfc(_sfc_main$13, [["render", _sfc
|
|
|
22644
22644
|
x: Math.round((s.x + l.x) / 2),
|
|
22645
22645
|
y: Math.round((s.y + l.y) / 2)
|
|
22646
22646
|
}
|
|
22647
|
-
])) : o.pointCount == 2 && (o.points == null || JSON.parse(o.points).length != 2) && (
|
|
22647
|
+
])) : o.pointCount == 2 && (o.points == null || JSON.parse(o.points).length != 2) && (o.points = JSON.stringify([
|
|
22648
22648
|
{ x: Math.round((s.x - l.x) * 2 / 3 + l.x), y: Math.round((s.y - l.y) * 2 / 3 + l.y) },
|
|
22649
22649
|
{ x: Math.round((s.x - l.x) / 3 + l.x), y: Math.round((s.y - l.y) / 3 + l.y) }
|
|
22650
22650
|
])), this.data.outcomes.splice(a, 1, o);
|
|
@@ -28504,7 +28504,7 @@ const user = /* @__PURE__ */ _export_sfc(_sfc_main$M, [["render", _sfc_render$M]
|
|
|
28504
28504
|
// 初始化
|
|
28505
28505
|
async init() {
|
|
28506
28506
|
this.isCancelable = this.page.applicationType.isCancelable, this.isRecallable = this.page.applicationType.isRecallable, setTimeout(() => {
|
|
28507
|
-
this
|
|
28507
|
+
this.$refs.table.init(this.page.tableViewCode, () => {
|
|
28508
28508
|
this.$refs.table.tableView.autoLoadDisable || this.$refs.table.loadData();
|
|
28509
28509
|
}), (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);
|
|
28510
28510
|
});
|
|
@@ -44349,7 +44349,14 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44349
44349
|
// 执行结果
|
|
44350
44350
|
async action(a) {
|
|
44351
44351
|
let r;
|
|
44352
|
-
|
|
44352
|
+
if (a.ignoreValidation == !0)
|
|
44353
|
+
r = !0;
|
|
44354
|
+
else {
|
|
44355
|
+
if (this.isCustom && typeof this.$refs.customComponent.actionValidation == "function" && (r = await this.$refs.customComponent.actionValidation(a), !r))
|
|
44356
|
+
return;
|
|
44357
|
+
r = await this.form.validate();
|
|
44358
|
+
}
|
|
44359
|
+
r ? this.confirmInput(
|
|
44353
44360
|
"Front_Msg_Sure_To_Application|" + (a.name == null ? this.$t("Front_Label_Agree") : a.name),
|
|
44354
44361
|
this.$t("Front_Label_Comment"),
|
|
44355
44362
|
async () => {
|
|
@@ -44357,7 +44364,7 @@ const viewTable = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_rend
|
|
|
44357
44364
|
!this.readonly && (o = this.form.getFullData(), !o) || (this.isCustom && typeof this.$refs.customComponent.beforeAction == "function" && await this.$refs.customComponent.beforeAction(a), await taskApi.do(this.task.id, a.id, o, this.comment), this.success("Front_Msg_Success"), this.resetNotice(), this.$emit("on-after-action"), this.opened = !1);
|
|
44358
44365
|
},
|
|
44359
44366
|
(o) => (this.comment = o, !0)
|
|
44360
|
-
) : this.error("Front_Msg_Form_Validate_Fail")
|
|
44367
|
+
) : this.error("Front_Msg_Form_Validate_Fail");
|
|
44361
44368
|
},
|
|
44362
44369
|
// 拒绝
|
|
44363
44370
|
async reject() {
|