notice.js
1.91 KB
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
import request from '@/plugin/axios'
/**
* 公告管理
*/
export function noticeTable(data) {
return request({
url: '/hlwj/Notice/draftBox',
method: 'post',
data
})
}
/**
* 物理删除
*/
export function physicalDeletion(data) {
return request({
url: '/hlwj/Notice/deleteByIds?idList='+data,
method: 'delete'
})
}
/**
* 逻辑删除
*/
export function logicalDeletion(data) {
return request({
url: '/hlwj/Notice/updateIsDelete',
method: 'post',
data
})
}
/**
* 新增公告
*/
export function newAnnouncement(data) {
return request({
url: '/hlwj/Notice/insert',
method: 'post',
data
})
}
/**
* 发布公告
*/
export function announcement(data) {
return request({
url: '/hlwj/Notice/updateState?idList='+data.idList,
method: 'post'
})
}
/**
* 更新公告-编辑
*/
export function updateNotice(data) {
return request({
url: '/hlwj/Notice/update',
method: 'post',
data
})
}
/**
* 发布箱tableList
*/
export function releaseBox(data) {
return request({
url: '/hlwj/Notice/issueBox',
method: 'post',
data
})
}
/**
* 发布箱启用禁用
*/
export function publishingBoxEnabled(data) {
return request({
url: '/hlwj/Notice/updateEnable?idList='+data.idList+'&enable='+data.enable,
method: 'post'
})
}
/**
* 公告逻辑删除(使用场景:发布箱
*/
export function publishingLogicalDeletion(data) {
return request({
url: '/hlwj/Notice/updateIsDelete?idList='+data.idList+'&IsDelete='+data.IsDelete,
method: 'post'
})
}
/**
* 公告管理回收箱tablelist
*/
export function recycleBinTableList(data) {
return request({
url: '/hlwj/Notice/recycleBox?',
method: 'post',
data
})
}
/**
* 读取明细-详情展示
*/
export function getDetailById(data) {
return request({
url: '/hlwj/Notice/getDetailById',
method: 'get',
params: {
id:data
}
})
}