|
@@ -221,13 +221,12 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
|
|
|
{
|
|
{
|
|
|
title: '审核结果',
|
|
title: '审核结果',
|
|
|
tooltip: <span>书籍提交到腾讯平台审核的结果</span>,
|
|
tooltip: <span>书籍提交到腾讯平台审核的结果</span>,
|
|
|
- dataIndex: 'publishVO',
|
|
|
|
|
- key: 'publishVO',
|
|
|
|
|
|
|
+ dataIndex: 'auditStatus',
|
|
|
|
|
+ key: 'auditStatus',
|
|
|
width: 100,
|
|
width: 100,
|
|
|
align: 'center',
|
|
align: 'center',
|
|
|
hideInSearch: true,
|
|
hideInSearch: true,
|
|
|
render: (_, b: any) => {
|
|
render: (_, b: any) => {
|
|
|
- console.log("aaaa", b.publishVO)
|
|
|
|
|
let a = b.publishVO
|
|
let a = b.publishVO
|
|
|
let obj: any = [{ value: "default", text: "未提审" }, { value: "processing", text: "审核中" }, { value: "error", text: "审核失败" }, { value: "success", text: "审核成功" }]
|
|
let obj: any = [{ value: "default", text: "未提审" }, { value: "processing", text: "审核中" }, { value: "error", text: "审核失败" }, { value: "success", text: "审核成功" }]
|
|
|
return a ? <Badge text={obj[a.auditStatus].text} status={obj[a.auditStatus].value} /> : <Badge text={"未提审"} status={"default"} />
|
|
return a ? <Badge text={obj[a.auditStatus].text} status={obj[a.auditStatus].value} /> : <Badge text={"未提审"} status={"default"} />
|
|
@@ -272,6 +271,16 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
|
|
|
colSize: 1,
|
|
colSize: 1,
|
|
|
valueEnum: new Map(authList?.map(({ id, authorName }) => [id, authorName]))
|
|
valueEnum: new Map(authList?.map(({ id, authorName }) => [id, authorName]))
|
|
|
},
|
|
},
|
|
|
|
|
+ {
|
|
|
|
|
+ title: "审核状态",
|
|
|
|
|
+ dataIndex: 'auditStatus',
|
|
|
|
|
+ valueType: 'select',
|
|
|
|
|
+ hideInTable: true,
|
|
|
|
|
+ fieldProps: { showSearch: true, placeholder: '请选择分类' },
|
|
|
|
|
+ colSize: 1,
|
|
|
|
|
+ valueEnum: new Map([{ value: "0", text: "未提审" }, { value: "1", text: "审核中" }, { value: "2", text: "审核失败" }, { value: "3", text: "审核成功" }].map(({ value, text }) => [value, text]))
|
|
|
|
|
+
|
|
|
|
|
+ },
|
|
|
{
|
|
{
|
|
|
title: "频道",
|
|
title: "频道",
|
|
|
dataIndex: 'workDirection',
|
|
dataIndex: 'workDirection',
|