|
|
@@ -13,7 +13,7 @@ const columnstest = ref([
|
|
|
{
|
|
|
field: '_rules_type_display',
|
|
|
title: 'Event',
|
|
|
- type: 'normal',
|
|
|
+ type: 'link',
|
|
|
formatter: ''
|
|
|
},
|
|
|
{
|
|
|
@@ -76,6 +76,11 @@ const handleColumns = (columns: any) => {
|
|
|
...curColumn,
|
|
|
formatter: ({ cellValue }: any) => formatTimezone(cellValue)
|
|
|
}
|
|
|
+ } else if (item.type === 'link') {
|
|
|
+ curColumn = {
|
|
|
+ ...curColumn,
|
|
|
+ slots: { default: 'trackingNo' }
|
|
|
+ }
|
|
|
}
|
|
|
return curColumn
|
|
|
})
|
|
|
@@ -146,6 +151,7 @@ const deleteMoniTable = (row: any) => {
|
|
|
|
|
|
// 编辑表格数据
|
|
|
const handleedit = ({ row }: any) => {
|
|
|
+ console.log(row)
|
|
|
sessionStorage.setItem('activeTab', 'Monitoring Settings')
|
|
|
sessionStorage.setItem('editTableid', row.id)
|
|
|
sessionStorage.setItem('editTablerules_type', row.rules_type)
|
|
|
@@ -189,6 +195,15 @@ onMounted(() => {
|
|
|
</template>
|
|
|
</TableEmpty>
|
|
|
</template>
|
|
|
+ <!-- Tracking No字段的插槽 -->
|
|
|
+ <template #trackingNo="{ row, column }">
|
|
|
+ <span
|
|
|
+ style="color: var(--color-theme); cursor: pointer"
|
|
|
+ @click="handleedittow(row)"
|
|
|
+ >
|
|
|
+ {{ row[column.field] }}
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
<template #action="{ row }">
|
|
|
<el-button class="el-button--blue" style="height: 24px" @click="handleedittow(row)">
|
|
|
<span class="font_family icon-icon_edit_b"></span>
|