Commit ba95cc2c authored by 黄奎's avatar 黄奎

页面修改

parent 5fc76701
...@@ -342,7 +342,7 @@ ...@@ -342,7 +342,7 @@
}, },
queryMsgId: 0, //参数 queryMsgId: 0, //参数
CustomTypeList: [], CustomTypeList: [],
}; };
}, },
created() { created() {
...@@ -350,7 +350,7 @@ ...@@ -350,7 +350,7 @@
this.getCustomType(); this.getCustomType();
if (this.$route.query.Id) { if (this.$route.query.Id) {
this.queryMsgId = this.$route.query.Id; this.queryMsgId = this.$route.query.Id;
this.getCustomFormInfo() this.getCustomFormInfo(this.queryMsgId)
} }
}, },
components: { components: {
...@@ -361,9 +361,9 @@ ...@@ -361,9 +361,9 @@
}, },
methods: { methods: {
//获取表单详情 //获取表单详情
getCustomFormInfo() { getCustomFormInfo(Id) {
this.apipost("/api/CustomForm/GetCustomForm", { this.apipost("/api/CustomForm/GetCustomForm", {
Id: this.queryMsgId Id: Id
}, (res) => { }, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data; var tempData = res.data.data;
...@@ -503,6 +503,11 @@ ...@@ -503,6 +503,11 @@
SaveData() { SaveData() {
this.apipost("/api/CustomForm/SetCustomForm", this.addMsg, (res) => { this.apipost("/api/CustomForm/SetCustomForm", this.addMsg, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
var tempData = res.data.data;
if (tempData) {
this.queryMsgId = tempData.Id;
this.getCustomFormInfo( this.queryMsgId);
}
this.Success(res.data.message); this.Success(res.data.message);
} else { } else {
this.Info(res.data.message); this.Info(res.data.message);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment