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 @@ - 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> - + - +