Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-charge
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit a1531a1b
authored
Mar 04, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修复
1 parent
b7ce5611
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
19 deletions
src/views/parkingPlace/index.vue
src/views/parkingPlace/index.vue
View file @
a1531a1
...
@@ -432,7 +432,6 @@ export default {
...
@@ -432,7 +432,6 @@ export default {
},
},
created
()
{
created
()
{
this
.
getMerchantList
()
this
.
getMerchantList
()
this
.
getRadarList
()
},
},
mounted
()
{},
mounted
()
{},
methods
:
{
methods
:
{
...
@@ -526,7 +525,6 @@ export default {
...
@@ -526,7 +525,6 @@ export default {
this
.
isBatch
=
false
this
.
isBatch
=
false
if
(
this
.
batchForm
.
successCount
)
{
if
(
this
.
batchForm
.
successCount
)
{
this
.
searchTable
()
this
.
searchTable
()
this
.
getRadarList
()
}
}
this
.
batchForm
=
{
this
.
batchForm
=
{
isUpload
:
false
,
isUpload
:
false
,
...
@@ -609,24 +607,10 @@ export default {
...
@@ -609,24 +607,10 @@ export default {
}
}
})
})
},
},
getRadarList
()
{
this
.
$apis
.
parkingSpace
.
getRadarListApi
({
pageNum
:
'1'
,
pageSize
:
'1000'
,
deviceStatus
:
0
}).
then
(
res
=>
{
if
(
res
?.
list
?.
length
)
{
const
_target
=
this
.
basicFormData
.
find
(
item
=>
item
.
name
==
'radarId'
)
_target
.
optionList
=
res
.
list
}
})
},
changeChannelImg
(
e
)
{
changeChannelImg
(
e
)
{
console
.
log
(
e
,
'conpl'
)
console
.
log
(
e
,
'conpl'
)
},
},
closeDialogFn
()
{
this
.
collVisible
=
false
this
.
searchTable
()
},
delParkingSpace
(
row
)
{
delParkingSpace
(
row
)
{
console
.
log
(
row
)
this
.
$confirm
(
'请再次确认是否要执行删除操作'
,
'提示'
,
{
this
.
$confirm
(
'请再次确认是否要执行删除操作'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
cancelButtonText
:
'取消'
,
...
@@ -643,10 +627,23 @@ export default {
...
@@ -643,10 +627,23 @@ export default {
}
}
})
})
},
},
addParkingPlaceFn
()
{
getRadarList
(
radarId
)
{
console
.
log
(
1111
)
let
params
=
{
pageNum
:
'1'
,
pageSize
:
'1000'
,
bindingStatus
:
0
}
if
(
radarId
)
params
.
radarId
=
radarId
this
.
$apis
.
parkingSpace
.
getRadarListApi
(
params
).
then
(
res
=>
{
if
(
res
?.
list
?.
length
)
{
const
_target
=
this
.
basicFormData
.
find
(
item
=>
item
.
name
==
'radarId'
)
_target
.
optionList
=
res
.
list
}
})
},
async
addParkingPlaceFn
()
{
await
this
.
getRadarList
()
this
.
parkingPlaceVisible
=
true
this
.
parkingPlaceVisible
=
true
},
},
updateParkingPlaceFn
(
row
)
{
async
updateParkingPlaceFn
(
row
)
{
await
this
.
getRadarList
(
row
.
radarId
)
for
(
const
key
in
this
.
basicForm
)
{
for
(
const
key
in
this
.
basicForm
)
{
this
.
basicForm
[
key
]
=
row
[
key
]
this
.
basicForm
[
key
]
=
row
[
key
]
}
}
...
@@ -665,7 +662,6 @@ export default {
...
@@ -665,7 +662,6 @@ export default {
this
.
$message
.
success
(
`
${
params
.
id
?
'修改'
:
'添加'
}
成功`
)
this
.
$message
.
success
(
`
${
params
.
id
?
'修改'
:
'添加'
}
成功`
)
this
.
handleCancel
()
this
.
handleCancel
()
this
.
searchTable
()
this
.
searchTable
()
this
.
getRadarList
()
}
}
})
})
}
}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment