Commit 40bf7491 authored by zhengke's avatar zhengke
parents 674c9338 513bc711
......@@ -346,7 +346,7 @@
},
queryMsgId: 0, //参数
CustomTypeList: [],
};
},
created() {
......@@ -354,7 +354,7 @@
this.getCustomType();
if (this.$route.query.Id) {
this.queryMsgId = this.$route.query.Id;
this.getCustomFormInfo()
this.getCustomFormInfo(this.queryMsgId)
}
},
components: {
......@@ -366,9 +366,9 @@
},
methods: {
//获取表单详情
getCustomFormInfo() {
getCustomFormInfo(Id) {
this.apipost("/api/CustomForm/GetCustomForm", {
Id: this.queryMsgId
Id: Id
}, (res) => {
if (res.data.resultCode == 1) {
var tempData = res.data.data;
......@@ -508,6 +508,11 @@
SaveData() {
this.apipost("/api/CustomForm/SetCustomForm", this.addMsg, (res) => {
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);
} else {
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