<template>
    <myTable :baseData="baseData" :project="project" editPath="project_document"></myTable>
</template>

<script setup>

import { ref, reactive, defineProps } from "vue"
import myTable from "./myTable.vue"
import { apiProjectdocumentLists } from '@/api/project_document'

const props = defineProps({
    project: Object
})



const baseData = reactive({
    fetchFun: apiProjectdocumentLists,
    tit: "文档",
    queryParams: { project_id: props.project.id },
    columnList: [
        { label: '项目名称', prop: 'project_name' },
        { label: '项目编码', prop: 'project_code' },
        { label: '文档大类', prop: 'large_category' },
        { label: '文档中类', prop: 'middle_category' },
        { label: '文档编号', prop: 'code' },
        { label: '文档名称', prop: 'name' },
        { label: '版本号', prop: 'version' },

    ]
})

</script>

