diff --git a/src/api/oa/leave-bill.ts b/src/api/oa/leave-bill.ts index de553bf0..6b6ab3ab 100644 --- a/src/api/oa/leave-bill.ts +++ b/src/api/oa/leave-bill.ts @@ -1,46 +1,47 @@ import request from '/@/utils/request'; export function fetchList(query) { - return request({ - url: '/admin/leave-bill/page', - method: 'get', - params: query - }) + return request({ + url: '/admin/leave-bill/page', + method: 'get', + params: query + }) } export function addObj(obj) { - return request({ - url: '/admin/leave-bill', - method: 'post', - data: obj - }) + return request({ + url: '/admin/leave-bill', + method: 'post', + data: obj + }) } export function getObj(id) { - return request({ - url: '/admin/leave-bill/' + id, - method: 'get' - }) + return request({ + url: '/admin/leave-bill/' + id, + method: 'get' + }) } export function submit(id) { - return request({ - url: '/admin/leave-bill/submit/' + id, - method: 'get' - }) + return request({ + url: '/admin/leave-bill/submit/' + id, + method: 'get' + }) } -export function delObj(id) { - return request({ - url: '/admin/leave-bill/' + id, - method: 'delete' - }) +export function delObj(ids?: Object) { + return request({ + url: '/admin/leave-bill', + method: 'delete', + data: ids + }) } export function putObj(obj) { - return request({ - url: '/admin/leave-bill/', - method: 'put', - data: obj - }) + return request({ + url: '/admin/leave-bill/', + method: 'put', + data: obj + }) } diff --git a/src/api/oa/process.ts b/src/api/oa/process.ts index 3369e76c..858db9f6 100644 --- a/src/api/oa/process.ts +++ b/src/api/oa/process.ts @@ -1,23 +1,24 @@ import request from '/@/utils/request'; export function fetchList(query) { - return request({ - url: '/admin/process', - method: 'get', - params: query - }) + return request({ + url: '/admin/process', + method: 'get', + params: query + }) } -export function delObj(id) { - return request({ - url: '/admin/process/' + id, - method: 'delete' - }) +export function delObj(ids?: Object) { + return request({ + url: '/admin/process', + method: 'delete', + data: ids + }) } export function status(id, type) { - return request({ - url: '/admin/process/status/' + id + '/' + type, - method: 'put' - }) + return request({ + url: '/admin/process/status/' + id + '/' + type, + method: 'put' + }) } diff --git a/src/views/oa/leave_bill/index.vue b/src/views/oa/leave_bill/index.vue index 5c727dfb..49742ea9 100644 --- a/src/views/oa/leave_bill/index.vue +++ b/src/views/oa/leave_bill/index.vue @@ -1,154 +1,164 @@ - \ No newline at end of file diff --git a/src/views/oa/model/index.vue b/src/views/oa/model/index.vue index 4d248f49..3aca2660 100644 --- a/src/views/oa/model/index.vue +++ b/src/views/oa/model/index.vue @@ -43,13 +43,13 @@ show-overflow-tooltip>