Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
d8a0114f
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1432
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看板
提交
d8a0114f
编写于
11月 16, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序标签属性添加子查询属性
上级
763eddab
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
30 addition
and
4 deletion
+30
-4
skyeye-web/src/main/resources/dbmapper/RmPropertyMapper.xml
skyeye-web/src/main/resources/dbmapper/RmPropertyMapper.xml
+8
-3
skyeye-web/src/main/resources/dbmapper/SmProjectPageModelMapper.xml
.../src/main/resources/dbmapper/SmProjectPageModelMapper.xml
+2
-1
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+2
-0
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyadd.js
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyadd.js
+1
-0
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyedit.js
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyedit.js
+2
-0
skyeye-web/src/main/webapp/js/rmproperty/rmpropertylist.js
skyeye-web/src/main/webapp/js/rmproperty/rmpropertylist.js
+1
-0
skyeye-web/src/main/webapp/tpl/rmproperty/rmpropertyadd.html
skyeye-web/src/main/webapp/tpl/rmproperty/rmpropertyadd.html
+7
-0
skyeye-web/src/main/webapp/tpl/rmproperty/rmpropertyeditTemplate.tpl
...src/main/webapp/tpl/rmproperty/rmpropertyeditTemplate.tpl
+7
-0
未找到文件。
skyeye-web/src/main/resources/dbmapper/RmPropertyMapper.xml
浏览文件 @
d8a0114f
...
...
@@ -15,6 +15,7 @@
a.property_unit propertyUnit,
(SELECT COUNT(*) FROM rm_property_value c WHERE c.property_id = a.id) propertyValueNum,
(SELECT COUNT(*) FROM rm_group_member_property d WHERE d.property_id = a.id) useNum,
CASE a.wether_sel_child_data WHEN '1' THEN '是' WHEN '2' THEN '否' ELSE '否' END selChildData,
CONVERT(a.create_time, char) createTime
FROM
rm_property a
...
...
@@ -45,9 +46,9 @@
<insert
id=
"insertRmPropertyMation"
parameterType=
"java.util.Map"
>
INSERT into rm_property
(id, title, property_tag, property_out, property_unit, ds_form_content_id, html_content, js_content, js_rely_on, create_id, create_time)
(id, title, property_tag, property_out, property_unit, ds_form_content_id, html_content, js_content, js_rely_on,
wether_sel_child_data,
create_id, create_time)
VALUES
(#{id}, #{title}, #{propertyTag}, #{propertyOut}, #{propertyUnit}, #{dsFormContentId}, #{htmlContent}, #{jsContent}, #{jsRelyOn}, #{createId}, #{createTime})
(#{id}, #{title}, #{propertyTag}, #{propertyOut}, #{propertyUnit}, #{dsFormContentId}, #{htmlContent}, #{jsContent}, #{jsRelyOn}, #{
selChildData}, #{
createId}, #{createTime})
</insert>
<select
id=
"queryRmPropertyValueNumById"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
...
...
@@ -86,7 +87,8 @@
a.js_rely_on jsRelyOn,
a.property_unit propertyUnit,
b.html_content htmlModelContent,
b.js_content jsModelContent
b.js_content jsModelContent,
a.wether_sel_child_data selChildData
FROM
rm_property a
LEFT JOIN ds_form_content b ON a.ds_form_content_id = b.id
...
...
@@ -122,6 +124,9 @@
<if
test=
"htmlContent != '' and htmlContent != null"
>
html_content = #{htmlContent},
</if>
<if
test=
"selChildData != '' and selChildData != null"
>
wether_sel_child_data = #{selChildData},
</if>
js_content = #{jsContent},
js_rely_on = #{jsRelyOn},
property_unit = #{propertyUnit},
...
...
skyeye-web/src/main/resources/dbmapper/SmProjectPageModelMapper.xml
浏览文件 @
d8a0114f
...
...
@@ -41,7 +41,8 @@
b.property_unit propertyUnit,
b.html_content htmlContent,
b.js_content jsContent,
b.js_rely_on jsRelyOn
b.js_rely_on jsRelyOn,
b.wether_sel_child_data selChildData
FROM
rm_group_member_property a,
rm_property b
...
...
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
d8a0114f
...
...
@@ -349,6 +349,7 @@
<property
id=
"propertyTag"
name=
"propertyTag"
ref=
"required"
var=
"样式属性标签"
/>
<property
id=
"dsFormContentId"
name=
"dsFormContentId"
ref=
"required"
var=
"样式属性展现形式"
/>
<property
id=
"propertyOut"
name=
"propertyOut"
ref=
"required,num"
var=
"是否为外部属性 1是 2否"
/>
<property
id=
"selChildData"
name=
"selChildData"
ref=
"required,num"
var=
"子查询 1是 2否"
/>
<property
id=
"htmlContent"
name=
"htmlContent"
ref=
"required"
var=
"html内容"
/>
<property
id=
"jsContent"
name=
"jsContent"
ref=
""
var=
"js内容"
/>
<property
id=
"jsRelyOn"
name=
"jsRelyOn"
ref=
""
var=
"js依赖的js包"
/>
...
...
@@ -366,6 +367,7 @@
<property
id=
"propertyTag"
name=
"propertyTag"
ref=
"required"
var=
"样式属性标签"
/>
<property
id=
"dsFormContentId"
name=
"dsFormContentId"
ref=
"required"
var=
"样式属性展现形式"
/>
<property
id=
"propertyOut"
name=
"propertyOut"
ref=
"required,num"
var=
"是否为外部属性 1是 2否"
/>
<property
id=
"selChildData"
name=
"selChildData"
ref=
"required,num"
var=
"子查询 1是 2否"
/>
<property
id=
"htmlContent"
name=
"htmlContent"
ref=
"required"
var=
"html内容"
/>
<property
id=
"jsContent"
name=
"jsContent"
ref=
""
var=
"js内容"
/>
<property
id=
"jsRelyOn"
name=
"jsRelyOn"
ref=
""
var=
"js依赖的js包"
/>
...
...
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyadd.js
浏览文件 @
d8a0114f
...
...
@@ -129,6 +129,7 @@ layui.config({
propertyUnit
:
encodeURI
(
$
(
"
#propertyUnit
"
).
val
()),
dsFormContentId
:
$
(
"
#dsFormContentId
"
).
val
(),
propertyOut
:
data
.
field
.
propertyOut
,
selChildData
:
data
.
field
.
selChildData
,
htmlContent
:
encodeURI
(
htmlContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
jsContent
:
encodeURI
(
jsContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
jsRelyOn
:
encodeURI
(
jsRelyOnContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
...
...
skyeye-web/src/main/webapp/js/rmproperty/rmpropertyedit.js
浏览文件 @
d8a0114f
...
...
@@ -103,6 +103,7 @@ layui.config({
});
$
(
"
input:radio[name=propertyOut][value=
"
+
json
.
bean
.
propertyOut
+
"
]
"
).
prop
(
"
checked
"
,
true
);
$
(
"
input:radio[name=selChildData][value=
"
+
json
.
bean
.
selChildData
+
"
]
"
).
prop
(
"
checked
"
,
true
);
form
.
render
();
...
...
@@ -143,6 +144,7 @@ layui.config({
propertyUnit
:
encodeURI
(
$
(
"
#propertyUnit
"
).
val
()),
dsFormContentId
:
$
(
"
#dsFormContentId
"
).
val
(),
propertyOut
:
data
.
field
.
propertyOut
,
selChildData
:
data
.
field
.
selChildData
,
htmlContent
:
encodeURI
(
htmlContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
jsContent
:
encodeURI
(
jsContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
jsRelyOn
:
encodeURI
(
jsRelyOnContent
.
getValue
().
replace
(
/
\+
/g
,
"
%2B
"
).
replace
(
/
\&
/g
,
"
%26
"
)),
...
...
skyeye-web/src/main/webapp/js/rmproperty/rmpropertylist.js
浏览文件 @
d8a0114f
...
...
@@ -28,6 +28,7 @@ layui.config({
{
field
:
'
title
'
,
title
:
'
属性别名
'
,
width
:
180
},
{
field
:
'
propertyTag
'
,
title
:
'
属性标签
'
,
width
:
100
},
{
field
:
'
propertyUnit
'
,
title
:
'
属性单位
'
,
width
:
100
},
{
field
:
'
selChildData
'
,
title
:
'
子查询
'
,
width
:
100
},
{
field
:
'
propertyOut
'
,
title
:
'
外部属性
'
,
width
:
100
},
{
field
:
'
contentName
'
,
title
:
'
展现形式
'
,
width
:
120
},
{
field
:
'
propertyValueNum
'
,
title
:
'
属性值数量
'
,
width
:
100
},
...
...
skyeye-web/src/main/webapp/tpl/rmproperty/rmpropertyadd.html
浏览文件 @
d8a0114f
...
...
@@ -37,6 +37,13 @@
<input
type=
"radio"
name=
"propertyOut"
value=
"2"
title=
"否"
checked
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
子查询
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"selChildData"
value=
"1"
title=
"是"
/>
<input
type=
"radio"
name=
"selChildData"
value=
"2"
title=
"否"
checked
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
展现形式
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
...
...
skyeye-web/src/main/webapp/tpl/rmproperty/rmpropertyeditTemplate.tpl
浏览文件 @
d8a0114f
...
...
@@ -24,6 +24,13 @@
<input
type=
"radio"
name=
"propertyOut"
value=
"1"
title=
"是"
/>
<input
type=
"radio"
name=
"propertyOut"
value=
"2"
title=
"否"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
子查询
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"selChildData"
value=
"1"
title=
"是"
/>
<input
type=
"radio"
name=
"selChildData"
value=
"2"
title=
"否"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
展现形式
<i
class=
"red"
>
*
</i></label>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录