Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
8ba0f91e
提交
8ba0f91e
authored
2月 20, 2021
作者:
fit2cloud-chenyw
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 组织机构
上级
91372f77
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
61 行增加
和
7 行删除
+61
-7
SysDeptController.java
...in/java/io/dataease/controller/sys/SysDeptController.java
+4
-3
package.json
frontend/package.json
+2
-1
App.vue
frontend/src/business/App.vue
+1
-1
router.js
frontend/src/business/components/settings/router.js
+1
-1
dept.vue
frontend/src/business/components/settings/sys/dept.vue
+0
-0
test.vue
frontend/src/business/components/settings/sys/test.vue
+47
-0
main.js
frontend/src/business/main.js
+4
-0
vue.config.js
frontend/vue.config.js
+2
-1
没有找到文件。
backend/src/main/java/io/dataease/controller/sys/SysDeptController.java
浏览文件 @
8ba0f91e
package
io
.
dataease
.
controller
.
sys
;
package
io
.
dataease
.
controller
.
sys
;
import
io.dataease.base.domain.SysDept
;
import
io.dataease.base.domain.SysDept
;
import
io.dataease.controller.ResultHolder
;
import
io.dataease.service.sys.DeptService
;
import
io.dataease.service.sys.DeptService
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.Api
;
import
io.swagger.annotations.ApiOperation
;
import
io.swagger.annotations.ApiOperation
;
...
@@ -16,7 +17,7 @@ import java.util.List;
...
@@ -16,7 +17,7 @@ import java.util.List;
@RequiredArgsConstructor
@RequiredArgsConstructor
@Api
(
tags
=
"系统:部门管理"
)
@Api
(
tags
=
"系统:部门管理"
)
@RequestMapping
(
"/api/dept"
)
@RequestMapping
(
"/api/dept"
)
public
class
SysDeptController
{
public
class
SysDeptController
extends
ResultHolder
{
@Resource
@Resource
...
@@ -24,9 +25,9 @@ public class SysDeptController {
...
@@ -24,9 +25,9 @@ public class SysDeptController {
@ApiOperation
(
"查询部门"
)
@ApiOperation
(
"查询部门"
)
@PostMapping
(
"/root"
)
@PostMapping
(
"/root"
)
public
List
<
SysDept
>
rootData
(){
public
ResultHolder
rootData
(){
List
<
SysDept
>
root
=
deptService
.
root
();
List
<
SysDept
>
root
=
deptService
.
root
();
return
root
;
return
success
(
root
)
;
}
}
@ApiOperation
(
"新增部门"
)
@ApiOperation
(
"新增部门"
)
...
...
frontend/package.json
浏览文件 @
8ba0f91e
...
@@ -46,7 +46,8 @@
...
@@ -46,7 +46,8 @@
"vuedraggable"
:
"^2.24.3"
,
"vuedraggable"
:
"^2.24.3"
,
"vuex"
:
"^3.1.2"
,
"vuex"
:
"^3.1.2"
,
"xml-js"
:
"^1.6.11"
,
"xml-js"
:
"^1.6.11"
,
"yan-progress"
:
"^1.0.3"
"yan-progress"
:
"^1.0.3"
,
"@riophae/vue-treeselect"
:
"0.4.0"
},
},
"devDependencies"
:
{
"devDependencies"
:
{
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
"@vue/cli-plugin-babel"
:
"^4.1.0"
,
...
...
frontend/src/business/App.vue
浏览文件 @
8ba0f91e
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<!-- float right -->
<!-- float right -->
<ms-user/>
<ms-user/>
<ms-language-switch/>
<ms-language-switch/>
<
ms-header-org-ws/
>
<
!--
<ms-header-org-ws/>
--
>
</el-col>
</el-col>
</el-row>
</el-row>
...
...
frontend/src/business/components/settings/router.js
浏览文件 @
8ba0f91e
...
@@ -14,7 +14,7 @@ export default {
...
@@ -14,7 +14,7 @@ export default {
},
},
{
{
path
:
'organization'
,
path
:
'organization'
,
component
:
()
=>
import
(
'@/business/components/settings/sys
tem/Organization
'
),
component
:
()
=>
import
(
'@/business/components/settings/sys
/dept
'
),
meta
:
{
system
:
true
,
title
:
'commons.organization'
}
meta
:
{
system
:
true
,
title
:
'commons.organization'
}
},
},
// {
// {
...
...
frontend/src/business/components/settings/sys/dept.vue
0 → 100644
浏览文件 @
8ba0f91e
差异被折叠。
点击展开。
frontend/src/business/components/settings/sys/test.vue
0 → 100644
浏览文件 @
8ba0f91e
<
template
>
<fu-search-bar
quick-placeholder=
"按 姓名/邮箱 搜索"
:components=
"components"
@
exec=
"search"
/>
<!--
<layout-content>
<dynamic-table>
<fu-search-bar
quick-placeholder=
"按 姓名/邮箱 搜索"
:components=
"components"
@
exec=
"search"
/>
</dynamic-table>
</layout-content>
-->
</
template
>
<
script
>
// import DynamicTable from "@/components/dynamic-table";
// import LayoutContent from "@/components/layout/LayoutContent";
export
default
{
name
:
"UserManagement"
,
// components: {LayoutContent, DynamicTable},
data
()
{
return
{
components
:
[
{
field
:
"name"
,
label
:
"姓名"
,
component
:
"FuInputComponent"
,
defaultOperator
:
"eq"
},
{
field
:
"email"
,
label
:
"Email"
,
component
:
"FuInputComponent"
},
{
field
:
"status"
,
label
:
"状态"
,
component
:
"FuSelectComponent"
,
options
:
[
{
label
:
"运行中"
,
value
:
"Running"
},
{
label
:
"成功"
,
value
:
"Success"
},
{
label
:
"失败"
,
value
:
"Fail"
}
],
multiple
:
true
},
{
field
:
"create_time"
,
label
:
"创建时间"
,
component
:
"FuDateTimeComponent"
},
]
}
},
methods
:
{
search
(
condition
)
{
console
.
log
(
condition
)
}
}
}
</
script
>
<
style
scoped
>
</
style
>
frontend/src/business/main.js
浏览文件 @
8ba0f91e
import
Vue
from
'vue'
;
import
Vue
from
'vue'
;
import
ElementUI
from
'element-ui'
;
import
ElementUI
from
'element-ui'
;
import
Fit2CloudUI
from
'fit2cloud-ui'
;
import
'../assets/theme/index.css'
;
import
'../assets/theme/index.css'
;
import
icon
from
"../common/js/icon"
;
import
icon
from
"../common/js/icon"
;
import
filters
from
"../common/js/filter"
;
import
filters
from
"../common/js/filter"
;
...
@@ -31,6 +32,9 @@ Vue.use(icon);
...
@@ -31,6 +32,9 @@ Vue.use(icon);
Vue
.
use
(
ElementUI
,
{
Vue
.
use
(
ElementUI
,
{
i18n
:
(
key
,
value
)
=>
i18n
.
t
(
key
,
value
)
i18n
:
(
key
,
value
)
=>
i18n
.
t
(
key
,
value
)
});
});
Vue
.
use
(
Fit2CloudUI
,
{
i18n
:
(
key
,
value
)
=>
i18n
.
t
(
key
,
value
)
});
Vue
.
use
(
filters
);
Vue
.
use
(
filters
);
Vue
.
use
(
ajax
);
Vue
.
use
(
ajax
);
Vue
.
use
(
chart
);
Vue
.
use
(
chart
);
...
...
frontend/vue.config.js
浏览文件 @
8ba0f91e
...
@@ -28,7 +28,8 @@ module.exports = {
...
@@ -28,7 +28,8 @@ module.exports = {
}
}
},
},
configureWebpack
:
{
configureWebpack
:
{
devtool
:
'source-map'
,
// devtool: 'source-map',
devtool
:
'eval-source-map'
,
resolve
:
{
resolve
:
{
alias
:
{
alias
:
{
'@'
:
resolve
(
'src'
)
'@'
:
resolve
(
'src'
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论