Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
0695b4b2
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1195
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看板
提交
0695b4b2
编写于
11月 13, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
小程序绑定属性完成,未进行回显绑定
上级
f4b3becd
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
217 addition
and
3 deletion
+217
-3
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
.../main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
+4
-0
skyeye-service/src/main/java/com/skyeye/smprogram/service/RmGroupMemberService.java
...va/com/skyeye/smprogram/service/RmGroupMemberService.java
+2
-0
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
...yeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
+36
-0
skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmGroupMemberController.java
.../skyeye/smprogram/controller/RmGroupMemberController.java
+16
-0
skyeye-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
...e-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
+17
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+4
-0
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
+63
-0
skyeye-web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
...web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
+20
-1
skyeye-web/src/main/webapp/tpl/rmgroupmember/bindproperty.html
...e-web/src/main/webapp/tpl/rmgroupmember/bindproperty.html
+35
-0
skyeye-web/src/main/webapp/tpl/rmgroupmember/rmgroupmemberlist.html
.../src/main/webapp/tpl/rmgroupmember/rmgroupmemberlist.html
+1
-0
skyeye-web/src/main/webapp/tpl/template/checkbox-property.tpl
...ye-web/src/main/webapp/tpl/template/checkbox-property.tpl
+3
-0
skyeye-web/src/main/webapp/公共请求
skyeye-web/src/main/webapp/公共请求
+16
-2
未找到文件。
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/RmGroupMemberDao.java
浏览文件 @
0695b4b2
...
...
@@ -29,4 +29,8 @@ public interface RmGroupMemberDao {
public
Map
<
String
,
Object
>
queryRmGroupMemberMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
deleteRmGroupMemberAndPropertyMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
insertRmGroupMemberAndPropertyMationById
(
List
<
Map
<
String
,
Object
>>
beans
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/RmGroupMemberService.java
浏览文件 @
0695b4b2
...
...
@@ -19,4 +19,6 @@ public interface RmGroupMemberService {
public
void
editRmGroupMemberMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
editRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/RmGroupMemberServiceImpl.java
浏览文件 @
0695b4b2
package
com.skyeye.smprogram.service.impl
;
import
java.util.ArrayList
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
...
...
@@ -195,5 +197,39 @@ public class RmGroupMemberServiceImpl implements RmGroupMemberService{
}
rmGroupMemberDao
.
editRmGroupMemberMationById
(
map
);
}
/**
*
* @Title: editRmGroupMemberAndPropertyMationById
* @Description: 编辑小程序组件和标签属性的绑定信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
editRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
user
=
inputObject
.
getLogParams
();
String
[]
propertyIds
=
map
.
get
(
"propertyIds"
).
toString
().
split
(
","
);
List
<
Map
<
String
,
Object
>>
beans
=
new
ArrayList
<>();
Map
<
String
,
Object
>
bean
=
null
;
for
(
String
str
:
propertyIds
){
if
(!
ToolUtil
.
isBlank
(
str
)){
bean
=
new
HashMap
<>();
bean
.
put
(
"id"
,
ToolUtil
.
getSurFaceId
());
bean
.
put
(
"propertyId"
,
str
);
bean
.
put
(
"memberId"
,
map
.
get
(
"memberId"
));
bean
.
put
(
"createId"
,
user
.
get
(
"id"
));
bean
.
put
(
"createTime"
,
ToolUtil
.
getTimeAndToString
());
beans
.
add
(
bean
);
}
}
if
(!
beans
.
isEmpty
()){
rmGroupMemberDao
.
deleteRmGroupMemberAndPropertyMationById
(
map
);
//删除之前的绑定信息
rmGroupMemberDao
.
insertRmGroupMemberAndPropertyMationById
(
beans
);
//新增绑定信息
}
}
}
skyeye-web/src/main/java/com/skyeye/smprogram/controller/RmGroupMemberController.java
浏览文件 @
0695b4b2
...
...
@@ -127,4 +127,20 @@ public class RmGroupMemberController {
rmGroupMemberService
.
editRmGroupMemberMationById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: editRmGroupMemberAndPropertyMationById
* @Description: 编辑小程序组件和标签属性的绑定信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/RmGroupMemberController/editRmGroupMemberAndPropertyMationById"
)
@ResponseBody
public
void
editRmGroupMemberAndPropertyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
rmGroupMemberService
.
editRmGroupMemberAndPropertyMationById
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/RmGroupMemberMapper.xml
浏览文件 @
0695b4b2
...
...
@@ -156,4 +156,21 @@
WHERE a.id = #{id}
</select>
<delete
id=
"deleteRmGroupMemberAndPropertyMationById"
parameterType=
"java.util.Map"
>
DELETE
FROM
rm_group_member_property
WHERE
member_id = #{memberId}
</delete>
<insert
id=
"insertRmGroupMemberAndPropertyMationById"
parameterType=
"java.util.Map"
>
insert into rm_group_member_property
(id, member_id, property_id, create_id, create_time)
values
<foreach
collection=
"list"
item=
"item"
index=
"index"
separator=
","
>
(#{item.id}, #{item.memberId}, #{item.propertyId}, #{item.createId}, #{item.createTime})
</foreach>
</insert>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
0695b4b2
...
...
@@ -326,6 +326,10 @@
<property
id=
"pageId"
name=
"pageId"
ref=
"required"
var=
"小程序页面id"
/>
<property
id=
"jsonData"
name=
"jsonData"
ref=
"required"
var=
"小程序页面和模块绑定的json字符串"
/>
</url>
<url
id=
"rmxcx038"
path=
"/post/RmGroupMemberController/editRmGroupMemberAndPropertyMationById"
val=
"编辑小程序组件和标签属性的绑定信息"
allUse=
"1"
>
<property
id=
"propertyIds"
name=
"propertyIds"
ref=
"required"
var=
"小程序标签属性id"
/>
<property
id=
"rowId"
name=
"memberId"
ref=
"required"
var=
"小程序组件成员id"
/>
</url>
<url
id=
"rmproperty001"
path=
"/post/RmPropertyController/queryRmPropertyList"
val=
"获取小程序样式属性列表"
allUse=
"1"
>
<property
id=
"limit"
name=
"limit"
ref=
"required,num"
var=
"分页参数,每页多少条数据"
/>
<property
id=
"page"
name=
"page"
ref=
"required,num"
var=
"分页参数,第几页"
/>
...
...
skyeye-web/src/main/webapp/js/rmgroupmember/bindproperty.js
0 → 100644
浏览文件 @
0695b4b2
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
table
'
,
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
var
$
=
layui
.
$
,
form
=
layui
.
form
;
//标签属性
showGrid
({
id
:
"
propertyList
"
,
url
:
reqBasePath
+
"
rmproperty006
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/checkbox-property.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
form
.
render
(
'
checkbox
'
);
}
});
//搜索表单
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
propertyIds
=
""
;
$
.
each
(
$
(
'
input:checkbox:checked
'
),
function
(){
propertyIds
=
propertyIds
+
$
(
this
).
attr
(
"
rowId
"
)
+
"
,
"
;
});
if
(
isNull
(
propertyIds
)){
top
.
winui
.
window
.
msg
(
'
请先选择标签属性。
'
,
{
icon
:
2
,
time
:
2000
});
}
else
{
var
params
=
{
rowId
:
parent
.
rowId
,
propertyIds
:
propertyIds
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
rmxcx038
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
}
return
false
;
});
//取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
(){
parent
.
layer
.
close
(
index
);
});
});
});
\ No newline at end of file
skyeye-web/src/main/webapp/js/rmgroupmember/rmgroupmemberlist.js
浏览文件 @
0695b4b2
...
...
@@ -116,7 +116,7 @@ layui.config({
{
field
:
'
groupName
'
,
title
:
'
所属分组
'
,
width
:
120
},
{
field
:
'
memberUseNum
'
,
title
:
'
使用次数
'
,
width
:
120
},
{
field
:
'
createTime
'
,
title
:
'
创建时间
'
,
width
:
180
},
{
title
:
'
操作
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
24
0
,
toolbar
:
'
#tableBar
'
}
{
title
:
'
操作
'
,
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
30
0
,
toolbar
:
'
#tableBar
'
}
]]
});
...
...
@@ -127,6 +127,8 @@ layui.config({
del
(
data
,
obj
);
}
else
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
bindProperty
'
)
{
//绑定属性
bindProperty
(
data
);
}
else
if
(
layEvent
===
'
top
'
)
{
//上移
topOne
(
data
);
}
else
if
(
layEvent
===
'
lower
'
)
{
//下移
...
...
@@ -286,6 +288,23 @@ layui.config({
}});
}
//绑定属性
function
bindProperty
(
data
){
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/rmgroupmember/bindproperty.html
"
,
title
:
"
绑定属性
"
,
pageId
:
"
bindproperty
"
,
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
}
}});
}
//刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
(){
loadTable
();
...
...
skyeye-web/src/main/webapp/tpl/rmgroupmember/bindproperty.html
0 → 100644
浏览文件 @
0695b4b2
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/font-awesome-4.7.0/css/font-awesome.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/winui/weui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"width:600px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
标签属性
</label>
<div
class=
"layui-input-block"
id=
"propertyList"
>
</div>
</div>
<div
class=
"layui-form-item"
>
<div
class=
"layui-input-block"
>
<button
class=
"winui-btn"
id=
"cancle"
>
取消
</button>
<button
class=
"winui-btn"
lay-submit
lay-filter=
"formAddBean"
>
保存
</button>
</div>
</div>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
src=
"../../assets/winui/jweixin-1.0.0.js"
></script>
<script
src=
"../../assets/winui/weui.min.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/rmgroupmember/
'
}).
use
(
'
bindproperty
'
);
</script>
</body>
</html>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/rmgroupmember/rmgroupmemberlist.html
浏览文件 @
0695b4b2
...
...
@@ -48,6 +48,7 @@
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
top
"
>
上移
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
lower
"
>
下移
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
>
编辑
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
bindProperty
"
>
绑定属性
<
/a
>
{{
#
if
(
d
.
memberUseNum
==
0
){
}}
<
a
class
=
"
layui-btn layui-btn-danger layui-btn-xs
"
lay
-
event
=
"
del
"
>
删除
<
/a
>
{{
#
}
}}
...
...
skyeye-web/src/main/webapp/tpl/template/checkbox-property.tpl
0 → 100644
浏览文件 @
0695b4b2
{{
#
each
rows
}}
<input
type=
"checkbox"
name=
"limitrequire"
title=
"{
{
name
}
}"
rowId=
"{
{
id
}
}"
lay-filter=
"checkboxProperty"
/>
{
{/
each
}
}
\ No newline at end of file
skyeye-web/src/main/webapp/公共请求
浏览文件 @
0695b4b2
//展现形式 例如:输入框,选择框
//
下拉框模板
展现形式 例如:输入框,选择框
showGrid({
id: "showModel",
url: reqBasePath + "dsform006",
...
...
@@ -12,7 +12,7 @@ showGrid({
}
});
//属性标签
//
下拉框模板
属性标签
showGrid({
id: "propertyId",
url: reqBasePath + "rmproperty006",
...
...
@@ -26,3 +26,17 @@ showGrid({
}
});
//多选框模板 属性标签
showGrid({
id: "limitRequire",
url: reqBasePath + "rmproperty006",
params: {},
pagination: false,
template: getFileContent('tpl/template/checkbox-property.tpl'),
ajaxSendLoadBefore: function(hdb){
},
ajaxSendAfter:function(json){
form.render('checkbox');
}
});
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录