vz.js 1006 Bytes
Newer Older
lanbaoming's avatar
lanbaoming committed
1
import request from '@/utils/request'
lanbaoming's avatar
1  
lanbaoming committed
2

lanbaoming's avatar
lanbaoming committed
3
//2024-05-01合并
lanbaoming's avatar
lanbaoming committed
4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
//报表V值设置参数 lanbm 2024-04-03 add
export function create(data) {
  return request({
    url: '/ecwVz/vz/create',
    method: 'post',
    data: data
  })
}

export function update(data) {
  return request({
    url: '/ecwVz/vz/update',
    method: 'post',
    data: data
  })
}

export function del(id) {
  return request({
    url: '/ecwVz/vz/delete?id=' + id,
    method: 'get'
  })
}

export function getModel(id) {
  return request({
    url: '/ecwVz/vz/get?id=' + id,
    method: 'get'
  })
}

35
//2024-04-27
lanbaoming's avatar
lanbaoming committed
36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
export function getPageList(query) {
  return request({
    url: '/ecwVz/vz/page',
    method: 'get',
    params: query
  })
}

export function exportExcel(query) {
  return request({
    url: '/ecwVz/vz/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}
lanbaoming's avatar
lanbaoming committed
52 53 54 55 56 57 58 59 60

//测试功能
export function test(query) {
  return request({
    url: '/ecwVz/vz/Test',
    method: 'get',
    params: query
  })
}