Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
barry cho
DWSurvey
Commits
d32f8c86
Commit
d32f8c86
authored
3 years ago
by
keyuan
Browse files
Options
Download
Email Patches
Plain Diff
访止出现为空题时
parent
bf46ae8a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-1
README.md
src/main/webapp/WEB-INF/page/content/diaowen-design/design-survey.jsp
+23
-0
...app/WEB-INF/page/content/diaowen-design/design-survey.jsp
src/main/webapp/js/dw/dwsurvey-design.js
+23
-18
src/main/webapp/js/dw/dwsurvey-design.js
with
47 additions
and
19 deletions
+47
-19
README.md
+
1
-
1
View file @
d32f8c86
...
...
@@ -101,7 +101,7 @@ github: https://github.com/wkeyuan/DWSurvey
## 开源协议
DWSurvey以通用公共许可证AGPL3.0为开源协议,
商业环境使用请购买商业授权
!
DWSurvey以通用公共许可证AGPL3.0为开源协议,
需要更的服务可以购买我们的商业版与企业版
!
- - -
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/page/content/diaowen-design/design-survey.jsp
+
23
-
0
View file @
d32f8c86
...
...
@@ -2181,6 +2181,29 @@
</div>
</c:when>
<c:otherwise>
<div
class=
"surveyQuItemBody"
>
<div
class=
"initLine"
></div>
<div
class=
"quInputCase"
style=
"display: none;"
>
<input
type=
"hidden"
name=
"quType"
value=
"${en.quType}"
>
<input
type=
"hidden"
name=
"quId"
value=
"${en.id }"
>
<input
type=
"hidden"
name=
"orderById"
value=
"${en.orderById }"
/>
<input
type=
"hidden"
name=
"saveTag"
value=
"1"
>
<input
type=
"hidden"
name=
"hoverTag"
value=
"0"
>
<input
type=
"hidden"
name=
"isRequired"
value=
"${en.isRequired }"
>
<input
type=
"hidden"
name=
"hv"
value=
"${en.hv }"
>
<input
type=
"hidden"
name=
"randOrder"
value=
"${en.randOrder }"
>
<input
type=
"hidden"
name=
"cellCount"
value=
"${en.cellCount }"
>
<div
class=
"quLogicInputCase"
>
<input
type=
"hidden"
name=
"quLogicItemNum"
value=
"${fn:length(en.questionLogics) }"
>
</div>
</div>
<div
class=
"surveyQuItem"
>
</div>
</div>
</c:otherwise>
</c:choose>
</li>
</c:forEach>
...
...
This diff is collapsed.
Click to expand it.
src/main/webapp/js/dw/dwsurvey-design.js
+
23
-
18
View file @
d32f8c86
...
...
@@ -1678,24 +1678,29 @@ function resizeWrapSize(){
}
function
saveQus
(
quItemBody
,
callback
){
if
(
quItemBody
[
0
]){
var
quType
=
quItemBody
.
find
(
"
input[name='quType']
"
).
val
();
if
(
quType
==
"
RADIO
"
){
//保存单选
saveRadio
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
CHECKBOX
"
){
saveCheckbox
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
FILLBLANK
"
){
saveFillblank
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
ORDERQU
"
){
saveOrderqu
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
PAGETAG
"
){
savePagetag
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
PARAGRAPH
"
){
saveParagraph
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
MULTIFILLBLANK
"
){
saveMultiFillblank
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
SCORE
"
){
saveScore
(
quItemBody
,
callback
);
var
quTypeObj
=
quItemBody
.
find
(
"
input[name='quType']
"
);
if
(
quTypeObj
[
0
]){
var
quType
=
quTypeObj
.
val
();
if
(
quType
==
"
RADIO
"
){
//保存单选
saveRadio
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
CHECKBOX
"
){
saveCheckbox
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
FILLBLANK
"
){
saveFillblank
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
ORDERQU
"
){
saveOrderqu
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
PAGETAG
"
){
savePagetag
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
PARAGRAPH
"
){
saveParagraph
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
MULTIFILLBLANK
"
){
saveMultiFillblank
(
quItemBody
,
callback
);
}
else
if
(
quType
==
"
SCORE
"
){
saveScore
(
quItemBody
,
callback
);
}
else
{
callback
();
}
}
else
{
callback
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help