Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
a8553111
Commit
a8553111
authored
Dec 04, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
aa6034ac
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
7 deletions
+3
-7
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+3
-3
GrantedList.jsx
src/view/Manage/Model/Component/GrantedList.jsx
+0
-2
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+0
-2
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
a8553111
...
@@ -1039,7 +1039,7 @@ const AssetAction = (props) => {
...
@@ -1039,7 +1039,7 @@ const AssetAction = (props) => {
<span>
<span>
{element.name}
{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>
</span>
}
}
...
@@ -1052,7 +1052,7 @@ const AssetAction = (props) => {
...
@@ -1052,7 +1052,7 @@ const AssetAction = (props) => {
<Form.Item
<Form.Item
label=''
label=''
name={element.name}
name={element.name}
rules={[{ required: element.required }]}
rules={[{ required: element.required
=== '是'
}]}
style={{ marginBottom: 0 }}
style={{ marginBottom: 0 }}
>
>
{elementEditComponent(element)}
{elementEditComponent(element)}
...
@@ -1178,7 +1178,7 @@ const AssetAction = (props) => {
...
@@ -1178,7 +1178,7 @@ const AssetAction = (props) => {
pagination={{
pagination={{
position: ['bottomLeft'],
position: ['bottomLeft'],
size: 'small',
size: 'small',
total: (
tableData
||[]).length,
total: (
metadataColumnList
||[]).length,
showTotal: (total) => `
共
$
{
total
}
项
`,
showTotal: (total) => `
共
$
{
total
}
项
`,
showSizeChanger: true,
showSizeChanger: true,
current: pageNum,
current: pageNum,
...
...
src/view/Manage/Model/Component/GrantedList.jsx
View file @
a8553111
...
@@ -112,7 +112,6 @@ const FC = (props) => {
...
@@ -112,7 +112,6 @@ const FC = (props) => {
<Pagination
<Pagination
className="text-center mt-3"
className="text-center mt-3"
showSizeChanger
showSizeChanger
showQuickJumper
onChange={(_pageNum, _pageSize) => {
onChange={(_pageNum, _pageSize) => {
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
}}
}}
...
@@ -123,7 +122,6 @@ const FC = (props) => {
...
@@ -123,7 +122,6 @@ const FC = (props) => {
pageSize={pageSize}
pageSize={pageSize}
defaultCurrent={1}
defaultCurrent={1}
total={(data||[]).length}
total={(data||[]).length}
pageSizeOptions={[10,20,50,100]}
showTotal={total => `
共
$
{
total
}
条
`}
showTotal={total => `
共
$
{
total
}
条
`}
/>
/>
</div>
</div>
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
a8553111
...
@@ -948,7 +948,6 @@ const ModelTable = (props) => {
...
@@ -948,7 +948,6 @@ const ModelTable = (props) => {
!modelId && (data||[]).length>0 && <Pagination
!modelId && (data||[]).length>0 && <Pagination
className="text-center mt-3"
className="text-center mt-3"
showSizeChanger
showSizeChanger
showQuickJumper
onChange={(_pageNum, _pageSize) => {
onChange={(_pageNum, _pageSize) => {
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
setPagination({ pageNum: _pageNum, pageSize: _pageSize || 20 });
}}
}}
...
@@ -959,7 +958,6 @@ const ModelTable = (props) => {
...
@@ -959,7 +958,6 @@ const ModelTable = (props) => {
pageSize={pageSize}
pageSize={pageSize}
defaultCurrent={1}
defaultCurrent={1}
total={(data||[]).length}
total={(data||[]).length}
pageSizeOptions={[10,20,50]}
showTotal={total => `
共
$
{
total
}
条
`}
showTotal={total => `
共
$
{
total
}
条
`}
/>
/>
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment