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

68 lines
1.8 KiB

3 months ago
<template>
<PageWrapper dense>
<BasicTable @register="registerTable">
<template #toolbar>
3 months ago
<a-button type="primary" @click="showFaultModal">故障上报</a-button>
<a-button type="primary" @click="showFaultModal">批量上报</a-button>
<a-button type="primary" @click="showDrawer">派遣</a-button>
3 months ago
</template>
<template #bodyCell="{ column, record }">
<template v-if="column && record && column.key === 'action'"> </template>
</template>
</BasicTable>
3 months ago
<faultModal ref="falutModalRef" />
<detailDrawer ref="detailDrawerRef" @open-modal="showFaultModal" />
3 months ago
</PageWrapper>
</template>
<script setup lang="ts">
import { PageWrapper } from '@/components/Page';
import { BasicTable, useTable } from '@/components/Table';
3 months ago
import { list } from './api';
3 months ago
import { formSchemas, columns } from './data';
3 months ago
import faultModal from './faultModal.vue';
import detailDrawer from './detailDrawer.vue';
import { ref } from 'vue';
3 months ago
3 months ago
const [registerTable] = useTable({
3 months ago
rowSelection: {
type: 'checkbox',
},
title: '工单派遣',
api: list,
showIndexColumn: true,
rowKey: 'id',
useSearchForm: true,
formConfig: {
schemas: formSchemas,
name: 'patroling',
baseColProps: {
xs: 24,
sm: 24,
md: 24,
lg: 6,
},
},
columns: columns,
actionColumn: {
width: 200,
title: '操作',
key: 'action',
fixed: 'right',
},
});
3 months ago
//弹窗内容
const falutModalRef = ref();
const showFaultModal = () => {
falutModalRef.value.showModal();
};
//详情抽屉
const detailDrawerRef = ref();
const showDrawer = () => {
detailDrawerRef.value.showDrawer();
};
3 months ago
// 前往审批记录页面
</script>
<style scoped></style>