|
|
@@ -268,6 +268,13 @@ const trackingTable = ref<any>({
|
|
|
headerRowStyle: {
|
|
|
backgroundColor: 'var(--color-table-header-bg)'
|
|
|
},
|
|
|
+ cellStyle: ({ column }) => {
|
|
|
+ if (column.title === 'Action' && themeStore.theme === 'dark') {
|
|
|
+ return {
|
|
|
+ backgroundColor: '#363940'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
menuConfig: {
|
|
|
body: {
|
|
|
options: [
|
|
|
@@ -617,18 +624,14 @@ defineExpose({
|
|
|
</template>
|
|
|
<!-- action操作的插槽 -->
|
|
|
<template #action="{ row }">
|
|
|
- <el-button
|
|
|
- class="recent_button el-button--blue"
|
|
|
- @click="SubscribeShipments(row)"
|
|
|
- :class="row.is_subscribe ? 'IsSubscribe' : ''"
|
|
|
- >
|
|
|
- <span v-if="row.is_subscribe" class="iconfont_icon">
|
|
|
- <svg class="iconfont" aria-hidden="true">
|
|
|
+ <el-button class="recent_button el-button--blue" @click="SubscribeShipments(row)">
|
|
|
+ <span v-if="row.is_subscribe" style="color: 'red'" class="iconfont_icon">
|
|
|
+ <svg class="iconfont" aria-hidden="true" style="fill: var(--color-theme)">
|
|
|
<use xlink:href="#icon-icon_marked_b"></use>
|
|
|
</svg>
|
|
|
</span>
|
|
|
- <span v-else class="iconfont_icon">
|
|
|
- <svg class="iconfont" aria-hidden="true">
|
|
|
+ <span v-else class="iconfont_icon" style="color: 'red'">
|
|
|
+ <svg class="iconfont" aria-hidden="true" style="color: 'red'">
|
|
|
<use xlink:href="#icon-icon_unmark_b"></use>
|
|
|
</svg>
|
|
|
</span>
|