From 6ee485548360a08deea002cd3220ea8a164613ff Mon Sep 17 00:00:00 2001 From: "aoli.qu" <408346101@qq.com> Date: Tue, 24 Aug 2021 15:08:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E8=AF=8D=E5=85=B8=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/sys/dictionary.js | 13 ++--- src/api/sys/dictionaryItem.js | 20 +++---- src/components/Table/index.js | 2 +- src/views/sys/dictionary/DictionaryDetail.vue | 40 -------------- src/views/sys/dictionary/DictionaryForm.vue | 53 ++++++++++--------- src/views/sys/dictionary/DictionaryList.vue | 24 ++++----- .../dictionaryItem/DictionaryItemDetail.vue | 48 ----------------- .../sys/dictionaryItem/DictionaryItemForm.vue | 48 ++++++++++------- .../sys/dictionaryItem/DictionaryItemList.vue | 22 ++++---- 9 files changed, 85 insertions(+), 185 deletions(-) delete mode 100644 src/views/sys/dictionary/DictionaryDetail.vue delete mode 100644 src/views/sys/dictionaryItem/DictionaryItemDetail.vue diff --git a/src/api/sys/dictionary.js b/src/api/sys/dictionary.js index 0f230a1..ee94471 100644 --- a/src/api/sys/dictionary.js +++ b/src/api/sys/dictionary.js @@ -2,7 +2,6 @@ import request from '@/utils/request' const dictionaryApi = { add: '/sys/dictionary/add', - get: '/sys/dictionary/get', update: '/sys/dictionary/edit', del: '/sys/dictionary/del', page: '/sys/dictionary/pageList' @@ -15,13 +14,6 @@ export function dictionaryAdd (params) { data: params }) } -export function dictionaryGet (params) { - return request({ - url: dictionaryApi.get, - method: 'post', - data: params - }) -} export function dictionaryUpdate (params) { return request({ url: dictionaryApi.update, @@ -33,13 +25,14 @@ export function dictionaryDel (params) { return request({ url: dictionaryApi.del, method: 'post', - data: params + params: params }) } export function dictionaryPage (params) { + console.log(params) return request({ url: dictionaryApi.page, method: 'get', - data: params + params: params }) } diff --git a/src/api/sys/dictionaryItem.js b/src/api/sys/dictionaryItem.js index 6d744ed..07a72df 100644 --- a/src/api/sys/dictionaryItem.js +++ b/src/api/sys/dictionaryItem.js @@ -1,11 +1,10 @@ import request from '@/utils/request' const dictionaryItemApi = { - add: '/sys/dictionaryItem/add', - get: '/sys/dictionaryItem/get', - update: '/sys/dictionaryItem/edit', - del: '/sys/dictionaryItem/del', - page: '/sys/dictionaryItem/pageList' + add: 'sys/dictionary/item/add', + update: 'sys/dictionary/item/edit', + del: 'sys/dictionary/item/del', + page: 'sys/dictionary/item/pageList' } export function dictionaryItemAdd (params) { @@ -15,13 +14,6 @@ export function dictionaryItemAdd (params) { data: params }) } -export function dictionaryItemGet (params) { - return request({ - url: dictionaryItemApi.get, - method: 'post', - data: params - }) -} export function dictionaryItemUpdate (params) { return request({ url: dictionaryItemApi.update, @@ -33,13 +25,13 @@ export function dictionaryItemDel (params) { return request({ url: dictionaryItemApi.del, method: 'post', - data: params + params: params }) } export function dictionaryItemPage (params) { return request({ url: dictionaryItemApi.page, method: 'get', - data: params + params: params }) } diff --git a/src/components/Table/index.js b/src/components/Table/index.js index a9301ca..7b1b717 100644 --- a/src/components/Table/index.js +++ b/src/components/Table/index.js @@ -178,7 +178,7 @@ export default { // } catch (e) { // this.localPagination = false // } - this.localDataSource = r.entities // 返回结果中的数组数据 + this.localDataSource = r.rows // 返回结果中的数组数据 this.localLoading = false }) } diff --git a/src/views/sys/dictionary/DictionaryDetail.vue b/src/views/sys/dictionary/DictionaryDetail.vue deleted file mode 100644 index 9c8a7f5..0000000 --- a/src/views/sys/dictionary/DictionaryDetail.vue +++ /dev/null @@ -1,40 +0,0 @@ - - - diff --git a/src/views/sys/dictionary/DictionaryForm.vue b/src/views/sys/dictionary/DictionaryForm.vue index 359a440..51bb570 100644 --- a/src/views/sys/dictionary/DictionaryForm.vue +++ b/src/views/sys/dictionary/DictionaryForm.vue @@ -1,5 +1,5 @@ + + diff --git a/src/views/sys/dictionaryItem/DictionaryItemForm.vue b/src/views/sys/dictionaryItem/DictionaryItemForm.vue index 907c696..942ae79 100644 --- a/src/views/sys/dictionaryItem/DictionaryItemForm.vue +++ b/src/views/sys/dictionaryItem/DictionaryItemForm.vue @@ -1,47 +1,52 @@