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