去除日志,表格宽度
This commit is contained in:
@@ -207,13 +207,13 @@ onMounted(async () => {
|
||||
//假分页后用data刷新
|
||||
const refreshTable = async () => {
|
||||
try {
|
||||
console.log('表格刷新')
|
||||
|
||||
patternId.value = dictStore.getDictData('Pattern').find(item => item.name === modeStore.currentMode)?.id
|
||||
const result = await getPlanList({ patternId: patternId.value })
|
||||
tableData.value = buildTree(result.data as any[])
|
||||
pageTotal.value = tableData.value.length
|
||||
updateCurrentPageData(tableData.value)
|
||||
console.log('表格刷新成功')
|
||||
|
||||
} catch (error) {
|
||||
tableData.value = []
|
||||
ElMessage.error('获取计划列表失败')
|
||||
@@ -225,7 +225,7 @@ watch(
|
||||
() => tableData.value,
|
||||
newVal => {
|
||||
if (childrenPlanView.value && newVal) {
|
||||
console.log('监听 tableData 变化', newVal)
|
||||
|
||||
childrenPlanView.value.handleTableDataUpdate?.(newVal)
|
||||
updateCurrentPageData(newVal)
|
||||
}
|
||||
@@ -309,7 +309,7 @@ const updateCurrentPageData = (data = tableData.value) => {
|
||||
const start = (currentPage.value - 1) * pageSize.value
|
||||
const end = start + pageSize.value
|
||||
currentPageData.value = data.slice(start, end)
|
||||
console.log('currentPageData', currentPageData.value)
|
||||
|
||||
}
|
||||
|
||||
const dataSourceType = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user