From 787bdf05ec9291ed5c6ab40e2d0fd450d4f7e2c4 Mon Sep 17 00:00:00 2001 From: 32189 <3218665834@qq.com> Date: Mon, 6 Mar 2023 08:26:40 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E5=89=8D=E7=AB=AF=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/leave-bill.ts | 57 +++--- src/api/oa/process.ts | 29 +-- src/views/oa/leave_bill/index.vue | 298 +++++++++++++++--------------- src/views/oa/model/index.vue | 6 +- src/views/oa/process/index.vue | 6 +- 5 files changed, 204 insertions(+), 192 deletions(-) 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 @@ - - - - - - - - - - - - - - - {{ $t('common.queryBtn') }} - - {{ $t('common.resetBtn') }} - - - - - - - {{ $t('common.addBtn') }} - - - {{ $t('common.exportBtn') }} - - - {{ $t('common.delBtn') }} - - - - - - - - - - - - - - - - - - - 提交 - {{ $t('common.editBtn') - }} - {{ - $t('common.delBtn') - }} - - - - - + + + + + + + + + + + + + + + {{ $t('common.queryBtn') }} + + {{ $t('common.resetBtn') }} + + + + + + + + {{ $t('common.addBtn') }} + + + {{ $t('common.exportBtn') }} + + + {{ $t('common.delBtn') }} + + + + + + + + + + + + + + + + + + + + 提交 + + {{ + $t('common.editBtn') + }} + + {{ + $t('common.delBtn') + }} + + + + + + - - - + + + - \ 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> - 模型图 + 模型图 - + 部署 {{ + v-auth="'oa_model_del'">{{ $t('common.delBtn') }} diff --git a/src/views/oa/process/index.vue b/src/views/oa/process/index.vue index 3152e7bd..2875a4a2 100644 --- a/src/views/oa/process/index.vue +++ b/src/views/oa/process/index.vue @@ -8,7 +8,7 @@ v-model="state.queryForm.category" /> - + {{ $t('common.queryBtn') }} {{ $t('common.resetBtn') }} @@ -18,7 +18,7 @@ + type="primary" v-auth="'oa_process_del'"> {{ $t('common.delBtn') }}