Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
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 43acc8b6
authored
Apr 11, 2024
by
Tianqing Liu
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 增加分类重跑接口
1 parent
51887078
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
8 deletions
src/views/DataRerun/DataRerun.vue
src/views/DataRerun/DataRerunApi.js
src/views/DataRerun/DataRerun.vue
View file @
43acc8b
...
...
@@ -77,6 +77,7 @@
<
script
>
import
{
reactive
,
ref
,
toRaw
}
from
'vue'
import
moment
from
'moment'
import
{
ElMessage
}
from
'element-plus'
import
snapshotRecordApi
from
'@/views/SnapshotCluster/SnapshotRecord/SnapshotRecordApi'
import
{
isArray
}
from
'@/PublicUtil/Judgment'
import
{
formatDate
,
formatTime
}
from
'@/PublicUtil/PublicUtil'
...
...
@@ -311,10 +312,27 @@ export default {
// 新需求:数据重跑
const
confirmSearch2
=
function
()
{
resultList
.
value
=
[]
informationList
.
value
=
[]
for
(
const
scheduleType
of
queryForm
.
scheduleTypeList
)
{
if
(
queryForm
.
account_id
.
length
<
1
)
{
ElMessage
({
message
:
`至少选择一个集团`
,
type
:
'error'
})
return
}
for
(
const
mallId
of
queryForm
.
account_id
)
{
// 请求接口
const
rawData
=
toRaw
(
queryForm
)
const
params
=
{
mallId
,
startDate
:
formatDate
(
rawData
.
startDate
)
+
' '
+
'00:00:00'
,
endDate
:
formatDate
(
rawData
.
endDate
)
+
' '
+
'00:00:00'
,
}
dataRerunApi
.
getResult2
(
params
).
then
(
(
r
)
=>
{
console
.
log
(
'getResult2'
,
r
)
}
)
}
}
...
...
src/views/DataRerun/DataRerunApi.js
View file @
43acc8b
...
...
@@ -22,13 +22,13 @@ class DataRerunApi {
}
)
}
//
getResult2
(
data
,
type
)
{
//
分类重跑:https://store.keliuyun.com/btool/allData/reCal?mallId=xx&startDate=2024-04-10&endDate=2024-04-10
getResult2
(
data
)
{
return
axiosInstance
.
request
(
{
method
:
'
POS
T'
,
url
:
`
${
map
[
type
]}
`
,
data
:
data
method
:
'
GE
T'
,
url
:
`
/btool/allData/reCal
`
,
params
:
data
}
)
}
...
...
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