|
@@ -18,7 +18,7 @@ const columnstest = ref([
|
|
|
field: 'reference_no',
|
|
field: 'reference_no',
|
|
|
displayName: 'Reference No. ',
|
|
displayName: 'Reference No. ',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -26,7 +26,7 @@ const columnstest = ref([
|
|
|
field: 'purchase',
|
|
field: 'purchase',
|
|
|
displayName: 'Purchase',
|
|
displayName: 'Purchase',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -34,7 +34,7 @@ const columnstest = ref([
|
|
|
field: 'house_bill_of_lading',
|
|
field: 'house_bill_of_lading',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -42,7 +42,7 @@ const columnstest = ref([
|
|
|
field: 'master_bill_of_lading',
|
|
field: 'master_bill_of_lading',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -50,7 +50,7 @@ const columnstest = ref([
|
|
|
field: 'vessel_name',
|
|
field: 'vessel_name',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -58,7 +58,7 @@ const columnstest = ref([
|
|
|
field: 'status',
|
|
field: 'status',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'status',
|
|
type: 'status',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -66,7 +66,7 @@ const columnstest = ref([
|
|
|
field: 'container_number',
|
|
field: 'container_number',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
@@ -74,33 +74,33 @@ const columnstest = ref([
|
|
|
field: 'service_type',
|
|
field: 'service_type',
|
|
|
displayName: '',
|
|
displayName: '',
|
|
|
type: 'normal',
|
|
type: 'normal',
|
|
|
- formatter:'',
|
|
|
|
|
|
|
+ formatter: '',
|
|
|
checked: true
|
|
checked: true
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
])
|
|
])
|
|
|
const ColumnSortValue = ref('')
|
|
const ColumnSortValue = ref('')
|
|
|
const SelectedValue = ref('')
|
|
const SelectedValue = ref('')
|
|
|
const ColumnSortoptions = [
|
|
const ColumnSortoptions = [
|
|
|
{
|
|
{
|
|
|
value: 'Option1',
|
|
value: 'Option1',
|
|
|
- label: 'Option1',
|
|
|
|
|
|
|
+ label: 'Option1'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: 'Option2',
|
|
value: 'Option2',
|
|
|
- label: 'Option2',
|
|
|
|
|
|
|
+ label: 'Option2'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: 'Option3',
|
|
value: 'Option3',
|
|
|
- label: 'Option3',
|
|
|
|
|
|
|
+ label: 'Option3'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: 'Option4',
|
|
value: 'Option4',
|
|
|
- label: 'Option4',
|
|
|
|
|
|
|
+ label: 'Option4'
|
|
|
},
|
|
},
|
|
|
{
|
|
{
|
|
|
value: 'Option5',
|
|
value: 'Option5',
|
|
|
- label: 'Option5',
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ label: 'Option5'
|
|
|
|
|
+ }
|
|
|
]
|
|
]
|
|
|
const sortOptions = ref([
|
|
const sortOptions = ref([
|
|
|
{
|
|
{
|
|
@@ -113,7 +113,6 @@ const sortOptions = ref([
|
|
|
}
|
|
}
|
|
|
])
|
|
])
|
|
|
|
|
|
|
|
-const loadingState = useLoadingState()
|
|
|
|
|
const tableLoadingColumn = ref(false)
|
|
const tableLoadingColumn = ref(false)
|
|
|
const tableLoadingTable = ref(false)
|
|
const tableLoadingTable = ref(false)
|
|
|
const exportLoading = ref(false)
|
|
const exportLoading = ref(false)
|
|
@@ -166,10 +165,10 @@ const getTableColumns = async () => {
|
|
|
// tableLoadingColumn.value = true
|
|
// tableLoadingColumn.value = true
|
|
|
tableData.value.columns = handleColumns(columnstest.value)
|
|
tableData.value.columns = handleColumns(columnstest.value)
|
|
|
emit('getManageCoulumns', columnstest.value)
|
|
emit('getManageCoulumns', columnstest.value)
|
|
|
- nextTick(() => {
|
|
|
|
|
- tableRef.value && autoWidth(tableData.value, tableRef.value)
|
|
|
|
|
- tableLoadingColumn.value = false
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ // nextTick(() => {
|
|
|
|
|
+ // tableRef.value && autoWidth(tableData.value, tableRef.value)
|
|
|
|
|
+ // tableLoadingColumn.value = false
|
|
|
|
|
+ // })
|
|
|
}
|
|
}
|
|
|
// 获取表格数据
|
|
// 获取表格数据
|
|
|
const getTableData = (isPageChange?: boolean) => {
|
|
const getTableData = (isPageChange?: boolean) => {
|
|
@@ -201,7 +200,7 @@ const getTableData = (isPageChange?: boolean) => {
|
|
|
})
|
|
})
|
|
|
.finally(() => {
|
|
.finally(() => {
|
|
|
nextTick(() => {
|
|
nextTick(() => {
|
|
|
- tableRef.value && autoWidth(tableData.value, tableRef.value)
|
|
|
|
|
|
|
+ // tableRef.value && autoWidth(tableData.value, tableRef.value)
|
|
|
tableLoadingTable.value = false
|
|
tableLoadingTable.value = false
|
|
|
})
|
|
})
|
|
|
})
|
|
})
|
|
@@ -212,11 +211,11 @@ const handleSearch = (val: any) => {
|
|
|
tableLoadingTable.value = true
|
|
tableLoadingTable.value = true
|
|
|
setTimeout(() => {
|
|
setTimeout(() => {
|
|
|
tableLoadingTable.value = false
|
|
tableLoadingTable.value = false
|
|
|
- }, 1000);
|
|
|
|
|
|
|
+ }, 1000)
|
|
|
}
|
|
}
|
|
|
// 下载
|
|
// 下载
|
|
|
const getExportTableData = (type: string, column: any) => {
|
|
const getExportTableData = (type: string, column: any) => {
|
|
|
- if(column) {
|
|
|
|
|
|
|
+ if (column) {
|
|
|
const newColumns = column.map((item: any) => {
|
|
const newColumns = column.map((item: any) => {
|
|
|
let curColumn: any = {
|
|
let curColumn: any = {
|
|
|
title: item.displayName != '' ? item.displayName : item.title,
|
|
title: item.displayName != '' ? item.displayName : item.title,
|
|
@@ -263,12 +262,14 @@ defineExpose({
|
|
|
>
|
|
>
|
|
|
<div class="SettingTable">
|
|
<div class="SettingTable">
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
- <div class="Title">
|
|
|
|
|
- Report Data Review
|
|
|
|
|
- </div>
|
|
|
|
|
|
|
+ <div class="Title">Report Data Review</div>
|
|
|
<div class="flex">
|
|
<div class="flex">
|
|
|
<span class="sort-text">Sort by:</span>
|
|
<span class="sort-text">Sort by:</span>
|
|
|
- <el-select style="width: 160px;margin: 0 8px;" v-model="ColumnSortValue" placeholder="Please select...">
|
|
|
|
|
|
|
+ <el-select
|
|
|
|
|
+ style="width: 160px; margin: 0 8px"
|
|
|
|
|
+ v-model="ColumnSortValue"
|
|
|
|
|
+ placeholder="Please select..."
|
|
|
|
|
+ >
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in ColumnSortoptions"
|
|
v-for="item in ColumnSortoptions"
|
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -276,7 +277,7 @@ defineExpose({
|
|
|
:value="item.value"
|
|
:value="item.value"
|
|
|
/>
|
|
/>
|
|
|
</el-select>
|
|
</el-select>
|
|
|
- <el-select style="width: 124px;" v-model="SelectedValue" placeholder="Please select...">
|
|
|
|
|
|
|
+ <el-select style="width: 124px" v-model="SelectedValue" placeholder="Please select...">
|
|
|
<el-option
|
|
<el-option
|
|
|
v-for="item in sortOptions"
|
|
v-for="item in sortOptions"
|
|
|
:key="item.value"
|
|
:key="item.value"
|
|
@@ -288,10 +289,10 @@ defineExpose({
|
|
|
</div>
|
|
</div>
|
|
|
<vxe-grid
|
|
<vxe-grid
|
|
|
ref="tableRef"
|
|
ref="tableRef"
|
|
|
- :style="{ border: 'none'}"
|
|
|
|
|
|
|
+ :style="{ border: 'none' }"
|
|
|
v-bind="tableData"
|
|
v-bind="tableData"
|
|
|
:height="containerHeight"
|
|
:height="containerHeight"
|
|
|
- v-vloading="tableLoadingColumn || tableLoadingTable || loadingState.trackingTableLoading"
|
|
|
|
|
|
|
+ v-vloading="tableLoadingColumn"
|
|
|
>
|
|
>
|
|
|
<!-- 空数据时的插槽 -->
|
|
<!-- 空数据时的插槽 -->
|
|
|
<template #empty>
|
|
<template #empty>
|
|
@@ -364,4 +365,4 @@ defineExpose({
|
|
|
font-size: 14px;
|
|
font-size: 14px;
|
|
|
font-weight: 700;
|
|
font-weight: 700;
|
|
|
}
|
|
}
|
|
|
-</style>
|
|
|
|
|
|
|
+</style>
|