|
@@ -21,7 +21,7 @@ const Ad: React.FC<ADQV3.AdProps> = ({ userId, creativeHandle }) => {
|
|
|
const [selectedRows, setSelectedRows] = useState<any[]>([])
|
|
|
const [update, setUpdate] = useState<{ visible: boolean }>({ visible: false })
|
|
|
const [addDynamicVisible, setAddDynamicVisible] = useState<boolean>(false)
|
|
|
- const [handleType, setHandleType] = useState<number>(1)
|
|
|
+ const [handleType, setHandleType] = useState<number>(2)
|
|
|
|
|
|
const syncBatch = useAjax((params) => syncBatchApi(params))
|
|
|
const modifyStatusBatch = useAjax((params) => modifyStatusBatchApi(params))
|
|
@@ -240,7 +240,7 @@ const Ad: React.FC<ADQV3.AdProps> = ({ userId, creativeHandle }) => {
|
|
|
setSelectedRows([])
|
|
|
}}
|
|
|
value={handleType}
|
|
|
- options={[{ label: '广告操作', value: 1 }]}
|
|
|
+ options={[{ label: '广告操作', value: 1 }, { label: '创意操作', value: 2 }]}
|
|
|
/></Col>
|
|
|
{handleType === 1 ? <>
|
|
|
<Col><Button type='primary' style={{ background: '#67c23a', borderColor: '#67c23a' }} loading={modifyStatusBatch.loading} icon={<PlayCircleOutlined />} disabled={selectedRows.length === 0} onClick={() => adStatus(true)}>启动</Button></Col>
|