From 580c720c05d56214790288215a54d6213a37b2c8 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 16 Mar 2023 13:38:40 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E3=80=90fix=20bug=20=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E3=80=91=E4=BB=A3=E7=A0=81=E7=94=9F=E6=88=90=E5=99=A8=EF=BC=8C?= =?UTF-8?q?put=E3=80=81delete=E6=94=B9=E4=B8=BApost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/onlineForm/onlineForm.js | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/jero-web/src/components/onlineForm/onlineForm.js b/jero-web/src/components/onlineForm/onlineForm.js index b975b1ee..2feb542a 100644 --- a/jero-web/src/components/onlineForm/onlineForm.js +++ b/jero-web/src/components/onlineForm/onlineForm.js @@ -1489,14 +1489,14 @@ })); while (t.length) n = n.then(t.shift(), t.shift()); return n - }, a.forEach(["delete", "get", "head", "options"], (function(e) { + }, a.forEach(["get", "head", "options"], (function(e) { s.prototype[e] = function(t, n) { return this.request(a.merge(n || {}, { method: e, url: t })) } - })), a.forEach(["post", "put", "patch"], (function(e) { + })), a.forEach(["post", "patch"], (function(e) { s.prototype[e] = function(t, n, r) { return this.request(a.merge(r || {}, { method: e, @@ -8082,7 +8082,7 @@ function o(e, t) { return Object(r["a"])({ url: e, - method: "put", + method: "post", data: t }) } @@ -8098,7 +8098,7 @@ function c(e, t) { return Object(r["a"])({ url: e, - method: "delete", + method: "post", params: t }) } @@ -10407,7 +10407,7 @@ }, edit: function(e, t) { var that = this; - this.titleText = "编辑", this.uiSchema.method = "put", this.uiSchema.formTemplate = e, this.uiSchema.url = + this.titleText = "编辑", this.uiSchema.method = "post", this.uiSchema.formTemplate = e, this.uiSchema.url = this.url.optPre + this.code, this.uiSchema = c({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! 1, Object(o["c"])(this.url.optPre + this.code + "/" + t).then((function(e) { if (e.success) { @@ -11122,9 +11122,9 @@ } } }; - r.forEach(["delete", "get", "head"], (function(e) { + r.forEach(["post", "get", "head"], (function(e) { c.headers[e] = {} - })), r.forEach(["post", "put", "patch"], (function(e) { + })), r.forEach(["post", "patch"], (function(e) { c.headers[e] = r.merge(i) })), e.exports = c }).call(this, n("f28c")) @@ -11639,7 +11639,7 @@ while (1) switch (e.prev = e.next) { case 0: return a = "/sys/fillRule/executeRuleByCode/".concat(t), i = {}, "function" === typeof r && (i = r()), - e.next = 5, Object(_api_manage__WEBPACK_IMPORTED_MODULE_5__["e"])(a, i, "PUT"); + e.next = 5, Object(_api_manage__WEBPACK_IMPORTED_MODULE_5__["e"])(a, i, "POST"); case 5: if (o = e.sent, s = o.success, c = o.message, l = o.result, !s) { e.next = 13; @@ -20330,7 +20330,7 @@ e.single = 1 == t.result.head.tableType; var n = { formTemplate: t.result.head.formTemplate, - method: "put", + method: "post", url: e.url.optPre + t.result.head.id }; e.schema = Object.assign({}, t.result.schema, n); @@ -24352,7 +24352,7 @@ var t = this, n = "post", r = this.url.add; - this.model.id && (n = "put", r = this.url.edit), this.confirmLoading = !0, Object(s["e"])(r, e, n).then(( + this.model.id && (r = this.url.edit), this.confirmLoading = !0, Object(s["e"])(r, e, n).then(( function(e) { e.success ? (t.$message.success(e.message), t.$emit("ok"), t.close()) : t.$message.warning(e.message) })).finally((function() { @@ -29134,7 +29134,7 @@ e.exports = function(e) { l(e), e.baseURL && !s(e.url) && (e.url = c(e.baseURL, e.url)), e.headers = e.headers || {}, e.data = a(e.data, e.headers, e.transformRequest), e.headers = r.merge(e.headers.common || {}, e.headers[e.method] || {}, e.headers || - {}), r.forEach(["delete", "get", "head", "post", "put", "patch", "common"], (function(t) { + {}), r.forEach(["get", "head", "post", "patch", "common"], (function(t) { delete e.headers[t] })); var t = e.adapter || o.adapter; @@ -34058,7 +34058,7 @@ e.head && e.head.tableName && (e.head.tableName = e.head.tableName.toLowerCase().trim()); var i = "post", o = this.url.addAll; - this.model.id && (i = "put", o = this.url.editAll), Object(p["e"])(o, e, i).then((function(n) { + this.model.id && (o = this.url.editAll), Object(p["e"])(o, e, i).then((function(n) { n.success ? (t.refreshCacheTableName(t.metaTableName, e.head["tableName"]), t.$message.success(n.message), t.$emit("ok"), t.close()) : t.$message.warning(n.message) })).finally((function() { @@ -37496,8 +37496,8 @@ if (!n) { t.confirmLoading = !0; var a = "", - o = ""; - e.model.id ? (a += e.url.edit, o = "put") : (a += e.url.add, o = "post"); + o = "post"; + e.model.id ? (a += e.url.edit) : (a += e.url.add); var s = Object.assign(e.model, r); s.cgformHeadId = e.code, Object(i["e"])(a, s, o).then((function(e) { e.success ? (t.$message.success(e.message), t.$emit("ok")) : t.$message.warning(e.message) @@ -40153,7 +40153,7 @@ }, edit: function(e, t) { var n = this; - this.titleText = "编辑", this.uiSchema.method = "put", this.uiSchema.formTemplate = e, this.uiSchema.url = + this.titleText = "编辑", this.uiSchema.method = "post", this.uiSchema.formTemplate = e, this.uiSchema.url = this.urls.optPre + this.code, this.uiSchema = v({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! 1, Object(i["c"])(this.urls.optPre + this.code + "/" + t).then((function(e) { if (e.success) { @@ -73614,7 +73614,7 @@ }, edit: function(e, t) { var n = this; - this.titleText = "编辑", this.uiSchema.method = "put", this.uiSchema.formTemplate = e, this.uiSchema.url = + this.titleText = "编辑", this.uiSchema.method = "post", this.uiSchema.formTemplate = e, this.uiSchema.url = this.url.optPre + this.code, this.uiSchema = c({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! 1, Object(o["c"])(this.url.optPre + this.code + "/" + t).then((function(e) { if (e.success) { From f4e02008e24bbdd83f5df8f8292ef9f864d32a96 Mon Sep 17 00:00:00 2001 From: zhaoxiao Date: Thu, 16 Mar 2023 13:48:17 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E3=80=90fix=20bug=E3=80=91online=E6=8A=A5?= =?UTF-8?q?=E8=A1=A8=E9=85=8D=E7=BD=AE-=E5=BD=95=E5=85=A5-=E6=97=A0?= =?UTF-8?q?=E6=B3=95=E4=BF=9D=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jero-web/src/components/onlineForm/onlineForm.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jero-web/src/components/onlineForm/onlineForm.js b/jero-web/src/components/onlineForm/onlineForm.js index 2feb542a..ee0f79e9 100644 --- a/jero-web/src/components/onlineForm/onlineForm.js +++ b/jero-web/src/components/onlineForm/onlineForm.js @@ -24110,7 +24110,7 @@ tab: "报表参数", forceRender: !0 } - }, [n("report-paramj-table", { + }, [n("report-params-table", { ref: "table2", attrs: { loading: e.confirmLoading,