diff --git a/jero-web/src/components/onlineForm/onlineForm.js b/jero-web/src/components/onlineForm/onlineForm.js index ee0f79e9..f2b77bbe 100644 --- a/jero-web/src/components/onlineForm/onlineForm.js +++ b/jero-web/src/components/onlineForm/onlineForm.js @@ -9977,6 +9977,7 @@ btnUrl: "/online/cgform/head/enhanceButton/", btnList: [], url: "/online/cgform/head/enhanceJava/", + addUrl: "/online/cgform/head/addEnhanceJava/", urlByButtonCode: "/online/cgform/head/enhanceJavaByButtonCode/", model: { buttonCode: "add", @@ -9995,7 +9996,7 @@ if (e.confirmLoading = !0, e.model.id) { var a = Object.assign(e.model, n); r = Object(o["g"])(e.url + e.code, a) - } else r = Object(o["f"])(e.url + e.code, n); + } else r = Object(o["f"])(e.addUrl + e.code, n); r.then((function(t) { e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning( t.message) @@ -10275,7 +10276,8 @@ url: { loadFormItems: "/online/cgform/api/getErpFormItem/", loadEnhanceJs: "/online/cgform/api/getEnhanceJs/", - optPre: "/online/cgform/api/form/" + optPre: "/online/cgform/api/form/", + optPreUpdate: "/online/cgform/api/form/update/" }, schema: {}, uiSchema: { @@ -10408,8 +10410,8 @@ edit: function(e, t) { var that = this; 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) { + this.url.optPreUpdate + this.code, this.uiSchema = c({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! + 1, Object(o["c"])(this.url.optPreUpdate + this.code + "/" + t).then((function(e) { if (e.success) { var t = e.result; that.$refs.onlineForm.edit(t) @@ -19301,6 +19303,7 @@ } }, url: "/online/cgform/head/enhanceJs/", + addUrl: "/online/cgform/head/addEnhanceJs/", model: {}, cgJsType: [], cgJs: "", @@ -19324,7 +19327,7 @@ if (this.model.id) { var r = Object.assign({}, this.model, n); t = Object(i["g"])(this.url + this.code, r) - } else t = Object(i["f"])(this.url + this.code, n); + } else t = Object(i["f"])(this.addUrl + this.code, n); t.then((function(t) { e.confirmLoading = !1, t.success ? (e.addLocalRecord(n), e.visible = !1, e.$message.success(t.message)) : e.$message.warning(t.message) @@ -20310,7 +20313,8 @@ url: { loadFormItems: "/online/cgform/api/getFormItemBytbname/", loadEnhanceJs: "/online/cgform/api/getEnhanceJs/", - optPre: "/online/cgform/api/form/" + optPre: "/online/cgform/api/form/", + optPreUpdateUrl: "/online/cgform/api/form/update/" }, schema: {}, uiSchema: {}, @@ -20331,7 +20335,7 @@ var n = { formTemplate: t.result.head.formTemplate, method: "post", - url: e.url.optPre + t.result.head.id + url: e.url.optPreUpdateUrl + t.result.head.id }; e.schema = Object.assign({}, t.result.schema, n); var r = e.url.optPre + t.result.head.id + "/" + e.dataId; @@ -26855,6 +26859,7 @@ loading: !1, dataSource: w, url: "/online/cgform/api/authData", + editUrl: "/online/cgform/api/editAuthData", columnList: [], columns: [{ title: "启用", @@ -27024,7 +27029,7 @@ }, editAuthData: function(e) { var t = this; - Object(_["g"])(this.url, e).then((function(e) { + Object(_["g"])(this.editUrl, e).then((function(e) { e.success ? (t.visible = !1, t.loadAuthData(), t.$message.success(e.message)) : t.$message.warning(e.message) })).finally((function() { t.confirmLoading = !1 @@ -27649,6 +27654,7 @@ btnUrl: "/online/cgform/head/enhanceButton/", btnList: [], url: "/online/cgform/head/enhanceSql/", + addUrl: "/online/cgform/head/addEnhanceSql/", model: {}, tableName: "" } @@ -27662,7 +27668,7 @@ if (e.confirmLoading = !0, e.model.id) { var a = Object.assign(e.model, n); r = Object(i["g"])(e.url + e.code, a) - } else r = Object(i["f"])(e.url + e.code, n); + } else r = Object(i["f"])(e.addUrl + e.code, n); r.then((function(t) { e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning( t.message) @@ -40091,7 +40097,8 @@ urls: { loadFormItems: "/online/cgform/api/getFormItem/", loadEnhanceJs: "/online/cgform/api/getEnhanceJs/", - optPre: "/online/cgform/api/form/" + optPre: "/online/cgform/api/form/", + optPreUpdate: "/online/cgform/api/form/update/" }, formSchema: {}, uiSchema: { @@ -40154,8 +40161,8 @@ edit: function(e, t) { var n = this; 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) { + this.urls.optPreUpdate + this.code, this.uiSchema = v({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! + 1, Object(i["c"])(this.urls.optPreUpdate + this.code + "/" + t).then((function(e) { if (e.success) { var t = e.result; n.$refs.onlineFormTab.edit(t) @@ -41620,6 +41627,7 @@ } }, url: "/online/cgform/head/enhanceJava/", + addUrl: "/online/cgform/head/addEnhanceJava/", model: { buttonCode: "add", event: "end", @@ -41652,7 +41660,7 @@ if (e.confirmLoading = !0, e.model.id) { var a = Object.assign(e.model, n); r = Object(o["g"])(e.url + e.code, a) - } else r = Object(o["f"])(e.url + e.code, n); + } else r = Object(o["f"])(e.addUrl + e.code, n); r.then((function(t) { e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) : e.$message.warning(t.message) @@ -42888,6 +42896,7 @@ } }, url: "/online/cgform/head/enhanceSql/", + addUrl: "/online/cgform/head/addEnhanceSql/", model: { buttonCode: "add", cgbSql: "", @@ -42923,7 +42932,7 @@ if (e.confirmLoading = !0, e.model.id) { var a = Object.assign(e.model, n); r = Object(o["g"])(e.url + e.code, a) - } else r = Object(o["f"])(e.url + e.code, n); + } else r = Object(o["f"])(e.addUrl + e.code, n); r.then((function(t) { e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) : e.$message.warning(t.message) @@ -73533,7 +73542,8 @@ url: { loadFormItems: "/online/cgform/api/getFormItem/", loadEnhanceJs: "/online/cgform/api/getEnhanceJs/", - optPre: "/online/cgform/api/form/" + optPre: "/online/cgform/api/form/", + optPreUpdate: "/online/cgform/api/form/update/" }, schema: {}, uiSchema: { @@ -73615,8 +73625,8 @@ edit: function(e, t) { var n = this; 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) { + this.url.optPreUpdate + this.code, this.uiSchema = c({}, this.uiSchema), this.visible = !0, this.disableSubmit = ! + 1, Object(o["c"])(this.url.optPreUpdate + this.code + "/" + t).then((function(e) { if (e.success) { var t = e.result; n.$refs.onlineForm.edit(t)