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
23623161
Commit
23623161
authored
Sep 11, 2024
by
涂伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: '新增建始物资盘存辅助视图'
parent
b3f51977
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
31 additions
and
6 deletions
+31
-6
AddView.jsx
...nents/flowChartComponents/nodeModalComponents/AddView.jsx
+31
-6
No files found.
src/pages/bsmanager/workOrder/workflowEdit/workFlowComponents/flowChartComponents/nodeModalComponents/AddView.jsx
View file @
23623161
...
...
@@ -6,19 +6,19 @@ import MobileParmarModal from '../../../../workFlow/flowNode/flowNodeComponents/
const
WebPages
=
[
{
lable
:
'FeedbackAccount:工单反馈
标准视图
'
,
lable
:
'FeedbackAccount:工单反馈'
,
value
:
'FeedbackAccount'
,
type
:
'标准'
,
color
:
'blue'
,
},
{
lable
:
'GisGatherProjectView:管网采集
辅助视图
'
,
lable
:
'GisGatherProjectView:管网采集'
,
value
:
'GisGatherProjectView'
,
type
:
'专用'
,
color
:
'purple'
,
},
{
lable
:
'CRMProductDetailView:CRM产品调拨
辅助视图
'
,
lable
:
'CRMProductDetailView:CRM产品调拨'
,
value
:
'CRMProductDetailView'
,
type
:
'专用'
,
color
:
'purple'
,
...
...
@@ -35,6 +35,12 @@ const WebPages = [
type
:
'专用'
,
color
:
'purple'
,
},
{
lable
:
'InventoryMaterials:物资盘存'
,
value
:
'InventoryMaterials'
,
type
:
'专用'
,
color
:
'purple'
,
},
];
const
{
Option
}
=
Select
;
...
...
@@ -58,7 +64,9 @@ const AddView = props => {
},
[
visible
]);
// 获取表单回显
const
getFormData
=
()
=>
{
if
(
msg
.
WebPage
===
'GisGatherProjectView'
&&
msg
.
WebParam
)
{
console
.
log
(
msg
,
'msgmsgmsgmsg'
);
if
((
msg
.
WebPage
===
'GisGatherProjectView'
||
msg
.
WebPage
===
'InventoryMaterials'
)
&&
msg
.
WebParam
)
{
if
(
!
Array
.
isArray
(
msg
.
WebParam
))
{
msg
.
WebParam
=
msg
.
WebParam
?.
split
(
','
);
}
...
...
@@ -71,7 +79,7 @@ const AddView = props => {
const
onFinish
=
()
=>
{
form
.
validateFields
().
then
(
validate
=>
{
if
(
validate
)
{
if
(
validate
.
WebPage
===
'GisGatherProjectView'
&&
validate
.
WebParam
)
{
if
(
(
validate
.
WebPage
===
'GisGatherProjectView'
||
validate
.
WebPage
===
'InventoryMaterials'
)
&&
validate
.
WebParam
)
{
validate
.
WebParam
=
validate
.
WebParam
.
toString
();
}
let
obj
=
{};
...
...
@@ -80,6 +88,8 @@ const AddView = props => {
}
else
{
obj
=
{
...
validate
,
key
:
msg
.
key
};
}
console
.
log
(
obj
,
'objobjobjobjobj'
);
onSubumit
(
obj
,
modalType
);
}
});
...
...
@@ -104,7 +114,7 @@ const AddView = props => {
};
return
(
<
Modal
title=
"流程节点辅助视图配置"
title=
"流程节点辅助视图配置
2
"
width=
{
600
}
visible=
{
visible
}
onOk=
{
onFinish
}
...
...
@@ -162,6 +172,21 @@ const AddView = props => {
))
}
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"视图参数"
name=
"WebParam"
style=
{
{
display
:
form
.
getFieldValue
(
'WebPage'
)
===
'InventoryMaterials'
?
'flex'
:
'none'
,
}
}
>
<
Select
placeholder=
"选择视图参数"
showSearch
mode=
"multiple"
>
{
[
'edit'
].
map
((
item
,
index
)
=>
(
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>
))
}
</
Select
>
</
Form
.
Item
>
<
Form
.
Item
label=
"手持标签"
name=
"MobileLabel"
>
<
Input
placeholder=
"请输入手持标签"
/>
</
Form
.
Item
>
...
...
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