|
@@ -3,6 +3,7 @@ import { getDescriptions } from "@/utils";
|
|
|
import { ProColumns } from "@ant-design/pro-components";
|
|
|
import { Badge, Col, Image, Row, Space, Tag } from "antd";
|
|
|
import { createStyles } from "antd-style";
|
|
|
+import BookExtend from "../components/extend";
|
|
|
const useStyles = createStyles(({ token }) => {
|
|
|
return {
|
|
|
bookLabel: {
|
|
@@ -10,7 +11,10 @@ const useStyles = createStyles(({ token }) => {
|
|
|
},
|
|
|
del: {
|
|
|
textDecoration: "line-through",
|
|
|
- color:token.colorTextDisabled
|
|
|
+ color: token.colorTextDisabled
|
|
|
+ },
|
|
|
+ tuiguang: {
|
|
|
+ color: token.colorSuccessActive
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -26,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}): ProColumns<any>[] => {
|
|
|
- let { authList, labelList, categoryList, enumList, lookBook, closeForm, setWorkDirection,isModal } = 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 }): ProColumns<any>[] => {
|
|
|
+ let { authList, labelList, categoryList, enumList, lookBook, closeForm, setWorkDirection, isModal } = props
|
|
|
let { styles } = useStyles()
|
|
|
return enumList?.BOOK_STATUS ? [
|
|
|
{
|
|
@@ -208,9 +212,12 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
|
|
|
ellipsis: true,
|
|
|
align: 'center',
|
|
|
hideInSearch: true,
|
|
|
- hideInTable:isModal,
|
|
|
+ hideInTable: isModal,
|
|
|
render: (a: any, b: any) => {
|
|
|
- return <a onClick={() => { closeForm(true, b) }}>付费配置</a>
|
|
|
+ return <Space>
|
|
|
+ <a onClick={() => { closeForm(true, b) }}>付费配置</a>
|
|
|
+ <BookExtend shortBookId={b?.bookId} bookName={b?.shortBookInfoVO?.bookName}/>
|
|
|
+ </Space>
|
|
|
}
|
|
|
},
|
|
|
// 搜索条件
|
|
@@ -346,7 +353,7 @@ export const columns = (props: { authList?: any[], labelList?: any[], enumList?:
|
|
|
dataIndex: 'wordCount',
|
|
|
valueType: 'segmented',
|
|
|
hideInTable: true,
|
|
|
- fieldProps: { type: 'primary', style: { width: 'auto' },block:true},
|
|
|
+ fieldProps: { type: 'primary', style: { width: 'auto' }, block: true },
|
|
|
colSize: 3,
|
|
|
initialValue: '',
|
|
|
valueEnum: {
|