| | |
| | | import http from '@/http' |
| | | |
| | | |
| | | const baseUrl = '/sccg/intelligentPatrol/statistics' |
| | | |
| | | export default { |
| | | // 按违规类型统计 |
| | | searchByType: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/type', params); |
| | | }, |
| | | // 按点位统计 |
| | | searchByPoint: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/point', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByPoint: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/point', params); |
| | | }, |
| | | // 按时间统计 |
| | | searchByTime: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/time', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByTime: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/time', params); |
| | | }, |
| | | // 按区域统计 |
| | | searchByArea: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/area', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByArea: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/area', params); |
| | | }, |
| | | // 门前三包统计 |
| | | searchByShop: (data) => axios({ |
| | | method: 'get', |
| | | url: baseUrl + '/unlawful/shop', |
| | | headers: { |
| | | ...token |
| | | }, |
| | | params: data |
| | | }), |
| | | searchByShop: (params) => { |
| | | return http.get('/sccg/intelligentPatrol/statistics/unlawful/shop', params); |
| | | }, |
| | | }; |
| | |
| | | import axios from "axios"; |
| | | import {getToken} from '@/utils/helper' |
| | | const baseUrl = '/sccg/message_audit' |
| | | const token = { |
| | | 'Authorization':getToken() |
| | | } |
| | | import http from '@/http' |
| | | |
| | | export default { |
| | | // 获取短信审核列表 |
| | | getMessageAuditList: (data) => axios({ |
| | | method: 'post', |
| | | url: baseUrl+'/list', |
| | | headers:{...token}, |
| | | data: data |
| | | }), |
| | | // |
| | | }; |
| | | getMessageAuditList: (params) => { |
| | | return http.post('/sccg/message_audit/list', params); |
| | | }, |
| | | }; |
| | |
| | | * @returns {Promise} |
| | | */ |
| | | export function handleResponseSuccess(response) { |
| | | debugger |
| | | tryHideFullScreenLoading() |
| | | urlRecorder.remove(response.config) |
| | | const result = response.data |
| | |
| | | beginTime:'2022-05-01 00:00:00', |
| | | endTime:'2022-09-01 00:00:00' |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | |
| | | beginTime:'2022-05-01 00:00:00', |
| | | endTime:'2022-09-01 00:00:00' |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | |
| | | beginTime:'2022-05-01 00:00:00', |
| | | endTime:'2022-09-01 00:00:00' |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | |
| | | beginTime:'2022-05-01 00:00:00', |
| | | endTime:'2022-09-01 00:00:00' |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | |
| | | beginTime:'2022-05-01 00:00:00', |
| | | endTime:'2022-09-01 00:00:00' |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | // 当前页改变触发事件 |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | let timer = null; |
| | | export default { |
| | | data() { |
| | | return { |
| | |
| | | methods: { |
| | | loadMenu() { |
| | | const info = JSON.parse(sessionStorage.getItem("user")); |
| | | var timer; |
| | | |
| | | if (info && info.menus) { |
| | | clearTimeout(timer); |
| | | console.log("timer--", timer); |
| | | window.clearInterval(timer); |
| | | this.menuList = info.menus; |
| | | console.log(this.menuList) |
| | | console.log(this.menuList); |
| | | } else { |
| | | timer = setInterval(() => { |
| | | this.loadMenu(); |
| | | }, 1000); |
| | | if (!timer) { |
| | | timer = window.setInterval(() => { |
| | | this.loadMenu(); |
| | | }, 1000); |
| | | console.log("timer++", timer); |
| | | } |
| | | } |
| | | }, |
| | | // 获取菜单列表 |
| | |
| | | pageSize, |
| | | state: context, |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | handleStateChange(e) { |
| | |
| | | pageSize, |
| | | state: context, |
| | | }).then((res) => { |
| | | if (res.data.code == 200) { |
| | | this.list = res.data.data.records; |
| | | this.totalNum = res.data.data.total; |
| | | } |
| | | this.list = res.records; |
| | | this.totalNum = res.total; |
| | | }); |
| | | }, |
| | | handleStateChange(e) { |