diff --git a/src/api/system-boot/dic.ts b/src/api/system-boot/dic.ts index 153a0ca7..21dff52e 100644 --- a/src/api/system-boot/dic.ts +++ b/src/api/system-boot/dic.ts @@ -4,7 +4,7 @@ export const dicDelete = (id: string) => { let form = new FormData() form.append('id', id) return createAxios({ - url: '/system-boot/dic/delete', + url: '/system-boot/dictTree/delete', method: 'DELETE', headers: { 'Content-Type': 'application/x-www-form-urlencoded' @@ -15,7 +15,7 @@ export const dicDelete = (id: string) => { export function dicAdd(data: any) { return createAxios({ - url: '/system-boot/dic/add', + url: '/system-boot/dictTree/add', method: 'post', data: data }) @@ -23,7 +23,7 @@ export function dicAdd(data: any) { export function dicUpdate(data: any) { return createAxios({ - url: '/system-boot/dic/update', + url: '/system-boot/dictTree/update', method: 'put', data: data }) diff --git a/src/views/setting/dictionary/tree/index.vue b/src/views/setting/dictionary/tree/index.vue index 422e5ef4..f96a7c2b 100644 --- a/src/views/setting/dictionary/tree/index.vue +++ b/src/views/setting/dictionary/tree/index.vue @@ -24,8 +24,9 @@ defineOptions({ const popupFormRef = ref() const tableStore = new TableStore({ showPage:false, - url: '/system-boot/dic/dicTree', + url: '/system-boot/dictTree/queryTree', method: 'GET', + publicHeight:60, column: [ { title: '字典名称', field: 'name', treeNode: true, align: 'left' }, // { title: '排序', field: 'sort',width:'80' },