【fix bug】代码生成器内的put、delete改为post
This commit is contained in:
@@ -9977,6 +9977,7 @@
|
|||||||
btnUrl: "/online/cgform/head/enhanceButton/",
|
btnUrl: "/online/cgform/head/enhanceButton/",
|
||||||
btnList: [],
|
btnList: [],
|
||||||
url: "/online/cgform/head/enhanceJava/",
|
url: "/online/cgform/head/enhanceJava/",
|
||||||
|
addUrl: "/online/cgform/head/addEnhanceJava/",
|
||||||
urlByButtonCode: "/online/cgform/head/enhanceJavaByButtonCode/",
|
urlByButtonCode: "/online/cgform/head/enhanceJavaByButtonCode/",
|
||||||
model: {
|
model: {
|
||||||
buttonCode: "add",
|
buttonCode: "add",
|
||||||
@@ -9995,7 +9996,7 @@
|
|||||||
if (e.confirmLoading = !0, e.model.id) {
|
if (e.confirmLoading = !0, e.model.id) {
|
||||||
var a = Object.assign(e.model, n);
|
var a = Object.assign(e.model, n);
|
||||||
r = Object(o["g"])(e.url + e.code, a)
|
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) {
|
r.then((function(t) {
|
||||||
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning(
|
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning(
|
||||||
t.message)
|
t.message)
|
||||||
@@ -10275,7 +10276,8 @@
|
|||||||
url: {
|
url: {
|
||||||
loadFormItems: "/online/cgform/api/getErpFormItem/",
|
loadFormItems: "/online/cgform/api/getErpFormItem/",
|
||||||
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
||||||
optPre: "/online/cgform/api/form/"
|
optPre: "/online/cgform/api/form/",
|
||||||
|
optPreUpdate: "/online/cgform/api/form/update/"
|
||||||
},
|
},
|
||||||
schema: {},
|
schema: {},
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
@@ -10408,8 +10410,8 @@
|
|||||||
edit: function(e, t) {
|
edit: function(e, t) {
|
||||||
var that = this;
|
var that = this;
|
||||||
this.titleText = "编辑", this.uiSchema.method = "post", 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 = !
|
this.url.optPreUpdate + 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) {
|
1, Object(o["c"])(this.url.optPreUpdate + this.code + "/" + t).then((function(e) {
|
||||||
if (e.success) {
|
if (e.success) {
|
||||||
var t = e.result;
|
var t = e.result;
|
||||||
that.$refs.onlineForm.edit(t)
|
that.$refs.onlineForm.edit(t)
|
||||||
@@ -19301,6 +19303,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: "/online/cgform/head/enhanceJs/",
|
url: "/online/cgform/head/enhanceJs/",
|
||||||
|
addUrl: "/online/cgform/head/addEnhanceJs/",
|
||||||
model: {},
|
model: {},
|
||||||
cgJsType: [],
|
cgJsType: [],
|
||||||
cgJs: "",
|
cgJs: "",
|
||||||
@@ -19324,7 +19327,7 @@
|
|||||||
if (this.model.id) {
|
if (this.model.id) {
|
||||||
var r = Object.assign({}, this.model, n);
|
var r = Object.assign({}, this.model, n);
|
||||||
t = Object(i["g"])(this.url + this.code, r)
|
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) {
|
t.then((function(t) {
|
||||||
e.confirmLoading = !1, t.success ? (e.addLocalRecord(n), e.visible = !1, e.$message.success(t.message)) :
|
e.confirmLoading = !1, t.success ? (e.addLocalRecord(n), e.visible = !1, e.$message.success(t.message)) :
|
||||||
e.$message.warning(t.message)
|
e.$message.warning(t.message)
|
||||||
@@ -20310,7 +20313,8 @@
|
|||||||
url: {
|
url: {
|
||||||
loadFormItems: "/online/cgform/api/getFormItemBytbname/",
|
loadFormItems: "/online/cgform/api/getFormItemBytbname/",
|
||||||
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
||||||
optPre: "/online/cgform/api/form/"
|
optPre: "/online/cgform/api/form/",
|
||||||
|
optPreUpdateUrl: "/online/cgform/api/form/update/"
|
||||||
},
|
},
|
||||||
schema: {},
|
schema: {},
|
||||||
uiSchema: {},
|
uiSchema: {},
|
||||||
@@ -20331,7 +20335,7 @@
|
|||||||
var n = {
|
var n = {
|
||||||
formTemplate: t.result.head.formTemplate,
|
formTemplate: t.result.head.formTemplate,
|
||||||
method: "post",
|
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);
|
e.schema = Object.assign({}, t.result.schema, n);
|
||||||
var r = e.url.optPre + t.result.head.id + "/" + e.dataId;
|
var r = e.url.optPre + t.result.head.id + "/" + e.dataId;
|
||||||
@@ -26855,6 +26859,7 @@
|
|||||||
loading: !1,
|
loading: !1,
|
||||||
dataSource: w,
|
dataSource: w,
|
||||||
url: "/online/cgform/api/authData",
|
url: "/online/cgform/api/authData",
|
||||||
|
editUrl: "/online/cgform/api/editAuthData",
|
||||||
columnList: [],
|
columnList: [],
|
||||||
columns: [{
|
columns: [{
|
||||||
title: "启用",
|
title: "启用",
|
||||||
@@ -27024,7 +27029,7 @@
|
|||||||
},
|
},
|
||||||
editAuthData: function(e) {
|
editAuthData: function(e) {
|
||||||
var t = this;
|
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)
|
e.success ? (t.visible = !1, t.loadAuthData(), t.$message.success(e.message)) : t.$message.warning(e.message)
|
||||||
})).finally((function() {
|
})).finally((function() {
|
||||||
t.confirmLoading = !1
|
t.confirmLoading = !1
|
||||||
@@ -27649,6 +27654,7 @@
|
|||||||
btnUrl: "/online/cgform/head/enhanceButton/",
|
btnUrl: "/online/cgform/head/enhanceButton/",
|
||||||
btnList: [],
|
btnList: [],
|
||||||
url: "/online/cgform/head/enhanceSql/",
|
url: "/online/cgform/head/enhanceSql/",
|
||||||
|
addUrl: "/online/cgform/head/addEnhanceSql/",
|
||||||
model: {},
|
model: {},
|
||||||
tableName: ""
|
tableName: ""
|
||||||
}
|
}
|
||||||
@@ -27662,7 +27668,7 @@
|
|||||||
if (e.confirmLoading = !0, e.model.id) {
|
if (e.confirmLoading = !0, e.model.id) {
|
||||||
var a = Object.assign(e.model, n);
|
var a = Object.assign(e.model, n);
|
||||||
r = Object(i["g"])(e.url + e.code, a)
|
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) {
|
r.then((function(t) {
|
||||||
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning(
|
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message)) : e.$message.warning(
|
||||||
t.message)
|
t.message)
|
||||||
@@ -40091,7 +40097,8 @@
|
|||||||
urls: {
|
urls: {
|
||||||
loadFormItems: "/online/cgform/api/getFormItem/",
|
loadFormItems: "/online/cgform/api/getFormItem/",
|
||||||
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
||||||
optPre: "/online/cgform/api/form/"
|
optPre: "/online/cgform/api/form/",
|
||||||
|
optPreUpdate: "/online/cgform/api/form/update/"
|
||||||
},
|
},
|
||||||
formSchema: {},
|
formSchema: {},
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
@@ -40154,8 +40161,8 @@
|
|||||||
edit: function(e, t) {
|
edit: function(e, t) {
|
||||||
var n = this;
|
var n = this;
|
||||||
this.titleText = "编辑", this.uiSchema.method = "post", 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 = !
|
this.urls.optPreUpdate + 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) {
|
1, Object(i["c"])(this.urls.optPreUpdate + this.code + "/" + t).then((function(e) {
|
||||||
if (e.success) {
|
if (e.success) {
|
||||||
var t = e.result;
|
var t = e.result;
|
||||||
n.$refs.onlineFormTab.edit(t)
|
n.$refs.onlineFormTab.edit(t)
|
||||||
@@ -41620,6 +41627,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: "/online/cgform/head/enhanceJava/",
|
url: "/online/cgform/head/enhanceJava/",
|
||||||
|
addUrl: "/online/cgform/head/addEnhanceJava/",
|
||||||
model: {
|
model: {
|
||||||
buttonCode: "add",
|
buttonCode: "add",
|
||||||
event: "end",
|
event: "end",
|
||||||
@@ -41652,7 +41660,7 @@
|
|||||||
if (e.confirmLoading = !0, e.model.id) {
|
if (e.confirmLoading = !0, e.model.id) {
|
||||||
var a = Object.assign(e.model, n);
|
var a = Object.assign(e.model, n);
|
||||||
r = Object(o["g"])(e.url + e.code, a)
|
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) {
|
r.then((function(t) {
|
||||||
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) :
|
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) :
|
||||||
e.$message.warning(t.message)
|
e.$message.warning(t.message)
|
||||||
@@ -42888,6 +42896,7 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
url: "/online/cgform/head/enhanceSql/",
|
url: "/online/cgform/head/enhanceSql/",
|
||||||
|
addUrl: "/online/cgform/head/addEnhanceSql/",
|
||||||
model: {
|
model: {
|
||||||
buttonCode: "add",
|
buttonCode: "add",
|
||||||
cgbSql: "",
|
cgbSql: "",
|
||||||
@@ -42923,7 +42932,7 @@
|
|||||||
if (e.confirmLoading = !0, e.model.id) {
|
if (e.confirmLoading = !0, e.model.id) {
|
||||||
var a = Object.assign(e.model, n);
|
var a = Object.assign(e.model, n);
|
||||||
r = Object(o["g"])(e.url + e.code, a)
|
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) {
|
r.then((function(t) {
|
||||||
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) :
|
e.confirmLoading = !1, t.success ? (e.visible = !1, e.$message.success(t.message), e.$emit("ok")) :
|
||||||
e.$message.warning(t.message)
|
e.$message.warning(t.message)
|
||||||
@@ -73533,7 +73542,8 @@
|
|||||||
url: {
|
url: {
|
||||||
loadFormItems: "/online/cgform/api/getFormItem/",
|
loadFormItems: "/online/cgform/api/getFormItem/",
|
||||||
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
loadEnhanceJs: "/online/cgform/api/getEnhanceJs/",
|
||||||
optPre: "/online/cgform/api/form/"
|
optPre: "/online/cgform/api/form/",
|
||||||
|
optPreUpdate: "/online/cgform/api/form/update/"
|
||||||
},
|
},
|
||||||
schema: {},
|
schema: {},
|
||||||
uiSchema: {
|
uiSchema: {
|
||||||
@@ -73615,8 +73625,8 @@
|
|||||||
edit: function(e, t) {
|
edit: function(e, t) {
|
||||||
var n = this;
|
var n = this;
|
||||||
this.titleText = "编辑", this.uiSchema.method = "post", 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 = !
|
this.url.optPreUpdate + 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) {
|
1, Object(o["c"])(this.url.optPreUpdate + this.code + "/" + t).then((function(e) {
|
||||||
if (e.success) {
|
if (e.success) {
|
||||||
var t = e.result;
|
var t = e.result;
|
||||||
n.$refs.onlineForm.edit(t)
|
n.$refs.onlineForm.edit(t)
|
||||||
|
|||||||
Reference in New Issue
Block a user