123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657 |
- import request from '@/utils/request'
- import qs from 'qs'
- export const getWtWorkReportStats = (params) => {
- return new request({
- url: './wt/wtWorkReportStats/',
- method: 'get',
- params: params
- });
- }
- export const get = (id) => {
- return new request({
- url: './wt/wtWorkReportStats/' + id,
- method: 'get',
- });
- }
- export function saveOrUpdate(wtWorkReportStat, token) {
- return new request({
- url: './wt/wtWorkReportStats',
- method: (wtWorkReportStat.id ? 'put' : 'post'),
- headers: {
- token
- },
- data: {
- wtWorkReportStat
- }
- });
- }
- export function del(id) {
- return new request({
- url: './wt/wtWorkReportStats/' + id,
- method: 'delete',
- });
- }
- export const wtWorkReportStatCount = (params) => {
- return new request({
- url: './wt/wtWorkReportStats/',
- method: 'get',
- params: params
- });
- }
- export const downloadWtWorkReport = (params) => {
- return new request({
- url: './work/wtWorkReportStats/batchDownloadWtWorkReport',
- method: 'get',
- params: params,
- responseType: 'blob',
- });
- }
|