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
435ac045
Commit
435ac045
authored
Nov 01, 2023
by
田翔
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 编辑工作台信息其他属性会丢失问题
parent
281a2f1a
Pipeline
#81043
passed with stages
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
index.js
...productCenter/mobileConfig/menuconfig/WorkDesign/index.js
+10
-2
No files found.
src/pages/productCenter/mobileConfig/menuconfig/WorkDesign/index.js
View file @
435ac045
...
...
@@ -43,7 +43,7 @@ const WorkDesign = (props) => {
const
editCard
=
(
item
)
=>
{
setCurrentCard
(
item
)
form
.
setFieldsValue
({
'名称'
:
item
[
'名称'
],
'描述'
:
item
[
'描述'
],
'关联角色ID'
:
item
.
roleInfo
.
map
(
v
=>
`
${
v
[
'角色ID'
]}
`
)
})
form
.
setFieldsValue
({
'名称'
:
item
[
'名称'
],
'描述'
:
item
[
'描述'
],
'关联角色ID'
:
item
.
roleInfo
.
map
(
v
=>
`
${
v
[
'角色ID'
]}
`
)
,
'类型'
:
item
[
'类型'
]
})
setVisible
(
true
)
}
...
...
@@ -89,7 +89,15 @@ const WorkDesign = (props) => {
const
validate
=
await
form
.
validateFields
()
if
(
validate
)
{
const
values
=
form
.
getFieldsValue
()
const
{
code
,
data
,
msg
}
=
await
saveScheme
({
ID
:
currentCard
.
ID
||
0
,
...
values
,
'关联角色ID'
:
values
[
'关联角色ID'
].
join
(
','
),
'创建人'
:
userName
})
let
parmas
=
{
ID
:
currentCard
.
ID
||
0
,
...
values
,
'关联角色ID'
:
values
[
'关联角色ID'
].
join
(
','
),
'创建人'
:
userName
,
'卡片结构'
:
currentCard
[
'卡片结构'
],
'路径'
:
currentCard
[
'路径'
],
}
const
{
code
,
data
,
msg
}
=
await
saveScheme
(
parmas
)
if
(
code
===
0
)
{
getCardList
()
message
.
info
({
type
:
'success'
,
content
:
'添加成功!'
})
...
...
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