Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
0fc8f7fc
authored
2023-07-14 14:25:55 +0800
by
yuanbo
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
抽取sysPushRecord.js,修改所有引用文件
1 parent
ee6f7de1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
42 additions
and
31 deletions
src/api/sysPushRecord.js
src/api/zhcx.js
src/views/sjgx/sbxtsjts/dialog/detail.vue
src/views/sjgx/sbxtsjts/sbxtsjts.vue
src/api/sysPushRecord.js
0 → 100644
View file @
0fc8f7f
/*
* @Description: 数据推送
* @Autor: renchao
* @LastEditTime: 2023-05-17 10:23:50
*/
import
request
from
'@/utils/request'
let
SERVER
=
window
.
config
?
window
.
config
:
JSON
.
parse
(
localStorage
.
getItem
(
'ApiUrl'
))
// 数据上报推送查询
export
function
list
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/list'
,
method
:
'post'
,
data
})
}
// 数据上报推送
export
function
push
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/push'
,
method
:
'post'
,
data
})
}
// 数据上报推送
export
function
detail
(
bsm
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/detail?bsm='
+
bsm
,
method
:
'get'
})
}
src/api/zhcx.js
View file @
0fc8f7f
...
...
@@ -180,31 +180,5 @@ export function getCfdjList (data) {
})
}
// 数据上报推送查询
export
function
getSjsbPushList
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/list'
,
method
:
'post'
,
data
})
}
// 数据上报推送
export
function
pushSjsbRecord
(
data
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/push'
,
method
:
'post'
,
data
})
}
// 数据上报推送
export
function
detail
(
bsm
)
{
return
request
({
url
:
SERVER
.
SERVERAPI
+
'/rest/system/sysPushRecord/detail?bsm='
+
bsm
,
method
:
'get'
})
}
...
...
src/views/sjgx/sbxtsjts/dialog/detail.vue
View file @
0fc8f7f
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-26 15:40:23
-->
...
...
@@ -16,7 +16,7 @@
</div>
</
template
>
<
script
>
import
{
push
SjsbRecord
}
from
"@/api/zhcx
.js"
;
import
{
push
}
from
"@/api/sysPushRecord
.js"
;
export
default
{
props
:
{
formData
:
{
...
...
@@ -29,7 +29,7 @@
methods
:
{
pushRecord
()
{
this
.
$startLoading
()
push
SjsbRecord
(
this
.
formData
).
then
((
res
)
=>
{
push
(
this
.
formData
).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
"推送成功"
);
...
...
src/views/sjgx/sbxtsjts/sbxtsjts.vue
View file @
0fc8f7f
...
...
@@ -32,7 +32,7 @@
import
{
mapGetters
}
from
"vuex"
;
import
table
from
"@/utils/mixin/table"
;
import
{
datas
,
sendThis
}
from
"./djbcxdata"
;
import
{
getSjsbPushList
,
detail
}
from
"@/api/zhcx
.js"
;
import
{
list
,
detail
}
from
"@/api/sysPushRecord
.js"
;
export
default
{
name
:
"djbcx"
,
...
...
@@ -67,7 +67,7 @@
// 初始化数据
queryClick
()
{
this
.
$startLoading
()
getSjsbPushL
ist
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
l
ist
({
...
this
.
queryForm
,
...
this
.
pageData
}).
then
((
res
)
=>
{
this
.
$endLoading
()
if
(
res
.
code
===
200
)
{
let
{
total
,
records
}
=
res
.
result
;
...
...
Please
register
or
sign in
to post a comment