Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
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
胡宝山
template_vue
Commits
7cf95c72
Commit
7cf95c72
authored
Mar 22, 2024
by
孙浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
params插入空值问题修改
parent
3ac2ee23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
+14
-11
incomeWmsLabel.vue
src/views/template/incomeWmsLabel.vue
+14
-11
No files found.
src/views/template/incomeWmsLabel.vue
View file @
7cf95c72
...
...
@@ -445,19 +445,22 @@ export default {
submitForm
:
function
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
this
.
paramsItems
.
length
>
0
)
{
if
(
this
.
paramsItems
.
length
===
1
&&
this
.
paramsItems
[
0
].
key
===
''
)
{
this
.
form
.
params
=
null
}
else
{
// 4.校验paramsItems的值
const
list
=
this
.
filterArray
(
this
.
paramsItems
)
this
.
form
.
params
=
JSON
.
stringify
(
list
.
reduce
((
obj
,
item
)
=>
{
obj
[
item
.
key
]
=
item
.
value
return
obj
},
{}))
let
isNull
=
true
this
.
paramsItems
.
forEach
(
item
=>
{
if
(
item
.
key
!==
''
&&
item
.
key
!==
null
)
{
isNull
=
false
}
})
if
(
isNull
)
{
this
.
form
.
params
=
null
}
else
{
// 4.校验paramsItems的值
const
list
=
this
.
filterArray
(
this
.
paramsItems
)
this
.
form
.
params
=
JSON
.
stringify
(
list
.
reduce
((
obj
,
item
)
=>
{
obj
[
item
.
key
]
=
item
.
value
return
obj
},
{}))
}
if
(
this
.
form
.
businessId
!==
undefined
)
{
this
.
addLoading
=
true
updateIncomeWmsLabel
(
this
.
form
).
then
(
response
=>
{
...
...
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