新增页面

This commit is contained in:
GGJ
2024-01-16 16:31:11 +08:00
parent 7da7f5d803
commit 29840e6389
9 changed files with 400 additions and 44 deletions

View File

@@ -0,0 +1,50 @@
<template>
<div class="default-main" :style="{ height: pageHeight.height }">
<vxe-table
v-loading="tableStore.table.loading"
height="auto"
auto-resize
v-bind="defaultAttribute"
:data="tableStore.table.data"
:column-config="{ resizable: true }"
:tree-config="{}"
>
<vxe-column field="name" align="left" title="名称" tree-node></vxe-column>
<vxe-column field="area" title="区域">
<template #default="{ row }">
{{ row.area || '/' }}
</template>
</vxe-column>
<vxe-column field="remark" title="备注">
<template #default="{ row }">
{{ row.remark || '/' }}
</template>
</vxe-column>
</vxe-table>
</div>
</template>
<script setup lang="ts">
import { ref, onMounted, provide } from 'vue'
import TableStore from '@/utils/tableStore'
import { defaultAttribute } from '@/components/table/defaultAttribute'
import { mainHeight } from '@/utils/layout'
defineOptions({
name: 'govern/manage/engineering'
})
const pageHeight = mainHeight(20)
const tableStore = new TableStore({
url: '/cs-device-boot/csLedger/getProjectTree',
method: 'POST',
column: [],
loadCallback: () => {}
})
provide('tableStore', tableStore)
onMounted(() => {
tableStore.index()
})
const addMenu = () => {}
</script>