Commit a8553111 by zhaochengxiang

bug fix

parent aa6034ac
......@@ -1039,7 +1039,7 @@ const AssetAction = (props) => {
<span>
{element.name}
{
(currentAction==='add'||currentAction==='edit') && element.required && <span style={{ color: 'red' }}>*</span>
(currentAction==='add'||currentAction==='edit') && (element.required==='是') && <span style={{ color: 'red' }}>*</span>
}
</span>
}
......@@ -1052,7 +1052,7 @@ const AssetAction = (props) => {
<Form.Item
label=''
name={element.name}
rules={[{ required: element.required }]}
rules={[{ required: element.required === '是' }]}
style={{ marginBottom: 0 }}
>
{elementEditComponent(element)}
......@@ -1178,7 +1178,7 @@ const AssetAction = (props) => {
pagination={{
position: ['bottomLeft'],
size: 'small',
total: (tableData||[]).length,
total: (metadataColumnList||[]).length,
showTotal: (total) => `${total}`,
showSizeChanger: true,
current: pageNum,
......
......@@ -112,7 +112,6 @@ const FC = (props) => {
<Pagination
className="text-center mt-3"
showSizeChanger
showQuickJumper
onChange={(_pageNum, _pageSize) => {
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
}}
......@@ -123,7 +122,6 @@ const FC = (props) => {
pageSize={pageSize}
defaultCurrent={1}
total={(data||[]).length}
pageSizeOptions={[10,20,50,100]}
showTotal={total => ` ${total} `}
/>
</div>
......
......@@ -948,7 +948,6 @@ const ModelTable = (props) => {
!modelId && (data||[]).length>0 && <Pagination
className="text-center mt-3"
showSizeChanger
showQuickJumper
onChange={(_pageNum, _pageSize) => {
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
}}
......@@ -959,7 +958,6 @@ const ModelTable = (props) => {
pageSize={pageSize}
defaultCurrent={1}
total={(data||[]).length}
pageSizeOptions={[10,20,50]}
showTotal={total => ` ${total} `}
/>
}
......
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