Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
2eb6ed77
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
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看板
提交
2eb6ed77
编写于
12月 28, 2018
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
问卷设置前后台对接完成
上级
c68018f9
变更
11
展开全部
隐藏空白更改
内联
并排
Showing
11 changed file
with
5407 addition
and
2644 deletion
+5407
-2644
logs/skyeye.log
logs/skyeye.log
+2581
-2630
logs/skyeye.log.2018-12-27
logs/skyeye.log.2018-12-27
+2659
-0
skyeye-promote/src/main/java/com/skyeye/eve/controller/DwSurveyDirectoryController.java
...om/skyeye/eve/controller/DwSurveyDirectoryController.java
+16
-0
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
...rc/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
+2
-0
skyeye-promote/src/main/java/com/skyeye/eve/service/DwSurveyDirectoryService.java
...java/com/skyeye/eve/service/DwSurveyDirectoryService.java
+2
-0
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
...skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
+16
-0
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
...e/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
+19
-1
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
+12
-0
skyeye-promote/src/main/resources/template/assets/lib/layui/lay/modules/laydate.js
...esources/template/assets/lib/layui/lay/modules/laydate.js
+1
-0
skyeye-promote/src/main/resources/template/js/dwsurveydesign/designSurveyOp.js
...in/resources/template/js/dwsurveydesign/designSurveyOp.js
+96
-11
skyeye-promote/src/main/resources/template/tpl/dwsurveydesign/designSurveyOpTemplates.tpl
...s/template/tpl/dwsurveydesign/designSurveyOpTemplates.tpl
+3
-2
未找到文件。
logs/skyeye.log
浏览文件 @
2eb6ed77
此差异已折叠。
点击以展开。
logs/skyeye.log.2018-12-27
0 → 100644
浏览文件 @
2eb6ed77
此差异已折叠。
点击以展开。
skyeye-promote/src/main/java/com/skyeye/eve/controller/DwSurveyDirectoryController.java
浏览文件 @
2eb6ed77
...
...
@@ -80,4 +80,20 @@ public class DwSurveyDirectoryController {
dwSurveyDirectoryService
.
queryDwSurveyMationById
(
inputObject
,
outputObject
);
}
/**
*
* @Title: editDwSurveyMationById
* @Description: 编辑调查问卷信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping
(
"/post/DwSurveyDirectoryController/editDwSurveyMationById"
)
@ResponseBody
public
void
editDwSurveyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
dwSurveyDirectoryService
.
editDwSurveyMationById
(
inputObject
,
outputObject
);
}
}
skyeye-promote/src/main/java/com/skyeye/eve/dao/DwSurveyDirectoryDao.java
浏览文件 @
2eb6ed77
...
...
@@ -40,4 +40,6 @@ public interface DwSurveyDirectoryDao {
public
Map
<
String
,
Object
>
querySurveyMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
public
int
editDwSurveyMationById
(
Map
<
String
,
Object
>
map
)
throws
Exception
;
}
skyeye-promote/src/main/java/com/skyeye/eve/service/DwSurveyDirectoryService.java
浏览文件 @
2eb6ed77
...
...
@@ -13,4 +13,6 @@ public interface DwSurveyDirectoryService {
public
void
queryDwSurveyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
public
void
editDwSurveyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
;
}
skyeye-promote/src/main/java/com/skyeye/eve/service/impl/DwSurveyDirectoryServiceImpl.java
浏览文件 @
2eb6ed77
...
...
@@ -157,4 +157,20 @@ public class DwSurveyDirectoryServiceImpl implements DwSurveyDirectoryService{
outputObject
.
settotal
(
1
);
}
/**
*
* @Title: editDwSurveyMationById
* @Description: 编辑调查问卷信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public
void
editDwSurveyMationById
(
InputObject
inputObject
,
OutputObject
outputObject
)
throws
Exception
{
Map
<
String
,
Object
>
map
=
inputObject
.
getParams
();
dwSurveyDirectoryDao
.
editDwSurveyMationById
(
map
);
//编辑问卷信息
}
}
skyeye-promote/src/main/resources/dbmapper/DwSurveyDirectoryMapper.xml
浏览文件 @
2eb6ed77
...
...
@@ -290,11 +290,29 @@
a.yn_end_num ynEndNum,
a.end_num endNum,
a.yn_end_time ynEndTime,
a.end_time
endTime,
CONVERT(a.end_time, char)
endTime,
a.view_answer viewAnswer
FROM
dw_survey_directory a
WHERE a.id = #{id}
</select>
<update
id=
"editDwSurveyMationById"
parameterType=
"java.util.Map"
>
UPDATE dw_survey_directory
<set>
effective = #{effective},
effective_ip = #{effectiveIp},
rule = #{rule},
rule_code = #{ruleCode},
refresh = #{refresh},
yn_end_num = #{ynEndNum},
end_num = #{endNum},
yn_end_time = #{ynEndTime},
<if
test=
"endTime != '' and endTime != null"
>
end_time = #{endTime},
</if>
</set>
WHERE id = #{id}
</update>
</mapper>
\ No newline at end of file
skyeye-promote/src/main/resources/mapping/reqdwsurvey.xml
浏览文件 @
2eb6ed77
...
...
@@ -20,6 +20,18 @@
<url
id=
"dwsurveydirectory004"
path=
"/post/DwSurveyDirectoryController/queryDwSurveyMationById"
val=
"获取调查问卷信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"问卷id"
/>
</url>
<url
id=
"dwsurveydirectory005"
path=
"/post/DwSurveyDirectoryController/editDwSurveyMationById"
val=
"编辑调查问卷信息"
allUse=
"1"
>
<property
id=
"rowId"
name=
"id"
ref=
"required"
var=
"问卷id"
/>
<property
id=
"effective"
name=
"effective"
ref=
"required,num"
var=
"每台电脑或手机只能答一次"
/>
<property
id=
"effectiveIp"
name=
"effectiveIp"
ref=
"required,num"
var=
"每个IP只能答一次"
/>
<property
id=
"rule"
name=
"rule"
ref=
"required,num"
var=
"启用访问密码"
/>
<property
id=
"ruleCode"
name=
"ruleCode"
ref=
""
var=
"密码"
/>
<property
id=
"refresh"
name=
"refresh"
ref=
"required,num"
var=
"有重复回答启用验证码"
/>
<property
id=
"ynEndNum"
name=
"ynEndNum"
ref=
"required,num"
var=
"是否依据收到的份数结束 1是 0否"
/>
<property
id=
"endNum"
name=
"endNum"
ref=
""
var=
"依据收到的份数"
/>
<property
id=
"ynEndTime"
name=
"ynEndTime"
ref=
"required,num"
var=
"是否依据收到的份数结束"
/>
<property
id=
"endTime"
name=
"endTime"
ref=
""
var=
"结束时间"
/>
</url>
<!-- 问卷调查结束 -->
</controller>
\ No newline at end of file
skyeye-promote/src/main/resources/template/assets/lib/layui/lay/modules/laydate.js
浏览文件 @
2eb6ed77
...
...
@@ -391,6 +391,7 @@
,
zIndex
:
null
//控件层叠顺序
,
done
:
null
//控件选择完毕后的回调,点击清空/现在/确定也均会触发
,
change
:
null
//日期时间改变后的回调
,
choose
:
null
};
//多语言
...
...
skyeye-promote/src/main/resources/template/js/dwsurveydesign/designSurveyOp.js
浏览文件 @
2eb6ed77
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
define
([
'
jquery
'
,
'
winui
'
],
function
(
exports
)
{
}).
define
([
'
jquery
'
,
'
winui
'
,
'
laydate
'
],
function
(
exports
)
{
winui
.
renderColor
();
layui
.
use
([
'
form
'
],
function
(
form
)
{
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
//获取窗口索引
var
$
=
layui
.
$
,
form
=
layui
.
form
;
form
=
layui
.
form
,
laydate
=
layui
.
laydate
;
showGrid
({
id
:
"
showForm
"
,
...
...
@@ -29,9 +30,30 @@ layui.config({
return
""
;
}
});
hdb
.
registerHelper
(
'
compare3
'
,
function
(
v1
,
v2
,
v3
,
options
)
{
if
(
v1
==
v2
){
return
v3
;
}
else
{
return
""
;
}
});
},
ajaxSendAfter
:
function
(
json
){
laydate
.
render
({
elem
:
'
#endTime
'
,
//指定元素
format
:
'
yyyy-MM-dd HH:mm:ss
'
,
type
:
'
datetime
'
,
min
:
minDate
(),
theme
:
'
grid
'
});
if
(
json
.
bean
.
ynEndTime
==
'
1
'
){
$
(
"
#endTimeHide
"
).
hide
();
}
else
{
$
(
"
#endTimeHide
"
).
show
();
}
form
.
render
(
'
checkbox
'
);
form
.
render
();
...
...
@@ -58,8 +80,10 @@ layui.config({
form
.
on
(
'
checkbox(ynEndTime)
'
,
function
(
data
)
{
var
check
=
data
.
elem
.
checked
;
if
(
check
){
//选中
$
(
"
#endTimeHide
"
).
hide
();
$
(
"
#endTime
"
).
attr
(
"
readonly
"
,
false
);
}
else
{
$
(
"
#endTimeHide
"
).
show
();
$
(
"
#endTime
"
).
val
(
""
);
$
(
"
#endTime
"
).
attr
(
"
readonly
"
,
true
);
}
...
...
@@ -69,22 +93,83 @@ layui.config({
//表单验证
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
surveyName
:
$
(
"
#surveyName
"
).
val
(),
rowId
:
parent
.
parent
.
rowId
};
// AjaxPostUtil.request({url:reqBasePath + "dwsurveydirectory002", 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});
// }
// }});
if
(
$
(
'
input[name=effective]
'
).
get
(
0
).
checked
){
params
.
effective
=
'
4
'
;
}
else
{
params
.
effective
=
'
1
'
;
}
if
(
$
(
'
input[name=effectiveIp]
'
).
get
(
0
).
checked
){
params
.
effectiveIp
=
'
1
'
;
}
else
{
params
.
effectiveIp
=
'
0
'
;
}
if
(
$
(
'
input[name=rule]
'
).
get
(
0
).
checked
){
params
.
rule
=
'
3
'
;
params
.
ruleCode
=
$
(
"
#ruleCode
"
).
val
();
if
(
isNull
(
params
.
ruleCode
)){
top
.
winui
.
window
.
msg
(
'
请填写答卷密码
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
}
else
{
params
.
rule
=
'
1
'
;
params
.
ruleCode
=
''
;
}
if
(
$
(
'
input[name=refresh]
'
).
get
(
0
).
checked
){
params
.
refresh
=
'
1
'
;
}
else
{
params
.
refresh
=
'
0
'
;
}
if
(
$
(
'
input[name=ynEndNum]
'
).
get
(
0
).
checked
){
params
.
ynEndNum
=
'
1
'
;
params
.
endNum
=
$
(
"
#endNum
"
).
val
();
if
(
isNull
(
params
.
endNum
)){
top
.
winui
.
window
.
msg
(
'
请填写答卷份数
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
}
else
{
params
.
ynEndNum
=
'
0
'
;
params
.
endNum
=
'
0
'
;
}
if
(
$
(
'
input[name=ynEndTime]
'
).
get
(
0
).
checked
){
params
.
ynEndTime
=
'
1
'
;
params
.
endTime
=
$
(
"
#endTime
"
).
val
();
if
(
isNull
(
params
.
endTime
)){
top
.
winui
.
window
.
msg
(
'
请填写答卷结束时间
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
}
else
{
params
.
ynEndTime
=
'
0
'
;
params
.
endTime
=
''
;
}
AjaxPostUtil
.
request
({
url
:
reqBasePath
+
"
dwsurveydirectory005
"
,
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
;
});
}
});
// 设置最小可选的日期
function
minDate
(){
var
now
=
new
Date
();
return
now
.
getFullYear
()
+
"
-
"
+
(
now
.
getMonth
()
+
1
)
+
"
-
"
+
now
.
getDate
();
}
//取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
(){
parent
.
layer
.
close
(
index
);
...
...
skyeye-promote/src/main/resources/template/tpl/dwsurveydesign/designSurveyOpTemplates.tpl
浏览文件 @
2eb6ed77
...
...
@@ -24,11 +24,12 @@
<div
class=
"p_DialogContentRoot"
>
<div
class=
"p_DialogContentItem"
>
<input
type=
"checkbox"
name=
"ynEndNum"
{
{
#
compare1
ynEndNum
'1'
}
}{
{/
compare1
}
}
value=
"1"
lay-filter=
"ynEndNum"
/>
收集到
<input
type=
"
text"
size=
"12
"
class=
"inputSytle_1"
id=
"endNum"
name=
"endNum"
value=
"{
{
endNum
}
}"
{
{
#
compare2
ynEndNum
'1'
}
}{
{/
compare2
}
}
>
份答卷时结束
<input
type=
"
number"
size=
"11
"
class=
"inputSytle_1"
id=
"endNum"
name=
"endNum"
value=
"{
{
endNum
}
}"
{
{
#
compare2
ynEndNum
'1'
}
}{
{/
compare2
}
}
>
份答卷时结束
</div>
<div
class=
"p_DialogContentItem"
>
<input
type=
"checkbox"
name=
"ynEndTime"
{
{
#
compare1
ynEndTime
'1'
}
}{
{/
compare1
}
}
value=
"1"
lay-filter=
"ynEndTime"
/>
到
<input
type=
"text"
size=
"20"
class=
"inputSytle_1"
id=
"endTime"
name=
"endTime"
value=
"{
{
endTime
}
}"
{
{
#
compare2
ynEndTime
'1'
}
}{
{/
compare2
}
}
>
时结束
<input
type=
"text"
size=
"20"
class=
"inputSytle_1"
id=
"endTime"
name=
"endTime"
value=
"{
{
#
compare3
ynEndTime
'1'
endTime
}
}{
{/
compare3
}
}"
{
{
#
compare2
ynEndTime
'1'
}
}{
{/
compare2
}
}
>
时结束
<input
type=
"text"
size=
"20"
class=
"inputSytle_1"
id=
"endTimeHide"
readonly
style=
"position: absolute; margin-left: 68px; margin-top: -30px; display: block;"
/>
</div>
</div>
</div>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录