| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586 |
- import request from '@/utils/request'
- // 查询分配记录列表
- export function listRecords(query) {
- return request({
- url: '/qw/records/list',
- method: 'get',
- params: query
- })
- }
- // 查询分配记录详细
- export function getRecords(id) {
- return request({
- url: '/qw/records/' + id,
- method: 'get'
- })
- }
- // 新增分配记录
- export function addRecords(data) {
- return request({
- url: '/qw/records',
- method: 'post',
- data: data
- })
- }
- // 修改分配记录
- export function updateRecords(data) {
- return request({
- url: '/qw/records',
- method: 'put',
- data: data
- })
- }
- // 删除分配记录
- export function delRecords(id) {
- return request({
- url: '/qw/records/' + id,
- method: 'delete'
- })
- }
- // 导出分配记录
- export function exportRecords(query) {
- return request({
- url: '/qw/records/export',
- method: 'get',
- params: query
- })
- }
- export function apply(applyCount) {
- return request({
- url: '/qw/records/apply',
- method: 'get',
- params: applyCount
- })
- }
- // 新增分配记录
- //@PostMapping("/batchUpdate")
- // public AjaxResult batchUpdate(@RequestBody Long[] ids)
- //后端接收结构
- export function batchUpdate(data) {
- return request({
- url: '/qw/records/batchUpdate',
- method: 'post',
- data: data
- })
- }
- // 获取服务器信息
- export function getServerInfo(id) {
- return request({
- url: '/qw/records/server/' + id,
- method: 'get'
- })
- }
- export function release(data) {
- return request({
- url: '/qw/records/release',
- method: 'post',
- data: data
- })
- }
|