运维管理平台前端
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

54 lines
1.3 KiB

2 weeks ago
<template>
<PageWrapper dense>
<BasicTable @register="registerTable">
<template #toolbar>
<a-button type="primary" @click="showModal(1)">新增</a-button>
</template>
</BasicTable>
<addModal ref="addModalRef" @success="reload()"/>
2 weeks ago
</PageWrapper>
</template>
<script setup lang="ts">
import { PageWrapper } from '@/components/Page';
import { BasicTable, useTable } from '@/components/Table';
import { list, removeByIds } from './api';
import { formSchemas, columns } from './data';
import addModal from './addModal.vue';
import { ref } from 'vue';
defineOptions({ name: 'zero' });
const [registerTable, { reload }] = useTable({
title: '站点校零校准分析',
api: list,
showIndexColumn: true,
rowKey: 'id',
useSearchForm: true,
formConfig: {
schemas: formSchemas,
name: 'zero',
baseColProps: {
xs: 24,
sm: 24,
md: 24,
lg: 6,
},
},
immediate: true,
columns: columns,
// actionColumn: {
// width: 300,
// title: '操作',
// key: 'action',
// fixed: 'right',
// },
2 weeks ago
});
//新增编辑弹窗
//详情,跳转
const addModalRef = ref();
const showModal = (type: any) => {
addModalRef.value.showModal(type);
};
</script>
<style scoped></style>