Blame view

src/api/oa/examineStaffManageApi.js 906 Bytes
a99eb7a5   wuxw   开发完成办公下功能
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
  import request from '@/utils/request'
  import { getCommunityId } from '@/api/community/communityApi'
  
  // 获取考核人员列表
  export function listExamineStaff(params) {
    return new Promise((resolve, reject) => {
      request({
        url: '/examine.listExamineStaff',
        method: 'get',
        params: {
          ...params,
          communityId: getCommunityId()
        }
      }).then(response => {
        const res = response.data
        resolve(res)
      }).catch(error => {
        reject(error)
      })
    })
  }
  
  // 删除考核人员
  export function deleteExamineStaff(data) {
    return new Promise((resolve, reject) => {
      request({
        url: '/examine.deleteExamineStaff',
        method: 'post',
        data: {
          ...data,
          communityId: getCommunityId()
        }
      }).then(response => {
        const res = response.data
        resolve(res)
      }).catch(error => {
        reject(error)
      })
    })
  }