表格模版修改

This commit is contained in:
仲么了
2024-02-26 20:36:18 +08:00
parent c5d953ba49
commit ed90f125be
3 changed files with 12 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class='default-main'>
<div>
<!-- 表头 -->
<TableHeader date-picker>
<template v-slot:operation>
@@ -17,8 +17,10 @@ import { ElMessageBox, ElMessage } from 'element-plus'
import TableStore from '@/utils/tableStore'
import Table from '@/components/table/index.vue'
import TableHeader from '@/components/table/header/index.vue'
import { mainHeight } from '@/utils/layout'
const tableStore = new TableStore({
publicHeight: 60,
url: '/user-boot/user/list',
method: 'POST',
column: [
@@ -115,7 +117,6 @@ const tableStore = new TableStore({
]
}
],
loadCallback: () => {
tableStore.table.data.forEach((item: any) => {
item.deptName = item.deptName || '/'
@@ -135,7 +136,6 @@ const tableStore = new TableStore({
})
}
})
provide('tableStore', tableStore)
tableStore.table.params.searchState = 1
tableStore.table.params.casualUser = -1
@@ -146,6 +146,5 @@ onMounted(() => {
})
const addUser = () => {
popupEdit.value.open('新增用户')
}
</script>