提交 04c9ba2b 编写于 作者: doc_wei's avatar doc_wei

添加问卷回显接口

上级 2c273e12
此差异已折叠。
因为 它太大了无法显示 source diff 。你可以改为 查看blob
package com.skyeye.common.constans;
public enum QuType {
YESNO("是非题", "yesno", 0),
RADIO("单选题", "radio", 1),
CHECKBOX("多选题", "checkbox", 2),
FILLBLANK("填空题", "fillblank", 3),
COMPRADIO("复合单选", "comp-radio", 17),
COMPCHECKBOX("复合多选", "comp-checkbox", 18),
MULTIFILLBLANK("多项填空题", "multi-fillblank", 4), // 组合填空题
ANSWER("多行填空题", "answer", 5), // 原问答题
BIGQU("大题", "bigqu", 6),
ENUMQU("枚举题", "enumqu", 7),
SCORE("评分题", "score", 8),
ORDERQU("排序题", "orderby", 9),
PROPORTION("比重题", "proportion", 10),
CHENRADIO("矩阵单选题", "chen-radio", 11),
CHENFBK("矩阵填空题", "chen-fbk", 12),
CHENCHECKBOX("矩阵多选题", "chen-checkbox", 13),
COMPCHENRADIO("复合矩阵单选题", "comp-chen-radio", 14),
UPLOADFILE("文件上传题", "sendfile", 15),
PAGETAG("分页标记", "pagetag", 16),
PARAGRAPH("段落说明", "paragraph", 17),
CHENSCORE("矩阵评分题", "chen-score", 18);
private String cnName;
private String actionName;
private int index;
QuType(String cnName, String actionName, int index) {
this.cnName = cnName;
this.actionName = actionName;
this.index = index;
}
public String getCnName() {
return cnName;
}
public void setCnName(String cnName) {
this.cnName = cnName;
}
public String getActionName() {
return actionName;
}
public void setActionName(String actionName) {
this.actionName = actionName;
}
public int getIndex() {
return index;
}
public void setIndex(int index) {
this.index = index;
}
public static String getActionName(int index){
for (QuType q : QuType.values()){
if(q.getIndex() == index){
return q.actionName;
}
}
return null;
}
}
......@@ -48,4 +48,20 @@ public class DwSurveyDirectoryController {
dwSurveyDirectoryService.insertDwSurveyDirectoryMation(inputObject, outputObject);
}
/**
*
* @Title: queryDwSurveyDirectoryMationById
* @Description: 获取调查问卷题目信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@RequestMapping("/post/DwSurveyDirectoryController/queryDwSurveyDirectoryMationById")
@ResponseBody
public void queryDwSurveyDirectoryMationById(InputObject inputObject, OutputObject outputObject) throws Exception{
dwSurveyDirectoryService.queryDwSurveyDirectoryMationById(inputObject, outputObject);
}
}
......@@ -16,4 +16,28 @@ public interface DwSurveyDirectoryDao {
public int insertDwSurveyDirectoryMation(Map<String, Object> map) throws Exception;
public List<Map<String, Object>> queryQuestionListByBelongId(Map<String, Object> map) throws Exception;
public List<Map<String, Object>> queryQuestionLogicListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionChenRowListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionChenColumnListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionMultiFillBlankListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionRadioListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionCheckBoxListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionChenOptionListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionScoreListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryQuestionOrderByListByQuestionId(Map<String, Object> question) throws Exception;
public List<Map<String, Object>> queryChildQuestionListByBelongId(Map<String, Object> question) throws Exception;
public Map<String, Object> querySurveyMationById(Map<String, Object> map) throws Exception;
}
......@@ -9,4 +9,6 @@ public interface DwSurveyDirectoryService {
public void insertDwSurveyDirectoryMation(InputObject inputObject, OutputObject outputObject) throws Exception;
public void queryDwSurveyDirectoryMationById(InputObject inputObject, OutputObject outputObject) throws Exception;
}
......@@ -8,6 +8,7 @@ import org.springframework.stereotype.Service;
import com.github.miemiedev.mybatis.paginator.domain.PageBounds;
import com.github.miemiedev.mybatis.paginator.domain.PageList;
import com.skyeye.common.constans.QuType;
import com.skyeye.common.object.InputObject;
import com.skyeye.common.object.OutputObject;
import com.skyeye.common.util.ToolUtil;
......@@ -62,7 +63,80 @@ public class DwSurveyDirectoryServiceImpl implements DwSurveyDirectoryService{
map.put("surveyModel", 1);//问卷所属的问卷模块 1问卷模块
map.put("createId", user.get("id"));
map.put("createTime", ToolUtil.getTimeAndToString());
map.put("surveyNote", "非常感谢您的参与!如有涉及个人信息,我们将严格保密。");
dwSurveyDirectoryDao.insertDwSurveyDirectoryMation(map);
}
/**
*
* @Title: queryDwSurveyDirectoryMationById
* @Description: 获取调查问卷题目信息
* @param @param inputObject
* @param @param outputObject
* @param @throws Exception 参数
* @return void 返回类型
* @throws
*/
@Override
public void queryDwSurveyDirectoryMationById(InputObject inputObject, OutputObject outputObject) throws Exception {
Map<String, Object> map = inputObject.getParams();
List<Map<String, Object>> questions = dwSurveyDirectoryDao.queryQuestionListByBelongId(map);//获取问卷中的题
for(Map<String, Object> question : questions){
getQuestionOptionListMation(question);
}
Map<String, Object> surveyMation = dwSurveyDirectoryDao.querySurveyMationById(map);//获取问卷信息
outputObject.setBean(surveyMation);
outputObject.setBeans(questions);
outputObject.settotal(questions.size());
}
/**
*
* @Title: getQuestionOptionListMation
* @Description: 获取问题项
* @param @param question
* @param @return
* @param @throws Exception 参数
* @return Map<String,Object> 返回类型
* @throws
*/
public Map<String, Object> getQuestionOptionListMation(Map<String, Object> question) throws Exception {
String quType = QuType.getActionName(Integer.parseInt(question.get("quType").toString()));//获取题目类型
if (quType.equals(QuType.RADIO.getActionName()) || quType.equals(QuType.COMPRADIO.getActionName())) {
List<Map<String, Object>> questionRadio = dwSurveyDirectoryDao.queryQuestionRadioListByQuestionId(question);//获取多行填空题
question.put("questionRadio", questionRadio);
} else if (quType.equals(QuType.CHECKBOX.getActionName()) || quType.equals(QuType.COMPCHECKBOX.getActionName())) {
List<Map<String, Object>> questionCheckBox = dwSurveyDirectoryDao.queryQuestionCheckBoxListByQuestionId(question);//获取多选题
question.put("questionCheckBox", questionCheckBox);
} else if (quType.equals(QuType.MULTIFILLBLANK.getActionName())) {
List<Map<String, Object>> questionMultiFillBlank = dwSurveyDirectoryDao.queryQuestionMultiFillBlankListByQuestionId(question);//获取多行填空题
question.put("questionMultiFillBlank", questionMultiFillBlank);
} else if (quType.equals(QuType.BIGQU.getActionName())) {
List<Map<String, Object>> childQuestions = dwSurveyDirectoryDao.queryChildQuestionListByBelongId(question);//获取问卷中的题
for(Map<String, Object> item : childQuestions){
getQuestionOptionListMation(item);
}
question.put("option", childQuestions);
} else if (quType.equals(QuType.CHENRADIO.getActionName()) || quType.equals(QuType.CHENCHECKBOX.getActionName()) || quType.equals(QuType.CHENSCORE.getActionName())
|| quType.equals(QuType.CHENFBK.getActionName()) || quType.equals(QuType.COMPCHENRADIO.getActionName())) {// 矩阵单选,矩阵多选,矩阵填空题,复合矩阵单选
List<Map<String, Object>> questionChenRow = dwSurveyDirectoryDao.queryQuestionChenRowListByQuestionId(question);//获取行选项
List<Map<String, Object>> questionChenColumn = dwSurveyDirectoryDao.queryQuestionChenColumnListByQuestionId(question);//获取列选项
question.put("questionChenRow", questionChenRow);
question.put("questionChenColumn", questionChenColumn);
if(quType.equals(QuType.COMPCHENRADIO.getActionName())){//如果是复合矩阵单选题, 则还有题选项
List<Map<String, Object>> questionChenOption = dwSurveyDirectoryDao.queryQuestionChenOptionListByQuestionId(question);//获取选项
question.put("questionChenOption", questionChenOption);
}
} else if (quType.equals(QuType.SCORE.getActionName())) {
List<Map<String, Object>> questionScore = dwSurveyDirectoryDao.queryQuestionScoreListByQuestionId(question);//获取评分题
question.put("questionScore", questionScore);
} else if (quType.equals(QuType.ORDERQU.getActionName())) {
List<Map<String, Object>> questionOrderBy = dwSurveyDirectoryDao.queryQuestionOrderByListByQuestionId(question);//获取排序题
question.put("questionOrderBy", questionOrderBy);
}
List<Map<String, Object>> questionLogic = dwSurveyDirectoryDao.queryQuestionLogicListByQuestionId(question);// 获取逻辑信息
question.put("questionLogic", questionLogic);
return question;
}
}
......@@ -28,9 +28,267 @@
<insert id="insertDwSurveyDirectoryMation" parameterType="java.util.Map">
INSERT into dw_survey_directory
(id, survey_name, sid, dir_type, survey_model, create_id, create_time)
(id, survey_name, sid, dir_type, survey_model, survey_note, create_id, create_time)
VALUES
(#{id}, #{surveyName}, #{sId}, #{dirType}, #{surveyModel}, #{createId}, #{createTime})
(#{id}, #{surveyName}, #{sId}, #{dirType}, #{surveyModel}, #{surveyNote}, #{createId}, #{createTime})
</insert>
<select id="queryQuestionListByBelongId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.answer_input_row answerInputRow,
a.answer_input_width answerInputWidth,
a.belong_id belongId,
a.cell_count cellCount,
a.check_type checkType,
a.contacts_attr contactsAttr,
a.contacts_field contactsField,
a.copy_from_id copyFromId,
a.create_time createTime,
a.hv,
a.is_required isRequired,
a.keywords,
a.order_by_id orderById,
a.param_int01 paramInt01,
a.param_int02 paramInt02,
a.parent_qu_id parentQuId,
a.qu_name quName,
a.qu_note quNote,
a.qu_tag quTag,
a.qu_title quTitle,
a.qu_type quType,
a.rand_order randOrder,
a.tag,
a.visibility,
a.yesno_option yesnoOption
FROM
dw_question a
WHERE
a.belong_id = #{id}<!-- 所属问卷 -->
AND a.tag = '2'<!-- 问卷的题 -->
AND a.qu_tag != '2'<!-- 不是大题 -->
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionLogicListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.cg_qu_item_id cgQuItemId,
a.ck_qu_id ckQuId,
a.create_time createTime,
a.ge_le geLe,
a.logic_type logicType,
a.score_num scoreNum,
a.sk_qu_id skQuId,
a.visibility
FROM
dw_question_logic a
WHERE
a.ck_qu_id = #{id}
AND a.visibility = '1'
</select>
<select id="queryQuestionChenRowListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.option_name optionName,
a.order_by_id orderById,
a.qu_id quId,
a.visibility
FROM
dw_qu_chen_row a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionChenColumnListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.option_name optionName,
a.order_by_id orderById,
a.qu_id quId,
a.visibility
FROM
dw_qu_chen_column a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionMultiFillBlankListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.check_type checkType,
a.option_name optionName,
a.option_title optionTitle,
a.order_by_id orderById,
a.qu_id qu_id,
a.visibility
FROM
dw_qu_multi_fillblank a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionRadioListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.check_type checkType,
a.is_note isNote,
a.is_required_fill isRequiredFill,
a.option_name optionName,
a.option_title optionTitle,
a.order_by_id orderById,
a.qu_id quId,
a.visibility
FROM
dw_qu_radio a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionCheckBoxListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.check_type checkType,
a.is_note isNote,
a.is_required_fill isRequiredFill,
a.option_name optionName,
a.option_title optionTitle,
a.order_by_id orderById,
a.qu_id quId,
a.visibility
FROM
dw_qu_checkbox a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionChenOptionListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.qu_id quId,
a.option_name optionName,
a.order_by_id orderById
FROM
dw_qu_chen_option a
WHERE
a.qu_id = #{id}
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionScoreListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.qu_id quId,
a.option_name optionName,
a.option_title optionTitle,
a.order_by_id orderById,
a.visibility
FROM
dw_qu_score a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryQuestionOrderByListByQuestionId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.qu_id quId,
a.option_name optionName,
a.option_title optionTitle,
a.order_by_id orderById,
a.visibility
FROM
dw_qu_orderby a
WHERE
a.qu_id = #{id}
AND a.visibility = '1'
ORDER BY
a.order_by_id ASC
</select>
<select id="queryChildQuestionListByBelongId" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.answer_input_row answerInputRow,
a.answer_input_width answerInputWidth,
a.belong_id belongId,
a.cell_count cellCount,
a.check_type checkType,
a.contacts_attr contactsAttr,
a.contacts_field contactsField,
a.copy_from_id copyFromId,
a.create_time createTime,
a.hv,
a.is_required isRequired,
a.keywords,
a.order_by_id orderById,
a.param_int01 paramInt01,
a.param_int02 paramInt02,
a.parent_qu_id parentQuId,
a.qu_name quName,
a.qu_note quNote,
a.qu_tag quTag,
a.qu_title quTitle,
a.qu_type quType,
a.rand_order randOrder,
a.tag,
a.visibility,
a.yesno_option yesnoOption
FROM
dw_question a
WHERE
a.belong_id = #{belongId}<!-- 所属问卷 -->
AND a.tag = '2'<!-- 问卷的题 -->
AND a.qu_tag != '2'<!-- 不是大题 -->
AND a.parent_qu_id = #{id}
ORDER BY
a.order_by_id ASC
</select>
<select id="querySurveyMationById" parameterType="java.util.Map" resultType="java.util.Map">
SELECT
a.id,
a.survey_name surveyName,
a.survey_note surveyNote,
a.survey_qu_num surveyQuNum,
a.an_item_least_num anItemLeastNum,
a.an_item_most_num anItemMostNum,
a.effective,
a.effective_ip effectiveIp,
a.effective_time effectiveTime,
a.answer_num answerNum,
a.html_path htmlPath,
a.is_share isShare,
a.mail_only mailOnly,
a.rule,
a.rule_code ruleCode,
a.survey_tag surveyTag,
a.view_answer viewAnswer,
a.visibility
FROM
dw_survey_directory a
WHERE a.id = #{id}
</select>
</mapper>
\ No newline at end of file
......@@ -14,6 +14,9 @@
<url id="dwsurveydirectory002" path="/post/DwSurveyDirectoryController/insertDwSurveyDirectoryMation" val="新增调查问卷" allUse="1">
<property id="surveyName" name="surveyName" ref="required" var="问卷名称"/>
</url>
<url id="dwsurveydirectory003" path="/post/DwSurveyDirectoryController/queryDwSurveyDirectoryMationById" val="获取调查问卷题目信息" allUse="1">
<property id="rowId" name="id" ref="required" var="问卷id"/>
</url>
<!-- 问卷调查结束 -->
</controller>
\ No newline at end of file
......@@ -4229,6 +4229,15 @@ body .layer-ext-winconfirm {
margin: 0px;
list-style: none;
}
#tools_wrap{
position: fixed;
top: 0px;
z-index: 999;
width: 100%;
background-color: white;
}
#tools .tools_tabs_left{
float: left;
padding-left: 65px;
......@@ -4665,7 +4674,6 @@ body .layer-ext-winconfirm {
}
#dw_body{
margin-top: 135px;
/* padding-bottom: 50px; */
padding-bottom: 40px;
}
#dw_body .dw_body_title{
......
......@@ -8,6 +8,7 @@ layui.config({
var $ = layui.$,
form = layui.form;
//基本题型
var _basemodel = getFileContent('tpl/dwsurveydesign/dragmodel/basemodel/radioQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/basemodel/checkboxQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/basemodel/fillblankQuModel.tpl')
......@@ -15,17 +16,21 @@ layui.config({
+ getFileContent('tpl/dwsurveydesign/dragmodel/basemodel/orderQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/basemodel/mfillblankQuModel.tpl');
//矩阵题型
var _rectanglemodel = getFileContent('tpl/dwsurveydesign/dragmodel/rectanglemodel/chenRadioQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/rectanglemodel/chenCheckboxQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/rectanglemodel/chenScoreQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/rectanglemodel/chenFillblankQuModel.tpl');
//辅助组件
var _auxiliarymodel = getFileContent('tpl/dwsurveydesign/dragmodel/auxiliarymodel/pageQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/auxiliarymodel/paragraphQuModel.tpl');
//操作
var _operationmodel = getFileContent('tpl/dwsurveydesign/dragmodel/operationmodel/surveyAttrSetToolbar.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/operationmodel/surveyStyleEditToolbar.tpl');
//常用题型
var _commonlyusedmodel = getFileContent('tpl/dwsurveydesign/dragmodel/commonlyusedmodel/userNameQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/commonlyusedmodel/phoneNoQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/commonlyusedmodel/addressQuModel.tpl')
......@@ -39,30 +44,46 @@ layui.config({
+ getFileContent('tpl/dwsurveydesign/dragmodel/commonlyusedmodel/salaryQuModel.tpl')
+ getFileContent('tpl/dwsurveydesign/dragmodel/commonlyusedmodel/dateQuModel.tpl');
//各种模板
var _varioustemplates = getFileContent('tpl/dwsurveydesign/varioustemplates.tpl');
$("#_basemodel").html(_basemodel);
$("#_rectanglemodel").html(_rectanglemodel);
$("#_auxiliarymodel").html(_auxiliarymodel);
$("#_operationmodel").html(_operationmodel);
$("#_commonlyusedmodel").html(_commonlyusedmodel);
$("body").append(_varioustemplates);
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;
showGrid({
id: "showForm",
url: reqBasePath + "dwsurveydirectory003",
params: {rowId: parent.rowId},
pagination: false,
template: getFileContent('tpl/dwsurveydesign/dwsurveydesignbean.tpl'),
ajaxSendLoadBefore: function(hdb){
},
ajaxSendAfter:function(json){
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;
});
}
});
//取消
......
......@@ -8,7 +8,7 @@
<link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
<div style="padding-top:20px;">
<div>
<form class="layui-form" action="" id="showForm" autocomplete="off">
<div id="tools_wrap">
<div id="tools">
......@@ -74,13 +74,18 @@
</div>
</div>
</div>
<!-- 内容项 -->
<div id="dw_body">
</div>
<div class="layui-form-item">
<!-- <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>
</div> -->
</form>
</div>
<script src="../../assets/lib/layui/layui.js"></script>
......
{{#bean}}
<div id="dw_body_left">
<div class="dw_body_title" style="text-align: center;">设计目录</div>
<div id="dwBodyLeftContent">
<h2 class=""><a href="" class="ellipsis">欢迎页</a></h2>
<div>
<div>
<h2 class=""><a href="" class="ellipsis">问卷页</a></h2>
</div>
<div style="padding-left: 5px;">
<h2 class=""><a href="" class="ellipsis">1、请问你的年级是?</a></h2>
<h2 class=""><a href="" class="ellipsis">2、请问你的年级是?</a></h2>
<h2 class=""><a href="" class="ellipsis">3、请问你的年级是?</a></h2>
<h2 class=""><a href="" class="ellipsis">4、请问你的年级是?</a></h2>
<h2 class=""><a href="" class="ellipsis">下一页</a></h2>
<h2 class=""><a href="" class="ellipsis">5、请问你的年级是?</a></h2>
<h2 class=""><a href="" class="ellipsis">6、请问你的年级是级是级是?</a></h2>
</div>
</div>
<h2 class=""><a href="" class="ellipsis">结束页</a></h2>
</div>
</div>
<div id="dw_body_right" style="display: none;">
<div class="dw_body_title">题目推荐</div>
</div>
<div id="dw_body_content">
<div id="dwSurveyTitle">
<div id="dwSurveyName" class="editAble dwSvyName">{{surveyName}}</div>
</div>
<input type="hidden" name="svyNmSaveTag" value="1">
<div id="dwSurveyNote">
<div id="dwSurveyNoteTools">参考样例</div>
<div id="dwSurveyNoteEdit" class="editAble dwSvyNoteEdit">{{surveyNote}}</div>
<input type="hidden" name="svyNoteSaveTag" value="1">
</div>
<div id="dwSurveyQuContent" style="min-height: 500px;">
<ul id="dwSurveyQuContentAppUl">
{{#each }}
{{#if isActive}}
1
{{else if isInactive}}
2
{{/if}}
{{/each}}
</ul>
</div>
</div>
{{/bean}}
\ No newline at end of file
<!-- 各种模板 -->
<!-- 单选选项模板 -->
<div id="quRadioItem" class="modelHtml">
<input type="radio"><label class="editAble quCoOptionEdit"></label>
<div class="quItemInputCase">
<input type="hidden" name="quItemId" value="">
<input type="hidden" name="quItemSaveTag" value="0">
<input type="hidden" name="isNote" value="0">
<input type="hidden" name="checkType" value="NO">
<input type="hidden" name="isRequiredFill" value="0">
</div>
</div>
<!-- 多选选项模板 -->
<div id="quCheckboxItem" class="modelHtml">
<input type="checkbox"><label class="editAble quCoOptionEdit"></label>
<div class="quItemInputCase">
<input type="hidden" name="quItemId" value="">
<input type="hidden" name="quItemSaveTag" value="0">
<input type="hidden" name="isNote" value="0">
<input type="hidden" name="checkType" value="NO">
<input type="hidden" name="isRequiredFill" value="0">
</div>
</div>
<!-- 评分题选项模板 -->
<table class="modelHtml">
<tr id="quScoreItemModel" class="quScoreOptionTr">
<td class="quCoItemTableTd quOptionEditTd">
<label class="editAble quCoOptionEdit">评分项</label>
<div class="quItemInputCase"><input type="hidden" name="quItemId" value=""><input type="hidden" name="quItemSaveTag" value="0"></div>
</td>
<td class="quCoItemTableTd">
<table class="scoreNumTable">
<tr>
<td>1</td>
<td>2</td>
<td>3</td>
<td>4</td>
<td>5</td>
</tr>
</table>
</td>
<td class="quCoItemTableTd"></td>
</tr>
</table>
<!-- 排序题模板 -->
<div id="quOrderItemLeftModel" class="modelHtml">
<label class="editAble quCoOptionEdit">&nbsp;</label>
<div class="quItemInputCase"><input type="hidden" name="quItemId" value=""><input type="hidden" name="quItemSaveTag" value="0"></div>
</div>
<table class="modelHtml">
<tr id="quOrderItemRightModel">
<td class="quOrderyTableTd">1</td>
<td></td>
</tr>
</table>
<!--多项填空题 -->
<table class="modelHtml">
<tr id="mFillblankTableModel">
<td align="right" class="mFillblankTableEditTd">
<label class="editAble quCoOptionEdit">大一</label>
<div class="quItemInputCase"><input type="hidden" name="quItemId" value=""><input type="hidden" name="quItemSaveTag" value="0"></div>
</td>
<td><input type="text" style="width:200px;padding:5px;"></td>
</tr>
</table>
<table class="modelHtml">
<tr id="quChenColumnModel">
<td class="quChenColumnTd">
<label class="editAble quCoOptionEdit">新项</label>
<div class="quItemInputCase"><input type="hidden" name="quItemId" value=""><input type="hidden" name="quItemSaveTag" value="0"></div>
</td>
</tr>
<tr id="quChenRowModel">
<td class="quChenRowTd">
<label class="editAble quCoOptionEdit">新项</label>
<div class="quItemInputCase"><input type="hidden" name="quItemId" value=""><input type="hidden" name="quItemSaveTag" value="0"></div>
</td>
</tr>
</table>
<!-- 逻辑值保存模板 -->
<div id="quLogicItemModel" class="modelHtml">
<div class="quLogicItem">
<input type="hidden" name="quLogicId" value="" />
<input type="hidden" name="cgQuItemId" value="0" />
<input type="hidden" name="skQuId" value="0" />
<input type="hidden" name="visibility" value="0">
<input type="hidden" name="logicSaveTag" value="0">
<input type="hidden" name="geLe" value="le">
<input type="hidden" name="scoreNum" value="2">
<input type="hidden" name="logicType" value="1">
</div>
</div>
<table id="setQuLogicItem" style="display: none;">
<tr id="setQuLogicItemTrModel">
<td class="ifSpanText1">如果本题回答</td>
<td>
<select name="option_id" class="logicQuOptionSel"></select>
</td>
<td>&nbsp;
<select name="option_id" class="logicType" style="width: 60px;">
<option value="2">显示</option>
<option value="1">跳到</option>
</select>
</td>
<td>
<select name="jump_to_qid" class="logicQuSel"></select>
</td>
<td>
<div class="dialogRemoveLogic"></div>
</td>
</tr>
<tr id="setQuLogicItemTrModel_score">
<td class="ifSpanText1">如果选项</td>
<td>
<select name="option_id" class="logicQuOptionSel" style="width: 120px;"></select>
评分&nbsp;
<select name="logicScoreGtLt" class="logicScoreGtLt" style="width: 80px;">
<option value="le">小等于</option>
<option value="ge">大等于</option>
</select>
<select name="logicScoreNum" class="logicScoreNum" style="width: 40px;">
<option>2</option>
<option>3</option>
</select>&nbsp;分,</td>
<td>&nbsp;
<select name="logicEvent" class="logicType" style="width: 60px;">
<option value="2">显示</option>
<option value="1">跳到</option>
</select>
</td>
<td>
<select name="jump_to_qid" class="logicQuSel"></select>
</td>
<td>
<div class="dialogRemoveLogic"></div>
</td>
</tr>
</table>
<div id="dwCommonEditRoot">
<div class="dwCommonEdit">
<ul class="dwComEditMenuUl">
<li>
<a href="javascript:;" class="SeniorEdit"><i class="menu_edit2_icon"></i>高级编辑</a>
</li>
<li class="option_Set_Li">
<a href="javascript:;" class="option_Set"><i class="menu_edit4_icon"></i>选项设置</a>
</li>
</ul>
<ul class="dwComEditOptionUl">
<li class="dwOptionUp">
<div class=dwQuIcon></div>
</li>
<li class="dwOptionDown">
<div class=dwQuIcon></div>
</li>
<li class="dwOptionDel">
<div class=dwQuIcon></div>
</li>
</ul>
<div class="dwComEditMenuBtn"></div>
<div id="dwComEditContent" contenteditable="true">请问你的年级是?</div>
</div>
</div>
<div id="dialog" title="Basic dialog" style="display:none">
<div id="editDialogCenter" class="editDialogCenter">
<div id="dialogUeditor"></div>
</div>
<div id="dialogUeBottom">
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogUeOk" /></div>
</div>
</div>
<div id="dwCommonDialog">
<form action="#" id="dwCommonDialogForm">
<div class="dwCommonRefIcon">
<div class="dwCommonRefIcon1"></div>
<div class="dwCommonRefIcon2"></div>
</div>
<div class="dwCommonDialogBody">
<div class="dwCommonDialogTitle"><span id="dwComDialogTitleText">标题文本</span><span id="dwCommonDialogClose" class="closeDialog"></span></div>
<div class="dwCommonDialogContent">
<!-- 默认显示的LOAD -->
<div class="dwQuDialogLoad dwQuDialogCon"><img alt="" src="../../../assets/images/load.gif"></div>
<!-- 题目设置 -->
<div class="dwQuSetCon dwQuFormSetDialog dwQuDialogCon">
<ul>
<li><label><input type="checkbox" name="setIsRequired" >此题必答</label> </li>
<li class="optionAutoOrder"><label><input type="checkbox" name="setRandOrder" >选择随机排列</label> </li>
<li class="contactsAttrLi"><label><input type="checkbox" name="setAutoContacts" >关联到联系人属性</label> </li>
<li class="contactsFieldLi"><label>用户填写的内容,会成为联系人的</label>
<select class="contacts_range" name="setContactsField" style="width:120px;">
<option value="1">姓名</option>
<option value="2">手机</option>
<option value="3">地址</option>
<option value="4">生日</option>
<option value="5">Email</option>
<option value="6">性别</option>
<option value="7">公司</option>
<option value="8">城市</option>
<option value="9">婚姻</option>
<option value="10">收入</option>
</select>
</li>
<li class="optionRangeHv"><label>选项排放:</label>
<select class="option_range" name="setHv" style="width:120px;">
<option value="2">竖排</option>
<option value="1">横排</option>
<option value="3">按列</option>
</select>
<span class="option_range_3" style="display:none;"><input type="text" name="setCellCount" size="2" value="3" class="" >&nbsp;</span>
</li>
<li class="minMaxLi">
<span class="minSpan"><label class="lgleftLabel">&nbsp;最低分</label>&nbsp;<input class="minNum" value="1" type="text" size="2" >&nbsp; <label class="lgRightLabel"></label></span>&nbsp;&nbsp;
<span class="maxSpan"><label class="lgLeftLabel">最高分</label>&nbsp;<input class="maxNum" value="5" type="text" size="2" >&nbsp;<label class="lgRightLabel"></label> </span>
</li>
<li class="scoreMinMax">&nbsp;&nbsp;<label>最高分</label>&nbsp;
<select class="maxScore">
<option value="5">5分</option>
<option value="10">10分</option>
</select>&nbsp; </li>
</ul>
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogQuSetSave" /></div>
</div>
<!-- 逻辑设置 -->
<div class="dwQuDialogLogic dwQuDialogCon">
<div class="dwQuDialogLogicTitle">逻辑设置</div>
<table id="dwQuLogicTable">
</table>
<div class="dwQuDialogBotEvent">
<div class="dwQuDialogAddLogic">
<div class="dwQuIcon"></div>
</div>
</div>
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogSaveLogic" /></div>
</div>
<!-- 批量添加,单选 -->
<div class="dwQuAddMore dwQuDialogCon">
<div class="dwQuTextSpan">每行一个选项</div>
<textarea id="dwQuMoreTextarea"></textarea>
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogSaveMoreItem" /></div>
</div>
</div>
</div>
</form>
</div>
<div id="modelUIDialog">
<div id="modelUIDialogContent">
<!-- 填空题 填空数据类型设置 -->
<div class="dwQuFillDataTypeOption dwQuFormSetDialog dwQuDialogCon">
<ul>
<li><label>输入框宽:</label>
<input type="text" name="qu_inputWidth" value="300"><span>&nbsp;字符</span>
</li>
<li><label>输入框高:</label>
<input type="text" name="qu_inputRow" value="1"><span>&nbsp;</span>
</li>
<li><label>数据类型:</label>
<select class="option_range" name="quFill_checkType" style="width:120px;">
<option value="NO">无验证</option>
<option value="EMAIL">Email</option>
<option value="UNSTRCN">禁止中文</option>
<option value="STRCN">仅许中文</option>
<option value="NUM">数值</option>
<option value="TELENUM">电话号码</option>
<option value="PHONENUM">手机号码</option>
<option value="DATE">日期</option>
<option value="IDENTCODE">身份证号</option>
<option value="ZIPCODE">邮政编码</option>
<option value="URL">网址</option>
</select>
<span class="option_range_3" style="display:none;">&nbsp;</span>
</li>
</ul>
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogQuFillOptionSave" /></div>
</div>
<div class="dwQuRadioCheckboxOption dwQuFormSetDialog dwQuDialogCon">
<ul>
<li><label>选项设置</label></li>
<li class="quOptionAddFill"><label><input type="checkbox" name="quOption_isNote" >选项后添加填空</label> </li>
<li class="quOptionFillContentLi"><label style="padding-left:16px;">填空内容:</label>
<select class="option_range" name="quOption_checkType" style="width:120px;">
<option value="NO">无限制</option>
<option value="EMAIL">Email</option>
<option value="UNSTRCN">禁止中文</option>
<option value="STRCN">仅许中文</option>
<option value="NUM">数值</option>
<option value="TELENUM">电话号码</option>
<option value="PHONENUM">手机号码</option>
<option value="DATE">日期</option>
<option value="IDENTCODE">身份证号</option>
<option value="ZIPCODE">邮政编码</option>
<option value="URL">网址</option>
</select>
<span class="option_range_3" style="display:none;">&nbsp;</span>
</li>
<li class="quOptionFillRequiredLi"><label style="padding-left:15px;"><input type="checkbox" name="quOption_isRequiredFill" checked="checked" >&nbsp;该空可不填</label>&nbsp;</li>
</ul>
<div class="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogQuOptionSetSave" /></div>
</div>
<div class="dwSurveyAttrSetDialog dwQuFormSetDialog dwQuDialogCon">
<div class="tabbarDialog_1">
<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="dwQuDialogBtnCon"><input type="button" value="保存" class="quDialogBtn" id="dwDialogSurveyAttrSave" /></div>
</div>
</div>
</div>
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册