0fc8f7fc by yuanbo

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

1 parent ee6f7de1
1 /*
2 * @Description: 数据推送
3 * @Autor: renchao
4 * @LastEditTime: 2023-05-17 10:23:50
5 */
6 import request from '@/utils/request'
7 let SERVER = window.config ? window.config : JSON.parse(localStorage.getItem('ApiUrl'))
8
9
10 // 数据上报推送查询
11 export function list (data) {
12 return request({
13 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/list',
14 method: 'post',
15 data
16 })
17 }
18
19 // 数据上报推送
20 export function push (data) {
21 return request({
22 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/push',
23 method: 'post',
24 data
25 })
26 }
27
28 // 数据上报推送
29 export function detail (bsm) {
30 return request({
31 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/detail?bsm=' + bsm,
32 method: 'get'
33 })
34 }
35
36
37
...@@ -180,31 +180,5 @@ export function getCfdjList (data) { ...@@ -180,31 +180,5 @@ export function getCfdjList (data) {
180 }) 180 })
181 } 181 }
182 182
183 // 数据上报推送查询
184 export function getSjsbPushList (data) {
185 return request({
186 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/list',
187 method: 'post',
188 data
189 })
190 }
191
192 // 数据上报推送
193 export function pushSjsbRecord (data) {
194 return request({
195 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/push',
196 method: 'post',
197 data
198 })
199 }
200
201 // 数据上报推送
202 export function detail (bsm) {
203 return request({
204 url: SERVER.SERVERAPI + '/rest/system/sysPushRecord/detail?bsm=' + bsm,
205 method: 'get'
206 })
207 }
208
209 183
210 184
......
1 <!-- 1 <!--
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-05-26 15:40:23 4 * @LastEditTime: 2023-05-26 15:40:23
5 --> 5 -->
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
16 </div> 16 </div>
17 </template> 17 </template>
18 <script> 18 <script>
19 import { pushSjsbRecord } from "@/api/zhcx.js"; 19 import { push } from "@/api/sysPushRecord.js";
20 export default { 20 export default {
21 props: { 21 props: {
22 formData: { 22 formData: {
...@@ -29,7 +29,7 @@ ...@@ -29,7 +29,7 @@
29 methods: { 29 methods: {
30 pushRecord () { 30 pushRecord () {
31 this.$startLoading() 31 this.$startLoading()
32 pushSjsbRecord(this.formData).then((res) => { 32 push(this.formData).then((res) => {
33 this.$endLoading() 33 this.$endLoading()
34 if (res.code === 200) { 34 if (res.code === 200) {
35 this.$message.success("推送成功"); 35 this.$message.success("推送成功");
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
32 import { mapGetters } from "vuex"; 32 import { mapGetters } from "vuex";
33 import table from "@/utils/mixin/table"; 33 import table from "@/utils/mixin/table";
34 import { datas, sendThis } from "./djbcxdata"; 34 import { datas, sendThis } from "./djbcxdata";
35 import { getSjsbPushList, detail } from "@/api/zhcx.js"; 35 import { list, detail } from "@/api/sysPushRecord.js";
36 36
37 export default { 37 export default {
38 name: "djbcx", 38 name: "djbcx",
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
67 // 初始化数据 67 // 初始化数据
68 queryClick () { 68 queryClick () {
69 this.$startLoading() 69 this.$startLoading()
70 getSjsbPushList({ ...this.queryForm, ...this.pageData }).then((res) => { 70 list({ ...this.queryForm, ...this.pageData }).then((res) => {
71 this.$endLoading() 71 this.$endLoading()
72 if (res.code === 200) { 72 if (res.code === 200) {
73 let { total, records } = res.result; 73 let { total, records } = res.result;
......