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
f4f9f033
Commit
f4f9f033
authored
Mar 21, 2024
by
孙浩
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
标签管理修改时params非空校验
parent
4fa0e9d9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
incomeWmsLabel.vue
src/views/template/incomeWmsLabel.vue
+2
-2
No files found.
src/views/template/incomeWmsLabel.vue
View file @
f4f9f033
...
@@ -359,7 +359,7 @@ export default {
...
@@ -359,7 +359,7 @@ export default {
getIncomeWmsLabel
(
id
).
then
(
response
=>
{
getIncomeWmsLabel
(
id
).
then
(
response
=>
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
console
.
log
(
this
.
form
)
console
.
log
(
this
.
form
)
if
(
this
.
form
.
params
!==
null
&&
this
.
form
.
params
!==
undefined
)
{
if
(
this
.
form
.
params
!==
null
&&
this
.
form
.
params
!==
undefined
&&
this
.
form
.
params
!==
''
)
{
this
.
paramsItems
=
[]
this
.
paramsItems
=
[]
const
obj
=
JSON
.
parse
(
this
.
form
.
params
)
const
obj
=
JSON
.
parse
(
this
.
form
.
params
)
for
(
const
key
in
obj
)
{
for
(
const
key
in
obj
)
{
...
@@ -396,7 +396,7 @@ export default {
...
@@ -396,7 +396,7 @@ export default {
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
if
(
valid
)
{
if
(
this
.
paramsItems
.
length
===
1
&&
this
.
paramsItems
[
0
].
key
===
''
)
{
if
(
this
.
paramsItems
.
length
===
1
&&
this
.
paramsItems
[
0
].
key
===
''
)
{
this
.
form
.
params
=
undefined
this
.
form
.
params
=
null
}
else
{
}
else
{
this
.
form
.
params
=
JSON
.
stringify
(
this
.
paramsItems
.
reduce
((
obj
,
item
)
=>
{
this
.
form
.
params
=
JSON
.
stringify
(
this
.
paramsItems
.
reduce
((
obj
,
item
)
=>
{
if
(
item
.
key
!==
null
&&
item
.
key
!==
''
)
{
if
(
item
.
key
!==
null
&&
item
.
key
!==
''
)
{
...
...
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