forked from github/dataease
Merge pull request #110 from dataease/pr@dev@feat_组织管理增加可拖拽移动功能
feat: 组织管理增加可拖拽移动功能
This commit is contained in:
commit
639e320f3f
@ -38,6 +38,7 @@ public class ShiroServiceImpl implements ShiroService {
|
|||||||
filterChainDefinitionMap.put("/link/**", ANON);
|
filterChainDefinitionMap.put("/link/**", ANON);
|
||||||
filterChainDefinitionMap.put("/index.html", ANON);
|
filterChainDefinitionMap.put("/index.html", ANON);
|
||||||
filterChainDefinitionMap.put("/link.html", ANON);
|
filterChainDefinitionMap.put("/link.html", ANON);
|
||||||
|
filterChainDefinitionMap.put("/axios.map", ANON);
|
||||||
|
|
||||||
//验证链接
|
//验证链接
|
||||||
filterChainDefinitionMap.put("/api/link/validate**", ANON);
|
filterChainDefinitionMap.put("/api/link/validate**", ANON);
|
||||||
|
@ -7,6 +7,7 @@ import io.dataease.plugins.common.entity.XpackGridRequest;
|
|||||||
import io.dataease.plugins.config.SpringContextUtil;
|
import io.dataease.plugins.config.SpringContextUtil;
|
||||||
import io.dataease.plugins.xpack.dept.dto.request.XpackCreateDept;
|
import io.dataease.plugins.xpack.dept.dto.request.XpackCreateDept;
|
||||||
import io.dataease.plugins.xpack.dept.dto.request.XpackDeleteDept;
|
import io.dataease.plugins.xpack.dept.dto.request.XpackDeleteDept;
|
||||||
|
import io.dataease.plugins.xpack.dept.dto.request.XpackMoveDept;
|
||||||
import io.dataease.plugins.xpack.dept.dto.response.XpackDeptTreeNode;
|
import io.dataease.plugins.xpack.dept.dto.response.XpackDeptTreeNode;
|
||||||
import io.dataease.plugins.xpack.dept.dto.response.XpackSysDept;
|
import io.dataease.plugins.xpack.dept.dto.response.XpackSysDept;
|
||||||
import io.dataease.plugins.xpack.dept.service.DeptXpackService;
|
import io.dataease.plugins.xpack.dept.service.DeptXpackService;
|
||||||
@ -77,4 +78,10 @@ public class XDeptServer {
|
|||||||
DeptXpackService deptService = SpringContextUtil.getBean(DeptXpackService.class);
|
DeptXpackService deptService = SpringContextUtil.getBean(DeptXpackService.class);
|
||||||
return deptService.searchTree(deptId);
|
return deptService.searchTree(deptId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@PostMapping("/move")
|
||||||
|
public void move(@RequestBody XpackMoveDept xpackMoveDept){
|
||||||
|
DeptXpackService deptService = SpringContextUtil.getBean(DeptXpackService.class);
|
||||||
|
deptService.move(xpackMoveDept);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
1757
frontend/public/axios.js
Normal file
1757
frontend/public/axios.js
Normal file
File diff suppressed because it is too large
Load Diff
@ -5,7 +5,7 @@
|
|||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
|
||||||
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
|
||||||
<script src="https://unpkg.com/axios/dist/axios.min.js"></script>
|
<script src="axios.js"></script>
|
||||||
<title><%= webpackConfig.name %></title>
|
<title><%= webpackConfig.name %></title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import axios from 'axios'
|
// import axios from 'axios'
|
||||||
// import { MessageBox, Message } from 'element-ui'
|
// import { MessageBox, Message } from 'element-ui'
|
||||||
import store from '@/store'
|
import store from '@/store'
|
||||||
import { $alert, $error } from './message'
|
import { $alert, $error } from './message'
|
||||||
|
Loading…
Reference in New Issue
Block a user