空间动态审核加上发帖人
This commit is contained in:
parent
f7f2780e4e
commit
e0d492c442
|
@ -14,6 +14,22 @@ const ZonePostMachineReviewContent = (props) => {
|
||||||
const current = props.current;
|
const current = props.current;
|
||||||
//表头
|
//表头
|
||||||
const columns = [
|
const columns = [
|
||||||
|
{
|
||||||
|
title: "发帖人",
|
||||||
|
dataIndex: "creator",
|
||||||
|
key: "creator",
|
||||||
|
render: (data) => (
|
||||||
|
<div>
|
||||||
|
<Image src={data.avatar.images[0].urls[0]} width={50} />
|
||||||
|
<p>
|
||||||
|
ID:<span className="text-red-400">{data.user_id}</span>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
昵称:<span className="text-red-400">{data.name}</span>
|
||||||
|
</p>
|
||||||
|
</div>
|
||||||
|
),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
title: "动态内容",
|
title: "动态内容",
|
||||||
dataIndex: "content",
|
dataIndex: "content",
|
||||||
|
@ -44,15 +60,19 @@ const ZonePostMachineReviewContent = (props) => {
|
||||||
render: (data) => (
|
render: (data) => (
|
||||||
<div className="flex flex-col">
|
<div className="flex flex-col">
|
||||||
<p>文案审核结果:</p>
|
<p>文案审核结果:</p>
|
||||||
<p className="text-green-400">{data.text_audit_opinion}</p>
|
<p className="text-green-400">
|
||||||
|
{data.text_audit_opinion ? data.text_audit_opinion : "通过"}
|
||||||
|
</p>
|
||||||
<hr className="w-full" />
|
<hr className="w-full" />
|
||||||
<p>媒体审核结果:</p>
|
<p>媒体审核结果:</p>
|
||||||
<p className="text-green-400">{data.image_audit_opinion}</p>
|
<p className="text-green-400">
|
||||||
|
{data.image_audit_opinion ? data.image_audit_opinion : "通过"}
|
||||||
|
</p>
|
||||||
</div>
|
</div>
|
||||||
),
|
),
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "提交时间",
|
title: "发布时间",
|
||||||
dataIndex: "submitTime",
|
dataIndex: "submitTime",
|
||||||
key: "submitTime",
|
key: "submitTime",
|
||||||
},
|
},
|
||||||
|
@ -124,7 +144,6 @@ const ZonePostMachineReviewContent = (props) => {
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
const _data = await response.json();
|
const _data = await response.json();
|
||||||
console.log(_data);
|
|
||||||
if (_data.ret === -1) {
|
if (_data.ret === -1) {
|
||||||
alert(_data.msg);
|
alert(_data.msg);
|
||||||
return;
|
return;
|
||||||
|
@ -184,6 +203,7 @@ const ZonePostMachineReviewContent = (props) => {
|
||||||
return {
|
return {
|
||||||
key: index,
|
key: index,
|
||||||
momentId: item.id,
|
momentId: item.id,
|
||||||
|
creator: item.streamer_ext,
|
||||||
content: {
|
content: {
|
||||||
media: item.media_component,
|
media: item.media_component,
|
||||||
text: item.text,
|
text: item.text,
|
||||||
|
|
Loading…
Reference in New Issue