Commit ba95cc2c authored by 黄奎's avatar 黄奎

页面修改

parent 5fc76701
......@@ -342,7 +342,7 @@
},
queryMsgId: 0, //参数
CustomTypeList: [],
};
},
created() {
......@@ -350,7 +350,7 @@
this.getCustomType();
if (this.$route.query.Id) {
this.queryMsgId = this.$route.query.Id;
this.getCustomFormInfo()
this.getCustomFormInfo(this.queryMsgId)
}
},
components: {
......@@ -361,9 +361,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;
......@@ -503,6 +503,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