Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
c27491f2
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
c27491f2
编写于
12月 10, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
团队新增团队经理
上级
8cc2efe9
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
111 addition
and
1 deletion
+111
-1
base-server/src/main/resources/template/js/teamBusiness/teamBusinessEdit.js
...in/resources/template/js/teamBusiness/teamBusinessEdit.js
+24
-0
base-server/src/main/resources/template/js/teamTemplate/teamTemplateAdd.js
...ain/resources/template/js/teamTemplate/teamTemplateAdd.js
+19
-0
base-server/src/main/resources/template/js/teamTemplate/teamTemplateEdit.js
...in/resources/template/js/teamTemplate/teamTemplateEdit.js
+24
-0
base-server/src/main/resources/template/js/teamTemplate/teamTemplateList.js
...in/resources/template/js/teamTemplate/teamTemplateList.js
+1
-0
base-server/src/main/resources/template/tpl/teamBusiness/teamBusinessDetails.html
...ources/template/tpl/teamBusiness/teamBusinessDetails.html
+9
-0
base-server/src/main/resources/template/tpl/teamBusiness/teamBusinessEdit.html
...resources/template/tpl/teamBusiness/teamBusinessEdit.html
+11
-0
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateAdd.html
.../resources/template/tpl/teamTemplate/teamTemplateAdd.html
+8
-0
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateDetails.html
...ources/template/tpl/teamTemplate/teamTemplateDetails.html
+6
-0
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateEdit.html
...resources/template/tpl/teamTemplate/teamTemplateEdit.html
+8
-0
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateList.html
...resources/template/tpl/teamTemplate/teamTemplateList.html
+1
-1
未找到文件。
base-server/src/main/resources/template/js/teamBusiness/teamBusinessEdit.js
浏览文件 @
c27491f2
var
userList
=
new
Array
();
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -29,6 +31,11 @@ layui.config({
ajaxSendLoadBefore
:
function
(
hdb
,
json
)
{},
ajaxSendAfter
:
function
(
json
)
{
loadTreeTable
();
userList
.
push
(
json
.
bean
.
chargeUserMation
);
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#chargeUser
"
).
val
(
item
.
name
);
});
// 解析成员信息
$
.
each
(
json
.
bean
.
teamRoleList
,
function
(
i
,
item
)
{
treeTableData
.
push
({
...
...
@@ -80,6 +87,7 @@ layui.config({
objectKey
:
objectKey
,
teamTemplateId
:
json
.
bean
.
teamTemplateId
,
teamRoleList
:
JSON
.
stringify
(
teamRoleList
),
chargeUser
:
userList
[
0
].
id
,
teamObjectPermissionList
:
JSON
.
stringify
(
teamObjectPermissionList
)
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
updateTeamBusiness
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
...
...
@@ -315,6 +323,22 @@ layui.config({
}});
});
// 团队经理选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#chargeUserSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
userList
=
[].
concat
(
userReturnList
);
// 添加选择
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#chargeUser
"
).
val
(
item
.
name
);
});
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
location
.
href
=
"
../../tpl/teamBusiness/teamBusinessDetails.html?objectId=
"
+
objectId
+
"
&objectKey=
"
+
objectKey
+
"
&objectType=
"
+
objectType
;
...
...
base-server/src/main/resources/template/js/teamTemplate/teamTemplateAdd.js
浏览文件 @
c27491f2
var
userList
=
new
Array
();
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -119,6 +121,7 @@ layui.config({
enabled
:
$
(
"
#enabled input:radio:checked
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
teamRoleList
:
JSON
.
stringify
(
teamRoleList
),
chargeUser
:
userList
[
0
].
id
,
teamObjectPermissionList
:
JSON
.
stringify
(
teamObjectPermissionList
)
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeTeamTemplate
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
...
...
@@ -268,6 +271,22 @@ layui.config({
}});
});
// 团队经理选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#chargeUserSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
userList
=
[].
concat
(
userReturnList
);
// 添加选择
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#chargeUser
"
).
val
(
item
.
name
);
});
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
...
...
base-server/src/main/resources/template/js/teamTemplate/teamTemplateEdit.js
浏览文件 @
c27491f2
var
userList
=
new
Array
();
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -29,6 +31,11 @@ layui.config({
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
teamObjectType
"
,
'
select
'
,
"
objectType
"
,
json
.
bean
.
objectType
,
form
);
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
commonEnable
"
,
'
radio
'
,
"
enabled
"
,
json
.
bean
.
enabled
,
form
);
userList
.
push
(
json
.
bean
.
chargeUserMation
);
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#chargeUser
"
).
val
(
item
.
name
);
});
loadTreeTable
();
// 解析成员信息
$
.
each
(
json
.
bean
.
teamRoleList
,
function
(
i
,
item
)
{
...
...
@@ -82,6 +89,7 @@ layui.config({
enabled
:
$
(
"
#enabled input:radio:checked
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
teamRoleList
:
JSON
.
stringify
(
teamRoleList
),
chargeUser
:
userList
[
0
].
id
,
teamObjectPermissionList
:
JSON
.
stringify
(
teamObjectPermissionList
)
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
writeTeamTemplate
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
...
...
@@ -318,6 +326,22 @@ layui.config({
}});
});
// 团队经理选择
$
(
"
body
"
).
on
(
"
click
"
,
"
#chargeUserSelPeople
"
,
function
(
e
)
{
systemCommonUtil
.
userReturnList
=
[].
concat
(
userList
);
systemCommonUtil
.
chooseOrNotMy
=
"
1
"
;
// 人员列表中是否包含自己--1.包含;其他参数不包含
systemCommonUtil
.
chooseOrNotEmail
=
"
2
"
;
// 人员列表中是否必须绑定邮箱--1.必须;其他参数没必要
systemCommonUtil
.
checkType
=
"
2
"
;
// 人员选择类型,1.多选;其他。单选
systemCommonUtil
.
openSysUserStaffChoosePage
(
function
(
userReturnList
)
{
// 重置数据
userList
=
[].
concat
(
userReturnList
);
// 添加选择
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#chargeUser
"
).
val
(
item
.
name
);
});
});
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
...
...
base-server/src/main/resources/template/js/teamTemplate/teamTemplateList.js
浏览文件 @
c27491f2
...
...
@@ -38,6 +38,7 @@ layui.config({
{
field
:
'
isUsed
'
,
title
:
'
使用状态
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
isUsed
"
,
'
id
'
,
d
.
isUsed
,
'
name
'
);
}},
{
field
:
'
chargeUserName
'
,
title
:
'
团队经理
'
,
width
:
120
},
{
field
:
'
remark
'
,
title
:
'
备注
'
,
width
:
300
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
...
...
base-server/src/main/resources/template/tpl/teamBusiness/teamBusinessDetails.html
浏览文件 @
c27491f2
...
...
@@ -18,6 +18,15 @@
<
div
class
=
"
layui-form-item layui-col-xs12
"
id
=
"
teamAuthEdit
"
style
=
"
text-align: right;
"
>
<
a
class
=
"
layui-btn layui-btn-sm layui-btn-normal
"
id
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
团队经理
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
chargeUserMation
.
name
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
成员信息
<
/span><hr
>
<
/div
>
...
...
base-server/src/main/resources/template/tpl/teamBusiness/teamBusinessEdit.html
浏览文件 @
c27491f2
...
...
@@ -15,6 +15,17 @@
<script
type=
"text/x-handlebars-template"
id=
"showTemplate"
>
{{
#
bean
}}
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
团队经理
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
chargeUser
"
name
=
"
chargeUser
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择团队经理
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
i
class
=
"
fa fa-user-plus input-icon
"
id
=
"
chargeUserSelPeople
"
><
/i
>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
团队经理拥有所有的权限
。
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
span
class
=
"
hr-title
"
>
成员信息
<
/span><hr
>
<
/div
>
...
...
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateAdd.html
浏览文件 @
c27491f2
...
...
@@ -19,6 +19,14 @@
<div
class=
"layui-form-mid layui-word-aux"
>
团队名称不能重复。
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
团队经理
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"chargeUser"
name=
"chargeUser"
win-verify=
"required"
placeholder=
"请选择团队经理"
class=
"layui-input"
readonly=
"readonly"
/>
<i
class=
"fa fa-user-plus input-icon"
id=
"chargeUserSelPeople"
></i>
<div
class=
"layui-form-mid layui-word-aux"
>
团队经理拥有所有的权限。
</div>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs6"
>
<label
class=
"layui-form-label"
>
适用对象
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
...
...
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateDetails.html
浏览文件 @
c27491f2
...
...
@@ -24,6 +24,12 @@
{{
name
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
团队经理
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
chargeUserMation
.
name
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
适用对象
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
...
...
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateEdit.html
浏览文件 @
c27491f2
...
...
@@ -25,6 +25,14 @@
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
团队名称不能重复
。
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
团队经理
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
chargeUser
"
name
=
"
chargeUser
"
win
-
verify
=
"
required
"
placeholder
=
"
请选择团队经理
"
class
=
"
layui-input
"
readonly
=
"
readonly
"
/>
<
i
class
=
"
fa fa-user-plus input-icon
"
id
=
"
chargeUserSelPeople
"
><
/i
>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
团队经理拥有所有的权限
。
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
适用对象
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
...
...
base-server/src/main/resources/template/tpl/teamTemplate/teamTemplateList.html
浏览文件 @
c27491f2
...
...
@@ -19,7 +19,7 @@
{{
#
if
(
auth
(
'
1656731571539
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1656731583257
'
)){
}}
{{
#
if
(
auth
(
'
1656731583257
'
)
&&
d
.
isUsed
!=
1
){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录