feat: 新增table获取数据总量方法

This commit is contained in:
lilinyuan
2024-06-19 11:25:50 +08:00
parent 94bb4ce943
commit f812b4af4d

View File

@@ -144,7 +144,7 @@ const localData = reactive({
checkGroup: []
})
const emits = defineEmits(['headBtnClick', 'selectionChange', 'rowClick', 'rowDblclick', 'getBaseQuery', 'cellClick'])
const emits = defineEmits(['headBtnClick', 'selectionChange', 'rowClick', 'rowDblclick', 'getBaseQuery', 'cellClick', 'getTotal'])
const handleClickBtns = (key) => {
emits('headBtnClick', key)
@@ -211,6 +211,7 @@ const getList = async () => {
}
if(data.total){
localData.total = data.total
emits('getTotal', localData.total)
}
localData.loading = false
} else {