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 02a78e5c
authored
Feb 28, 2024
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
雷达修改
1 parent
51819eae
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
42 additions
and
17 deletions
src/api/modules/radar.js
src/views/Radar/index.vue
src/views/parkingPlace/index.vue
src/api/modules/radar.js
View file @
02a78e5
...
...
@@ -14,7 +14,7 @@ const getRadarList = params => {
}
// 导出雷达信息列表
const
exportRadarList
=
(
params
)
=>
{
const
exportRadarList
=
params
=>
{
params
.
method
=
'marketing.api.charge.radar.page.export'
return
http
({
url
,
...
...
@@ -22,11 +22,13 @@ const exportRadarList= (params)=> {
})
}
// 导入雷达信息列表
const
createMessageInfo
=
(
params
)
=>
{
const
createMessageInfo
=
params
=>
{
params
.
method
=
'marketing.api.charge.radar.import'
return
http
({
url
,
data
:
params
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
// 删除雷达信息
...
...
@@ -37,7 +39,7 @@ const deleteRadar = params => {
method
:
'post'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
returnAll
:
true
})
}
export
default
{
getRadarList
,
exportRadarList
,
createMessageInfo
,
deleteRadar
}
\ No newline at end of file
export
default
{
getRadarList
,
exportRadarList
,
createMessageInfo
,
deleteRadar
}
src/views/Radar/index.vue
View file @
02a78e5
...
...
@@ -19,7 +19,7 @@
</GLTable>
<!-- 表格区域 end -->
</div>
<GLDialog
title=
"批量操作"
:visible
.
sync=
"isBatch"
mode=
"mid"
>
<GLDialog
title=
"批量操作"
:visible
.
sync=
"isBatch"
mode=
"mid"
:before-close=
"cancelImport"
@
onCancel=
"cancelImport"
>
<template
v-if=
"!batchForm.isUpload"
>
<el-form
:model=
"batchForm"
label-width=
"154px"
>
<el-form-item
label=
"导入文件:"
>
...
...
@@ -39,16 +39,17 @@
</
template
>
<div
v-else
class=
"file-info"
>
<div
class=
"success"
>
{{ successCount }}
{{
batchForm.
successCount }}
<div>
成功记录
</div>
</div>
<div
class=
"line"
></div>
<div
class=
"error"
>
{{ failCount }}
{{
batchForm.
failCount }}
<div>
失败记录
</div>
</div>
</div>
<span
slot=
"footer"
>
<el-button
size=
"small"
@
click=
"
isBatch = false
"
>
{{ batchForm.isUpload ? '确定' : '取消' }}
</el-button>
<el-button
size=
"small"
@
click=
"
cancelImport
"
>
{{ batchForm.isUpload ? '确定' : '取消' }}
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"handleSaveImport"
>
{{ batchForm.isUpload ? '导出失败记录' : '确认' }}
</el-button>
</span>
</GLDialog>
...
...
@@ -68,7 +69,9 @@ export default {
batchForm
:
{
isUpload
:
false
,
successCount
:
0
,
failCount
:
0
failCount
:
0
,
exportUrl
:
''
,
exportName
:
''
},
searchForm
:
{
radarNumber
:
''
,
...
...
@@ -232,12 +235,15 @@ export default {
if
(
this
.
batchForm
.
isUpload
)
{
this
.
handleImport
()
return
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
this
.
$message
.
error
(
'请上传文件'
)
return
}
let
params
=
{
exportUrl
:
this
.
batchForm
.
exportUrl
,
exportName
:
this
.
batchForm
.
exportName
}
this
.
$apis
.
marketing
this
.
$apis
.
radar
.
createMessageInfo
(
params
)
.
then
(
res
=>
{
this
.
$message
({
...
...
@@ -246,11 +252,9 @@ export default {
})
if
(
res
.
code
==
0
)
{
this
.
batchForm
.
isUpload
=
true
this
.
batchForm
.
successCount
=
res
.
successCount
this
.
batchForm
.
failCount
=
res
.
failCount
this
.
batchForm
.
errorUrl
=
res
.
errorUrl
this
.
handleSearch
()
this
.
batchForm
.
successCount
=
res
?.
data
?.
successCount
this
.
batchForm
.
failCount
=
res
?.
data
?.
failCount
this
.
batchForm
.
errorUrl
=
res
?.
data
?.
errorUrl
}
else
{
this
.
$message
({
message
:
res
.
message
,
...
...
@@ -286,6 +290,7 @@ export default {
if
(
res
)
{
this
.
batchForm
.
exportName
=
file
.
name
this
.
batchForm
.
exportUrl
=
res
this
.
handleSaveImport
()
}
this
.
$refs
.
file
.
value
=
''
})
...
...
@@ -301,6 +306,19 @@ export default {
})
}
},
cancelImport
()
{
this
.
isBatch
=
false
if
(
this
.
batchForm
.
successCount
)
{
this
.
handleSearch
()
}
this
.
batchForm
=
{
isUpload
:
false
,
successCount
:
0
,
failCount
:
0
,
exportUrl
:
''
,
exportName
:
''
}
},
batchExport
()
{
this
.
isBatch
=
true
this
.
batchForm
.
isUpload
=
false
...
...
@@ -456,6 +474,11 @@ export default {
color
:
#2cca74
;
text-align
:
center
;
}
.line
{
width
:
1px
;
height
:
56px
;
background
:
#e8e8ea
;
}
.error
{
font-weight
:
700
;
font-size
:
26px
;
...
...
src/views/parkingPlace/index.vue
View file @
02a78e5
...
...
@@ -436,7 +436,7 @@ export default {
this
.
handleExportError
()
return
}
else
if
(
!
this
.
batchForm
.
exportUrl
)
{
this
.
$message
.
error
(
'请上传文件'
)
return
this
.
$message
.
error
(
'请上传文件'
)
}
let
params
=
{
exportUrl
:
this
.
batchForm
.
exportUrl
,
...
...
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