|
@@ -0,0 +1,50 @@
|
|
|
+import request from '@/utils/request'
|
|
|
+
|
|
|
+// 查询事项列表
|
|
|
+export function listDept(query) {
|
|
|
+ return request({
|
|
|
+ url: '/system/collect/list',
|
|
|
+ method: 'get',
|
|
|
+ params: query
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 查询事项详细
|
|
|
+export function getDept(id) {
|
|
|
+ return request({
|
|
|
+ url: '/system/matter/lists/' + id,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+// 新增事项
|
|
|
+export function addsc(data) {
|
|
|
+ return request({
|
|
|
+ url: '/system/collect/add',
|
|
|
+ method: 'post',
|
|
|
+ data: data
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 查询事项收藏详细
|
|
|
+export function collectlist(id) {
|
|
|
+ return request({
|
|
|
+ url: '/system/collect/collectlist/' + id,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 查询事项详细
|
|
|
+export function getsc(id) {
|
|
|
+ return request({
|
|
|
+ url: '/system/collect/lists/' + id,
|
|
|
+ method: 'get'
|
|
|
+ })
|
|
|
+}
|
|
|
+
|
|
|
+// 删除事项
|
|
|
+export function delDept(id) {
|
|
|
+ return request({
|
|
|
+ url: '/system/collect/delete/' + id,
|
|
|
+ method: 'delete'
|
|
|
+ })}
|
|
|
+
|