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
c7b316cc
Commit
c7b316cc
authored
3 years ago
by
邓超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 优化工作流编辑器选择角色机构默认承办人交互,优化台账、事件、流程左侧树交互
parent
a22038d8
Show whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
127 additions
and
39 deletions
+127
-39
index.jsx
src/components/ExpendableTree/index.jsx
+5
-0
index.tsx
src/components/Upload/index.tsx
+0
-1
BasicLayout.jsx
src/layouts/BasicLayout.jsx
+1
-0
standingBook.jsx
src/pages/bsmanager/base/standingBook/standingBook.jsx
+10
-3
standingBook.less
src/pages/bsmanager/base/standingBook/standingBook.less
+3
-0
incident.jsx
src/pages/bsmanager/workOrder/incident/incident.jsx
+9
-2
incident.less
src/pages/bsmanager/workOrder/incident/incident.less
+4
-4
flow.jsx
src/pages/bsmanager/workOrder/workFlow/flow.jsx
+9
-2
flow.less
src/pages/bsmanager/workOrder/workFlow/flow.less
+6
-2
NodeModal.jsx
...Edit/workFlowComponents/flowChartComponents/NodeModal.jsx
+30
-8
RoalChoose.jsx
...ts/flowChartComponents/nodeModalComponents/RoalChoose.jsx
+17
-5
RoalChoose.less
...s/flowChartComponents/nodeModalComponents/RoalChoose.less
+24
-1
RoleModal.jsx
...Manage/projectManage/components/RolseSelect/RoleModal.jsx
+3
-9
index.jsx
src/pages/productCenter/mobileConfig/index.jsx
+1
-1
index.jsx
src/pages/productCenter/webConfig/index.jsx
+1
-1
SiteManage.jsx
src/pages/userCenter/siteManage/SiteManage.jsx
+4
-0
No files found.
src/components/ExpendableTree/index.jsx
View file @
c7b316cc
...
...
@@ -10,6 +10,10 @@ const getChildKeys = tree => {
export
default
props
=>
{
const
{
expandedKeys
,
onExpand
,
onSelect
,
selectedKeys
,
...
rest
}
=
props
;
const
[
epKeys
,
setEpKeys
]
=
useState
([
expandedKeys
]);
useEffect
(()
=>
{
console
.
log
(
expandedKeys
,
'expandedKeys'
);
setEpKeys
([
expandedKeys
]);
},
[
expandedKeys
]);
const
handleExpand
=
(
keys
,
{
expanded
,
node
})
=>
{
if
(
!
expanded
)
{
...
...
@@ -36,6 +40,7 @@ export default props => {
}
// eslint-disable-next-line no-unused-expressions
onSelect
&&
onSelect
(
keys
,
e
);
console
.
log
(
result
,
'result'
);
setEpKeys
(
result
);
};
...
...
This diff is collapsed.
Click to expand it.
src/components/Upload/index.tsx
View file @
c7b316cc
...
...
@@ -450,7 +450,6 @@ class PicturesWall extends React.Component<PicturesWallType> {
{imgBed.map((item, i) => {
if (item.moduleName == picType || item.moduleName == '
CityTemp
') {
const child = [...item.child] || [];
console.log(item,'
item
');
if (item.fileUrls.length > 0) {
child.push({
moduleName: item.moduleName,
...
...
This diff is collapsed.
Click to expand it.
src/layouts/BasicLayout.jsx
View file @
c7b316cc
...
...
@@ -42,6 +42,7 @@ const BasicLayout = props => {
.
filter
(
Boolean
);
const
handleMenuCollapse
=
()
=>
{};
// get children authority
matchRoutes
(
props
.
route
.
routes
,
props
.
location
.
pathname
);
return
(
<
ProLayout
logo=
{
()
=>
<
img
src=
{
logo
}
style=
{
{
width
:
'32px'
,
height
:
'32px'
}
}
alt=
""
/>
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/base/standingBook/standingBook.jsx
View file @
c7b316cc
...
...
@@ -14,7 +14,7 @@ import PageContainer from '@/components/BasePageContainer';
import
{
GetCM_Ledger_LoadLedgers
,
CM_Ledger_RmoveLedger
}
from
'@/services/standingBook/api'
;
import
AddModal
from
'./BookConfig'
;
import
styles
from
'./standingBook.less'
;
const
s
tandingBook
=
props
=>
{
const
S
tandingBook
=
props
=>
{
const
[
allData
,
setAllData
]
=
useState
([]);
const
[
tableData
,
setTableData
]
=
useState
([]);
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
...
...
@@ -25,6 +25,7 @@ const standingBook = props => {
const
[
isVisible
,
setIsVisible
]
=
useState
(
false
);
// 弹窗
const
[
isType
,
setIsType
]
=
useState
(
''
);
// 弹窗类型
const
[
pickItem
,
setPickItem
]
=
useState
(
''
);
const
[
hoverItemIndex
,
setHoverItemIndex
]
=
useState
(
0
);
// hover流程索引
const
{
Item
}
=
Form
;
const
editor
=
record
=>
{
...
...
@@ -281,12 +282,18 @@ const standingBook = props => {
className=
{
classnames
({
[
styles
.
listItem
]:
true
,
[
styles
.
pickItem
]:
item
===
pickItem
,
[
styles
.
listHover
]:
item
!==
pickItem
&&
item
===
hoverItemIndex
,
})
}
onClick=
{
e
=>
setPickItem
(
item
)
}
onMouseEnter=
{
()
=>
{
setHoverItemIndex
(
item
);
}
}
onMouseLeave=
{
()
=>
{
setHoverItemIndex
(
''
);
}
}
key=
{
index
}
>
{
item
}
(
{
allData
[
item
]
?
allData
[
item
].
length
:
''
}
)
{
item
===
pickItem
?
<
RightOutlined
/>
:
''
}
</
div
>
);
})
}
...
...
@@ -356,4 +363,4 @@ const standingBook = props => {
</
PageContainer
>
);
};
export
default
s
tandingBook
;
export
default
S
tandingBook
;
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/base/standingBook/standingBook.less
View file @
c7b316cc
...
...
@@ -37,6 +37,9 @@
padding: 8px 14px;
}
.pickItem {
background-color: #aed8fa;
}
.listHover {
background-color: #f5f6f9;
}
.ant-form-item {
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/incident/incident.jsx
View file @
c7b316cc
...
...
@@ -69,6 +69,7 @@ const incident = () => {
const
[
maxLength
,
setMaxLength
]
=
useState
(
0
);
const
[
pickItem
,
setPickItem
]
=
useState
(
''
);
const
[
hoverItemIndex
,
setHoverItemIndex
]
=
useState
(
0
);
// hover流程索引
const
columns
=
[
{
...
...
@@ -480,16 +481,22 @@ const incident = () => {
className=
{
classnames
({
[
styles
.
listItem
]:
true
,
[
styles
.
pickItem
]:
item
===
pickItem
,
[
styles
.
listHover
]:
item
!==
pickItem
&&
item
===
hoverItemIndex
,
})
}
onClick=
{
e
=>
{
setPickItem
(
item
);
setRember
(
index
);
setRember1
(
item
);
}
}
onMouseEnter=
{
()
=>
{
setHoverItemIndex
(
item
);
}
}
onMouseLeave=
{
()
=>
{
setHoverItemIndex
(
''
);
}
}
key=
{
index
}
>
{
item
}
(
{
tableData
[
item
]
?
tableData
[
item
].
length
:
''
}
)
{
' '
}
{
item
===
pickItem
?
<
RightOutlined
/>
:
''
}{
' '
}
{
item
}
(
{
tableData
[
item
]
?
tableData
[
item
].
length
:
''
}
)
</
div
>
))
}
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/incident/incident.less
View file @
c7b316cc
...
...
@@ -35,6 +35,9 @@
margin-top: -5px;
}
.pickItem {
background-color: #aed8fa;
}
.listHover {
background-color: #f5f6f9;
}
.contentContainers {
...
...
@@ -272,10 +275,7 @@
width: 100vm;
height: calc(100vh - 90px);
background: #ffffff;
.ant-table.ant-table-small
.ant-table-tbody
.ant-table-wrapper:only-child
.ant-table {
.ant-table.ant-table-small .ant-table-tbody .ant-table-wrapper:only-child .ant-table {
margin-left: 0;
}
.ant-table.ant-table-bordered > .ant-table-container {
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workFlow/flow.jsx
View file @
c7b316cc
...
...
@@ -3,7 +3,6 @@ import { useHistory } from 'react-router-dom';
import
{
reloadFlows
,
removeFlowExtend
}
from
'@/services/flow/flow'
;
import
{
Card
,
Space
,
Table
,
Popconfirm
,
Spin
,
Tooltip
,
notification
,
message
,
Button
}
from
'antd'
;
import
{
RightOutlined
,
DoubleLeftOutlined
,
DoubleRightOutlined
,
EditTwoTone
,
...
...
@@ -28,6 +27,7 @@ const Flow = () => {
const
[
treeLoading
,
setTreeLoading
]
=
useState
(
false
);
const
[
treeVisible
,
setTreeVisible
]
=
useState
(
true
);
const
[
pickItemIndex
,
setPickItemIndex
]
=
useState
(
0
);
// 选中流程索引
const
[
hoverItemIndex
,
setHoverItemIndex
]
=
useState
(
0
);
// hover流程索引
const
[
visible
,
setVisible
]
=
useState
({
processConfig
:
false
,
order
:
false
,
...
...
@@ -239,7 +239,14 @@ const Flow = () => {
className=
{
classnames
({
[
styles
.
listItem
]:
true
,
[
styles
.
pickItem
]:
index
===
pickItemIndex
,
[
styles
.
listHover
]:
index
!==
pickItemIndex
&&
index
===
hoverItemIndex
,
})
}
onMouseEnter=
{
()
=>
{
setHoverItemIndex
(
index
);
}
}
onMouseLeave=
{
()
=>
{
setHoverItemIndex
(
''
);
}
}
onClick=
{
()
=>
{
setPickItemIndex
(
index
);
setTableData
(
item
.
root
);
...
...
@@ -247,7 +254,6 @@ const Flow = () => {
key=
{
item
.
goupName
}
>
{
item
.
goupName
}
(
{
item
.
count
?
item
.
count
:
''
}
)
{
index
===
pickItemIndex
?
<
RightOutlined
/>
:
''
}
</
div
>
))
}
</
div
>
...
...
@@ -267,6 +273,7 @@ const Flow = () => {
</
Card
>
</
Spin
>
{
/* 右侧流程表 */
}
<
div
className=
{
styles
.
processContainer
}
>
<
div
className=
{
styles
.
buttonList
}
>
<
Button
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workFlow/flow.less
View file @
c7b316cc
.flowContainer {
display: flex;
width: 100%;
position: relative;
position: relative;
.orgContainer {
position: relative;
left: 0;
...
...
@@ -34,9 +34,13 @@
color: #414e65;
cursor: pointer;
}
.
pickItem
{
.
listHover
{
background-color: #f5f6f9;
}
.pickItem {
background-color: #aed8fa;
}
.switcher {
display: block;
position: absolute;
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/NodeModal.jsx
View file @
c7b316cc
...
...
@@ -64,6 +64,7 @@ const NodeModal = props => {
};
// 添加角色或机构
const
addUser
=
selectList
=>
{
console
.
log
(
selectList
,
'selectList'
);
setNodeMsg
({
...
nodeMsg
,
roleList
:
selectList
});
setShowRoal
(
false
);
};
...
...
@@ -86,9 +87,9 @@ const NodeModal = props => {
// 定义表格
const
columns
=
[
{
title
:
'
机构(角色)
名称'
,
title
:
'名称'
,
dataIndex
:
'roleName'
,
align
:
'
center
'
,
align
:
'
left
'
,
ellipsis
:
{
showTitle
:
false
,
},
...
...
@@ -98,6 +99,25 @@ const NodeModal = props => {
</
Tooltip
>
),
},
{
title
:
'类型'
,
dataIndex
:
'type'
,
align
:
'center'
,
width
:
80
,
filters
:
[
{
text
:
'角色'
,
value
:
2
,
},
{
text
:
'机构'
,
value
:
1
,
},
],
onFilter
:
(
value
,
record
)
=>
record
.
type
===
value
,
render
:
text
=>
(
text
===
2
?
'角色'
:
'机构'
),
},
{
title
:
'默认承办人'
,
dataIndex
:
'defauletUserName'
,
...
...
@@ -105,9 +125,10 @@ const NodeModal = props => {
ellipsis
:
{
showTitle
:
false
,
},
width
:
100
,
render
:
text
=>
(
<
Tooltip
placement=
"topLeft"
title=
{
text
}
>
{
text
}
{
text
||
'(无)'
}
</
Tooltip
>
),
},
...
...
@@ -115,6 +136,7 @@ const NodeModal = props => {
title
:
'操作'
,
align
:
'center'
,
ellipsis
:
true
,
width
:
60
,
render
:
(
text
,
record
,
index
)
=>
(
<>
<
Space
>
...
...
@@ -167,7 +189,7 @@ const NodeModal = props => {
marginBottom
:
'30px'
,
}
}
>
编辑节点
节点信息
</
Divider
>
<
Form
form=
{
form
}
labelCol=
{
{
span
:
5
}
}
wrapperCol=
{
{
span
:
18
}
}
>
<
Form
.
Item
...
...
@@ -206,16 +228,16 @@ const NodeModal = props => {
margin
:
'30px 0 10px 0'
,
}
}
>
角色用户列表
承办管理
</
Divider
>
<
Button
style=
{
{
marginBottom
:
'10px'
}
}
style=
{
{
marginBottom
:
'10px'
,
marginLeft
:
'335px'
}
}
onClick=
{
()
=>
{
setShowRoal
(
true
);
}
}
type=
"primary"
>
请选择角色或机构
设置
</
Button
>
<
Table
dataSource=
{
nodeMsg
.
roleList
}
...
...
@@ -223,7 +245,7 @@ const NodeModal = props => {
rowKey=
{
record
=>
record
.
roleId
}
bordered
size=
"small"
scroll=
{
{
y
:
'calc(100vh -
55
0px)'
}
}
scroll=
{
{
y
:
'calc(100vh -
48
0px)'
}
}
onRow=
{
(
record
,
index
)
=>
({
onDoubleClick
:
()
=>
{
toEdit
(
record
,
index
);
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/RoalChoose.jsx
View file @
c7b316cc
...
...
@@ -98,7 +98,7 @@ const RoalChoose = props => {
roleName
:
value
.
name
,
type
:
value
.
type
,
roleId
:
value
.
id
,
defauletUserName
:
[]
,
defauletUserName
:
''
,
defaultUserId
:
[],
});
}
...
...
@@ -108,7 +108,6 @@ const RoalChoose = props => {
}
setDelArr
(
delArr
);
setSelected
(
selected
);
setPlainOptions
(
list
);
};
// tab栏切换回调
...
...
@@ -173,7 +172,7 @@ const RoalChoose = props => {
return
(
<
div
className=
{
styles
.
modalContainer
}
>
<
Modal
title=
"
角色机构列表
"
title=
"
办理配置
"
visible=
{
visible
}
onOk=
{
onSave
}
width=
"860px"
...
...
@@ -196,7 +195,6 @@ const RoalChoose = props => {
setSearchName
(
e
.
target
.
value
);
}
}
/>
<
div
className=
{
styles
.
title
}
>
可选列表
</
div
>
<
div
className=
{
styles
.
tabContent
}
>
<
Tabs
type=
"card"
activeKey=
{
roleType
}
onChange=
{
tabCallback
}
>
<
TabPane
tab=
"角色"
key=
"2"
>
...
...
@@ -226,13 +224,27 @@ const RoalChoose = props => {
<
div
className=
{
styles
.
selectedList
}
>
<
div
className=
{
styles
.
header
}
>
<
div
className=
{
styles
.
title
}
>
已选列表
</
div
>
<
div
className=
{
styles
.
tagHead
}
>
<
div
className=
{
styles
.
tagContent
}
>
<
div
className=
{
styles
.
tagRol
}
/>
<
div
>
角色
</
div
>
</
div
>
<
div
className=
{
styles
.
tagContent
}
>
<
div
className=
{
styles
.
tagOrg
}
/>
<
div
>
机构
</
div
>
</
div
>
</
div
>
</
div
>
<
div
className=
{
styles
.
selectBox
}
>
{
[...
selected
].
length
>
0
?
(
<
div
className=
{
styles
.
selectContent
}
>
{
[...
selected
].
map
(
item
=>
(
<
div
className=
{
styles
.
selectValue
}
key=
{
item
[
0
]
}
>
<
Tag
closable
onClose=
{
()
=>
delSelected
(
item
[
0
])
}
>
<
Tag
closable
color=
{
item
[
1
].
type
===
2
?
'cyan'
:
'orange'
}
onClose=
{
()
=>
delSelected
(
item
[
0
])
}
>
{
item
[
1
].
roleName
}
</
Tag
>
</
div
>
...
...
This diff is collapsed.
Click to expand it.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/RoalChoose.less
View file @
c7b316cc
...
...
@@ -72,7 +72,6 @@
}
}
.ant-tabs-nav {
padding-left: 90px;
background-color: #f2f1f1;
}
.ant-tabs-tab {
...
...
@@ -105,6 +104,30 @@
z-index: 1;
color: #00070d;
}
.tagHead {
display: flex;
position: absolute;
top: 10px;
left: 88px;
.tagContent {
display: flex;
align-items: center;
margin-right: 11px;
}
.tagRol,
.tagOrg {
width: 10px;
height: 3px;
margin-right: 5px;
}
.tagRol {
background-color: #87E8DE;
}
.tagOrg {
background-color: #FFD591;
}
}
}
.selectBox {
height: 365px;
...
...
This diff is collapsed.
Click to expand it.
src/pages/platformCenter/messageManage/projectManage/components/RolseSelect/RoleModal.jsx
View file @
c7b316cc
...
...
@@ -37,10 +37,7 @@ const RoleModal = porps => {
});
return
val
.
roleName
;
});
if
(
checkedList
.
length
===
options
.
length
&&
checkedList
.
length
>
0
)
{
if
(
checkedList
.
length
===
options
.
length
&&
checkedList
.
length
>
0
)
{
checkAll
=
true
;
}
if
(
checkedList
.
length
<
options
.
length
&&
checkedList
.
length
>
0
)
{
...
...
@@ -64,9 +61,7 @@ const RoleModal = porps => {
// 多选change事件
const
onCheckAllChange
=
(
e
,
index
)
=>
{
let
newCheckList
=
JSON
.
parse
(
JSON
.
stringify
(
roleList
));
newCheckList
[
index
].
checkedList
=
e
.
target
.
checked
?
newCheckList
[
index
].
options
:
[];
newCheckList
[
index
].
checkedList
=
e
.
target
.
checked
?
newCheckList
[
index
].
options
:
[];
newCheckList
[
index
].
indeterminate
=
false
;
newCheckList
[
index
].
checkAll
=
e
.
target
.
checked
;
setRoleList
(
newCheckList
);
...
...
@@ -77,8 +72,7 @@ const RoleModal = porps => {
newCheckList
[
index
].
checkedList
=
list
;
newCheckList
[
index
].
indeterminate
=
!!
list
.
length
&&
list
.
length
<
newCheckList
[
index
].
options
.
length
;
newCheckList
[
index
].
checkAll
=
list
.
length
===
newCheckList
[
index
].
options
.
length
;
newCheckList
[
index
].
checkAll
=
list
.
length
===
newCheckList
[
index
].
options
.
length
;
setRoleList
(
newCheckList
);
};
return
(
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/mobileConfig/index.jsx
View file @
c7b316cc
...
...
@@ -97,7 +97,7 @@ const MobileConfigPage = props => {
let
obj
=
singleList
.
find
(
item
=>
item
.
id
===
key
);
console
.
log
(
obj
);
setParentKey
(
key
);
setActiveKey
(
'
0
'
);
setActiveKey
(
'
1
'
);
setClientName
(
obj
.
subSystemValue
);
setMiniTitle
(
obj
.
text
);
};
...
...
This diff is collapsed.
Click to expand it.
src/pages/productCenter/webConfig/index.jsx
View file @
c7b316cc
...
...
@@ -105,7 +105,7 @@ const WebConfigPage = props => {
].
flat
(
2
);
if
(
!
canceled
.
cancel
)
{
setWebs
(
websArr
);
console
.
log
(
websArr
,
'websArr
'
);
console
.
log
(
websArr
[
0
],
'websArr[0]
'
);
if
(
!
curWeb
)
setCurWeb
(
websArr
[
0
]);
setLoading
(
false
);
}
...
...
This diff is collapsed.
Click to expand it.
src/pages/userCenter/siteManage/SiteManage.jsx
View file @
c7b316cc
...
...
@@ -334,17 +334,20 @@ const SiteManageV2 = () => {
// 选中某个站点
const
onSelect
=
(
props
,
e
)
=>
{
setCh
(
props
[
0
]);
console
.
log
(
props
[
0
],
'props[0]'
);
if
(
!
props
[
0
])
{
setCurrentStation
(
currentStation
);
}
else
{
setCurrentStation
(
props
[
0
]);
}
setPage
({
pageNum
:
1
,
pageSize
:
10
});
if
(
data
)
{
data
.
map
((
item
,
index
)
=>
{
if
(
item
.
id
==
props
[
0
])
{
setDes
(
item
.
describe
);
}
});
}
};
const
getValue
=
()
=>
{
...
...
@@ -679,6 +682,7 @@ const SiteManageV2 = () => {
selectedKeys=
{
[
currentStation
]
}
onSelect=
{
onSelect
}
treeData=
{
treeData
.
map
(
t
=>
mapTree
(
t
))
}
expandedKeys=
{
treeData
[
0
].
id
}
draggable
onDrop=
{
handleDrop
}
/>
...
...
This diff is collapsed.
Click to expand it.
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