0fc8f7fc by yuanbo

抽取sysPushRecord.js,修改所有引用文件

1 parent ee6f7de1
/*
* @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'
})
}
......@@ -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'
})
}
......
<!--
* @Description:
* @Description:
* @Autor: renchao
* @LastEditTime: 2023-05-26 15:40:23
-->
......@@ -16,7 +16,7 @@
</div>
</template>
<script>
import { pushSjsbRecord } from "@/api/zhcx.js";
import { push } from "@/api/sysPushRecord.js";
export default {
props: {
formData: {
......@@ -29,7 +29,7 @@
methods: {
pushRecord () {
this.$startLoading()
pushSjsbRecord(this.formData).then((res) => {
push(this.formData).then((res) => {
this.$endLoading()
if (res.code === 200) {
this.$message.success("推送成功");
......
......@@ -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()
getSjsbPushList({ ...this.queryForm, ...this.pageData }).then((res) => {
list({ ...this.queryForm, ...this.pageData }).then((res) => {
this.$endLoading()
if (res.code === 200) {
let { total, records } = res.result;
......