tableConfig.tsx 76 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277
  1. import useCopy from "@/Hook/useCopy"
  2. import { CopyOutlined } from "@ant-design/icons"
  3. import React from "react"
  4. import style from './index.less'
  5. enum State {
  6. '创建' = 0,
  7. '创建中' = 1,
  8. '创建成功' = 2,
  9. '创建失败' = -1,
  10. '创建客服消息失败' = -2
  11. }
  12. enum Statept {
  13. '创建' = 0,
  14. '创建中' = 1,
  15. '创建成功' = 2,
  16. '创建失败' = -1,
  17. '创建失败(系统问题)' = -2
  18. }
  19. let pageTypeIds = [
  20. '',
  21. '个人中心',
  22. '免费专区',
  23. '阅读记录',
  24. '充值页面',
  25. '继续阅读',
  26. '签到送礼',
  27. 'VIP充值',
  28. '书城首页',
  29. '榜单',
  30. '书库(男频)',
  31. '书库(女频)',
  32. '书币抽奖'
  33. ]
  34. let userType = ['不限', '已充值', '未充值', '未支付']
  35. /**
  36. *
  37. * @param props isOk 是否拿到数据
  38. */
  39. function columns(props: { name: string, isOk: boolean }) {
  40. const { copy } = useCopy()
  41. const { name, isOk } = props
  42. let arrCy = isOk ? [
  43. {
  44. title: '页面',
  45. dataIndex: 'name',
  46. key: 'name',
  47. align: 'center'
  48. },
  49. {
  50. title: '链接',
  51. dataIndex: 'link',
  52. key: 'link',
  53. align: 'center',
  54. render: (a: string) => {
  55. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  56. }
  57. },
  58. ] : [
  59. {
  60. title: '创建状态',
  61. dataIndex: 'createStatus',
  62. key: 'createStatus',
  63. align: 'center',
  64. render: (a: number, b: any) => {
  65. return <div className={style.flex}>
  66. <span>{Statept[a]}</span>
  67. <span>{b?.resultMsg}</span>
  68. </div>
  69. }
  70. },
  71. {
  72. title: '创建时间',
  73. dataIndex: 'createTime',
  74. key: 'createTime',
  75. align: 'center'
  76. }
  77. ]
  78. let arr: any = {
  79. '阅文常用链接': arrCy,
  80. '阅文推广链接': [
  81. {
  82. title: '创建状态',
  83. dataIndex: 'createStatus',
  84. key: 'createStatus',
  85. align: 'center',
  86. render: (a: number, b: any) => {
  87. return <div className={style.flex}>
  88. <span>{State[a]}</span>
  89. <span>{b?.resultMsg}</span>
  90. </div>
  91. }
  92. },
  93. {
  94. title: '创建时间',
  95. dataIndex: 'createTime',
  96. key: 'createTime',
  97. align: 'center'
  98. },
  99. {
  100. title: '渠道名称',
  101. dataIndex: 'spread_name',
  102. key: 'spread_name',
  103. align: 'center',
  104. render: (a: any, b: any) => {
  105. return <div className={style.flex}>
  106. <span>{b?.linkContext?.spread_name}</span>
  107. </div>
  108. }
  109. },
  110. {
  111. title: '作品',
  112. dataIndex: 'linkContext',
  113. key: 'linkContext',
  114. align: 'center',
  115. render: (a: any, b: any) => {
  116. return <div className={style.flex}>
  117. <span>{b?.linkContext?.book}第{b?.linkContext?.section}章</span>
  118. <span>关注章节{b?.linkContext?.close_section}</span>
  119. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  120. </div>
  121. }
  122. },
  123. // {
  124. // title: 'PV',
  125. // dataIndex: 'id',
  126. // key: 'id',
  127. // align: 'center',
  128. // render: () => {
  129. // return <span></span>
  130. // }
  131. // },
  132. // {
  133. // title: 'UV',
  134. // dataIndex: 'id',
  135. // key: 'id',
  136. // align: 'center',
  137. // render: () => {
  138. // return <span></span>
  139. // }
  140. // },
  141. // {
  142. // title: '新增关注',
  143. // dataIndex: 'id',
  144. // key: 'id',
  145. // align: 'center',
  146. // render: () => {
  147. // return <span></span>
  148. // }
  149. // },
  150. // {
  151. // title: '充值金额/元',
  152. // dataIndex: 'id',
  153. // key: 'id',
  154. // align: 'center',
  155. // render: () => {
  156. // return <span></span>
  157. // }
  158. // },
  159. // {
  160. // title: '充值笔数',
  161. // dataIndex: 'id',
  162. // key: 'id',
  163. // align: 'center',
  164. // render: () => {
  165. // return <span></span>
  166. // }
  167. // },
  168. // {
  169. // title: '收益(充值/成本)',
  170. // dataIndex: 'id',
  171. // key: 'id',
  172. // align: 'center',
  173. // render: () => {
  174. // return <span></span>
  175. // }
  176. // },
  177. ],
  178. '阅文常规活动链接': [
  179. {
  180. title: '创建状态',
  181. dataIndex: 'createStatus',
  182. key: 'createStatus',
  183. align: 'center',
  184. render: (a: number, b: any) => {
  185. return <div className={style.flex}>
  186. <span>{State[a]}</span>
  187. <span>{b?.resultMsg}</span>
  188. </div>
  189. }
  190. },
  191. {
  192. title: '创建时间',
  193. dataIndex: 'createTime',
  194. key: 'createTime',
  195. align: 'center'
  196. },
  197. {
  198. title: '渠道名称',
  199. dataIndex: 'spread_name',
  200. key: 'spread_name',
  201. align: 'center',
  202. render: (a: any, b: any) => {
  203. return <div className={style.flex}>
  204. <span>{b?.linkContext?.spread_name}</span>
  205. </div>
  206. }
  207. },
  208. {
  209. title: '作品',
  210. dataIndex: 'linkContext',
  211. key: 'linkContext',
  212. align: 'center',
  213. render: (a: any, b: any) => {
  214. return <div className={style.flex}>
  215. <span>{b?.linkContext?.book}第{b?.linkContext?.section}章</span>
  216. <span>关注章节{b?.linkContext?.close_section}</span>
  217. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  218. </div>
  219. }
  220. },
  221. // {
  222. // title: 'PV',
  223. // dataIndex: 'id',
  224. // key: 'id',
  225. // align: 'center',
  226. // render: () => {
  227. // return <span></span>
  228. // }
  229. // },
  230. // {
  231. // title: 'UV',
  232. // dataIndex: 'id',
  233. // key: 'id',
  234. // align: 'center',
  235. // render: () => {
  236. // return <span></span>
  237. // }
  238. // },
  239. // {
  240. // title: '新增关注',
  241. // dataIndex: 'id',
  242. // key: 'id',
  243. // align: 'center',
  244. // render: () => {
  245. // return <span></span>
  246. // }
  247. // },
  248. // {
  249. // title: '充值金额/元',
  250. // dataIndex: 'id',
  251. // key: 'id',
  252. // align: 'center',
  253. // render: () => {
  254. // return <span></span>
  255. // }
  256. // },
  257. // {
  258. // title: '充值笔数',
  259. // dataIndex: 'id',
  260. // key: 'id',
  261. // align: 'center',
  262. // render: () => {
  263. // return <span></span>
  264. // }
  265. // },
  266. // {
  267. // title: '收益(充值/成本)',
  268. // dataIndex: 'id',
  269. // key: 'id',
  270. // align: 'center',
  271. // render: () => {
  272. // return <span></span>
  273. // }
  274. // },
  275. ],
  276. '阅文模板充值活动链接': [
  277. {
  278. title: '创建状态',
  279. dataIndex: 'createStatus',
  280. key: 'createStatus',
  281. align: 'center',
  282. render: (a: number, b: any) => {
  283. return <div className={style.flex}>
  284. <span>{State[a]}</span>
  285. <span>{b?.resultMsg}</span>
  286. </div>
  287. }
  288. },
  289. {
  290. title: '创建时间',
  291. dataIndex: 'createTime',
  292. key: 'createTime',
  293. align: 'center'
  294. },
  295. {
  296. title: '渠道名称',
  297. dataIndex: 'spread_name',
  298. key: 'spread_name',
  299. align: 'center',
  300. render: (a: any, b: any) => {
  301. return <div className={style.flex}>
  302. <span>{b?.linkContext?.spread_name}</span>
  303. </div>
  304. }
  305. },
  306. {
  307. title: '作品',
  308. dataIndex: 'linkContext',
  309. key: 'linkContext',
  310. align: 'center',
  311. render: (a: any, b: any) => {
  312. return <div className={style.flex}>
  313. <span>{b?.linkContext?.book}第{b?.linkContext?.section}章</span>
  314. <span>关注章节{b?.linkContext?.close_section}</span>
  315. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  316. </div>
  317. }
  318. },
  319. // {
  320. // title: 'PV',
  321. // dataIndex: 'id',
  322. // key: 'id',
  323. // align: 'center',
  324. // render: () => {
  325. // return <span></span>
  326. // }
  327. // },
  328. // {
  329. // title: 'UV',
  330. // dataIndex: 'id',
  331. // key: 'id',
  332. // align: 'center',
  333. // render: () => {
  334. // return <span></span>
  335. // }
  336. // },
  337. // {
  338. // title: '新增关注',
  339. // dataIndex: 'id',
  340. // key: 'id',
  341. // align: 'center',
  342. // render: () => {
  343. // return <span></span>
  344. // }
  345. // },
  346. // {
  347. // title: '充值金额/元',
  348. // dataIndex: 'id',
  349. // key: 'id',
  350. // align: 'center',
  351. // render: () => {
  352. // return <span></span>
  353. // }
  354. // },
  355. // {
  356. // title: '充值笔数',
  357. // dataIndex: 'id',
  358. // key: 'id',
  359. // align: 'center',
  360. // render: () => {
  361. // return <span></span>
  362. // }
  363. // },
  364. // {
  365. // title: '收益(充值/成本)',
  366. // dataIndex: 'id',
  367. // key: 'id',
  368. // align: 'center',
  369. // render: () => {
  370. // return <span></span>
  371. // }
  372. // },
  373. ],
  374. '阅文模模板直赠活动链接': [
  375. {
  376. title: '创建状态',
  377. dataIndex: 'createStatus',
  378. key: 'createStatus',
  379. align: 'center',
  380. render: (a: number, b: any) => {
  381. return <div className={style.flex}>
  382. <span>{State[a]}</span>
  383. <span>{b?.resultMsg}</span>
  384. </div>
  385. }
  386. },
  387. {
  388. title: '创建时间',
  389. dataIndex: 'createTime',
  390. key: 'createTime',
  391. align: 'center'
  392. },
  393. {
  394. title: '渠道名称',
  395. dataIndex: 'spread_name',
  396. key: 'spread_name',
  397. align: 'center',
  398. render: (a: any, b: any) => {
  399. return <div className={style.flex}>
  400. <span>{b?.linkContext?.spread_name}</span>
  401. </div>
  402. }
  403. },
  404. {
  405. title: '作品',
  406. dataIndex: 'linkContext',
  407. key: 'linkContext',
  408. align: 'center',
  409. render: (a: any, b: any) => {
  410. return <div className={style.flex}>
  411. <span>{b?.linkContext?.book}第{b?.linkContext?.section}章</span>
  412. <span>关注章节{b?.linkContext?.close_section}</span>
  413. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  414. </div>
  415. }
  416. },
  417. // {
  418. // title: 'PV',
  419. // dataIndex: 'id',
  420. // key: 'id',
  421. // align: 'center',
  422. // render: () => {
  423. // return <span></span>
  424. // }
  425. // },
  426. // {
  427. // title: 'UV',
  428. // dataIndex: 'id',
  429. // key: 'id',
  430. // align: 'center',
  431. // render: () => {
  432. // return <span></span>
  433. // }
  434. // },
  435. // {
  436. // title: '新增关注',
  437. // dataIndex: 'id',
  438. // key: 'id',
  439. // align: 'center',
  440. // render: () => {
  441. // return <span></span>
  442. // }
  443. // },
  444. // {
  445. // title: '充值金额/元',
  446. // dataIndex: 'id',
  447. // key: 'id',
  448. // align: 'center',
  449. // render: () => {
  450. // return <span></span>
  451. // }
  452. // },
  453. // {
  454. // title: '充值笔数',
  455. // dataIndex: 'id',
  456. // key: 'id',
  457. // align: 'center',
  458. // render: () => {
  459. // return <span></span>
  460. // }
  461. // },
  462. // {
  463. // title: '收益(充值/成本)',
  464. // dataIndex: 'id',
  465. // key: 'id',
  466. // align: 'center',
  467. // render: () => {
  468. // return <span></span>
  469. // }
  470. // },
  471. ],
  472. '阅文模板消耗活动连接': [
  473. {
  474. title: '创建状态',
  475. dataIndex: 'createStatus',
  476. key: 'createStatus',
  477. align: 'center',
  478. render: (a: number, b: any) => {
  479. return <div className={style.flex}>
  480. <span>{State[a]}</span>
  481. <span>{b?.resultMsg}</span>
  482. </div>
  483. }
  484. },
  485. {
  486. title: '创建时间',
  487. dataIndex: 'createTime',
  488. key: 'createTime',
  489. align: 'center'
  490. },
  491. {
  492. title: '渠道名称',
  493. dataIndex: 'spread_name',
  494. key: 'spread_name',
  495. align: 'center',
  496. render: (a: any, b: any) => {
  497. return <div className={style.flex}>
  498. <span>{b?.linkContext?.spread_name}</span>
  499. </div>
  500. }
  501. },
  502. {
  503. title: '作品',
  504. dataIndex: 'linkContext',
  505. key: 'linkContext',
  506. align: 'center',
  507. render: (a: any, b: any) => {
  508. return <div className={style.flex}>
  509. <span>{b?.linkContext?.book}第{b?.linkContext?.section}章</span>
  510. <span>关注章节{b?.linkContext?.close_section}</span>
  511. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  512. </div>
  513. }
  514. },
  515. // {
  516. // title: 'PV',
  517. // dataIndex: 'id',
  518. // key: 'id',
  519. // align: 'center',
  520. // render: () => {
  521. // return <span></span>
  522. // }
  523. // },
  524. // {
  525. // title: 'UV',
  526. // dataIndex: 'id',
  527. // key: 'id',
  528. // align: 'center',
  529. // render: () => {
  530. // return <span></span>
  531. // }
  532. // },
  533. // {
  534. // title: '新增关注',
  535. // dataIndex: 'id',
  536. // key: 'id',
  537. // align: 'center',
  538. // render: () => {
  539. // return <span></span>
  540. // }
  541. // },
  542. // {
  543. // title: '充值金额/元',
  544. // dataIndex: 'id',
  545. // key: 'id',
  546. // align: 'center',
  547. // render: () => {
  548. // return <span></span>
  549. // }
  550. // },
  551. // {
  552. // title: '充值笔数',
  553. // dataIndex: 'id',
  554. // key: 'id',
  555. // align: 'center',
  556. // render: () => {
  557. // return <span></span>
  558. // }
  559. // },
  560. // {
  561. // title: '收益(充值/成本)',
  562. // dataIndex: 'id',
  563. // key: 'id',
  564. // align: 'center',
  565. // render: () => {
  566. // return <span></span>
  567. // }
  568. // },
  569. ],
  570. '花生常用链接': arrCy,
  571. '花生推广链接': [
  572. {
  573. title: 'ID',
  574. dataIndex: 'id',
  575. key: 'id',
  576. align: 'center'
  577. },
  578. {
  579. title: '创建状态',
  580. dataIndex: 'createStatus',
  581. key: 'createStatus',
  582. align: 'center',
  583. render: (a: number, b: any) => {
  584. return <div className={style.flex}>
  585. <span>{State[a]}</span>
  586. <span>{b?.resultMsg}</span>
  587. </div>
  588. }
  589. },
  590. {
  591. title: '创建时间',
  592. dataIndex: 'createTime',
  593. key: 'createTime',
  594. align: 'center'
  595. },
  596. {
  597. title: '标题/链接',
  598. dataIndex: 'link',
  599. key: 'link',
  600. align: 'center',
  601. render: (a: any, b: any) => {
  602. return <div className={style.flex}>
  603. <span>{b?.linkContext?.spread_name}</span>
  604. <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  605. </div>
  606. }
  607. },
  608. {
  609. title: '入口',
  610. dataIndex: 'id',
  611. key: 'id',
  612. align: 'center',
  613. render: (a: any, b: any) => {
  614. return <div className={style.flex}>
  615. <span>{b?.linkContext?.book}</span>
  616. <span>第{b?.linkContext?.section}章</span>
  617. <span>关注章节:第{b?.linkContext?.spread_cost}章</span>
  618. </div>
  619. }
  620. },
  621. // {
  622. // title: '点击数',
  623. // dataIndex: 'views',
  624. // key: 'views',
  625. // align: 'center',
  626. // render: (a: any, b: any) => {
  627. // return <div className={style.flex}>
  628. // <span>{b?.linkContext?.views}人</span>
  629. // <span>{b?.linkContext?.users}次</span>
  630. // </div>
  631. // }
  632. // },
  633. // {
  634. // title: '关注数/关注率',
  635. // dataIndex: 'subscribes',
  636. // key: 'subscribes',
  637. // align: 'center',
  638. // render: (a: any, b: any) => {
  639. // return <div className={style.flex}>
  640. // <span>{b?.linkContext?.subscribes}</span>
  641. // <span>{b?.linkContext?.subscribes_rate}%</span>
  642. // </div>
  643. // }
  644. // },
  645. // {
  646. // title: '充值金额/充值笔数',
  647. // dataIndex: 'charge_data',
  648. // key: 'charge_data',
  649. // align: 'center',
  650. // render: (a: any, b: any) => {
  651. // return <div className={style.flex}>
  652. // <span>¥{b?.linkContext?.charge_data?.charge_amount}</span>
  653. // <span>{b?.linkContext?.charge_data?.charge_count}笔</span>
  654. // </div>
  655. // }
  656. // },
  657. // {
  658. // title: '充值人数/充值比例',
  659. // dataIndex: 'charge_data',
  660. // key: 'charge_data',
  661. // align: 'center',
  662. // render: (a: any, b: any) => {
  663. // return <div className={style.flex}>
  664. // <span>{b?.linkContext?.charge_data?.charge_users}人</span>
  665. // <span>{(b?.linkContext?.charge_data?.charge_users / b?.linkContext?.subscribes * 100)?.toFixed(2)}%</span>
  666. // </div>
  667. // }
  668. // },
  669. // {
  670. // title: '复充金额/复充笔数',
  671. // dataIndex: 'charge_data',
  672. // key: 'charge_data',
  673. // align: 'center',
  674. // render: (a: any, b: any) => {
  675. // return <div className={style.flex}>
  676. // <span>¥{b?.linkContext?.charge_data?.recharge_amount}</span>
  677. // <span>{b?.linkContext?.charge_data?.recharge_count}笔</span>
  678. // </div>
  679. // }
  680. // },
  681. // {
  682. // title: '复充人数/复充比例',
  683. // dataIndex: 'id',
  684. // key: 'id',
  685. // align: 'center',
  686. // render: (a: any, b: any) => {
  687. // return <div className={style.flex}>
  688. // <span>¥{b?.linkContext?.charge_data?.recharge_users}</span>
  689. // <span>{(b?.linkContext?.charge_data?.recharge_count / b?.linkContext?.charge_data?.charge_users * 100)?.toFixed(2)}%</span>
  690. // </div>
  691. // }
  692. // },
  693. // {
  694. // title: '回本率',
  695. // dataIndex: 'id',
  696. // key: 'id',
  697. // align: 'center'
  698. // },
  699. // {
  700. // title: '成本',
  701. // dataIndex: 'id',
  702. // key: 'id',
  703. // align: 'center'
  704. // },
  705. ],
  706. '花生平台活动': isOk ? [
  707. {
  708. title: '活动名称',
  709. dataIndex: 'name',
  710. key: 'name',
  711. align: 'center'
  712. },
  713. {
  714. title: '活动时间',
  715. dataIndex: 'id',
  716. key: 'id',
  717. align: 'center',
  718. render: (a: string, b: any) => {
  719. return <div className={style.flex}>
  720. <span>{b?.start_at}-{b?.end_at}</span>
  721. </div>
  722. }
  723. },
  724. {
  725. title: '充值金额',
  726. dataIndex: 'intro',
  727. key: 'intro',
  728. align: 'center'
  729. },
  730. {
  731. title: '活动链接',
  732. dataIndex: 'url',
  733. key: 'url',
  734. align: 'center',
  735. render: (a: string, b: any) => {
  736. return <div className={style.flex}>
  737. <span>{b?.url_intro}</span>
  738. <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  739. </div>
  740. }
  741. },
  742. {
  743. title: '总充值(含当日)',
  744. dataIndex: 'id',
  745. key: 'id',
  746. align: 'center',
  747. render: (a: string, b: any) => {
  748. return <div className={style.flex}>
  749. <span>¥{b?.amounts}</span>
  750. <span>({b?.orders || 0}单)</span>
  751. </div>
  752. }
  753. },
  754. ] : [
  755. {
  756. title: '创建状态',
  757. dataIndex: 'createStatus',
  758. key: 'createStatus',
  759. align: 'center',
  760. render: (a: number, b: any) => {
  761. return <div className={style.flex}>
  762. <span>{Statept[a]}</span>
  763. <span>{b?.resultMsg}</span>
  764. </div>
  765. }
  766. },
  767. {
  768. title: '创建时间',
  769. dataIndex: 'createTime',
  770. key: 'createTime',
  771. align: 'center'
  772. }
  773. ],
  774. '花生自定义活动': [
  775. {
  776. title: '创建状态',
  777. dataIndex: 'createStatus',
  778. key: 'createStatus',
  779. align: 'center',
  780. render: (a: number, b: any) => {
  781. return <div className={style.flex}>
  782. <span>{State[a]}</span>
  783. <span>{b?.resultMsg}</span>
  784. </div>
  785. }
  786. },
  787. {
  788. title: '活动标题',
  789. dataIndex: 'activity_title',
  790. key: 'activity_title',
  791. align: 'center',
  792. render: (a: string, b: any) => {
  793. return <div className={style.flex}>
  794. <span>{b?.linkContext?.activity_title}</span>
  795. <span>活动时间:{b?.linkContext?.start_at}-{b?.linkContext?.end_at}</span>
  796. </div>
  797. }
  798. },
  799. {
  800. title: '备注',
  801. dataIndex: 'remark',
  802. key: 'remark',
  803. align: 'center',
  804. render: (a: string, b: any) => {
  805. return b?.linkContext?.remark
  806. }
  807. },
  808. {
  809. title: '活动链接',
  810. dataIndex: 'link',
  811. key: 'link',
  812. align: 'center',
  813. render: (a: string) => {
  814. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  815. }
  816. },
  817. {
  818. title: '限购次数',
  819. dataIndex: 'buy_num',
  820. key: 'buy_num',
  821. align: 'center',
  822. render: (a: string, b: any) => {
  823. return b?.linkContext?.buy_num
  824. }
  825. },
  826. // {
  827. // title: '充值',
  828. // dataIndex: 'activity_sum',
  829. // key: 'activity_sum',
  830. // align: 'center',
  831. // render: (a: string, b: any) => {
  832. // return b?.linkContext?.activity_sum
  833. // }
  834. // },
  835. // {
  836. // title: '活动状态',
  837. // dataIndex: 'id',
  838. // key: 'id',
  839. // align: 'center'
  840. // },
  841. {
  842. title: '上下架状态',
  843. dataIndex: 'state',
  844. key: 'state',
  845. align: 'center',
  846. render: (a: string, b: any) => {
  847. return b?.linkContext?.state
  848. }
  849. },
  850. {
  851. title: '弹窗状态',
  852. dataIndex: 'popup',
  853. key: 'popup',
  854. align: 'center',
  855. render: (a: string, b: any) => {
  856. return b?.linkContext?.popup
  857. }
  858. },
  859. {
  860. title: '是否在阅读页显示',
  861. dataIndex: 'show',
  862. key: 'show',
  863. align: 'center',
  864. render: (a: string, b: any) => {
  865. return b?.linkContext?.show
  866. }
  867. },
  868. {
  869. title: '弹窗位置',
  870. dataIndex: 'popup_site',
  871. key: 'popup_site',
  872. align: 'center',
  873. render: (a: string, b: any) => {
  874. return b?.linkContext?.popup_site
  875. }
  876. },
  877. ],
  878. '花生赠币活动': [
  879. {
  880. title: '创建状态',
  881. dataIndex: 'createStatus',
  882. key: 'createStatus',
  883. align: 'center',
  884. render: (a: number, b: any) => {
  885. return <div className={style.flex}>
  886. <span>{State[a]}</span>
  887. <span>{b?.resultMsg}</span>
  888. </div>
  889. }
  890. },
  891. {
  892. title: '活动标题',
  893. dataIndex: 'id',
  894. key: 'id',
  895. align: 'center',
  896. render: (a: string, b: any) => {
  897. return <div className={style.flex}>
  898. <span>{b?.linkContext?.activity_title}</span>
  899. <span>活动时间:{b?.linkContext?.start_at}-{b?.linkContext?.end_at}</span>
  900. </div>
  901. }
  902. },
  903. {
  904. title: '备注',
  905. dataIndex: 'id',
  906. key: 'id',
  907. align: 'center',
  908. render: (a: string, b: any) => {
  909. return b?.linkContext?.remark
  910. }
  911. },
  912. {
  913. title: '活动链接',
  914. dataIndex: 'link',
  915. key: 'link',
  916. align: 'center',
  917. render: (a: string) => {
  918. return <span>{a}{a && <CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} />}</span>
  919. }
  920. },
  921. // {
  922. // title: '领取人数',
  923. // dataIndex: 'orders',
  924. // key: 'orders',
  925. // align: 'center'
  926. // },
  927. // {
  928. // title: '活动状态',
  929. // dataIndex: 'act_status',
  930. // key: 'act_status',
  931. // align: 'center'
  932. // },
  933. {
  934. title: '上下架状态',
  935. dataIndex: 'state',
  936. key: 'state',
  937. align: 'center',
  938. render: (a: string, b: any) => {
  939. return b?.linkContext?.state
  940. }
  941. },
  942. {
  943. title: '弹窗状态',
  944. dataIndex: 'popup',
  945. key: 'popup',
  946. align: 'center',
  947. render: (a: string, b: any) => {
  948. return b?.linkContext?.popup
  949. }
  950. },
  951. {
  952. title: '是否在阅读页显示',
  953. dataIndex: 'show',
  954. key: 'show',
  955. align: 'center',
  956. render: (a: string, b: any) => {
  957. return b?.linkContext?.show
  958. }
  959. },
  960. {
  961. title: '弹窗位置',
  962. dataIndex: 'popup_site',
  963. key: 'popup_site',
  964. align: 'center',
  965. render: (a: string, b: any) => {
  966. return b?.linkContext?.popup_site
  967. }
  968. },
  969. ],
  970. '阳光常用链接': arrCy,
  971. '阳光推广链接': [
  972. {
  973. title: '创建状态',
  974. dataIndex: 'createStatus',
  975. key: 'createStatus',
  976. align: 'center',
  977. render: (a: number, b: any) => {
  978. return <div className={style.flex}>
  979. <span>{State[a]}</span>
  980. <span>{b?.resultMsg}</span>
  981. </div>
  982. }
  983. },
  984. {
  985. title: '推广链接',
  986. dataIndex: 'link',
  987. key: 'link',
  988. align: 'center',
  989. render: (a: string) => {
  990. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  991. }
  992. },
  993. {
  994. title: '入口页面',
  995. dataIndex: 'id',
  996. key: 'id',
  997. align: 'center',
  998. render: (a: string, b: any) => {
  999. return <div className={style.flex}>
  1000. <span>{b?.linkContext?.book}</span>
  1001. <span>第{b?.linkContext?.section}章</span>
  1002. <span>关注章节:{b?.linkContext?.close_section}</span>
  1003. </div>
  1004. }
  1005. },
  1006. {
  1007. title: '派单渠道',
  1008. dataIndex: 'spread_name',
  1009. key: 'spread_name',
  1010. align: 'center',
  1011. render: (a: string, b: any) => {
  1012. return <div className={style.flex}>
  1013. <span>{b?.linkContext?.spread_name}</span>
  1014. </div>
  1015. }
  1016. },
  1017. // {
  1018. // title: '总阅读人数(今日)',
  1019. // dataIndex: 'id',
  1020. // key: 'id',
  1021. // align: 'center',
  1022. // render: (a: string, b: any) => {
  1023. // return <div className={style.flex}>
  1024. // <span></span>
  1025. // </div>
  1026. // }
  1027. // },
  1028. // {
  1029. // title: '总关注人数(今日)',
  1030. // dataIndex: 'id',
  1031. // key: 'id',
  1032. // align: 'center',
  1033. // render: (a: string, b: any) => {
  1034. // return <div className={style.flex}>
  1035. // <span></span>
  1036. // </div>
  1037. // }
  1038. // },
  1039. // {
  1040. // title: '总净关人数(今日)',
  1041. // dataIndex: 'id',
  1042. // key: 'id',
  1043. // align: 'center',
  1044. // render: (a: string, b: any) => {
  1045. // return <div className={style.flex}>
  1046. // <span></span>
  1047. // </div>
  1048. // }
  1049. // },
  1050. // {
  1051. // title: '总充值金额(今日)',
  1052. // dataIndex: 'id',
  1053. // key: 'id',
  1054. // align: 'center',
  1055. // render: (a: string, b: any) => {
  1056. // return <div className={style.flex}>
  1057. // <span></span>
  1058. // </div>
  1059. // }
  1060. // },
  1061. // {
  1062. // title: '充值笔数/充值比例',
  1063. // dataIndex: 'id',
  1064. // key: 'id',
  1065. // align: 'center',
  1066. // render: (a: string, b: any) => {
  1067. // return <div className={style.flex}>
  1068. // <span></span>
  1069. // </div>
  1070. // }
  1071. // },
  1072. // {
  1073. // title: '推广成本',
  1074. // dataIndex: 'id',
  1075. // key: 'id',
  1076. // align: 'center',
  1077. // render: (a: string, b: any) => {
  1078. // return <div className={style.flex}>
  1079. // <span>{b?.linkContext?.spread_cost}</span>
  1080. // </div>
  1081. // }
  1082. // },
  1083. // {
  1084. // title: '利润',
  1085. // dataIndex: 'id',
  1086. // key: 'id',
  1087. // align: 'center',
  1088. // render: (a: string, b: any) => {
  1089. // return <div className={style.flex}>
  1090. // <span></span>
  1091. // </div>
  1092. // }
  1093. // },
  1094. // {
  1095. // title: '状态',
  1096. // dataIndex: 'id',
  1097. // key: 'id',
  1098. // align: 'center',
  1099. // render: (a: string, b: any) => {
  1100. // return <div className={style.flex}>
  1101. // <span></span>
  1102. // </div>
  1103. // }
  1104. // },
  1105. ],
  1106. '阳光平台活动': [
  1107. {
  1108. title: '活动标题',
  1109. dataIndex: 'id',
  1110. key: 'id',
  1111. align: 'center'
  1112. },
  1113. {
  1114. title: '活动名称/活动页面',
  1115. dataIndex: 'id',
  1116. key: 'id',
  1117. align: 'center'
  1118. },
  1119. {
  1120. title: '点击人数(总/今)',
  1121. dataIndex: 'id',
  1122. key: 'id',
  1123. align: 'center'
  1124. },
  1125. {
  1126. title: '下单人数(总/今)',
  1127. dataIndex: 'id',
  1128. key: 'id',
  1129. align: 'center'
  1130. },
  1131. {
  1132. title: '下单次数(总/今)',
  1133. dataIndex: 'id',
  1134. key: 'id',
  1135. align: 'center'
  1136. },
  1137. {
  1138. title: '充值成功人数(总/今)',
  1139. dataIndex: 'id',
  1140. key: 'id',
  1141. align: 'center'
  1142. },
  1143. {
  1144. title: '充值成功次数(总/今)',
  1145. dataIndex: 'id',
  1146. key: 'id',
  1147. align: 'center'
  1148. },
  1149. {
  1150. title: '充值金额(总/今)',
  1151. dataIndex: 'id',
  1152. key: 'id',
  1153. align: 'center'
  1154. },
  1155. ],
  1156. '阳光自定义活动': [
  1157. {
  1158. title: '创建状态',
  1159. dataIndex: 'createStatus',
  1160. key: 'createStatus',
  1161. align: 'center',
  1162. render: (a: number, b: any) => {
  1163. return <div className={style.flex}>
  1164. <span>{State[a]}</span>
  1165. <span>{b?.resultMsg}</span>
  1166. </div>
  1167. }
  1168. },
  1169. {
  1170. title: '活动标题',
  1171. dataIndex: 'activity_title',
  1172. key: 'activity_title',
  1173. align: 'center',
  1174. render: (a: any, b: any) => {
  1175. return <div>
  1176. <span>{b?.linkContext?.activity_title}</span>
  1177. <span>活动时间:{b?.linkContext?.start_at}--{b?.linkContext?.end_at}</span>
  1178. </div>
  1179. }
  1180. },
  1181. {
  1182. title: '活动名称/活动页面',
  1183. dataIndex: 'activity_name',
  1184. key: 'activity_name',
  1185. align: 'center',
  1186. render: (a: any, b: any) => {
  1187. return <div>
  1188. <span>{b?.linkContext?.activity_name}</span>
  1189. <span>{b?.link}{b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  1190. </div>
  1191. }
  1192. },
  1193. {
  1194. title: '充值档位',
  1195. dataIndex: 'activity_sum',
  1196. key: 'activity_sum',
  1197. align: 'center',
  1198. render: (a: any, b: any) => {
  1199. return b?.linkContext?.activity_sum
  1200. }
  1201. },
  1202. // {
  1203. // title: '点击人数(总/今)',
  1204. // dataIndex: 'id',
  1205. // key: 'id',
  1206. // align: 'center',
  1207. // render: (a: any, b: any) => {
  1208. // return <div>
  1209. // <span>{b?.linkContext?.clickFre}</span>
  1210. // </div>
  1211. // }
  1212. // },
  1213. // {
  1214. // title: '下单人数(总/今)',
  1215. // dataIndex: 'id',
  1216. // key: 'id',
  1217. // align: 'center',
  1218. // render: (a: any, b: any) => {
  1219. // return <div>
  1220. // <span>{b?.linkContext?.fulfilNumPeo}</span>
  1221. // </div>
  1222. // }
  1223. // },
  1224. // {
  1225. // title: '下单次数(总/今)',
  1226. // dataIndex: 'id',
  1227. // key: 'id',
  1228. // align: 'center',
  1229. // render: (a: any, b: any) => {
  1230. // return <div>
  1231. // <span>{b?.linkContext?.fulfilFre}</span>
  1232. // </div>
  1233. // }
  1234. // },
  1235. // {
  1236. // title: '充值成功人数(总/今)',
  1237. // dataIndex: 'id',
  1238. // key: 'id',
  1239. // align: 'center',
  1240. // render: (a: any, b: any) => {
  1241. // return <div>
  1242. // <span>{b?.linkContext?.rechargeSucFre}</span>
  1243. // </div>
  1244. // }
  1245. // },
  1246. // {
  1247. // title: '充值成功次数(总/今)',
  1248. // dataIndex: 'id',
  1249. // key: 'id',
  1250. // align: 'center',
  1251. // render: (a: any, b: any) => {
  1252. // return <div>
  1253. // <span>{b?.linkContext?.rechargeSucPeo}</span>
  1254. // </div>
  1255. // }
  1256. // },
  1257. // {
  1258. // title: '充值金额(总/今)',
  1259. // dataIndex: 'id',
  1260. // key: 'id',
  1261. // align: 'center',
  1262. // render: (a: any, b: any) => {
  1263. // return <div>
  1264. // <span>{b?.linkContext?.rechargeMoney}</span>
  1265. // </div>
  1266. // }
  1267. // },
  1268. // {
  1269. // title: '活动状态',
  1270. // dataIndex: 'id',
  1271. // key: 'id',
  1272. // align: 'center',
  1273. // render: (a: any, b: any) => {
  1274. // return <div>
  1275. // <span>{b?.linkContext?.act_status}</span>
  1276. // </div>
  1277. // }
  1278. // },
  1279. {
  1280. title: '启用状态',
  1281. dataIndex: 'id',
  1282. key: 'id',
  1283. align: 'center',
  1284. render: (a: any, b: any) => {
  1285. return <div>
  1286. <span>{b?.linkContext?.show}</span>
  1287. </div>
  1288. }
  1289. },
  1290. {
  1291. title: '弹窗状态',
  1292. dataIndex: 'id',
  1293. key: 'id',
  1294. align: 'center',
  1295. render: (a: any, b: any) => {
  1296. return <div>
  1297. <span>{b?.linkContext?.popup}</span>
  1298. </div>
  1299. }
  1300. },
  1301. {
  1302. title: '弹窗位置',
  1303. dataIndex: 'id',
  1304. key: 'id',
  1305. align: 'center',
  1306. render: (a: any, b: any) => {
  1307. return <div>
  1308. <span>{b?.linkContext?.popup_site}</span>
  1309. </div>
  1310. }
  1311. },
  1312. ],
  1313. '阳光赠币活动': [
  1314. {
  1315. title: '创建状态',
  1316. dataIndex: 'createStatus',
  1317. key: 'createStatus',
  1318. align: 'center',
  1319. render: (a: number, b: any) => {
  1320. return <div className={style.flex}>
  1321. <span>{State[a]}</span>
  1322. <span>{b?.resultMsg}</span>
  1323. </div>
  1324. }
  1325. },
  1326. {
  1327. title: '活动标题',
  1328. dataIndex: 'activity_title',
  1329. key: 'activity_title',
  1330. align: 'center',
  1331. render: (a: any, b: any) => {
  1332. return <div>
  1333. <span>{b?.linkContext?.activity_title}</span>
  1334. <span>活动时间:{b?.linkContext?.start_at}--{b?.linkContext?.end_at}</span>
  1335. </div>
  1336. }
  1337. },
  1338. {
  1339. title: '活动名称/活动页面',
  1340. dataIndex: 'activity_name',
  1341. key: 'activity_name',
  1342. align: 'center',
  1343. render: (a: any, b: any) => {
  1344. return <div>
  1345. <span>{b?.linkContext?.activity_name}</span>
  1346. <span>{b?.link} {b?.link && <CopyOutlined onClick={() => { copy(b?.link) }} style={{ color: '#1890ff' }} />}</span>
  1347. </div>
  1348. }
  1349. },
  1350. {
  1351. title: '充值档位',
  1352. dataIndex: 'activity_sum',
  1353. key: 'activity_sum',
  1354. align: 'center',
  1355. render: (a: any, b: any) => {
  1356. return b?.linkContext?.activity_sum
  1357. }
  1358. },
  1359. // {
  1360. // title: '点击人数(总/今)',
  1361. // dataIndex: 'clickFre',
  1362. // key: 'clickFre',
  1363. // align: 'center',
  1364. // render: (a: any, b: any) => {
  1365. // return <div>
  1366. // <span>{b?.linkContext?.clickFre}</span>
  1367. // </div>
  1368. // }
  1369. // },
  1370. // {
  1371. // title: '完成人数(总/今)',
  1372. // dataIndex: 'fulfilNumPeo',
  1373. // key: 'fulfilNumPeo',
  1374. // align: 'center',
  1375. // render: (a: any, b: any) => {
  1376. // return <div>
  1377. // <span>{b?.linkContext?.fulfilNumPeo}</span>
  1378. // </div>
  1379. // }
  1380. // },
  1381. // {
  1382. // title: '完成次数(总/今)',
  1383. // dataIndex: 'fulfilFre',
  1384. // key: 'fulfilFre',
  1385. // align: 'center',
  1386. // render: (a: any, b: any) => {
  1387. // return <div>
  1388. // <span>{b?.linkContext?.fulfilFre}</span>
  1389. // </div>
  1390. // }
  1391. // },
  1392. // {
  1393. // title: '活动状态',
  1394. // dataIndex: 'id',
  1395. // key: 'id',
  1396. // align: 'center',
  1397. // render: (a: any, b: any) => {
  1398. // return <div>
  1399. // <span>{b?.linkContext?.act_status}</span>
  1400. // </div>
  1401. // }
  1402. // },
  1403. {
  1404. title: '启用状态',
  1405. dataIndex: 'id',
  1406. key: 'id',
  1407. align: 'center',
  1408. render: (a: any, b: any) => {
  1409. return <div>
  1410. <span>{b?.linkContext?.show}</span>
  1411. </div>
  1412. }
  1413. },
  1414. {
  1415. title: '弹窗状态',
  1416. dataIndex: 'id',
  1417. key: 'id',
  1418. align: 'center',
  1419. render: (a: any, b: any) => {
  1420. return <div>
  1421. <span>{b?.linkContext?.popup}</span>
  1422. </div>
  1423. }
  1424. },
  1425. {
  1426. title: '弹窗位置',
  1427. dataIndex: 'id',
  1428. key: 'id',
  1429. align: 'center',
  1430. render: (a: any, b: any) => {
  1431. return <div>
  1432. <span>{b?.linkContext?.popup_site}</span>
  1433. </div>
  1434. }
  1435. },
  1436. ],
  1437. '阳光累计充值活动': isOk ? [
  1438. {
  1439. title: '活动名称',
  1440. dataIndex: 'activity_name',
  1441. key: 'activity_name',
  1442. align: 'center'
  1443. },
  1444. {
  1445. title: '第一阶段目标(单位元)',
  1446. dataIndex: 'first_stage_target',
  1447. key: 'first_stage_target',
  1448. align: 'center'
  1449. },
  1450. {
  1451. title: '第一阶段奖励(单位书币)',
  1452. dataIndex: 'first_stage_reward',
  1453. key: 'first_stage_reward',
  1454. align: 'center'
  1455. },
  1456. {
  1457. title: '第二阶段目标(单位元)',
  1458. dataIndex: 'second_stage_target',
  1459. key: 'second_stage_target',
  1460. align: 'center'
  1461. },
  1462. {
  1463. title: '第二阶段奖励(单位书币)',
  1464. dataIndex: 'second_stage_reward',
  1465. key: 'idsecond_stage_reward',
  1466. align: 'center'
  1467. },
  1468. {
  1469. title: '第三阶段目标(单位元)',
  1470. dataIndex: 'third_stage_target',
  1471. key: 'third_stage_target',
  1472. align: 'center'
  1473. },
  1474. {
  1475. title: '第三阶段奖励(单位书币)',
  1476. dataIndex: 'third_stage_reward',
  1477. key: 'third_stage_reward',
  1478. align: 'center'
  1479. },
  1480. {
  1481. title: '状态',
  1482. dataIndex: 'state',
  1483. key: 'state',
  1484. align: 'center'
  1485. },
  1486. {
  1487. title: '活动开始时间',
  1488. dataIndex: 'start_time',
  1489. key: 'start_time',
  1490. align: 'center'
  1491. },
  1492. {
  1493. title: '活动结束时间',
  1494. dataIndex: 'end_time',
  1495. key: 'end_time',
  1496. align: 'center'
  1497. },
  1498. ] : [
  1499. {
  1500. title: '创建状态',
  1501. dataIndex: 'createStatus',
  1502. key: 'createStatus',
  1503. align: 'center',
  1504. render: (a: number, b: any) => {
  1505. return <div className={style.flex}>
  1506. <span>{Statept[a]}</span>
  1507. <span>{b?.resultMsg}</span>
  1508. </div>
  1509. }
  1510. },
  1511. {
  1512. title: '创建时间',
  1513. dataIndex: 'createTime',
  1514. key: 'createTime',
  1515. align: 'center'
  1516. }
  1517. ],
  1518. '文鼎常用链接': isOk ? [
  1519. {
  1520. title: '链接标题',
  1521. dataIndex: 'name',
  1522. key: 'name',
  1523. align: 'center'
  1524. },
  1525. {
  1526. title: '链接名称',
  1527. dataIndex: 'activity_name',
  1528. key: 'activity_name',
  1529. align: 'center'
  1530. },
  1531. {
  1532. title: '链接类型',
  1533. dataIndex: 'spread_type',
  1534. key: 'spread_type',
  1535. align: 'center'
  1536. },
  1537. {
  1538. title: '链接地址',
  1539. dataIndex: 'link',
  1540. key: 'link',
  1541. align: 'center',
  1542. render: (a: string) => {
  1543. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  1544. }
  1545. },
  1546. ] : [
  1547. {
  1548. title: '创建状态',
  1549. dataIndex: 'createStatus',
  1550. key: 'createStatus',
  1551. align: 'center',
  1552. render: (a: number, b: any) => {
  1553. return <div className={style.flex}>
  1554. <span>{Statept[a]}</span>
  1555. <span>{b?.resultMsg}</span>
  1556. </div>
  1557. }
  1558. },
  1559. {
  1560. title: '创建时间',
  1561. dataIndex: 'createTime',
  1562. key: 'createTime',
  1563. align: 'center'
  1564. }
  1565. ],
  1566. '文鼎平台活动': isOk ? [
  1567. {
  1568. title: '链接标题',
  1569. dataIndex: 'name',
  1570. key: 'name',
  1571. align: 'center'
  1572. },
  1573. {
  1574. title: '链接名称',
  1575. dataIndex: 'activity_name',
  1576. key: 'activity_name',
  1577. align: 'center'
  1578. },
  1579. {
  1580. title: '链接类型',
  1581. dataIndex: 'spread_type',
  1582. key: 'spread_type',
  1583. align: 'center'
  1584. },
  1585. {
  1586. title: '链接地址',
  1587. dataIndex: 'link',
  1588. key: 'link',
  1589. align: 'center',
  1590. render: (a: string) => {
  1591. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  1592. }
  1593. },
  1594. ] : [
  1595. {
  1596. title: '创建状态',
  1597. dataIndex: 'createStatus',
  1598. key: 'createStatus',
  1599. align: 'center',
  1600. render: (a: number, b: any) => {
  1601. return <div className={style.flex}>
  1602. <span>{Statept[a]}</span>
  1603. <span>{b?.resultMsg}</span>
  1604. </div>
  1605. }
  1606. },
  1607. {
  1608. title: '创建时间',
  1609. dataIndex: 'createTime',
  1610. key: 'createTime',
  1611. align: 'center'
  1612. }
  1613. ],
  1614. '文鼎自定义活动': [
  1615. {
  1616. title: '创建状态',
  1617. dataIndex: 'createStatus',
  1618. key: 'createStatus',
  1619. align: 'center',
  1620. render: (a: number, b: any) => {
  1621. return <div className={style.flex}>
  1622. <span>{State[a]}</span>
  1623. <span>{b?.resultMsg}</span>
  1624. </div>
  1625. }
  1626. },
  1627. {
  1628. title: '活动标题',
  1629. dataIndex: 'activity_title',
  1630. key: 'activity_title',
  1631. align: 'center',
  1632. render: (a: string, b: any) => {
  1633. return <div className={style.flex}>
  1634. <span>{b?.linkContext?.activity_title}</span>
  1635. <span>活动时间:{b?.linkContext?.start_at}-{b?.linkContext?.end_at}</span>
  1636. </div>
  1637. }
  1638. },
  1639. {
  1640. title: '活动名称',
  1641. dataIndex: 'activity_name',
  1642. key: 'activity_name',
  1643. align: 'center',
  1644. render: (a: string, b: any) => {
  1645. return <div className={style.flex}>
  1646. <span>{b?.linkContext?.activity_name}</span>
  1647. </div>
  1648. }
  1649. },
  1650. {
  1651. title: '活动链接',
  1652. dataIndex: 'link',
  1653. key: 'link',
  1654. align: 'center',
  1655. render: (a: string) => {
  1656. return a ? <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span> : '空'
  1657. }
  1658. },
  1659. {
  1660. title: '活动金额',
  1661. dataIndex: 'activity_sum',
  1662. key: 'activity_sum',
  1663. align: 'center',
  1664. render: (a: string, b: any) => {
  1665. return b?.linkContext?.activity_sum
  1666. }
  1667. },
  1668. {
  1669. title: '活动位置',
  1670. dataIndex: 'activity_site',
  1671. key: 'activity_site',
  1672. align: 'center',
  1673. render: (a: string, b: any) => {
  1674. return b?.linkContext?.activity_site
  1675. }
  1676. },
  1677. {
  1678. title: '活动图片',
  1679. dataIndex: 'activity_image',
  1680. key: 'activity_image',
  1681. align: 'center',
  1682. render: (a: string, b: any) => {
  1683. return b?.linkContext?.activity_image
  1684. }
  1685. },
  1686. {
  1687. title: '目标用户',
  1688. dataIndex: 'userConfig',
  1689. key: 'userConfig',
  1690. align: 'center',
  1691. render: (a: string, b: any) => {
  1692. return b?.linkContext?.userConfig
  1693. }
  1694. },
  1695. {
  1696. title: '注册开始/结束时间',
  1697. dataIndex: 'tag_create_end_at',
  1698. key: 'tag_create_end_at',
  1699. align: 'center',
  1700. render: (a: string, b: any) => {
  1701. return b?.linkContext?.tag_create_start_at ? b?.linkContext?.tag_create_start_at + '~' + b?.linkContext?.tag_create_end_at : '不限'
  1702. }
  1703. },
  1704. {
  1705. title: '是否是包年用户',
  1706. dataIndex: 'tag_is_vip',
  1707. key: 'tag_is_vip',
  1708. align: 'center',
  1709. render: (a: string, b: any) => {
  1710. return b?.linkContext?.tag_is_vip ? b?.linkContext?.tag_is_vip === '1' ? '是' : '否' : '不限'
  1711. }
  1712. },
  1713. {
  1714. title: '充值类型',
  1715. dataIndex: 'tag_pay_type',
  1716. key: 'tag_pay_type',
  1717. align: 'center',
  1718. render: (a: string, b: any) => {
  1719. return b?.linkContext?.tag_pay_type ? b?.linkContext?.tag_pay_type : '不限'
  1720. }
  1721. },
  1722. ],
  1723. '文鼎推广链接': [
  1724. {
  1725. title: 'ID',
  1726. dataIndex: 'id',
  1727. key: 'id',
  1728. align: 'center'
  1729. },
  1730. {
  1731. title: '创建状态',
  1732. dataIndex: 'createStatus',
  1733. key: 'createStatus',
  1734. align: 'center',
  1735. render: (a: number, b: any) => {
  1736. return <div className={style.flex}>
  1737. <span>{State[a]}</span>
  1738. <span>{b?.resultMsg}</span>
  1739. </div>
  1740. }
  1741. },
  1742. {
  1743. title: '创建时间',
  1744. dataIndex: 'createTime',
  1745. key: 'createTime',
  1746. align: 'center'
  1747. },
  1748. {
  1749. title: '标题/链接',
  1750. dataIndex: 'link',
  1751. key: 'link',
  1752. align: 'center',
  1753. render: (a: any, b: any) => {
  1754. return <div className={style.flex}>
  1755. <span>{b?.linkContext?.spread_name}</span>
  1756. {a ? <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span> : '空'}
  1757. </div>
  1758. }
  1759. },
  1760. {
  1761. title: '入口',
  1762. dataIndex: 'id',
  1763. key: 'id',
  1764. align: 'center',
  1765. render: (a: any, b: any) => {
  1766. return <div className={style.flex}>
  1767. <span>{b?.linkContext?.book}</span>
  1768. <span>第{b?.linkContext?.section}章</span>
  1769. </div>
  1770. }
  1771. },
  1772. {
  1773. title: '二维码展示',
  1774. dataIndex: 'qecode_show',
  1775. key: 'qecode_show',
  1776. align: 'center',
  1777. render: (a: any, b: any) => {
  1778. return <div className={style.flex}>
  1779. <span>{b?.linkContext?.qecode_show}</span>
  1780. </div>
  1781. }
  1782. },
  1783. {
  1784. title: '关注类型',
  1785. dataIndex: 'follow_type',
  1786. key: 'follow_type',
  1787. align: 'center',
  1788. render: (a: any, b: any) => {
  1789. return <div className={style.flex}>
  1790. <span>{b?.linkContext?.follow_type}</span>
  1791. </div>
  1792. }
  1793. },
  1794. ],
  1795. '文鼎赠币活动': [
  1796. {
  1797. title: '创建状态',
  1798. dataIndex: 'createStatus',
  1799. key: 'createStatus',
  1800. align: 'center',
  1801. render: (a: number, b: any) => {
  1802. return <div className={style.flex}>
  1803. <span>{State[a]}</span>
  1804. <span>{b?.resultMsg}</span>
  1805. </div>
  1806. }
  1807. },
  1808. {
  1809. title: '活动名称/时间',
  1810. dataIndex: 'id',
  1811. key: 'id',
  1812. align: 'center',
  1813. render: (a: string, b: any) => {
  1814. return <div className={style.flex}>
  1815. <span>{b?.linkContext?.activity_name}</span>
  1816. <span>活动时间:{b?.linkContext?.start_at}-{b?.linkContext?.end_at}</span>
  1817. </div>
  1818. }
  1819. },
  1820. {
  1821. title: '活动金额',
  1822. dataIndex: 'activity_sum',
  1823. key: 'activity_sum',
  1824. align: 'center',
  1825. render: (a: string, b: any) => {
  1826. return <span>{b?.linkContext?.activity_sum}</span>
  1827. }
  1828. },
  1829. {
  1830. title: '活动链接',
  1831. dataIndex: 'link',
  1832. key: 'link',
  1833. align: 'center',
  1834. render: (a: string) => {
  1835. return <span>{a}{a && <CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} />}</span>
  1836. }
  1837. },
  1838. ],
  1839. '掌中云常用链接': isOk ? [
  1840. {
  1841. title: '入口',
  1842. dataIndex: 'pageTypeId',
  1843. key: 'pageTypeId',
  1844. align: 'center',
  1845. render: (a: any) => {
  1846. return <span>{a && pageTypeIds[a]}</span>
  1847. }
  1848. },
  1849. {
  1850. title: '类型',
  1851. dataIndex: 'spreadType',
  1852. key: 'spreadType',
  1853. align: 'center'
  1854. },
  1855. {
  1856. title: '备注',
  1857. dataIndex: 'remark',
  1858. key: 'remark',
  1859. align: 'center'
  1860. },
  1861. {
  1862. title: '链接地址',
  1863. dataIndex: 'link',
  1864. key: 'link',
  1865. align: 'center',
  1866. render: (a: string) => {
  1867. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  1868. }
  1869. },
  1870. ] : [
  1871. {
  1872. title: '创建状态',
  1873. dataIndex: 'createStatus',
  1874. key: 'createStatus',
  1875. align: 'center',
  1876. render: (a: number, b: any) => {
  1877. return <div className={style.flex}>
  1878. <span>{Statept[a]}</span>
  1879. <span>{b?.resultMsg}</span>
  1880. </div>
  1881. }
  1882. },
  1883. {
  1884. title: '创建时间',
  1885. dataIndex: 'createTime',
  1886. key: 'createTime',
  1887. align: 'center'
  1888. }
  1889. ],
  1890. '掌中云平台活动': isOk ? [
  1891. {
  1892. title: '活动名称',
  1893. dataIndex: 'name',
  1894. key: 'name',
  1895. align: 'center'
  1896. },
  1897. {
  1898. title: '活动时间',
  1899. dataIndex: 'time',
  1900. key: 'time',
  1901. align: 'center'
  1902. },
  1903. {
  1904. title: '充值金额',
  1905. dataIndex: 'sum',
  1906. key: 'sum',
  1907. align: 'center'
  1908. },
  1909. {
  1910. title: '活动链接',
  1911. dataIndex: 'link',
  1912. key: 'link',
  1913. align: 'center',
  1914. render: (a: string, b: any) => {
  1915. return <div>
  1916. <div>{b?.linkText}</div>
  1917. <div><span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span></div>
  1918. </div>
  1919. }
  1920. },
  1921. {
  1922. title: '今日充值',
  1923. dataIndex: 'today_sum',
  1924. key: 'today_sum',
  1925. align: 'center'
  1926. },
  1927. {
  1928. title: '今日订单',
  1929. dataIndex: 'today_order',
  1930. key: 'today_order',
  1931. align: 'center'
  1932. },
  1933. {
  1934. title: '历史充值 (不含当日)',
  1935. dataIndex: 'old_sum',
  1936. key: 'old_sum',
  1937. align: 'center'
  1938. },
  1939. {
  1940. title: '历史订单 (不含当日)',
  1941. dataIndex: 'old_order',
  1942. key: 'old_order',
  1943. align: 'center'
  1944. },
  1945. ] : [
  1946. {
  1947. title: '创建状态',
  1948. dataIndex: 'createStatus',
  1949. key: 'createStatus',
  1950. align: 'center',
  1951. render: (a: number, b: any) => {
  1952. return <div className={style.flex}>
  1953. <span>{Statept[a]}</span>
  1954. <span>{b?.resultMsg}</span>
  1955. </div>
  1956. }
  1957. },
  1958. {
  1959. title: '创建时间',
  1960. dataIndex: 'createTime',
  1961. key: 'createTime',
  1962. align: 'center'
  1963. }
  1964. ],
  1965. '掌中云推广链接': [
  1966. {
  1967. title: 'ID',
  1968. dataIndex: 'id',
  1969. key: 'id',
  1970. align: 'center'
  1971. },
  1972. {
  1973. title: '创建状态',
  1974. dataIndex: 'createStatus',
  1975. key: 'createStatus',
  1976. align: 'center',
  1977. render: (a: number, b: any) => {
  1978. return <div className={style.flex}>
  1979. <span>{State[a]}</span>
  1980. <span>{b?.resultMsg}</span>
  1981. </div>
  1982. }
  1983. },
  1984. {
  1985. title: '创建时间',
  1986. dataIndex: 'createTime',
  1987. key: 'createTime',
  1988. align: 'center'
  1989. },
  1990. {
  1991. title: '标题/链接',
  1992. dataIndex: 'link',
  1993. key: 'link',
  1994. align: 'center',
  1995. render: (a: any, b: any) => {
  1996. return <div className={style.flex}>
  1997. <span>{b?.linkContext?.spread_name}</span>
  1998. <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  1999. </div>
  2000. }
  2001. },
  2002. {
  2003. title: '入口',
  2004. dataIndex: 'id',
  2005. key: 'id',
  2006. align: 'center',
  2007. render: (a: any, b: any) => {
  2008. return <div className={style.flex}>
  2009. <span>{b?.linkContext?.book}</span>
  2010. <span>{b?.linkContext?.section}</span>
  2011. {/* <span>关注章节:{b?.linkContext?.spread_cost}</span> */}
  2012. </div>
  2013. }
  2014. },
  2015. {
  2016. title: '备注',
  2017. dataIndex: 'id',
  2018. key: 'id',
  2019. align: 'center',
  2020. render: (a: any, b: any) => {
  2021. return <div className={style.flex}>
  2022. <span>{b?.linkContext?.description}</span>
  2023. </div>
  2024. }
  2025. }
  2026. ],
  2027. '掌中云自定义活动': [
  2028. {
  2029. title: '创建状态',
  2030. dataIndex: 'createStatus',
  2031. key: 'createStatus',
  2032. align: 'center',
  2033. width: 100,
  2034. render: (a: number, b: any) => {
  2035. return <div className={style.flex}>
  2036. <span>{State[a]}</span>
  2037. <span>{b?.resultMsg}</span>
  2038. </div>
  2039. }
  2040. },
  2041. {
  2042. title: '活动链接',
  2043. dataIndex: 'link',
  2044. key: 'link',
  2045. align: 'center',
  2046. render: (a: string) => {
  2047. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  2048. }
  2049. },
  2050. {
  2051. title: '推广内推|外推',
  2052. dataIndex: 'linkContext',
  2053. key: 'linkContext',
  2054. align: 'center',
  2055. render: (a: any) => {
  2056. return a?.publish_type === 1 ? '内推' : '外推'
  2057. }
  2058. },
  2059. {
  2060. title: '活动名称',
  2061. dataIndex: 'linkContext',
  2062. key: 'linkContext',
  2063. align: 'center',
  2064. render: (a: any) => {
  2065. return a?.activity_name
  2066. }
  2067. },
  2068. {
  2069. title: '开始时间',
  2070. dataIndex: 'linkContext',
  2071. key: 'linkContext',
  2072. align: 'center',
  2073. render: (a: any) => {
  2074. return a?.start_time
  2075. }
  2076. },
  2077. {
  2078. title: '结束时间',
  2079. dataIndex: 'linkContext',
  2080. key: 'linkContext',
  2081. align: 'center',
  2082. render: (a: any) => {
  2083. return a?.end_time
  2084. }
  2085. },
  2086. {
  2087. title: '弹窗开始时间',
  2088. dataIndex: 'linkContext',
  2089. key: 'linkContext',
  2090. align: 'center',
  2091. render: (a: any) => {
  2092. return a?.popup_start_time
  2093. }
  2094. },
  2095. {
  2096. title: '弹窗结束时间',
  2097. dataIndex: 'linkContext',
  2098. key: 'linkContext',
  2099. align: 'center',
  2100. render: (a: any) => {
  2101. return a?.popup_end_time
  2102. }
  2103. },
  2104. {
  2105. title: '活动金额',
  2106. dataIndex: 'linkContext',
  2107. key: 'linkContext',
  2108. align: 'center',
  2109. render: (a: any) => {
  2110. return a?.activity_amount
  2111. }
  2112. },
  2113. {
  2114. title: '限购次数',
  2115. dataIndex: 'linkContext',
  2116. key: 'linkContext',
  2117. align: 'center',
  2118. render: (a: any) => {
  2119. return a?.limit_times
  2120. }
  2121. },
  2122. {
  2123. title: '促销文案',
  2124. dataIndex: 'linkContext',
  2125. key: 'linkContext',
  2126. align: 'center',
  2127. render: (a: any) => {
  2128. return a?.promotion_text
  2129. }
  2130. },
  2131. {
  2132. title: '用户属性',
  2133. dataIndex: 'linkContext',
  2134. key: 'linkContext',
  2135. align: 'center',
  2136. render: (a: any) => {
  2137. return a?.user_type && userType[a?.user_type]
  2138. }
  2139. },
  2140. {
  2141. title: '启用签到尾部推送',
  2142. dataIndex: 'linkContext',
  2143. key: 'linkContext',
  2144. align: 'center',
  2145. render: (a: any) => {
  2146. return a?.sign_push && (a?.sign_push === 0 ? '否' : '是')
  2147. }
  2148. },
  2149. {
  2150. title: '启用未支付尾部推送',
  2151. dataIndex: 'linkContext',
  2152. key: 'linkContext',
  2153. align: 'center',
  2154. render: (a: any) => {
  2155. return a?.unpaid_push && (a?.unpaid_push === 0 ? '否' : '是')
  2156. }
  2157. },
  2158. {
  2159. title: '启用弹窗海报',
  2160. dataIndex: 'linkContext',
  2161. key: 'linkContext',
  2162. align: 'center',
  2163. render: (a: any) => {
  2164. return a?.popup_promotion && (a?.popup_promotion === 0 ? '否' : '是')
  2165. }
  2166. },
  2167. {
  2168. title: '弹窗启用档位',
  2169. dataIndex: 'linkContext',
  2170. key: 'linkContext',
  2171. align: 'center',
  2172. render: (a: any) => {
  2173. return a?.popup_gear
  2174. }
  2175. },
  2176. {
  2177. title: '弹窗位置',
  2178. dataIndex: 'linkContext',
  2179. key: 'linkContext',
  2180. align: 'center',
  2181. render: (a: any) => {
  2182. return a?.popup_location
  2183. }
  2184. },
  2185. {
  2186. title: '页面弹出频率',
  2187. dataIndex: 'linkContext',
  2188. key: 'linkContext',
  2189. align: 'center',
  2190. render: (a: any) => {
  2191. return a?.popup_frequency
  2192. }
  2193. }
  2194. ],
  2195. '掌中云送书卷活动': [
  2196. {
  2197. title: '创建状态',
  2198. dataIndex: 'createStatus',
  2199. key: 'createStatus',
  2200. align: 'center',
  2201. width: 100,
  2202. render: (a: number, b: any) => {
  2203. return <div className={style.flex}>
  2204. <span>{State[a]}</span>
  2205. <span>{b?.resultMsg}</span>
  2206. </div>
  2207. }
  2208. },
  2209. {
  2210. title: '活动链接',
  2211. dataIndex: 'link',
  2212. key: 'link',
  2213. align: 'center',
  2214. render: (a: string) => {
  2215. return <span>{a}<CopyOutlined onClick={() => { copy(a) }} style={{ color: '#1890ff' }} /></span>
  2216. }
  2217. },
  2218. {
  2219. title: '活动名称',
  2220. dataIndex: 'linkContext',
  2221. key: 'linkContext',
  2222. align: 'center',
  2223. render: (a: any) => {
  2224. return a?.activity_name
  2225. }
  2226. },
  2227. {
  2228. title: '开始时间',
  2229. dataIndex: 'linkContext',
  2230. key: 'linkContext',
  2231. align: 'center',
  2232. render: (a: any) => {
  2233. return a?.start_time
  2234. }
  2235. },
  2236. {
  2237. title: '结束时间',
  2238. dataIndex: 'linkContext',
  2239. key: 'linkContext',
  2240. align: 'center',
  2241. render: (a: any) => {
  2242. return a?.end_time
  2243. }
  2244. },
  2245. {
  2246. title: '赠送书券',
  2247. dataIndex: 'linkContext',
  2248. key: 'linkContext',
  2249. align: 'center',
  2250. render: (a: any) => {
  2251. return a?.book_voucher
  2252. }
  2253. },
  2254. {
  2255. title: '书券有效期',
  2256. dataIndex: 'linkContext',
  2257. key: 'linkContext',
  2258. align: 'center',
  2259. render: (a: any) => {
  2260. return a?.valid_minutes && (a?.valid_minutes === 4320 ? '3天' : '30天')
  2261. }
  2262. },
  2263. ],
  2264. }
  2265. return arr[name]
  2266. }
  2267. export default columns