Columns.ts 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570
  1. export const ProductColumns = [
  2. { type: 'checkbox', width: 51, align: 'center', fixed: 'left' },
  3. {
  4. field: 'is_monitor',
  5. title: '监控管理',
  6. width: 90,
  7. align: 'center',
  8. fixed: 'left',
  9. slots: { default: 'is_monitor' },
  10. },
  11. {
  12. field: 'product_info',
  13. title: '商品信息',
  14. minWidth: 250,
  15. align: 'center',
  16. fixed: 'left',
  17. slots: { default: 'product_info' },
  18. },
  19. {
  20. field: 'sku',
  21. title: 'SKU',
  22. minWidth: 230,
  23. align: 'center',
  24. slots: { default: 'sku' },
  25. },
  26. {
  27. field: 'platform_number',
  28. title: '平台编号',
  29. minWidth: 80,
  30. align: 'center',
  31. slots: { default: 'platform_number' },
  32. },
  33. {
  34. field: 'country_code',
  35. title: '国 家',
  36. minWidth: 90,
  37. align: 'center',
  38. slots: { default: 'country_code' },
  39. },
  40. {
  41. field: 'brand',
  42. title: '品 牌',
  43. minWidth: 130,
  44. align: 'center',
  45. slots: { default: 'brand' },
  46. },
  47. {
  48. field: 'shop_name',
  49. title: '店 铺',
  50. minWidth: 150,
  51. align: 'center',
  52. slots: { default: 'shop_name' },
  53. },
  54. {
  55. field: 'tag',
  56. title: '分 组',
  57. minWidth: 150,
  58. align: 'center',
  59. slots: { default: 'tag' },
  60. },
  61. {
  62. field: 'price_info',
  63. title: '价 格',
  64. minWidth: 150,
  65. align: 'left',
  66. slots: { default: 'price_info' },
  67. },
  68. {
  69. field: 'show_price',
  70. title: '指导价格',
  71. minWidth: 150,
  72. align: 'left',
  73. slots: { default: 'show_price' },
  74. },
  75. {
  76. field: 'launch_date',
  77. title: '上架日期',
  78. minWidth: 110,
  79. align: 'center',
  80. sortable: true,
  81. slots: { default: 'launch_date' },
  82. },
  83. {
  84. field: 'category',
  85. title: '类 目',
  86. minWidth: 120,
  87. align: 'center',
  88. slots: { default: 'category' },
  89. },
  90. {
  91. field: 'status',
  92. title: '状 态',
  93. minWidth: 90,
  94. align: 'center',
  95. slots: { default: 'status' },
  96. },
  97. {
  98. field: 'update_datetime',
  99. title: '更新时间',
  100. minWidth: 180,
  101. align: 'center',
  102. slots: { default: 'update_datetime' },
  103. },
  104. {
  105. field: 'create_datetime',
  106. title: '创建时间',
  107. minWidth: 180,
  108. align: 'center',
  109. slots: { default: 'create_datetime' },
  110. },
  111. {
  112. field: 'operate',
  113. title: '操 作',
  114. minWidth: 130,
  115. align: 'center',
  116. fixed: 'right',
  117. slots: { default: 'operate' },
  118. },
  119. ];
  120. export const ProductMonitorColumns = [
  121. { type: 'checkbox', minWidth: 50, align: 'center', fixed: 'left' },
  122. {
  123. field: 'product_info',
  124. title: '商品信息',
  125. minWidth: 250,
  126. align: 'center',
  127. fixed: 'left',
  128. slots: { default: 'product_info' },
  129. },
  130. {
  131. field: 'sku',
  132. title: 'SKU',
  133. minWidth: 230,
  134. align: 'center',
  135. slots: { default: 'sku' },
  136. },
  137. {
  138. field: 'platform_number',
  139. title: '平台编号',
  140. minWidth: 80,
  141. align: 'center',
  142. slots: { default: 'platform_number' },
  143. },
  144. {
  145. field: 'country_code',
  146. title: '国 家',
  147. minWidth: 90,
  148. align: 'center',
  149. slots: { default: 'country_code' },
  150. },
  151. {
  152. field: 'brand',
  153. title: '品 牌',
  154. minWidth: 130,
  155. align: 'center',
  156. slots: { default: 'brand' },
  157. },
  158. {
  159. field: 'shop_name',
  160. title: '店 铺',
  161. minWidth: 150,
  162. align: 'center',
  163. slots: { default: 'shop_name' },
  164. },
  165. {
  166. field: 'tag',
  167. title: '分 组',
  168. minWidth: 150,
  169. align: 'center',
  170. slots: { default: 'tag' },
  171. },
  172. {
  173. field: 'price_info',
  174. title: '价 格',
  175. minWidth: 150,
  176. align: 'left',
  177. slots: { default: 'price_info' },
  178. },
  179. {
  180. field: 'show_price',
  181. title: '指导价格',
  182. minWidth: 150,
  183. align: 'left',
  184. slots: { default: 'show_price' },
  185. },
  186. {
  187. field: 'score',
  188. title: '子ASIN计算评分',
  189. minWidth: 190,
  190. align: 'center',
  191. sortable: true,
  192. slots: { default: 'score' },
  193. },
  194. {
  195. field: 'all_score',
  196. title: '亚马逊评分',
  197. minWidth: 190,
  198. align: 'center',
  199. sortable: true,
  200. slots: { default: 'all_score' },
  201. },
  202. {
  203. field: 'stars',
  204. title: '子ASIN星级分布',
  205. minWidth: 180,
  206. headerAlign: 'center',
  207. align: 'center',
  208. slots: { default: 'stars' },
  209. },
  210. {
  211. field: 'all_stars',
  212. title: '亚马逊星级分布',
  213. minWidth: 180,
  214. headerAlign: 'center',
  215. align: 'center',
  216. slots: { default: 'all_stars' },
  217. },
  218. {
  219. field: 'ratings',
  220. title: '子ASIN评分人数',
  221. minWidth: 150,
  222. align: 'center',
  223. sortable: true,
  224. slots: { default: 'ratings' },
  225. },
  226. {
  227. field: 'all_ratings',
  228. title: '亚马逊评分人数',
  229. minWidth: 150,
  230. align: 'center',
  231. sortable: true,
  232. slots: { default: 'all_ratings' },
  233. },
  234. {
  235. field: 'reviews',
  236. title: '子ASIN评论人数',
  237. minWidth: 150,
  238. align: 'center',
  239. sortable: true,
  240. slots: { default: 'reviews' },
  241. },
  242. // {
  243. // field: 'all_reviews',
  244. // title: '亚马逊评论人数',
  245. // minWidth: 150,
  246. // align: 'center',
  247. // sortable: true,
  248. // slots: { default: 'all_reviews' },
  249. // },
  250. {
  251. field: 'launch_date',
  252. title: '上架日期',
  253. minWidth: 110,
  254. align: 'center',
  255. sortable: true,
  256. slots: { default: 'launch_date' },
  257. },
  258. {
  259. field: 'category',
  260. title: '类 目',
  261. minWidth: 120,
  262. align: 'center',
  263. slots: { default: 'category' },
  264. },
  265. {
  266. field: 'status',
  267. title: '状 态',
  268. minWidth: 90,
  269. align: 'center',
  270. slots: { default: 'status' },
  271. },
  272. {
  273. field: 'update_datetime',
  274. title: '更新时间',
  275. minWidth: 180,
  276. align: 'center',
  277. slots: { default: 'update_datetime' },
  278. },
  279. {
  280. field: 'create_datetime',
  281. title: '创建时间',
  282. minWidth: 180,
  283. align: 'center',
  284. slots: { default: 'create_datetime' },
  285. },
  286. {
  287. field: 'operate',
  288. title: '操 作',
  289. minWidth: 90,
  290. align: 'center',
  291. fixed: 'right',
  292. slots: { default: 'operate' },
  293. },
  294. ];
  295. export const CompetitorMonitorColumns = [
  296. { type: 'checkbox', minWidth: 50, align: 'center', fixed: 'left' },
  297. {
  298. field: 'product_info',
  299. title: '商品信息',
  300. minWidth: 250,
  301. align: 'center',
  302. fixed: 'left',
  303. slots: { default: 'product_info' },
  304. },
  305. {
  306. field: 'country_code',
  307. title: '国 家',
  308. minWidth: 90,
  309. align: 'center',
  310. slots: { default: 'country_code' },
  311. },
  312. {
  313. field: 'brand',
  314. title: '品 牌',
  315. minWidth: 130,
  316. align: 'center',
  317. slots: { default: 'brand' },
  318. },
  319. {
  320. field: 'shop_name',
  321. title: '店 铺',
  322. minWidth: 150,
  323. align: 'center',
  324. slots: { default: 'shop_name' },
  325. },
  326. {
  327. field: 'tag',
  328. title: '分 组',
  329. minWidth: 150,
  330. align: 'center',
  331. slots: { default: 'tag' },
  332. },
  333. {
  334. field: 'price_info',
  335. title: '价 格',
  336. minWidth: 150,
  337. align: 'left',
  338. slots: { default: 'price_info' },
  339. },
  340. {
  341. field: 'score',
  342. title: '子ASIN计算评分',
  343. minWidth: 190,
  344. align: 'center',
  345. sortable: true,
  346. slots: { default: 'score' },
  347. },
  348. {
  349. field: 'all_score',
  350. title: '亚马逊评分',
  351. minWidth: 190,
  352. align: 'center',
  353. sortable: true,
  354. slots: { default: 'all_score' },
  355. },
  356. {
  357. field: 'stars',
  358. title: '子ASIN星级分布',
  359. minWidth: 180,
  360. headerAlign: 'center',
  361. align: 'center',
  362. slots: { default: 'stars' },
  363. },
  364. {
  365. field: 'all_stars',
  366. title: '亚马逊星级分布',
  367. minWidth: 180,
  368. headerAlign: 'center',
  369. align: 'center',
  370. slots: { default: 'all_stars' },
  371. },
  372. {
  373. field: 'ratings',
  374. title: '子ASIN评分人数',
  375. minWidth: 150,
  376. align: 'center',
  377. sortable: true,
  378. slots: { default: 'ratings' },
  379. },
  380. {
  381. field: 'all_ratings',
  382. title: '亚马逊评分人数',
  383. minWidth: 150,
  384. align: 'center',
  385. sortable: true,
  386. slots: { default: 'all_ratings' },
  387. },
  388. {
  389. field: 'reviews',
  390. title: '子ASIN评论人数',
  391. minWidth: 150,
  392. align: 'center',
  393. sortable: true,
  394. slots: { default: 'reviews' },
  395. },
  396. // {
  397. // field: 'all_reviews',
  398. // title: '亚马逊评论人数',
  399. // minWidth: 150,
  400. // align: 'center',
  401. // sortable: true,
  402. // slots: { default: 'all_reviews' },
  403. // },
  404. {
  405. field: 'launch_date',
  406. title: '上架日期',
  407. minWidth: 110,
  408. align: 'center',
  409. sortable: true,
  410. slots: { default: 'launch_date' },
  411. },
  412. {
  413. field: 'category',
  414. title: '类 目',
  415. minWidth: 120,
  416. align: 'center',
  417. slots: { default: 'category' },
  418. },
  419. {
  420. field: 'status',
  421. title: '状 态',
  422. minWidth: 90,
  423. align: 'center',
  424. slots: { default: 'status' },
  425. },
  426. {
  427. field: 'update_datetime',
  428. title: '更新时间',
  429. minWidth: 180,
  430. align: 'center',
  431. showOverflow: true,
  432. slots: { default: 'update_datetime' },
  433. },
  434. {
  435. field: 'create_datetime',
  436. title: '创建时间',
  437. minWidth: 180,
  438. align: 'center',
  439. showOverflow: true,
  440. slots: { default: 'create_datetime' },
  441. },
  442. {
  443. field: 'operate',
  444. title: '操 作',
  445. minWidth: 90,
  446. align: 'center',
  447. fixed: 'right',
  448. slots: { default: 'operate' },
  449. },
  450. ];
  451. export const HistoricalColumns = [
  452. {
  453. field: 'create_datetime',
  454. title: '时 间',
  455. align: 'center',
  456. fixed: 'left',
  457. slots: { default: 'create_datetime' },
  458. },
  459. {
  460. field: 'field',
  461. title: '变更项',
  462. align: 'center',
  463. slots: { default: 'field' },
  464. },
  465. {
  466. field: 'old_val',
  467. title: '原 值',
  468. align: 'center',
  469. slots: { default: 'old_val' },
  470. },
  471. {
  472. field: 'new_val',
  473. title: '现 值',
  474. align: 'center',
  475. slots: { default: 'new_val' },
  476. },
  477. ];
  478. export const CompetitorMonitorCommentColumns = [
  479. {
  480. field: 'country_code',
  481. title: '国 家',
  482. width: 90,
  483. align: 'center',
  484. slots: { default: 'country_code' },
  485. },
  486. {
  487. field: 'title',
  488. title: '标 题',
  489. minWidth: 130,
  490. align: 'center',
  491. slots: { default: 'title' },
  492. },
  493. {
  494. field: 'reviewer_name',
  495. title: '用户昵称',
  496. minWidth: 110,
  497. align: 'center',
  498. slots: { default: 'reviewer_name' },
  499. },
  500. {
  501. field: 'review_date',
  502. title: '评论日期',
  503. width: 130,
  504. align: 'center',
  505. slots: { default: 'review_date' },
  506. },
  507. {
  508. field: 'content',
  509. title: '评论内容',
  510. minWidth: 400,
  511. align: 'center',
  512. slots: { default: 'content' },
  513. },
  514. {
  515. field: 'score',
  516. title: '用户评分',
  517. minWidth: 145,
  518. align: 'center',
  519. slots: { default: 'score' },
  520. },
  521. {
  522. field: 'tiv',
  523. title: '评论类型',
  524. width: 100,
  525. align: 'center',
  526. slots: { default: 'tiv' },
  527. },
  528. {
  529. field: 'helpful',
  530. title: '评论有用人数',
  531. width: 95,
  532. align: 'center',
  533. slots: { default: 'helpful' },
  534. },
  535. {
  536. field: 'verified',
  537. title: '认证购买',
  538. width: 90,
  539. align: 'center',
  540. slots: { default: 'verified' },
  541. },
  542. {
  543. field: 'create_datetime',
  544. title: '创建时间',
  545. width: 158,
  546. align: 'center',
  547. slots: { default: 'create_datetime' },
  548. },
  549. {
  550. field: 'operate',
  551. title: '操 作',
  552. width: 100,
  553. align: 'center',
  554. fixed: 'right',
  555. slots: { default: 'operate' },
  556. },
  557. ];
  558. export const NegativeLabelColumns = [
  559. { type: 'seq', title: '序 号', width: 50, align: 'center' },
  560. { field: 'raw_label', title: '原始标签', minWidth: 'auto', align: 'center', showOverflow: true },
  561. { field: 'kind', title: '类 别', width: 'auto', align: 'center', showOverflow: true },
  562. { field: 'update_datetime', title: '更新时间', width: 'auto', align: 'center', showOverflow: true },
  563. { field: 'create_datetime', title: '创建时间', width: 'auto', align: 'center', showOverflow: true },
  564. { field: 'operate', fixed: 'right', title: '操 作', align: 'center', width: 90, slots: { default: 'operate' } },
  565. ];