|
@@ -268,6 +268,13 @@ const trackingTable = ref<any>({
|
|
|
headerRowStyle: {
|
|
headerRowStyle: {
|
|
|
backgroundColor: 'var(--color-table-header-bg)'
|
|
backgroundColor: 'var(--color-table-header-bg)'
|
|
|
},
|
|
},
|
|
|
|
|
+ cellStyle: ({ column }) => {
|
|
|
|
|
+ if (column.title === 'Action' && themeStore.theme === 'dark') {
|
|
|
|
|
+ return {
|
|
|
|
|
+ backgroundColor: '#363940'
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ },
|
|
|
menuConfig: {
|
|
menuConfig: {
|
|
|
body: {
|
|
body: {
|
|
|
options: [
|
|
options: [
|
|
@@ -617,6 +624,18 @@ defineExpose({
|
|
|
</template>
|
|
</template>
|
|
|
<!-- action操作的插槽 -->
|
|
<!-- action操作的插槽 -->
|
|
|
<template #action="{ row }">
|
|
<template #action="{ row }">
|
|
|
|
|
+ <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" style="color: 'red'">
|
|
|
|
|
+ <svg class="iconfont" aria-hidden="true" style="color: 'red'">
|
|
|
|
|
+ <use xlink:href="#icon-icon_unmark_b"></use>
|
|
|
|
|
+ </svg>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ </el-button>
|
|
|
<el-button
|
|
<el-button
|
|
|
v-if="row?.['Mode'] !== 'Air Freight' && canEdiVgm"
|
|
v-if="row?.['Mode'] !== 'Air Freight' && canEdiVgm"
|
|
|
@click="handleVGM(row)"
|
|
@click="handleVGM(row)"
|
|
@@ -626,22 +645,6 @@ defineExpose({
|
|
|
<span class="font_family icon-icon_vgm_b"></span>
|
|
<span class="font_family icon-icon_vgm_b"></span>
|
|
|
<span style="font-size: 12px">VGM</span>
|
|
<span style="font-size: 12px">VGM</span>
|
|
|
</el-button>
|
|
</el-button>
|
|
|
- <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">
|
|
|
|
|
- <use xlink:href="#icon-icon_marked_b"></use>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </span>
|
|
|
|
|
- <span v-else class="iconfont_icon">
|
|
|
|
|
- <svg class="iconfont" aria-hidden="true">
|
|
|
|
|
- <use xlink:href="#icon-icon_unmark_b"></use>
|
|
|
|
|
- </svg>
|
|
|
|
|
- </span>
|
|
|
|
|
- </el-button>
|
|
|
|
|
</template>
|
|
</template>
|
|
|
<!-- Transportation Mode字段的插槽 -->
|
|
<!-- Transportation Mode字段的插槽 -->
|
|
|
<template #mode="{ row, column }">
|
|
<template #mode="{ row, column }">
|