运维管理平台前端
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.

67 lines
1.7 KiB

<template>
<PageWrapper dense>
<BasicTable @register="registerTable">
2 months ago
<template #bodyCell="{ column, record }">
2 months ago
<template v-if="column && record && column.key === 'action'">
<a-button type="link" @click="showAuditModal(record.id)">审核</a-button>
<a-button type="link" @click="showDrawer(record.id)">">详情</a-button>
</template>
</template>
</BasicTable>
2 months ago
<auditModal ref="auditModalRef" />
<detailDrawer ref="detailDrawerRef" />
</PageWrapper>
</template>
<script setup lang="ts">
import { PageWrapper } from '@/components/Page';
import { BasicTable, useTable } from '@/components/Table';
import { list } from './api';
import { formSchemas, columns } from './data';
2 months ago
import auditModal from './auditModal.vue';
import detailDrawer from './detailDrawer.vue';
import { ref } from 'vue';
const [registerTable] = useTable({
rowSelection: {
type: 'checkbox',
},
title: '延期审核',
api: list,
showIndexColumn: true,
rowKey: 'id',
useSearchForm: true,
formConfig: {
schemas: formSchemas,
2 months ago
name: 'delayAudit',
baseColProps: {
xs: 24,
sm: 24,
md: 24,
lg: 6,
},
},
columns: columns,
actionColumn: {
width: 200,
title: '操作',
key: 'action',
fixed: 'right',
},
});
//弹窗内容
2 months ago
const auditModalRef = ref();
const showAuditModal = (id:any) => {
auditModalRef.value.showModal(id);
};
//详情抽屉
const detailDrawerRef = ref();
2 months ago
const showDrawer = (id:any) => {
detailDrawerRef.value.showDrawer(id);
};
// 前往审批记录页面
</script>
<style scoped></style>