/
*
发布页面
*
/
export const page_postPage
= id
=
> {
return http
.requestPost(apiUrl+
'
/cms/page/postPage/
'
+id)
}
<el
‐
table
‐
column label=
"
发布
"
width=
"
80
"
>
<template slot
‐
scope
=
"
scope
"
>
<el
‐
button
size
=
"
small
"
type
=
"
primary
"
plain @click=
"
postPage(scope.row.
pageId)
"
>发布
</el
‐
button>
</template>
</el
‐
table
‐
column>
postPage (id) {
this.
$confirm(
'
确认发布该页面吗?
'
,
'
提示
'
, {
})
.then(()
=
> {
cmsApi.
page_postPage(id)
.then((res)
=
> {
if(res.success){
console.log(
'
发布页面id
=
'
+id);
this.
$message.success(
'
发布成功,请稍后查看结果
'
);
}else{
this.
$message.error(
'
发布失败
'
);
}
});
})
.catch(()
=
> {
});
}
欢迎光临 黑马程序员技术交流社区 (http://bbs.itheima.com/) | 黑马程序员IT技术论坛 X3.2 |