Blame view

src/api/system/buttonAuthorize.js 1.12 KB
4424f41c   monkeyhouyi   网信执法、清单管理静态页面
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
54
55
56
57
58
59
60
61
  import request from '@/utils/request'
  
  // 获取按钮权限列表
  export function getButtonAuthorizeList(moduleId, data) {
    return request({
      url: `/system/ModuleButton/${moduleId}/List`,
      method: 'GET',
      data
    })
  }
  
  // 获取按钮权限下拉列表
  export function getButtonAuthorizeSelector(moduleId) {
    return request({
      url: `/system/ModuleButton/${moduleId}/Selector`,
      method: 'GET'
    })
  }
  
  // 添加按钮
  export function createButton(data) {
    return request({
      url: `/system/ModuleButton`,
      method: 'POST',
      data
    })
  }
  
  // 更新按钮
  export function updateButton(data) {
    return request({
      url: `/system/ModuleButton/${data.id}`,
      method: 'PUT',
      data
    })
  }
  
  // 获取按钮信息
  export function getButtonInfo(id) {
    return request({
      url: `/system/ModuleButton/${id}`,
      method: 'GET'
    })
  }
  
  
  // 删除按钮
  export function delButton(id) {
    return request({
      url: `/system/ModuleButton/${id}`,
      method: 'DELETE'
    })
  }
  
  // 更新按钮状态
  export function updateButtonState(id) {
    return request({
      url: `/system/ModuleButton/${id}/Actions/State`,
      method: 'PUT'
    })
  }