删减无用组件,增加readme注释
This commit is contained in:
@ -1 +1,6 @@
|
||||
dva 模块
|
||||
dva 模块
|
||||
|
||||
|
||||
supplierAnnualTaskManage 年审任务功能模块
|
||||
|
||||
supplierTaskManage 年审任务功能模块
|
@ -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;
|
@ -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,
|
||||
// 导出的所有组件
|
||||
};
|
||||
|
Reference in New Issue
Block a user