123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- import request from '@/router/axios'
- export function fetchList(query) {
- return request({
- url: '/match/pageMatchSecond',//分赛列表
- method: 'get',
- params: query
- })
- }
- export function competitionManagerPage(query) {
- return request({
- url: '/match/competitionManagerPage',
- method: 'get',
- params: query
- })
- }
- export function fetchItemList(query) {
- return request({
- url: '/match/pageTrack',
- method: 'get',
- params: query
- })
- }
- export function getUserPageByRole (query) {
- return request({
- url: '/match/getOtherUserSecond',
- method: 'get',
- params: query
- })
- }
- export function addItemObj(obj) {
- return request({
- url: '/match/insertTrack',
- method: 'post',
- data: obj
- })
- }
- export function getItemObj(id) {
- return request({
- url: '/match/findTrackById?id=' + id,
- method: 'get'
- })
- }
- export function addUser (obj) {
- return request({
- url: '/admin/user/insertUser',
- method: 'post',
- data: obj
- })
- }
- export function delItemObj(id) {
- return request({
- url: '/match/delTrackById?id=' + id,
- method: 'get'
- })
- }
- export function delCompetitionManagerById(id) {
- return request({
- url: '/match/delCompetitionManagerById?id=' + id,
- method: 'get'
- })
- }
- export function putItemObj(obj) {
- return request({
- url: '/match/updateTrack',
- method: 'post',
- data: obj
- })
- }
- export function addObj(obj) {
- return request({
- url: '/match/saveSecondMatch',//保存分赛信息
- method: 'post',
- data: obj
- })
- }
- export function getObj(id) {
- return request({
- url: '/match/getMatchById?id=' + id,
- method: 'get'
- })
- }
- export function delObj(row) {
- return request({
- url: '/match/delMatchById?id=' + row.id,
- method: 'get'
- })
- }
- export function putObj(obj) {
- return request({
- url: '/match/updateSubMatchById',
- method: 'post',
- data: obj
- })
- }
- export function insertPitch(obj) {
- return request({
- url: '/match/insertPitch/' ,
- method: 'post',
- data: obj
- })
- }
|