Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
20e4c6fb
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1431
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
20e4c6fb
编写于
3月 01, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
新增团队模板组件
上级
5d1d2b45
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
21 addition
and
7 deletion
+21
-7
common/src/main/resources/template/js/dsFormPage/editPageContent.js
.../main/resources/template/js/dsFormPage/editPageContent.js
+12
-0
web/src/main/resources/template/assets/lib/layui/customer/teamObjectPermissionUtil.js
...ate/assets/lib/layui/customer/teamObjectPermissionUtil.js
+9
-7
未找到文件。
common/src/main/resources/template/js/dsFormPage/editPageContent.js
浏览文件 @
20e4c6fb
...
@@ -81,6 +81,14 @@ layui.config({
...
@@ -81,6 +81,14 @@ layui.config({
<div class="layui-input-block">
<div class="layui-input-block">
<select lay-filter="dataShowType" lay-search="" id="dataShowType" name="dataShowType" win-verify="required">
<select lay-filter="dataShowType" lay-search="" id="dataShowType" name="dataShowType" win-verify="required">
</select>
</div>
</div>`
,
'
teamObjectTypeBox
'
:
`<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">团队适用对象<i class="red">*</i></label>
<div class="layui-input-block">
<select lay-filter="teamObjectType" lay-search="" id="teamObjectType" name="teamObjectType" win-verify="required">
</select>
</select>
</div>
</div>
</div>`
,
</div>`
,
...
@@ -142,6 +150,9 @@ layui.config({
...
@@ -142,6 +150,9 @@ layui.config({
// 数据展示类型
// 数据展示类型
dataShowType
.
showData
({
rows
:
dataShowType
.
showDataType
},
'
select
'
,
"
dataShowType
"
,
data
.
dataShowType
,
form
,
null
,
null
,
null
);
dataShowType
.
showData
({
rows
:
dataShowType
.
showDataType
},
'
select
'
,
"
dataShowType
"
,
data
.
dataShowType
,
form
,
null
,
null
,
null
);
// 团队适用对象
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
teamObjectType
"
,
'
select
'
,
"
teamObjectType
"
,
data
.
teamObjectType
,
form
);
matchingLanguage
();
matchingLanguage
();
form
.
render
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
...
@@ -170,6 +181,7 @@ layui.config({
...
@@ -170,6 +181,7 @@ layui.config({
newParams
.
defaultValue
=
$
(
"
#defaultValue
"
).
val
();
newParams
.
defaultValue
=
$
(
"
#defaultValue
"
).
val
();
newParams
.
width
=
$
(
"
#width
"
).
val
();
newParams
.
width
=
$
(
"
#width
"
).
val
();
newParams
.
attrKey
=
$
(
"
#attrKey
"
).
val
();
newParams
.
attrKey
=
$
(
"
#attrKey
"
).
val
();
newParams
.
teamObjectType
=
$
(
"
#teamObjectType
"
).
val
();
if
(
!
isNull
(
$
(
"
#attrKey
"
).
val
()))
{
if
(
!
isNull
(
$
(
"
#attrKey
"
).
val
()))
{
newParams
.
attrDefinition
=
getInPoingArr
(
parent
.
attrList
,
'
attrKey
'
,
$
(
"
#attrKey
"
).
val
());
newParams
.
attrDefinition
=
getInPoingArr
(
parent
.
attrList
,
'
attrKey
'
,
$
(
"
#attrKey
"
).
val
());
...
...
web/src/main/resources/template/assets/lib/layui/customer/teamObjectPermissionUtil.js
浏览文件 @
20e4c6fb
...
@@ -129,13 +129,15 @@ var teamObjectPermissionUtil = {
...
@@ -129,13 +129,15 @@ var teamObjectPermissionUtil = {
* @param defaultValue
* @param defaultValue
*/
*/
buildTeamTemplate
:
function
(
id
,
objectType
,
defaultValue
)
{
buildTeamTemplate
:
function
(
id
,
objectType
,
defaultValue
)
{
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryEnableTeamTemplateList
"
,
params
:
{
objectType
:
objectType
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
if
(
!
isNull
(
objectType
))
{
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
queryEnableTeamTemplateList
"
,
params
:
{
objectType
:
objectType
},
type
:
'
json
'
,
method
:
"
GET
"
,
callback
:
function
(
json
)
{
$
(
`#
${
id
}
`
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
var
selOption
=
getFileContent
(
'
tpl/template/select-option.tpl
'
);
if
(
!
isNull
(
defaultValue
))
{
$
(
`#
${
id
}
`
).
html
(
getDataUseHandlebars
(
selOption
,
json
));
$
(
`#
${
id
}
`
).
val
(
defaultValue
);
if
(
!
isNull
(
defaultValue
))
{
}
$
(
`#
${
id
}
`
).
val
(
defaultValue
);
},
async
:
false
});
}
},
async
:
false
});
}
},
},
checkTeamBusinessAuthPermission
:
function
(
objectId
,
enumKey
)
{
checkTeamBusinessAuthPermission
:
function
(
objectId
,
enumKey
)
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录