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

页面修改

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