修改字典树接口
This commit is contained in:
@@ -4,7 +4,7 @@ export const dicDelete = (id: string) => {
|
|||||||
let form = new FormData()
|
let form = new FormData()
|
||||||
form.append('id', id)
|
form.append('id', id)
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: '/system-boot/dic/delete',
|
url: '/system-boot/dictTree/delete',
|
||||||
method: 'DELETE',
|
method: 'DELETE',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
@@ -15,7 +15,7 @@ export const dicDelete = (id: string) => {
|
|||||||
|
|
||||||
export function dicAdd(data: any) {
|
export function dicAdd(data: any) {
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: '/system-boot/dic/add',
|
url: '/system-boot/dictTree/add',
|
||||||
method: 'post',
|
method: 'post',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
@@ -23,7 +23,7 @@ export function dicAdd(data: any) {
|
|||||||
|
|
||||||
export function dicUpdate(data: any) {
|
export function dicUpdate(data: any) {
|
||||||
return createAxios({
|
return createAxios({
|
||||||
url: '/system-boot/dic/update',
|
url: '/system-boot/dictTree/update',
|
||||||
method: 'put',
|
method: 'put',
|
||||||
data: data
|
data: data
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -24,8 +24,9 @@ defineOptions({
|
|||||||
const popupFormRef = ref()
|
const popupFormRef = ref()
|
||||||
const tableStore = new TableStore({
|
const tableStore = new TableStore({
|
||||||
showPage:false,
|
showPage:false,
|
||||||
url: '/system-boot/dic/dicTree',
|
url: '/system-boot/dictTree/queryTree',
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
|
publicHeight:60,
|
||||||
column: [
|
column: [
|
||||||
{ title: '字典名称', field: 'name', treeNode: true, align: 'left' },
|
{ title: '字典名称', field: 'name', treeNode: true, align: 'left' },
|
||||||
// { title: '排序', field: 'sort',width:'80' },
|
// { title: '排序', field: 'sort',width:'80' },
|
||||||
|
|||||||
Reference in New Issue
Block a user