Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
5602c720
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1436
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看板
提交
5602c720
编写于
5月 22, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表单布局内容新增前置属性以及后置属性
上级
f96a08a6
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
38 addition
and
5 deletion
+38
-5
common/src/main/resources/template/js/dsFormPage/editPageContent.js
.../main/resources/template/js/dsFormPage/editPageContent.js
+35
-5
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+3
-0
未找到文件。
common/src/main/resources/template/js/dsFormPage/editPageContent.js
浏览文件 @
5602c720
...
...
@@ -69,6 +69,22 @@ layui.config({
</select>
</div>
</div>`
,
'
preAttributeBox
'
:
`<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">前置属性</label>
<div class="layui-input-block">
<select lay-filter="preAttribute" lay-search="" id="preAttribute" name="preAttribute">
</select>
</div>
</div>`
,
'
postAttributeBox
'
:
`<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">后置属性</label>
<div class="layui-input-block">
<select lay-filter="postAttribute" lay-search="" id="postAttribute" name="postAttribute">
</select>
</div>
</div>`
,
'
uploadDataTypeBox
'
:
`<div class="layui-form-item layui-col-xs12">
<label class="layui-form-label">文件后缀类型<i class="red">*</i></label>
<div class="layui-input-block" id="uploadDataType">
...
...
@@ -238,15 +254,23 @@ layui.config({
// 属性信息
var
attrs
=
[];
var
otherAttrs
=
[];
$
.
each
(
parent
.
attrList
,
function
(
i
,
item
)
{
// 获取已经绑定组件的属性并且适用于当前组件的属性
if
(
!
isNull
(
item
.
attrDefinitionCustom
))
{
var
dsFormComponent
=
item
.
attrDefinitionCustom
.
dsFormComponent
;
if
(
!
isNull
(
dsFormComponent
)
&&
data
.
dsFormComponent
.
id
==
dsFormComponent
.
id
)
{
attrs
.
push
({
id
:
item
.
attrKey
,
name
:
item
.
attrDefinitionCustom
.
name
})
if
(
!
isNull
(
dsFormComponent
))
{
if
(
data
.
dsFormComponent
.
id
==
dsFormComponent
.
id
)
{
attrs
.
push
({
id
:
item
.
attrKey
,
name
:
item
.
attrDefinitionCustom
.
name
})
}
else
{
otherAttrs
.
push
({
id
:
item
.
attrKey
,
name
:
item
.
attrDefinitionCustom
.
name
})
}
}
}
});
...
...
@@ -263,6 +287,10 @@ layui.config({
}
$
(
"
#attrTransformTableListConfig
"
).
parent
().
attr
(
'
data-json
'
,
JSON
.
stringify
([]));
});
$
(
"
#preAttribute
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
otherAttrs
}));
$
(
"
#preAttribute
"
).
val
(
data
.
preAttribute
);
$
(
"
#postAttribute
"
).
html
(
getDataUseHandlebars
(
selOption
,
{
rows
:
otherAttrs
}));
$
(
"
#postAttribute
"
).
val
(
data
.
postAttribute
);
// 宽度
skyeyeClassEnumUtil
.
showEnumDataListByClassName
(
"
widthScale
"
,
'
select
'
,
"
width
"
,
data
.
width
,
form
);
...
...
@@ -362,6 +390,8 @@ layui.config({
newParams
.
defaultValue
=
$
(
"
#defaultValue
"
).
val
();
newParams
.
width
=
$
(
"
#width
"
).
val
();
newParams
.
attrKey
=
$
(
"
#attrKey
"
).
val
();
newParams
.
preAttribute
=
$
(
"
#preAttribute
"
).
val
();
newParams
.
postAttribute
=
$
(
"
#postAttribute
"
).
val
();
newParams
.
teamObjectType
=
$
(
"
#teamObjectType
"
).
val
();
newParams
.
isEdit
=
dataShowType
.
getData
(
"
isEdit
"
);
newParams
.
dateTimeType
=
dataShowType
.
getData
(
"
dateTimeType
"
);
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
5602c720
...
...
@@ -340,6 +340,9 @@ var dsFormUtil = {
if
(
isNull
(
content
.
attrDefinition
))
{
content
.
attrDefinition
=
{};
}
if
(
!
isNull
(
content
.
dataChange
))
{
content
.
dataChange
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
content
.
dataChange
+
'
{{/bean}}
'
,
{
bean
:
content
});
}
var
jsonStr
=
{
bean
:
content
};
var
html
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
component
.
htmlContent
+
'
{{/bean}}
'
,
jsonStr
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录