Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
298b9176
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
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看板
提交
298b9176
编写于
12月 10, 2022
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
解决团队模板的bug
上级
c783e1ce
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
50 addition
and
18 deletion
+50
-18
base-server/src/main/resources/template/js/contacts/contactsList.js
...r/src/main/resources/template/js/contacts/contactsList.js
+5
-4
base-server/src/main/resources/template/js/teamBusiness/teamBusinessEdit.js
...in/resources/template/js/teamBusiness/teamBusinessEdit.js
+5
-2
base-server/src/main/resources/template/js/teamTemplate/teamTemplateAdd.js
...ain/resources/template/js/teamTemplate/teamTemplateAdd.js
+10
-2
base-server/src/main/resources/template/js/teamTemplate/teamTemplateEdit.js
...in/resources/template/js/teamTemplate/teamTemplateEdit.js
+5
-2
base-server/src/main/resources/template/tpl/contacts/contactsList.html
...rc/main/resources/template/tpl/contacts/contactsList.html
+2
-2
crm/src/main/resources/template/js/customerManage/customerEdit.js
...main/resources/template/js/customerManage/customerEdit.js
+3
-3
crm/src/main/resources/template/tpl/customerManage/customerDetails.html
...esources/template/tpl/customerManage/customerDetails.html
+3
-3
web/src/main/resources/template/assets/lib/layui/customer/teamObjectPermissionUtil.js
...ate/assets/lib/layui/customer/teamObjectPermissionUtil.js
+17
-0
未找到文件。
base-server/src/main/resources/template/js/contacts/contactsList.js
浏览文件 @
298b9176
...
@@ -13,14 +13,15 @@ layui.config({
...
@@ -13,14 +13,15 @@ layui.config({
var
$
=
layui
.
$
,
var
$
=
layui
.
$
,
form
=
layui
.
form
,
form
=
layui
.
form
,
table
=
layui
.
table
;
table
=
layui
.
table
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectKey
=
GetUrlParam
(
"
objectKey
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
return
false
;
}
}
var
authPermission
=
teamObjectPermissionUtil
.
checkTeamBusinessAuthPermission
(
objectId
,
'
contactsAuthEnum
'
);
authBtn
(
'
1596375844035
'
);
authBtn
(
'
1596375844035
'
);
table
.
render
({
table
.
render
({
id
:
'
messageTable
'
,
id
:
'
messageTable
'
,
...
@@ -45,8 +46,8 @@ layui.config({
...
@@ -45,8 +46,8 @@ layui.config({
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
{
field
:
'
lastUpdateTime
'
,
title
:
'
最后修改时间
'
,
align
:
'
center
'
,
width
:
100
},
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#tableBar
'
}
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#tableBar
'
}
]],
]],
done
:
function
(
json
)
{
done
:
function
(
json
)
{
matchingLanguage
();
matchingLanguage
();
...
...
base-server/src/main/resources/template/js/teamBusiness/teamBusinessEdit.js
浏览文件 @
298b9176
...
@@ -121,11 +121,14 @@ layui.config({
...
@@ -121,11 +121,14 @@ layui.config({
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
removeRole
'
)
{
if
(
layEvent
===
'
removeRole
'
)
{
// 移除角色和该角色下的用户
// 移除角色和该角色下的用户
var
tmp
=
[];
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
if
(
item
.
id
==
data
.
id
||
item
.
pId
=
=
data
.
id
)
{
if
(
item
.
id
!=
data
.
id
&&
item
.
pId
!
=
data
.
id
)
{
t
reeTableData
.
splice
(
index
,
1
);
t
mp
.
push
(
item
);
}
}
});
});
treeTableData
=
[].
concat
(
tmp
);
restCheckbox
();
restCheckbox
();
reloadTreeTable
();
reloadTreeTable
();
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
...
...
base-server/src/main/resources/template/js/teamTemplate/teamTemplateAdd.js
浏览文件 @
298b9176
...
@@ -49,11 +49,14 @@ layui.config({
...
@@ -49,11 +49,14 @@ layui.config({
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
removeRole
'
)
{
if
(
layEvent
===
'
removeRole
'
)
{
// 移除角色和该角色下的用户
// 移除角色和该角色下的用户
var
tmp
=
[];
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
if
(
item
.
id
==
data
.
id
||
item
.
pId
=
=
data
.
id
)
{
if
(
item
.
id
!=
data
.
id
&&
item
.
pId
!
=
data
.
id
)
{
t
reeTableData
.
splice
(
index
,
1
);
t
mp
.
push
(
item
);
}
}
});
});
treeTableData
=
[].
concat
(
tmp
);
reloadTreeTable
();
reloadTreeTable
();
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
var
roleId
=
data
.
id
;
var
roleId
=
data
.
id
;
...
@@ -184,6 +187,11 @@ layui.config({
...
@@ -184,6 +187,11 @@ layui.config({
loadAuthTreeTable
(
item
.
id
,
item
.
cols
,
data
);
loadAuthTreeTable
(
item
.
id
,
item
.
cols
,
data
);
});
});
$
.
each
(
checkTrueList
,
function
(
i
,
id
)
{
$
(
`input[id='
${
id
}
']`
).
prop
(
"
checked
"
,
true
);
});
form
.
render
(
'
checkbox
'
);
form
.
on
(
'
checkbox(checkClick)
'
,
function
(
obj
)
{
form
.
on
(
'
checkbox(checkClick)
'
,
function
(
obj
)
{
var
id
=
$
(
this
).
attr
(
'
id
'
);
var
id
=
$
(
this
).
attr
(
'
id
'
);
var
str
=
id
.
split
(
'
_
'
);
var
str
=
id
.
split
(
'
_
'
);
...
...
base-server/src/main/resources/template/js/teamTemplate/teamTemplateEdit.js
浏览文件 @
298b9176
...
@@ -123,11 +123,14 @@ layui.config({
...
@@ -123,11 +123,14 @@ layui.config({
var
layEvent
=
obj
.
event
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
removeRole
'
)
{
if
(
layEvent
===
'
removeRole
'
)
{
// 移除角色和该角色下的用户
// 移除角色和该角色下的用户
var
tmp
=
[];
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
$
.
each
(
treeTableData
,
function
(
index
,
item
)
{
if
(
item
.
id
==
data
.
id
||
item
.
pId
=
=
data
.
id
)
{
if
(
item
.
id
!=
data
.
id
&&
item
.
pId
!
=
data
.
id
)
{
t
reeTableData
.
splice
(
index
,
1
);
t
mp
.
push
(
item
);
}
}
});
});
treeTableData
=
[].
concat
(
tmp
);
restCheckbox
();
restCheckbox
();
reloadTreeTable
();
reloadTreeTable
();
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
}
else
if
(
layEvent
===
'
addUser
'
)
{
// 添加成员
...
...
base-server/src/main/resources/template/tpl/contacts/contactsList.html
浏览文件 @
298b9176
...
@@ -10,13 +10,13 @@
...
@@ -10,13 +10,13 @@
<div
class=
"winui-toolbar"
>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"
1596375844035
"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"
add
"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
auth
(
'
1596375844035
'
))
{
}}
{{
#
if
(
auth
Permission
[
'
edit
'
])
{
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
auth
(
'
1596375863370
'
)){
}}
{{
#
if
(
auth
(
'
1596375863370
'
)){
}}
...
...
crm/src/main/resources/template/js/customerManage/customerEdit.js
浏览文件 @
298b9176
...
@@ -37,9 +37,9 @@ layui.config({
...
@@ -37,9 +37,9 @@ layui.config({
teamObjectPermissionUtil
.
buildTeamTemplate
(
'
teamTemplateId
'
,
1
,
json
.
bean
.
teamTemplateId
);
teamObjectPermissionUtil
.
buildTeamTemplate
(
'
teamTemplateId
'
,
1
,
json
.
bean
.
teamTemplateId
);
textool
.
init
({
eleId
:
'
addDesc
'
,
maxlength
:
200
});
textool
.
init
({
eleId
:
'
addDesc
'
,
maxlength
:
200
});
if
(
!
isNull
(
json
.
bean
.
chargeUser
))
{
if
(
!
isNull
(
json
.
bean
.
chargeUser
Mation
))
{
userList
=
[].
concat
(
json
.
bean
.
chargeUser
);
userList
.
push
(
json
.
bean
.
chargeUserMation
);
$
.
each
(
json
.
bean
.
chargeUser
,
function
(
i
,
item
)
{
$
.
each
(
userList
,
function
(
i
,
item
)
{
$
(
"
#relationUserId
"
).
val
(
item
.
name
);
$
(
"
#relationUserId
"
).
val
(
item
.
name
);
});
});
}
}
...
...
crm/src/main/resources/template/tpl/customerManage/customerDetails.html
浏览文件 @
298b9176
...
@@ -33,13 +33,13 @@
...
@@ -33,13 +33,13 @@
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
分类
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
分类
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
type
Id
}}
{{
type
Name
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
客户来源
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
客户来源
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
from
Id
}}
{{
from
Name
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
...
@@ -51,7 +51,7 @@
...
@@ -51,7 +51,7 @@
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
所属行业
:
<
/label
>
<
label
class
=
"
layui-form-label
"
>
所属行业
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
industry
Id
}}
{{
industry
Name
}}
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
...
...
web/src/main/resources/template/assets/lib/layui/customer/teamObjectPermissionUtil.js
浏览文件 @
298b9176
...
@@ -136,6 +136,23 @@ var teamObjectPermissionUtil = {
...
@@ -136,6 +136,23 @@ var teamObjectPermissionUtil = {
$
(
`#
${
id
}
`
).
val
(
defaultValue
);
$
(
`#
${
id
}
`
).
val
(
defaultValue
);
}
}
},
async
:
false
});
},
async
:
false
});
},
checkTeamBusinessAuthPermission
:
function
(
objectId
,
enumKey
)
{
var
params
=
{
objectId
:
objectId
,
enumClassName
:
skyeyeClassEnum
[
enumKey
].
className
};
var
authPermission
=
{};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
checkTeamBusinessAuthPermission
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
authPermission
=
json
.
bean
;
$
.
each
(
authPermission
,
function
(
key
,
checkResult
)
{
if
(
!
checkResult
)
{
$
(
'
[auth="
'
+
key
+
'
"]
'
).
remove
();
}
});
},
async
:
false
});
return
authPermission
;
}
}
}
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录