Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
6eb48286
Commit
6eb48286
authored
Jul 09, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
db3da7e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
12 deletions
+20
-12
WebSiteUpdate.vue
src/components/WebSet/WebSiteUpdate.vue
+20
-12
No files found.
src/components/WebSet/WebSiteUpdate.vue
View file @
6eb48286
...
...
@@ -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
:
"自定页面"
}
});
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment