Commit 461e2d47 by zhaochengxiang

模型批量送审

parent 46d03551
......@@ -8,12 +8,7 @@ import produce from 'immer'
import { Action, CatalogId, Editable, Holder, ModelerId, PermitCheckOut, ReadOnly, StateId } from '../../../../util/constant'
const FC = (props) => {
const { visible, items = Array.from({ length: 10 }).map((_, i) => ({
name: `模型${i}`,
cnName: `模型${i}`,
remark: '很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长很长的',
id: i,
})), onCancel } = props
const { visible, items, onCancel } = props
const [waiting, setWaiting] = React.useState(false)
const basicRef = React.useRef()
......@@ -142,7 +137,7 @@ const Basic = React.forwardRef(function ({}, ref) {
>
<Form.Item
label='送审说明'
name="remark"
name="approvalName"
style={{ marginBottom }}
rules={[{ required: true, message: '请填写送审说明!' }]}
>
......@@ -260,7 +255,11 @@ const List = React.forwardRef(function ({ items }, ref) {
const [tableData, setTableData] = React.useState(items)
React.useImperativeHandle(ref, () => ({
tableData,
tableData: (tableData??[]).map(item => ({
id: item.id,
name: item.name,
})),
}), [tableData])
const cols = [
......@@ -325,7 +324,7 @@ const List = React.forwardRef(function ({ items }, ref) {
},
{
title: '送审备注',
dataIndex: 'reviewRemark',
dataIndex: 'sendReviewComment',
render: (_, __, index) => (
<Input.TextArea rows={1}
autoSize={{ minRows: 1, maxRows: 3 }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment