Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
Project
Project
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
ReactWeb5
CivManage
Commits
9faf6988
Commit
9faf6988
authored
Feb 22, 2023
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: '1.新增选择流程弹窗'
parent
21903db1
Pipeline
#67829
passed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
98 additions
and
0 deletions
+98
-0
EditTypeModal.jsx
src/pages/bsmanager/workOrder/incident/EditTypeModal.jsx
+98
-0
No files found.
src/pages/bsmanager/workOrder/incident/EditTypeModal.jsx
0 → 100644
View file @
9faf6988
/* eslint-disable arrow-body-style */
/* eslint-disable no-useless-escape */
/* eslint-disable no-lonely-if */
/* eslint-disable no-unused-expressions */
/* eslint-disable prefer-template */
/* eslint-disable react/jsx-boolean-value */
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Modal
,
Collapse
,
notification
,
Upload
,
Input
,
Empty
,
Tooltip
,
Table
}
from
'antd'
;
import
{
GetImageOrderByFile
,
GetImageOrderByPath
}
from
'@/services/integratedLogin/api'
;
import
classnames
from
'classnames'
;
import
styles
from
'./PreviewModal.less'
;
const
{
Panel
}
=
Collapse
;
const
EditTypeModal
=
props
=>
{
const
{
callBackSubmit
=
()
=>
{},
visible
,
onCancel
,
tableData
}
=
props
;
const
[
imgData
,
setImgData
]
=
useState
([]);
const
[
pickItem
,
setPickItem
]
=
useState
(
''
);
const
[
chooseItem
,
setChooseItem
]
=
useState
(
''
);
const
[
keepItem
,
setKeepItem
]
=
useState
(
''
);
const
[
keepGroupName
,
setKeepGroupName
]
=
useState
([]);
const
[
search
,
setSearch
]
=
useState
(
''
);
const
[
selectedRowKeys
,
setSelectedRowKeys
]
=
useState
([]);
const
{
Search
}
=
Input
;
useEffect
(()
=>
{
if
(
visible
)
{
// update();
}
else
{
setSelectedRowKeys
([]);
}
},
[
visible
]);
// 提交
const
onSubmit
=
()
=>
{
if
(
selectedRowKeys
.
length
)
{
callBackSubmit
(
selectedRowKeys
.
toString
());
}
onCancel
();
};
const
columns
=
[
{
title
:
()
=>
<
span
style=
{
{
fontWeight
:
'bold'
}
}
>
流程名称
</
span
>,
dataIndex
:
'FlowName'
,
key
:
'FlowName'
,
width
:
150
,
ellipsis
:
true
,
align
:
'center'
,
},
];
// 单选框
const
rowSelection
=
{
type
:
'radio'
,
selectedRowKeys
,
onChange
:
(
RowKeys
,
Rows
)
=>
{
setSelectedRowKeys
(
RowKeys
);
},
};
return
(
<
Modal
title=
"请选择流程"
style=
{
{
top
:
'100px'
}
}
width=
"1000px"
destroyOnClose
maskClosable=
{
false
}
cancelText=
"取消"
okText=
"确认"
{
...
props
}
onOk=
{
()
=>
onSubmit
()
}
forceRender=
{
true
}
getContainer=
{
false
}
>
{
tableData
.
length
>
0
?
(
<
Table
size=
"middle"
rowKey=
"ID"
bordered
style=
{
{
height
:
'15rem'
,
overflowY
:
'scroll'
,
marginLeft
:
'25px'
}
}
columns=
{
columns
}
dataSource=
{
tableData
}
pagination=
{
false
}
rowSelection=
{
rowSelection
}
/>
)
:
(
<
Empty
image=
{
Empty
.
PRESENTED_IMAGE_SIMPLE
}
description=
"暂无数据"
style=
{
{
height
:
'600px'
,
margin
:
'20px auto 0px auto'
,
paddingTop
:
'50px'
}
}
/>
)
}
</
Modal
>
);
};
export
default
EditTypeModal
;
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