提交 7a673fc2 编写于 作者: doc_wei's avatar doc_wei

添加拖拽代码

上级 04c9ba2b
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -87,7 +87,7 @@ public class DwSurveyDirectoryServiceImpl implements DwSurveyDirectoryService{
Map<String, Object> surveyMation = dwSurveyDirectoryDao.querySurveyMationById(map);//获取问卷信息
outputObject.setBean(surveyMation);
outputObject.setBeans(questions);
outputObject.settotal(questions.size());
outputObject.settotal(1);
}
/**
......
......@@ -59,6 +59,7 @@ function _openNewWindows(mation){
maxmin: mation.maxmin,
shade: mation.shade,
zIndex: 20000000000,
scrollbar: false,
end: function(){
if(typeof(mation.callBack) == "function") {
mation.callBack(refreshCode);
......
......@@ -5794,7 +5794,6 @@ select option{
padding: 5px;
}
.inputSytle_1{
background: #fff url(../images/shadow-in.png?020) no-repeat;
border: 1px solid #cececf;
outline: none;
height: 17px;
......
layui.config({
base: basePath,
version: skyeyeVersion
}).define(['jquery', 'winui'], function (exports) {
winui.renderColor();
layui.use(['form'], function (form) {
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
var $ = layui.$,
form = layui.form;
console.log(parent.parent.rowId);
form.render();
form.on('submit(formAddBean)', function (data) {
//表单验证
if (winui.verifyForm(data.elem)) {
var params = {
surveyName: $("#surveyName").val(),
};
// 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});
// }
// }});
}
return false;
});
//取消
$("body").on("click", "#cancle", function(){
parent.layer.close(index);
});
});
});
\ No newline at end of file
<!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="padding-top:20px;">
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div class="layui-form-item">
<div class="p_DialogContent">
<input type="hidden" name="svyAttrSaveTag" value="1">
<div class="p_DialogContentTitle">回答限制</div>
<div class="p_DialogContentRoot">
<div class="p_DialogContentItem"><label><input type="checkbox" name="effective" value="4"> 每台电脑或手机只能答一次</label></div>
<div class="p_DialogContentItem"><label><input type="checkbox" name="effectiveIp" value="1"> 每个IP只能答一次</label></div>
<div class="p_DialogContentItem"><label><input type="checkbox" name="rule" value="3"> 启用访问密码</label> &nbsp;&nbsp;&nbsp;设置密码:
<input type="text" size="10" name="ruleCode" class="inputSytle_1">
</div>
<div class="p_DialogContentItem"><label><input type="checkbox" name="refresh" value="1"> 有重复回答启用验证码</label></div>
<div class="p_DialogContentItem" style="display: none;"><label><input type="checkbox" name="mailOnly" value="1"> 只有邮件邀请唯一链接的受访者可回答</label></div>
</div>
</div>
<div class="p_DialogContent">
<div class="p_DialogContentTitle">何时结束</div>
<div class="p_DialogContentRoot">
<div class="p_DialogContentItem"><label><input type="checkbox" name="ynEndNum" value="1"> 收集到&nbsp;<input type="text" size="12" class="inputSytle_1" name="endNum">&nbsp;份答卷时结束</label></div>
<div class="p_DialogContentItem"><label><input type="checkbox" name="ynEndTime" value="1">&nbsp;<input type="text" size="20" class="inputSytle_1 Wdate" onfocus="WdatePicker({minDate:'%y-%M-{%d+1}',dateFmt:'yyyy-MM-dd HH:mm:ss'})" name="endTime">&nbsp;时结束 </label></div>
</div>
</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 type="text/javascript">
layui.config({base: '../../js/dwsurveydesign/'}).use('designSurveyOp');
</script>
</body>
</html>
\ No newline at end of file
<li id="surveyAttrSetToolbar" class="surveyAttrSetToolbar_li">
<a href="${ctx }/design/my-survey-design!previewDev.action?surveyId=${param['surveyId']}" >
<span class="dwToolbar_icon" title="问卷设置"></span>
<li id="surveyAttrSetToolbar" class="surveyAttrSetToolbar_li">
<a>
<span class="dwToolbar_icon" title="问卷设置"></span>
</a>
</li>
\ No newline at end of file
......@@ -35,12 +35,7 @@
</div>
<div id="dwSurveyQuContent" style="min-height: 500px;">
<ul id="dwSurveyQuContentAppUl">
{{#each }}
{{#if isActive}}
1
{{else if isInactive}}
2
{{/if}}
{{#each rows}}
{{/each}}
</ul>
</div>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册