liuyg
2021-07-20 eed39ea913dddfe6572f37de8c7de3f1523b6816
1
2
3
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import request from '@/router/axios';
import axios from 'axios'
 
var newAxios = axios.create({
    baseURL: "http://192.168.0.105:812",
    withCredentials: false,
    // headers: {
    //     "Content-type": "application/x-ww-form-urlencoded"
    // }
})
 
export const getList = (current, size, params) => {
    // return request({
    return newAxios({
        url: '/api/punish/list',
        method: 'get',
        params: {
            ...params,
            current,
            size,
        }
    })
}
 
export const adddata = (row) => {
    // return request({
    return newAxios({
        url: '/api/punish/save',
        // url: 'http://192.168.0.104:80/punish/save',
        method: 'post',
        data: row
    })
}
 
export const update = (row) => {
    // return request({
    return newAxios({
        url: '/api/punish/update',
        method: 'post',
        data: row
    })
}
 
export const remove = (ids) => {
    // return request({
    return newAxios({
        url: '/api/punish/remove',
        method: 'post',
        params: {
            ids,
        }
    })
}