Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-convertor-view
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
station
amos-convertor-view
Commits
6aa6d882
Commit
6aa6d882
authored
Jan 22, 2021
by
高建强
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
item:剔除电力设备编辑为null的属性
parent
2bbf0da8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
index.js
src/view/bizview/equipmentLedger/Equipment/index.js
+8
-0
No files found.
src/view/bizview/equipmentLedger/Equipment/index.js
View file @
6aa6d882
...
...
@@ -276,6 +276,14 @@ class Equipment extends Component {
dataValues
.
imageUrl3
&&
formData
.
append
(
'img3'
,
dataValues
.
imageUrl3
[
0
]);
dataValues
.
imageUrl4
&&
formData
.
append
(
'img4'
,
dataValues
.
imageUrl4
[
0
]);
if
(
dataValues
)
{
for
(
var
key
in
dataValues
)
{
if
(
dataValues
[
key
]
==
null
||
typeof
(
dataValues
[
key
])
==
"undefined"
)
{
delete
dataValues
[
key
];
}
}
}
Object
.
keys
(
dataValues
).
map
(
item
=>
{
if
(
item
===
'chargeDeptId'
&&
dataValues
[
item
]
===
null
)
{
formData
.
append
(
item
,
-
1
);
...
...
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