Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
9c550f1c
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1441
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看板
提交
9c550f1c
编写于
11月 12, 2018
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
编辑小程序页面完成
上级
8a25b0e2
变更
10
隐藏空白更改
内联
并排
Showing
10 changed file
with
227 addition
and
8 deletion
+227
-8
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/SmProjectPageDao.java
.../main/java/com/skyeye/smprogram/dao/SmProjectPageDao.java
+6
-2
skyeye-service/src/main/java/com/skyeye/smprogram/service/SmProjectPageService.java
...va/com/skyeye/smprogram/service/SmProjectPageService.java
+4
-0
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/SmProjectPageServiceImpl.java
...yeye/smprogram/service/impl/SmProjectPageServiceImpl.java
+34
-0
skyeye-web/src/main/java/com/skyeye/smprogram/controller/SmProjectPageController.java
.../skyeye/smprogram/controller/SmProjectPageController.java
+32
-0
skyeye-web/src/main/resources/dbmapper/SmProjectPageMapper.xml
...e-web/src/main/resources/dbmapper/SmProjectPageMapper.xml
+24
-0
skyeye-web/src/main/resources/mapping/reqmapping.xml
skyeye-web/src/main/resources/mapping/reqmapping.xml
+9
-1
skyeye-web/src/main/webapp/js/rmmysmpropage/editpagebeanitem.js
...-web/src/main/webapp/js/rmmysmpropage/editpagebeanitem.js
+51
-0
skyeye-web/src/main/webapp/js/rmmysmpropage/mysmpropagelist.js
...e-web/src/main/webapp/js/rmmysmpropage/mysmpropagelist.js
+19
-5
skyeye-web/src/main/webapp/tpl/rmmysmpropage/editpagebeanitem.html
...b/src/main/webapp/tpl/rmmysmpropage/editpagebeanitem.html
+22
-0
skyeye-web/src/main/webapp/tpl/rmmysmpropage/projectpageeditTemplate.tpl
...main/webapp/tpl/rmmysmpropage/projectpageeditTemplate.tpl
+26
-0
未找到文件。
skyeye-dao/src/main/java/com/skyeye/smprogram/dao/SmProjectPageDao.java
浏览文件 @
9c550f1c
...
...
@@ -17,10 +17,14 @@ public interface SmProjectPageDao {
public
Map
<
String
,
Object
>
querySmProjectPageISTopByThisId
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
void
editSmProjectPageSortTopById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editSmProjectPageSortTopById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
Map
<
String
,
Object
>
querySmProjectPageISLowerByThisId
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
void
editSmProjectPageSortLowerById
(
Map
<
String
,
Object
>
topBean
)
throws
Exception
;
public
int
editSmProjectPageSortLowerById
(
Map
<
String
,
Object
>
topBean
)
throws
Exception
;
public
Map
<
String
,
Object
>
querySmProjectPageMationToEditById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editSmProjectPageMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/SmProjectPageService.java
浏览文件 @
9c550f1c
...
...
@@ -13,4 +13,8 @@ public interface SmProjectPageService {
public
void
editSmProjectPageSortLowerById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
querySmProjectPageMationToEditById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
editSmProjectPageMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-service/src/main/java/com/skyeye/smprogram/service/impl/SmProjectPageServiceImpl.java
浏览文件 @
9c550f1c
...
...
@@ -151,6 +151,40 @@ public class SmProjectPageServiceImpl implements SmProjectPageService{
smProjectPageDao
.
editSmProjectPageSortLowerById
(
topBean
);
}
}
/**
*
* @Title: queryDsFormLimitRequirementMationToEditById
* @Description: 编辑小程序页面信息时进行回显
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
querySmProjectPageMationToEditById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
Map
<
String
,
Object
>
bean
=
smProjectPageDao
.
querySmProjectPageMationToEditById
(
map
);
outputObject
.
setBean
(
bean
);
outputObject
.
settotal
(
1
);
}
/**
*
* @Title: editDsFormLimitRequirementMationById
* @Description: 编辑小程序页面信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
editSmProjectPageMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
smProjectPageDao
.
editSmProjectPageMationById
(
map
);
}
...
...
skyeye-web/src/main/java/com/skyeye/smprogram/controller/SmProjectPageController.java
浏览文件 @
9c550f1c
...
...
@@ -79,5 +79,37 @@ public class SmProjectPageController {
smProjectPageService
.
editSmProjectPageSortLowerById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: queryDsFormLimitRequirementMationToEditById
* @Description: 编辑小程序页面信息时进行回显
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SmProjectPageController/querySmProjectPageMationToEditById"
)
@ResponseBody
public
void
querySmProjectPageMationToEditById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
smProjectPageService
.
querySmProjectPageMationToEditById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: editDsFormLimitRequirementMationById
* @Description: 编辑小程序页面信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/SmProjectPageController/editSmProjectPageMationById"
)
@ResponseBody
public
void
editSmProjectPageMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
smProjectPageService
.
editSmProjectPageMationById
(
inputObject
,
outputObject
);
}
}
skyeye-web/src/main/resources/dbmapper/SmProjectPageMapper.xml
浏览文件 @
9c550f1c
...
...
@@ -104,5 +104,29 @@
WHERE id = #{id}
</update>
<select
id=
"querySmProjectPageMationToEditById"
parameterType=
"java.util.Map"
resultType=
"java.util.Map"
>
SELECT
a.id,
a.`name` pageName,
a.file_path filePath,
a.file_name fileName
FROM
sm_project_page a
WHERE
a.id = #{id}
</select>
<update
id=
"editSmProjectPageMationById"
parameterType=
"java.util.Map"
>
UPDATE sm_project_page
<set>
<if
test=
"name != '' and name != null"
>
`name` = #{name},
</if>
file_path = #{filePath},
file_name = #{fileName},
</set>
WHERE id = #{id}
</update>
</mapper>
\ No newline at end of file
skyeye-web/src/main/resources/mapping/reqmapping.xml
浏览文件 @
9c550f1c
...
...
@@ -307,7 +307,15 @@
<property
id=
"proId"
name=
"proId"
ref=
"required"
var=
"小程序项目id"
/>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"页面id"
/>
</url>
<url
id=
"rmxcx033"
path=
"/post/SmProjectPageController/querySmProjectPageMationToEditById"
val=
"编辑小程序页面信息时进行回显"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"页面id"
/>
</url>
<url
id=
"rmxcx034"
path=
"/post/SmProjectPageController/editSmProjectPageMationById"
val=
"编辑小程序页面信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"页面id"
/>
<property
id=
"name"
name=
"name"
ref=
"required"
var=
"页面名称"
/>
<property
id=
"filePath"
name=
"filePath"
ref=
""
var=
"文件将来的导出路径"
/>
<property
id=
"fileName"
name=
"fileName"
ref=
""
var=
"文件将来的导出名"
/>
</url>
<!-- 小程序系列结束 -->
...
...
skyeye-web/src/main/webapp/js/rmmysmpropage/editpagebeanitem.js
0 → 100644
浏览文件 @
9c550f1c
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
:
"
showForm
"
,
url
:
reqBasePath
+
"
rmxcx033
"
,
params
:
{
rowId
:
parent
.
pageId
},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/rmmysmpropage/projectpageeditTemplate.tpl
'
),
ajaxSendLoadBefore
:
function
(
hdb
){
},
ajaxSendAfter
:
function
(
json
){
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
name
:
$
(
"
#pageName
"
).
val
(),
filePath
:
$
(
"
#filePath
"
).
val
(),
fileName
:
$
(
"
#fileName
"
).
val
(),
rowId
:
parent
.
pageId
,
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
rmxcx034
"
,
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/rmmysmpropage/mysmpropagelist.js
浏览文件 @
9c550f1c
var
proId
=
""
;
var
proId
=
""
;
//项目id
var
pageId
=
""
;
//页面id
layui
.
config
({
base
:
basePath
,
...
...
@@ -26,7 +28,19 @@ layui.config({
},
options
:
{
'
click .reName
'
:
function
(
index
,
row
){
//重命名
pageId
=
row
.
id
;
_openNewWindows
({
url
:
"
../../tpl/rmmysmpropage/editpagebeanitem.html
"
,
title
:
"
重命名页面
"
,
pageId
:
"
editpagebeanitem
"
,
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
proId
}});
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
}
}});
},
'
click .toUp
'
:
function
(
index
,
row
){
//上移
var
params
=
{
...
...
@@ -35,7 +49,7 @@ layui.config({
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
rmxcx031
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
arent
.
row
Id
}});
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
ro
Id
}});
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
...
...
@@ -48,7 +62,7 @@ layui.config({
};
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
rmxcx032
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
){
if
(
json
.
returnCode
==
0
){
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
arent
.
row
Id
}});
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
ro
Id
}});
}
else
{
top
.
winui
.
window
.
msg
(
json
.
returnMessage
,
{
icon
:
2
,
time
:
2000
});
}
...
...
@@ -227,7 +241,7 @@ layui.config({
pageId
:
"
addpagebeanitem
"
,
callBack
:
function
(
refreshCode
){
if
(
refreshCode
==
'
0
'
)
{
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
arent
.
row
Id
}});
refreshGrid
(
"
pageList
"
,
{
params
:{
rowId
:
p
ro
Id
}});
top
.
winui
.
window
.
msg
(
"
操作成功
"
,
{
icon
:
1
,
time
:
2000
});
}
else
if
(
refreshCode
==
'
-9999
'
)
{
top
.
winui
.
window
.
msg
(
"
操作失败
"
,
{
icon
:
2
,
time
:
2000
});
...
...
skyeye-web/src/main/webapp/tpl/rmmysmpropage/editpagebeanitem.html
0 → 100644
浏览文件 @
9c550f1c
<!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"
/>
</head>
<body>
<div
style=
"width:600px;margin:0 auto;padding-top:20px;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
>
</form>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/rmmysmpropage/
'
}).
use
(
'
editpagebeanitem
'
);
</script>
</body>
</html>
\ No newline at end of file
skyeye-web/src/main/webapp/tpl/rmmysmpropage/projectpageeditTemplate.tpl
0 → 100644
浏览文件 @
9c550f1c
{{
#
bean
}}
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
页面名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"pageName"
name=
"pageName"
win-verify=
"required"
placeholder=
"请输入页面名称"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
pageName
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
文件名
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"fileName"
name=
"fileName"
placeholder=
"请输入文件名"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
fileName
}
}"
/>
</div>
</div>
<div
class=
"layui-form-item"
>
<label
class=
"layui-form-label"
>
路径
</label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"filePath"
name=
"filePath"
placeholder=
"请输入路径"
class=
"layui-input"
maxlength=
"50"
value=
"{
{
filePath
}
}"
/>
</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=
"formEditBean"
>
保存
</button>
</div>
</div>
{
{/
bean
}
}
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录