From 86b9a84a095a86f920681f69f6ee10e5553b9886 Mon Sep 17 00:00:00 2001 From: 32189 <3218665834@qq.com> Date: Fri, 3 Mar 2023 19:56:33 +0800 Subject: [PATCH] =?UTF-8?q?:tada:=20=E6=A8=A1=E5=9E=8B=E7=AE=A1=E7=90=86?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E5=88=A0=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/oa/model.ts | 9 +- src/views/oa/model/form.vue | 201 ++++++++++++++++++++--------------- src/views/oa/model/index.vue | 162 ++++++++++++++-------------- 3 files changed, 203 insertions(+), 169 deletions(-) diff --git a/src/api/oa/model.ts b/src/api/oa/model.ts index 4de5bd3e..feee03f5 100644 --- a/src/api/oa/model.ts +++ b/src/api/oa/model.ts @@ -8,10 +8,11 @@ export function fetchList(query) { }) } -export function delObj(id) { +export function delObj(ids:Object) { return request({ - url: '/admin/model/' + id, - method: 'delete' + url: '/admin/model', + method: 'delete', + data: ids }) } @@ -22,7 +23,7 @@ export function deploy(id) { }) } -export function addObj(obj) { +export function addObj(obj?: Object) { return request({ url: '/admin/model/insert', method: 'post', diff --git a/src/views/oa/model/form.vue b/src/views/oa/model/form.vue index c520ab57..8a5f1172 100644 --- a/src/views/oa/model/form.vue +++ b/src/views/oa/model/form.vue @@ -1,105 +1,134 @@ - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + {{ $t('common.cancelButtonText') }} - {{ $t('common.confirmButtonText') }} + {{ $t('common.confirmButtonText') }} - - + + - diff --git a/src/views/oa/model/index.vue b/src/views/oa/model/index.vue index 562928aa..4d248f49 100644 --- a/src/views/oa/model/index.vue +++ b/src/views/oa/model/index.vue @@ -5,7 +5,7 @@ + v-model="state.queryForm.category"/> @@ -18,125 +18,129 @@ + v-auth="'oa_model_add'"> {{ $t('common.addBtn') }} + type="primary" v-auth="'oa_model_del'"> {{ $t('common.delBtn') }} + v-model:showSearch="showSearch"> - - + v-loading="state.loading"> + + - + + show-overflow-tooltip> 模型图 - 部署 + + 部署 {{ - $t('common.delBtn') + v-auth="'app_approle_del'">{{ + $t('common.delBtn') }} - + - +