42 lines
1.3 KiB
Vue
42 lines
1.3 KiB
Vue
|
|
<template>
|
||
|
|
<div class="default-main">
|
||
|
|
<TableHeader></TableHeader>
|
||
|
|
<Table ref="tableRef" />
|
||
|
|
</div>
|
||
|
|
</template>
|
||
|
|
<script setup lang="ts">
|
||
|
|
import { ref, onMounted, provide } from 'vue'
|
||
|
|
import TableStore from '@/utils/tableStore'
|
||
|
|
import Table from '@/components/table/index.vue'
|
||
|
|
import TableHeader from '@/components/table/header/index.vue'
|
||
|
|
|
||
|
|
defineOptions({
|
||
|
|
name: 'govern/manage/basic/template'
|
||
|
|
})
|
||
|
|
const tableStore = new TableStore({
|
||
|
|
url: '/system-boot/csDictData/list',
|
||
|
|
method: 'POST',
|
||
|
|
column: [
|
||
|
|
{ title: '数据分类', field: 'classId' },
|
||
|
|
{ title: '数据名称', field: 'name' },
|
||
|
|
{ title: '别名', field: 'otherName' },
|
||
|
|
{ title: '展示名称', field: 'showName' },
|
||
|
|
{ title: '相别', field: 'phase' },
|
||
|
|
{ title: '单位', field: 'unit' },
|
||
|
|
{ title: '基础数据类型', field: 'type' },
|
||
|
|
{ title: '数据谐波次数', field: 'harmStart' },
|
||
|
|
{ title: '数据统计方法', field: 'statMethod' },
|
||
|
|
{ title: '数据存储', field: 'classId' },
|
||
|
|
{ title: '数据来源', field: 'resourcesId' },
|
||
|
|
{ title: '操作', field: '操作' }
|
||
|
|
]
|
||
|
|
})
|
||
|
|
|
||
|
|
provide('tableStore', tableStore)
|
||
|
|
tableStore.table.params.searchState = 0
|
||
|
|
onMounted(() => {
|
||
|
|
tableStore.index()
|
||
|
|
})
|
||
|
|
const addMenu = () => {}
|
||
|
|
</script>
|