|
@@ -323,13 +323,11 @@ yzMitt.on('scrollEndAndTwinkle', async (val: any) => {
|
|
|
await nextTick()
|
|
|
await sleep(500)
|
|
|
if (queryParam.value.sort === OrderBy.asc) {
|
|
|
- let endRow = tempYzData.value[tempYzData.value.length - 1]
|
|
|
- // 滚动到最后一行
|
|
|
- await tableRef.value?.scrollToRow(endRow, 'actOrderNo');
|
|
|
+ const tmp = tableRef.value!.getData()
|
|
|
+ await tableRef.value!.scrollTo(0, tmp.length * 24)
|
|
|
} else {
|
|
|
await tableRef.value?.scrollTo(0, 0);
|
|
|
}
|
|
|
-
|
|
|
})
|
|
|
|
|
|
yzMitt.on('setOrderNoTwinkle', async (val: number) => {
|
|
@@ -338,8 +336,7 @@ yzMitt.on('setOrderNoTwinkle', async (val: number) => {
|
|
|
await sleep(500)
|
|
|
if (queryParam.value.sort === OrderBy.asc) {
|
|
|
const tmp = tableRef.value!.getData()
|
|
|
- const endRow = tmp[tmp.length - 1]
|
|
|
- await tableRef.value?.scrollToRow(endRow, 'actOrderNo')
|
|
|
+ tableRef.value!.scrollTo(0, tmp.length * 24)
|
|
|
} else {
|
|
|
await tableRef.value?.scrollTo(0, 0);
|
|
|
}
|
|
@@ -356,7 +353,6 @@ yzMitt.on('getSelectedData', () => {
|
|
|
height="auto"
|
|
|
sync-resize
|
|
|
auto-resize
|
|
|
- field="actOrderNo"
|
|
|
:menu-config="menuConfig"
|
|
|
@menu-click="tableRightClick"
|
|
|
@cell-dblclick="setDefaultStopTime"
|
|
@@ -364,7 +360,7 @@ yzMitt.on('getSelectedData', () => {
|
|
|
:scroll-x="{gt: 40,enabled: false}"
|
|
|
:scroll-y="{gt: 0,enabled: true}"
|
|
|
:column-config="{resizable: true}"
|
|
|
- :row-config="{height: 24, isHover: true}"
|
|
|
+ :row-config="{height: 24, isHover: true, keyField:'actOrderNo'}"
|
|
|
class="vxe-padding_zero vxe-header-max_content hl-style"
|
|
|
header-row-class-name="padding_zero"
|
|
|
show-header-overflow
|