/* * @Author: your name * @Date: 2022-02-21 09:40:09 * @LastEditTime: 2022-02-21 11:42:38 * @LastEditors: Please set LastEditors * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE * @FilePath: /MedicalQualificationMana/src/pages/qualificationReview/index.tsx */ import { useEffect, useState } from 'react' import KCTable from "@/components/kcTable"; import MQPageContainer from "@/components/MQPageContainer"; import { getMineQualifiApplyList, QualificationDataType } from "@/service/qualification"; import { ProColumns } from "@ant-design/pro-table"; import { ProFormRadio, ProFormCheckbox, ProFormDependency, ProFormTextArea,ProFormDigit } from '@ant-design/pro-form'; import { Button, Form } from 'antd'; import KCModal from '@/components/KCModal'; import './style.less'; export default () => { const columns: ProColumns[] = [ { title: 'id', dataIndex: 'id', hideInTable: true }, { title: '资质类目', dataIndex: 'qualificationClass', hideInSearch: false, valueType: 'cascader' }, { title: '资质编号', dataIndex: 'qualificationNum', }, { title: '资质名称', dataIndex: 'qualificationName', hideInSearch: false }, { title: '被授予人', dataIndex: '', hideInSearch: false }, { title: '佐证材料', dataIndex: 'supportMaterial', }, { title: '授权依据', dataIndex: 'authorBasis', }, { title: '科审', dataIndex: '1', }, { title: '医务审', dataIndex: '2', }, { title: '院审', dataIndex: '3', }, { title: '申请日期', dataIndex: 'applyDate', hideInSearch: false, valueType: 'dateRange' } ] const [modalVisible, setModalVisible] = useState(false); const [modalActType, setModalActType] = useState<'review' | 'authorize' | undefined>(undefined); const getTableData = async (params: any) => { const resp = await getMineQualifiApplyList({ params }); if (resp) { const { list = [], current, totalCount } = resp; return { data: list, success: true, total: totalCount, } } return { data: [], success: false } } const onVisibleChangeHandle = (bool: boolean) => { setModalVisible(bool); } const showModalHandle = (type: 'review' | 'authorize') => { setModalVisible(true); setModalActType(type) } useEffect(() => { }, []) return ( { modalActType == 'review' ? ( //审核操作 <> { ({ name }) => { return ( <> ) } } ) : ( <> { ({ name }) => { return ( ) } }
16个 资质临时授,起止时间为16个16个'}}>
) }
getTableData(params)} rowKey='id' toolbar={{ actions: [ , , ] }} />
); }