Commit 6eb48286 authored by 黄奎's avatar 黄奎

页面修改

parent db3da7e7
......@@ -14,7 +14,9 @@
<div class="WebSiteIndex">
<div class="WebSiteTopdiv">
自訂頁面 版面設定
<el-input type="text" v-model="postMsg.PageName" class="w250"></el-input>
页面名称<el-input type="text" v-model="postMsg.PageName" class="w250"></el-input>
<el-button type="primary" size="small" @click="gotoList()">返回列表</el-button>
<el-button type="primary" size="small" @click="saveData()">保存</el-button>
</div>
<div>
......@@ -67,21 +69,19 @@
},
//新增、修改广告
saveData() {
console.log("post",this.postMsg);
this.apipost(
"ws_post_SetPage", this.postMsg,
res => {
if (res.data.resultCode == 1) {
if (this.postMsg.Id > 0) {
this.getPage();
} else {
this.$router.push({
name: name,
query: {
Id: res.data.data.Id,
tab: "编辑自定页面"
}
});
}
this.postMsg.Id = res.data.data.Id;
this.$router.push({
path: '/WebSiteUpdate',
query: {
Id: res.data.data.Id,
tab: "编辑自定页面"
}
});
this.Success(res.data.message);
} else {
this.Error(res.data.message);
......@@ -93,6 +93,14 @@
//获取模板数据
getNewTemplateData(templateDataList) {
this.postMsg.PageDataList = templateDataList;
},
gotoList() {
this.$router.push({
path: '/WebSiteCustomer',
query: {
tab: "自定页面"
}
});
}
}
}
......
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