list.vue 26 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757
  1. <template>
  2. <div class="container">
  3. <Breadcrumb :items="['menu.taobao', 'menu.taobao.list']" />
  4. <a-card class="general-card" :title="$t('menu.taobao.list')">
  5. <a-row>
  6. <a-col :flex="1">
  7. <a-form :model="formModel" :label-col-props="{ span: 6 }" :wrapper-col-props="{ span: 18 }"
  8. label-align="left">
  9. <a-row :gutter="16">
  10. <a-col :span="8">
  11. <a-form-item field="name" label="账号名">
  12. <a-input v-model="formModel.name" placeholder="输入关键词搜索" />
  13. </a-form-item>
  14. </a-col>
  15. <a-col :span="8">
  16. <a-form-item field="lastTime" :label="$t('searchTable.form.lastTime')">
  17. <a-range-picker v-model="formModel.lastTime" style="width: 100%" />
  18. </a-form-item>
  19. </a-col>
  20. <a-col :span="8">
  21. <a-form-item field="status" :label="$t('searchTable.form.status')">
  22. <a-select v-model="formModel.status" :options="statusOptions" :placeholder="$t('searchTable.form.selectDefault')
  23. " />
  24. </a-form-item>
  25. </a-col>
  26. </a-row>
  27. </a-form>
  28. </a-col>
  29. <a-divider style="height: 38px" direction="vertical" />
  30. <a-col :flex="'86px'" style="text-align: right">
  31. <a-space direction="vertical" :size="18">
  32. <a-button type="primary" @click="search">
  33. <template #icon>
  34. <icon-search />
  35. </template>
  36. {{ $t('searchTable.form.search') }}
  37. </a-button>
  38. </a-space>
  39. </a-col>
  40. </a-row>
  41. <a-divider style="margin-top: 0" />
  42. <a-row style="margin-bottom: 16px">
  43. <a-col :span="12">
  44. <a-space>
  45. <a-button type="primary">
  46. <template #icon>
  47. <icon-plus />
  48. </template>
  49. {{ $t('searchTable.operation.create') }}
  50. </a-button>
  51. </a-space>
  52. </a-col>
  53. <a-col :span="12" style="
  54. display: flex;
  55. align-items: center;
  56. justify-content: end;
  57. ">
  58. <a-tooltip :content="$t('searchTable.actions.refresh')">
  59. <div class="action-icon" @click="search"><icon-refresh size="18" /></div>
  60. </a-tooltip>
  61. <a-dropdown @select="handleSelectDensity">
  62. <a-tooltip :content="$t('searchTable.actions.density')">
  63. <div class="action-icon"><icon-line-height size="18" /></div>
  64. </a-tooltip>
  65. <template #content>
  66. <a-doption v-for="item in densityList" :key="item.value" :value="item.value"
  67. :class="{ active: item.value === size }">
  68. <span>{{ item.name }}</span>
  69. </a-doption>
  70. </template>
  71. </a-dropdown>
  72. <a-tooltip :content="$t('searchTable.actions.columnSetting')">
  73. <a-popover trigger="click" position="bl" @popup-visible-change="popupVisibleChange">
  74. <div class="action-icon"><icon-settings size="18" /></div>
  75. <template #content>
  76. <div id="tableSetting">
  77. <div v-for="(item, index) in showColumns" :key="item.dataIndex" class="setting">
  78. <div style="
  79. margin-right: 4px;
  80. cursor: move;
  81. ">
  82. <icon-drag-arrow />
  83. </div>
  84. <div>
  85. <a-checkbox v-model="item.checked" @change="
  86. handleChange(
  87. $event,
  88. item as TableColumnData,
  89. index
  90. )
  91. ">
  92. </a-checkbox>
  93. </div>
  94. <div class="title">
  95. {{
  96. item.title === '#'
  97. ? '序列号'
  98. : item.title
  99. }}
  100. </div>
  101. </div>
  102. </div>
  103. </template>
  104. </a-popover>
  105. </a-tooltip>
  106. </a-col>
  107. </a-row>
  108. <a-table row-key="id" :loading="loading" :pagination="pagination" :summary="true" summary-text="汇总"
  109. :columns="(cloneColumns as TableColumnData[])" :data="renderData" :bordered="false" :size="size"
  110. :row-class="getRowClass" @page-change="onPageChange" @page-size-change="onPageSizeChange">
  111. <template #index="{ record }">
  112. {{ record.id }}
  113. </template>
  114. <template #name="{ record }">
  115. <a-list-item-meta :title="record.company" :description="record.description" />
  116. </template>
  117. <template #daily_income_limit="{ record }">
  118. <a-tag bordered
  119. :color="record.current_amt > record.daily_income_limit && record.daily_income_limit > 0 ? 'red' : ''">
  120. {{ record.current_amt }} /
  121. {{ record.daily_income_limit }}
  122. </a-tag>
  123. </template>
  124. <template #nodeName="{ record }">
  125. <a-tag color="gray" @click="changePublicIp(record.nodeName)">{{ record.end_point }} - {{
  126. record.nodeName }} </a-tag>
  127. </template>
  128. <template #suspended_endpoint="{ record }">
  129. <a-tag v-if="record.suspended_endpoint" size="small" bordered color="red"
  130. @click="changeAttr(record.id, 'check_status', true)">
  131. 暂停:{{ record.suspended_endpoint }}</a-tag>
  132. <a-tag v-else size="small" bordered color="gray"
  133. @click="changeAttr(record.id, 'check_status', true)">
  134. 正常</a-tag>
  135. </template>
  136. <template #tags="{ record }">
  137. <a-tag v-if="record.is_banned" size="small" bordered color="red">
  138. 封号
  139. </a-tag>
  140. <a-tag v-if="record.riskCookie" size="small" bordered color="red">
  141. {{ record.riskCookie }}
  142. </a-tag>
  143. <a-typography-text mark v-if="record.note">
  144. {{ record.note }}
  145. </a-typography-text>
  146. <a-tag v-if="record.parse_type" size="small" bordered color="blue">
  147. {{ record.parse_type }}
  148. </a-tag>
  149. <a-tag v-if="record.riskStrategy" size="small" bordered color="orange">
  150. {{ record.riskStrategy }}-{{ record.launchScene }}
  151. </a-tag>
  152. </template>
  153. <template #status="{ record }">
  154. <a-tag v-if="record.status" bordered color="green" @click="changeStatus(record, false)">
  155. <template #icon>
  156. <icon-check />
  157. </template>
  158. 在线
  159. </a-tag>
  160. <a-tag v-else bordered color="" @click="changeStatus(record, true)">
  161. <template #icon>
  162. <icon-stop />
  163. </template>
  164. 下线
  165. </a-tag>
  166. </template>
  167. <template #actions="{ record }">
  168. <a-tag v-if="record.enable_parse" size="small" bordered color="red"
  169. @click="changeAttr(record.id, 'enable_parse', false)">
  170. 转链
  171. </a-tag>
  172. <a-tag v-else size="small" bordered color="" @click="changeAttr(record.id, 'enable_parse', true)">
  173. 转链
  174. </a-tag>
  175. <span style="margin: 5px;">
  176. <a-tag v-if="record.enable_coupon" size="small" bordered color="orange"
  177. @click="changeAttr(record.id, 'enable_coupon', false)">
  178. 优惠券
  179. </a-tag>
  180. <a-tag v-else size="small" bordered color=""
  181. @click="changeAttr(record.id, 'enable_coupon', true)">
  182. 优惠券
  183. </a-tag>
  184. </span>
  185. <a-tag v-if="record.enable_sync_order" size="small" bordered color="arcoblue"
  186. @click="changeAttr(record.id, 'enable_sync_order', false)">
  187. 同步订单
  188. </a-tag>
  189. <a-tag v-else size="small" bordered color="gray"
  190. @click="changeAttr(record.id, 'enable_sync_order', true)">
  191. 同步订单
  192. </a-tag>
  193. <span style="margin:0 5px;">
  194. <a-tag v-if="record.enable_fake_click" size="small" bordered color="blue"
  195. @click="changeAttr(record.id, 'enable_fake_click', false)">
  196. 补点击
  197. </a-tag>
  198. <a-tag v-else size="small" bordered color="gray"
  199. @click="changeAttr(record.id, 'enable_fake_click', true)">
  200. 补点击
  201. </a-tag>
  202. </span>
  203. <span style="margin:0 5px;">
  204. <a-tag v-if="record.enable_promotionQuery" size="small" bordered color="orangered"
  205. @click="changeAttr(record.id, 'enable_promotionQuery', false)">
  206. 搜同款
  207. </a-tag>
  208. <a-tag v-else size="small" bordered color="gray"
  209. @click="changeAttr(record.id, 'enable_promotionQuery', true)">
  210. 搜同款
  211. </a-tag>
  212. </span>
  213. <a-tag v-if="record.enable_deep_url" size="small" bordered color="blue"
  214. @click="changeAttr(record.id, 'enable_deep_url', false)">
  215. 下探网址
  216. </a-tag>
  217. <a-tag v-else size="small" bordered color="gray"
  218. @click="changeAttr(record.id, 'enable_deep_url', true)">
  219. 下探网址
  220. </a-tag>
  221. </template>
  222. <template #time="{ record }">
  223. <div style="color:gray;">
  224. <div>注册:{{ dayjs(record.create_time).format('MM-DD HH:mm') }}</div>
  225. <div>更新:{{ dayjs(record.last_time).format('MM-DD HH:mm') }}</div>
  226. <div v-if="dayjs().diff(dayjs(record.login_time), 'hours') < 48">
  227. 登录:{{ dayjs(record.login_time).format('MM-DD HH:mm') }}</div>
  228. <a-tooltip v-else>
  229. <template #content>
  230. <div>登录:{{ dayjs(record.login_time).format('MM-DD HH:mm') }}</div>
  231. <div>登录状态即将掉线,请尽快处理</div>
  232. </template>
  233. <div style="color:red;">
  234. 预计 {{ 72 - dayjs().diff(dayjs(record.login_time), 'hours') }} 小时后掉线
  235. </div>
  236. </a-tooltip>
  237. </div>
  238. </template>
  239. <template #operations="{ record }">
  240. <a-button type="text" size="small" @click="changeItem(record)">
  241. 更新
  242. </a-button>
  243. <a-button type="text" size="small" @click="billView(record)">
  244. 预计收益
  245. </a-button>
  246. </template>
  247. <template #summary-cell="{ column, record }">
  248. <div style="margin:10px auto" v-if="column.slotName == 'daily_income_limit'">
  249. 预估: {{ amountFormat(record.current_amt) }}
  250. </div>
  251. </template>
  252. <template #time_range="{ record }">
  253. <WorkHourModel :path="updatePath" :record="record" @change="search" />
  254. </template>
  255. <template #hourly_calls_limit="{ record }">
  256. <a-tag bordered
  257. :color="record.current_hourly_calls > record.hourly_calls_limit && record.hourly_calls_limit > 0 ? 'red' : ''">
  258. {{ record.current_hourly_calls }} /
  259. {{ record.hourly_calls_limit }}
  260. </a-tag>
  261. </template>
  262. <template #daily_calls_limit="{ record }">
  263. <a-tag bordered
  264. :color="record.current_daily_calls > record.daily_calls_limit && record.daily_calls_limit > 0 ? 'red' : ''">
  265. {{ record.current_daily_calls }} /
  266. {{ record.daily_calls_limit }}
  267. </a-tag>
  268. </template>
  269. </a-table>
  270. </a-card>
  271. </div>
  272. </template>
  273. <script lang="ts" setup>
  274. import { useRouter, useRoute } from 'vue-router';
  275. import { computed, ref, reactive, watch, nextTick } from 'vue';
  276. import { useI18n } from 'vue-i18n';
  277. import dayjs from 'dayjs';
  278. import useLoading from '@/hooks/loading';
  279. import { queryTkPool, TkPoolRecord, TkPoolParams, TkUpdateAccountModel, TkUpdateAccount } from '@/api/taobao';
  280. import { changePublicIpByName } from '@/api/proxy';
  281. import { Pagination } from '@/types/global';
  282. import { Modal, Message } from '@arco-design/web-vue';
  283. import type { SelectOptionData } from '@arco-design/web-vue/es/select/interface';
  284. import type { TableColumnData } from '@arco-design/web-vue/es/table/interface';
  285. import cloneDeep from 'lodash/cloneDeep';
  286. import Sortable from 'sortablejs';
  287. import { numberFormat, amountFormat } from '@/utils/util';
  288. import { UpdateAccountModel, UpdateAccount } from '@/api/app';
  289. import WorkHourModel from '@/components/WorkHourModel.vue';
  290. const updatePath = '/api/taobao/update';
  291. type SizeProps = 'mini' | 'small' | 'medium' | 'large';
  292. type Column = TableColumnData & { checked?: true };
  293. const generateFormModel = () => {
  294. return {
  295. name: '',
  296. lastTime: [],
  297. status: '',
  298. show_hide: false,
  299. sort: 'status',
  300. order: 'descending',
  301. };
  302. };
  303. const router = useRouter();
  304. const route = useRoute();
  305. const { loading, setLoading } = useLoading(true);
  306. const { t } = useI18n();
  307. const renderData = ref<TkPoolRecord[]>([]);
  308. const formModel = ref(generateFormModel());
  309. const cloneColumns = ref<Column[]>([]);
  310. const showColumns = ref<Column[]>([]);
  311. const size = ref<SizeProps>('mini');
  312. const basePagination: Pagination = {
  313. current: 1,
  314. pageSize: 50,
  315. showPageSize: true,
  316. showTotal: true,
  317. pageSizeOptions: [10, 20, 50, 100, 200, 500]
  318. };
  319. const pagination = reactive({
  320. ...basePagination,
  321. });
  322. const densityList = computed(() => [
  323. {
  324. name: t('searchTable.size.mini'),
  325. value: 'mini',
  326. },
  327. {
  328. name: t('searchTable.size.small'),
  329. value: 'small',
  330. },
  331. {
  332. name: t('searchTable.size.medium'),
  333. value: 'medium',
  334. },
  335. {
  336. name: t('searchTable.size.large'),
  337. value: 'large',
  338. },
  339. ]);
  340. const columns = computed<TableColumnData[]>(() => [
  341. {
  342. title: '#',
  343. dataIndex: 'index',
  344. slotName: 'index',
  345. width: 50,
  346. },
  347. {
  348. title: '账号名',
  349. dataIndex: 'name',
  350. slotName: 'name',
  351. width: 200,
  352. },
  353. {
  354. title: '',
  355. slotName: 'tags',
  356. width: 40,
  357. },
  358. {
  359. title: '工作时间',
  360. dataIndex: 'time_range',
  361. slotName: 'time_range',
  362. align: 'right',
  363. width: 200,
  364. },
  365. {
  366. title: '小时调用',
  367. slotName: 'hourly_calls_limit',
  368. dataIndex: 'current_hourly_calls',
  369. align: 'right',
  370. width: 120,
  371. },
  372. {
  373. title: '当日调用',
  374. slotName: 'daily_calls_limit',
  375. dataIndex: 'current_daily_calls',
  376. align: 'right',
  377. width: 150,
  378. },
  379. {
  380. title: '每日收益限额',
  381. slotName: 'daily_income_limit',
  382. dataIndex: 'current_amt',
  383. align: 'right',
  384. width: 180,
  385. },
  386. {
  387. title: '可提现余额',
  388. dataIndex: 'draw_balance',
  389. width: 120,
  390. },
  391. {
  392. title: '运行节点',
  393. slotName: 'nodeName',
  394. width: 120,
  395. },
  396. {
  397. title: '挂起节点',
  398. slotName: 'suspended_endpoint',
  399. width: 120,
  400. },
  401. {
  402. title: '状态',
  403. slotName: 'status',
  404. width: 100,
  405. },
  406. {
  407. title: '分类',
  408. slotName: 'actions',
  409. width: 400,
  410. align: 'center',
  411. },
  412. {
  413. title: '时间',
  414. slotName: 'time',
  415. width: 170,
  416. },
  417. {
  418. title: '操作',
  419. dataIndex: 'operations',
  420. slotName: 'operations',
  421. align: 'right',
  422. width: 150,
  423. },
  424. ]);
  425. const statusOptions = computed<SelectOptionData[]>(() => [
  426. {
  427. label: '全部',
  428. value: '',
  429. },
  430. {
  431. label: '在线',
  432. value: 'online',
  433. },
  434. {
  435. label: '下线',
  436. value: 'offline',
  437. },
  438. ]);
  439. const getRowClass = (record: TkPoolRecord) => {
  440. return record.is_hide ? 'special-table-row' : '';
  441. };
  442. if (route.query.show_hide === '1') {
  443. formModel.value.show_hide = true;
  444. }
  445. const fetchData = async (
  446. params: TkPoolParams = {
  447. current: 1,
  448. pageSize: 50,
  449. show_hide: false,
  450. sort: 'status',
  451. order: 'descending',
  452. getTotal: true,
  453. }
  454. ) => {
  455. if (route.query.show_hide === '1') {
  456. params.show_hide = true;
  457. }
  458. setLoading(true);
  459. try {
  460. const { data } = await queryTkPool(params);
  461. if (!data) return;
  462. // const { data } = await queryTkPool(params);
  463. renderData.value = data.list;
  464. pagination.current = data.page;
  465. pagination.total = data.count;
  466. } catch (err) {
  467. console.log(err);
  468. // you can report use errorHandler or other
  469. } finally {
  470. setLoading(false);
  471. }
  472. };
  473. const changeItem = async (data: TkPoolRecord) => {
  474. router.push({ name: 'updateCookies' });
  475. };
  476. const billView = async (data: TkPoolRecord) => {
  477. router.push({ name: 'taobao_bill_dailys', query: { name: data.company } });
  478. };
  479. const changeStatus = async (data: TkPoolRecord, val: any) => {
  480. if (data.is_banned && val) {
  481. Message.error('被封账号,不能上线!');
  482. return;
  483. }
  484. const args = {
  485. id: data.id,
  486. name: 'status',
  487. val
  488. } as TkUpdateAccountModel;
  489. Modal.confirm({
  490. title: '确认提示',
  491. content: '确定要更改状态吗?',
  492. okText: '确认',
  493. cancelText: '取消',
  494. async onOk() {
  495. setLoading(true);
  496. try {
  497. const { data } = await TkUpdateAccount(args);
  498. console.log(data, data.msg);
  499. const msg = data.msg || '更新成功!';
  500. if (data.success) {
  501. Message.success(msg);
  502. search();
  503. } else {
  504. Message.error(data.msg);
  505. }
  506. } catch (e) {
  507. console.log(e);
  508. }
  509. setLoading(false);
  510. }
  511. });
  512. };
  513. const changeAttr = async (id: number, name: string, val: any) => {
  514. const args = {
  515. id,
  516. name,
  517. val
  518. } as TkUpdateAccountModel;
  519. Modal.confirm({
  520. title: '确认提示',
  521. content: '确定要更改状态吗?',
  522. okText: '确认',
  523. cancelText: '取消',
  524. async onOk() {
  525. setLoading(true);
  526. try {
  527. const { data } = await TkUpdateAccount(args);
  528. console.log(data, data.msg);
  529. const msg = data.msg || '更新成功!';
  530. if (data.success) {
  531. Message.success(msg);
  532. search();
  533. } else {
  534. Message.error(data.msg);
  535. }
  536. } catch (e) { console.log(e) }
  537. setLoading(false);
  538. }
  539. });
  540. };
  541. const changePublicIp = async (nodeName: string) => {
  542. Modal.confirm({
  543. title: '确认提示',
  544. content: `确定要更改节点 ${nodeName} 的公网IP吗?`,
  545. okText: '确认',
  546. cancelText: '取消',
  547. async onOk() {
  548. setLoading(true);
  549. try {
  550. const { data } = await changePublicIpByName(nodeName);
  551. console.log(data);
  552. const msg = data.msg || '更新IP成功!';
  553. if (data.success) {
  554. Message.success(msg);
  555. search();
  556. } else {
  557. Message.error(data.msg);
  558. }
  559. } catch (e) {
  560. console.log(e);
  561. } finally {
  562. setLoading(false);
  563. }
  564. }
  565. });
  566. };
  567. const search = () => {
  568. fetchData({
  569. ...basePagination,
  570. ...formModel.value,
  571. } as unknown as TkPoolParams);
  572. };
  573. const onPageChange = (current: number) => {
  574. fetchData({
  575. ...basePagination,
  576. ...formModel.value,
  577. current
  578. } as unknown as TkPoolParams);
  579. };
  580. const onPageSizeChange = (current: number) => {
  581. basePagination.pageSize = current;
  582. pagination.pageSize = current;
  583. fetchData({
  584. ...basePagination,
  585. ...formModel.value,
  586. current: 1,
  587. } as unknown as TkPoolParams);
  588. };
  589. fetchData();
  590. const reset = () => {
  591. formModel.value = generateFormModel();
  592. };
  593. const handleSelectDensity = (
  594. val: string | number | Record<string, any> | undefined,
  595. e: Event
  596. ) => {
  597. size.value = val as SizeProps;
  598. };
  599. const handleChange = (
  600. checked: boolean | (string | boolean | number)[],
  601. column: Column,
  602. index: number
  603. ) => {
  604. if (!checked) {
  605. cloneColumns.value = showColumns.value.filter(
  606. (item) => item.dataIndex !== column.dataIndex
  607. );
  608. } else {
  609. cloneColumns.value.splice(index, 0, column);
  610. }
  611. };
  612. const exchangeArray = <T extends Array<any>>(
  613. array: T,
  614. beforeIdx: number,
  615. newIdx: number,
  616. isDeep = false
  617. ): T => {
  618. const newArray = isDeep ? cloneDeep(array) : array;
  619. if (beforeIdx > -1 && newIdx > -1) {
  620. // 先替换后面的,然后拿到替换的结果替换前面的
  621. newArray.splice(
  622. beforeIdx,
  623. 1,
  624. newArray.splice(newIdx, 1, newArray[beforeIdx]).pop()
  625. );
  626. }
  627. return newArray;
  628. };
  629. const popupVisibleChange = (val: boolean) => {
  630. if (val) {
  631. nextTick(() => {
  632. const el = document.getElementById(
  633. 'tableSetting'
  634. ) as HTMLElement;
  635. const sortable = new Sortable(el, {
  636. onEnd(e: any) {
  637. const { oldIndex, newIndex } = e;
  638. exchangeArray(cloneColumns.value, oldIndex, newIndex);
  639. exchangeArray(showColumns.value, oldIndex, newIndex);
  640. },
  641. });
  642. });
  643. }
  644. };
  645. watch(
  646. () => columns.value,
  647. (val) => {
  648. cloneColumns.value = cloneDeep(val);
  649. cloneColumns.value.forEach((item, index) => {
  650. item.checked = true;
  651. });
  652. showColumns.value = cloneDeep(cloneColumns.value);
  653. },
  654. { deep: true, immediate: true }
  655. );
  656. </script>
  657. <script lang="ts">
  658. export default {
  659. name: 'SearchTable',
  660. };
  661. </script>
  662. <style scoped lang="less">
  663. .container {
  664. padding: 0 20px 20px 20px;
  665. }
  666. :deep(.arco-table-th) {
  667. &:last-child {
  668. .arco-table-th-item-title {
  669. margin-left: 16px;
  670. }
  671. }
  672. }
  673. .action-icon {
  674. margin-left: 12px;
  675. cursor: pointer;
  676. }
  677. .active {
  678. color: #0960bd;
  679. background-color: #e3f4fc;
  680. }
  681. .setting {
  682. display: flex;
  683. align-items: center;
  684. width: 200px;
  685. .title {
  686. margin-left: 12px;
  687. cursor: pointer;
  688. }
  689. }
  690. :deep(.special-table-row td) {
  691. background-color: var(--color-warning-light-2) !important;
  692. }
  693. </style>