|
@@ -6,6 +6,7 @@
|
|
|
:maxHeight="props.height ? props.height : tableHeight()"
|
|
:maxHeight="props.height ? props.height : tableHeight()"
|
|
|
@selection-change="handleSelectionChange"
|
|
@selection-change="handleSelectionChange"
|
|
|
@row-click="handleRowClick"
|
|
@row-click="handleRowClick"
|
|
|
|
|
+ @sort-change="handleSortChange"
|
|
|
>
|
|
>
|
|
|
<el-table-column width="35" v-if="isResolve || isRadio" fixed>
|
|
<el-table-column width="35" v-if="isResolve || isRadio" fixed>
|
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -40,6 +41,7 @@
|
|
|
:formatter="item.format ? (item.format2 ? dateFormatter : dateFormatter2) : undefined"
|
|
:formatter="item.format ? (item.format2 ? dateFormatter : dateFormatter2) : undefined"
|
|
|
:width="item.width"
|
|
:width="item.width"
|
|
|
:fixed="item.fixed ? true : false"
|
|
:fixed="item.fixed ? true : false"
|
|
|
|
|
+ :sortable="item.sortable || false"
|
|
|
/>
|
|
/>
|
|
|
<!-- 字典值渲染 -->
|
|
<!-- 字典值渲染 -->
|
|
|
<el-table-column
|
|
<el-table-column
|
|
@@ -645,6 +647,7 @@ const emit = defineEmits([
|
|
|
'print',
|
|
'print',
|
|
|
'selectionChange',
|
|
'selectionChange',
|
|
|
'row-click',
|
|
'row-click',
|
|
|
|
|
+ 'sortChange',
|
|
|
'checkIn',
|
|
'checkIn',
|
|
|
'upload',
|
|
'upload',
|
|
|
'check',
|
|
'check',
|
|
@@ -681,6 +684,10 @@ const handleRowClick = (row) => {
|
|
|
emit('row-click', row)
|
|
emit('row-click', row)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+const handleSortChange = (val) => {
|
|
|
|
|
+ emit('sortChange', val)
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
const handleCheckIn = (row) => {
|
|
const handleCheckIn = (row) => {
|
|
|
emit('checkIn', row)
|
|
emit('checkIn', row)
|
|
|
}
|
|
}
|