删减无用组件,增加readme注释

This commit is contained in:
linxd
2025-06-30 09:45:52 +08:00
parent d775dce037
commit d822afaa9e
3 changed files with 6 additions and 56 deletions

View File

@ -1 +1,6 @@
dva 模块
dva 模块
supplierAnnualTaskManage 年审任务功能模块
supplierTaskManage 年审任务功能模块

View File

@ -1,50 +0,0 @@
import React from 'react';
import { Modal, Form, Row, Col, InputNumber } from 'antd';
import type { DeptWeightItem } from '@/servers/types/supplierEvaluateTask';
interface WeightSettingModalProps {
visible: boolean;
onCancel: () => void;
onOk: () => void;
taskDeptWeightList: DeptWeightItem[];
form: any;
}
const WeightSettingModal: React.FC<WeightSettingModalProps> = ({
visible,
onCancel,
onOk,
taskDeptWeightList,
form,
}) => {
return (
<Modal
title="设置评分单位权重"
visible={visible}
onOk={onOk}
onCancel={onCancel}
>
<Form form={form} layout="horizontal">
<Row gutter={16}>
{taskDeptWeightList.map((item) => (
<Col span={12} key={item.weightDept}>
<Form.Item
key={item.weightDept}
label={item.weightDeptName}
name={['taskDeptWeightList', item.weightDept]}
rules={[
{ required: true, message: '请输入权重值' },
{ type: 'number', min: 0, message: '请输入大于等于0的数值' },
]}
>
<InputNumber min={0} max={100} style={{ width: '100%' }} />
</Form.Item>
</Col>
))}
</Row>
</Form>
</Modal>
);
};
export default WeightSettingModal;

View File

@ -1,15 +1,10 @@
import SupplierTable from './SupplierTable';
import BatchEvaluatorModal from './BatchEvaluatorModal';
import SupplierEvaluatorModal from './SupplierEvaluatorModal';
import WeightSettingModal from './WeightSettingModal';
// 日志组件版本
console.log('EvaluatorComponents version: 1.0.1');
export {
SupplierTable,
BatchEvaluatorModal,
SupplierEvaluatorModal,
WeightSettingModal,
// 导出的所有组件
};