shenwu 1 tuần trước cách đây
mục cha
commit
be59b537cd
1 tập tin đã thay đổi với 8 bổ sung8 xóa
  1. 8 8
      src/pages/MiniApp/BookManage/Short/tableConfig.tsx

+ 8 - 8
src/pages/MiniApp/BookManage/Short/tableConfig.tsx

@@ -30,8 +30,8 @@ const brightColors = [
     "#FF69B4", // 热粉红色
     "#FF1493"  // 深粉红色
 ];
-export const columns = (props: { authList?: any[], labelList?: any[], enumList?: { [key: string]: any }, categoryList?: any[], lookBook: (data: any) => void, closeForm: (b: boolean, d: any) => void, setWorkDirection: (w: any) => void, isModal: boolean ,refreshSubmitResultFn:(bookIds:any)=>void}): ProColumns<any>[] => {
-    let { authList, labelList, categoryList, enumList, lookBook, closeForm, setWorkDirection, isModal ,refreshSubmitResultFn} = props
+export const columns = (props: { authList?: any[], labelList?: any[], enumList?: { [key: string]: any }, categoryList?: any[], lookBook: (data: any) => void, closeForm: (b: boolean, d: any) => void, setWorkDirection: (w: any) => void, isModal: boolean, refreshSubmitResultFn: (bookIds: any) => void }): ProColumns<any>[] => {
+    let { authList, labelList, categoryList, enumList, lookBook, closeForm, setWorkDirection, isModal, refreshSubmitResultFn } = props
     let { styles } = useStyles()
     return enumList?.BOOK_STATUS ? [
         {
@@ -226,11 +226,11 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
             width: 100,
             align: 'center',
             hideInSearch: true,
-            render: (_, b: any) => { 
-                console.log("aaaa",b.publishVO)
+            render: (_, b: any) => {
+                console.log("aaaa", b.publishVO)
                 let a = b.publishVO
-                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"}/> 
+                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"} />
             }
         },
         {
@@ -247,9 +247,9 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
                     {b?.allowDistributorConfig && <a onClick={() => { closeForm(true, b) }}>付费配置</a>}
                     <BookExtend shortBookId={b?.bookId} bookName={b?.shortBookInfoVO?.bookName} />
                     <Tooltip title={"刷新提交到腾讯的审核结果"}>
-                        <Button type="link" onClick={() => {
+                        <a onClick={() => {
                             refreshSubmitResultFn([b?.bookId])
-                        }}>刷新</Button>
+                        }}>刷新</a>
                     </Tooltip>
                 </Space>
             }