Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王琮
platform
Commits
e556c35d
Commit
e556c35d
authored
Nov 09, 2022
by
熊海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改审批页面和汇总统计导出页面
parent
5ad5181c
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1061 additions
and
258 deletions
+1061
-258
questionnaire_Information_list.jsp
...WEB-INF/page/education/questionnaire_Information_list.jsp
+66
-3
questionnaire_information.jsp
...bapp/WEB-INF/page/education/questionnaire_information.jsp
+362
-242
questionnaire_Information.js
...main/webapp/res/js/education/questionnaire_Information.js
+616
-13
questionnaire_Information_list.js
...webapp/res/js/education/questionnaire_Information_list.js
+17
-0
No files found.
src/main/webapp/WEB-INF/page/education/questionnaire_Information_list.jsp
View file @
e556c35d
...
...
@@ -48,7 +48,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
</select>
<input
type=
"text"
id=
"title"
class=
"form-control"
placeholder=
"众创空间"
/>
<button
style=
"margin-top: 5px"
class=
" btn btn-sm btn-primary m-t-n-xs"
onclick=
"search();"
>
搜 索
</button>
<button
style=
"margin-top: 5px"
class=
" btn btn-sm btn-primary m-t-n-xs"
onclick=
""
>
导 出
</button>
<button
style=
"margin-top: 5px"
class=
" btn btn-sm btn-primary m-t-n-xs"
onclick=
"
ShowCreateModal()
"
>
导 出
</button>
</div>
<table
id=
"hidden-table-info"
width=
"100%"
class=
"table table-striped table-bordered table-hover dataTables-example"
></table>
</div>
...
...
@@ -87,6 +87,69 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"createFileMModal"
style=
"padding-left: 10%"
role=
"dialog"
aria-labelledby=
"exampleModalLabel"
aria-hidden=
"true"
>
<div
class=
"modal-dialog"
style=
"padding-top: 10%;"
role=
"document"
>
<div
class=
"modal-content"
style=
"width: 710px"
>
<div
id=
"exportSelect"
class=
"modal-body"
>
<h5>
请选择需要导出的指标
</h5>
<br>
<form>
<h5>
基础指标
</h5>
<div>
<span
style=
"line-height: 14px"
>
基础指标1
<input
name=
"index"
type=
"radio"
value=
"1"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标2
<input
name=
"index"
type=
"radio"
value=
"2"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标3
<input
name=
"index"
type=
"radio"
value=
"3"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标4
<input
name=
"index"
type=
"radio"
value=
"4"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标5
<input
name=
"index"
type=
"radio"
value=
"5"
></span>
</div>
<div>
<span
style=
"line-height: 14px"
>
基础指标6
<input
name=
"index"
type=
"radio"
value=
"6"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标7
<input
name=
"index"
type=
"radio"
value=
"7"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标8
<input
name=
"index"
type=
"radio"
value=
"8"
></span>
     
<span
style=
"line-height: 14px"
>
基础指标9
<input
name=
"index"
type=
"radio"
value=
"9"
></span>
</div>
<br>
<h5>
引导指标
</h5>
<div>
<span
style=
"line-height: 14px"
>
引导指标1
<input
name=
"index"
type=
"radio"
value=
"10"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标2
<input
name=
"index"
type=
"radio"
value=
"11"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标3
<input
name=
"index"
type=
"radio"
value=
"12"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标4
<input
name=
"index"
type=
"radio"
value=
"13"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标5
<input
name=
"index"
type=
"radio"
value=
"14"
></span>
</div>
<div>
<span
style=
"line-height: 14px"
>
引导指标6
<input
name=
"index"
type=
"radio"
value=
"15"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标7
<input
name=
"index"
type=
"radio"
value=
"16"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标8
<input
name=
"index"
type=
"radio"
value=
"17"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标9
<input
name=
"index"
type=
"radio"
value=
"18"
></span>
     
<span
style=
"line-height: 14px"
>
引导指标10
<input
name=
"index"
type=
"radio"
value=
"19"
></span>
</div>
<div>
<span
style=
"line-height: 14px"
>
引导指标11
<input
name=
"index"
type=
"radio"
value=
"20"
></span>
    
<span
style=
"line-height: 14px"
>
引导指标12
<input
name=
"index"
type=
"radio"
value=
"21"
></span>
    
<span
style=
"line-height: 14px"
>
引导指标13
<input
name=
"index"
type=
"radio"
value=
"22"
></span>
     
</div>
<br>
<h5>
奖励指标
</h5>
<div>
<span
style=
"line-height: 14px"
>
奖励指标1
<input
name=
"index"
type=
"radio"
value=
"23"
></span>
     
<span
style=
"line-height: 14px"
>
奖励指标2
<input
name=
"index"
type=
"radio"
value=
"24"
></span>
     
<span
style=
"line-height: 14px"
>
奖励指标3
<input
name=
"index"
type=
"radio"
value=
"25"
></span>
     
<span
style=
"line-height: 14px"
>
奖励指标4
<input
name=
"index"
type=
"radio"
value=
"26"
></span>
     
<span
style=
"line-height: 14px"
>
奖励指标5
<input
name=
"index"
type=
"radio"
value=
"27"
></span>
</div>
<br>
<div
class=
"ibox-content"
>
<div
class=
"form-inline pull-right "
>
<button
style=
"margin-top: 5px"
class=
" btn btn-sm btn-primary m-t-n-xs"
onclick=
"exportData()"
>
确定
</button>
<button
id=
"abadonExport"
style=
"margin-top: 5px;background-color: white;"
class=
" btn btn-sm btn-primary m-t-n-xs"
><span
style=
"color: black"
>
取消
</span></button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
<!-- 全局js -->
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/jquery.min.js?v=2.1.4"
></script>
<script
src=
"
<%=
request
.
getContextPath
()
%>
/res/js/bootstrap.min.js?v=3.3.6"
></script>
...
...
src/main/webapp/WEB-INF/page/education/questionnaire_information.jsp
View file @
e556c35d
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/main/webapp/res/js/education/questionnaire_Information.js
View file @
e556c35d
...
...
@@ -9,10 +9,15 @@ $(function () {
all_order
();
getSaveData
();
StatusCheck
();
//同步回显引导指标内容
synchronizeUpperAndLowerFormContents
()
})
// 实现10分钟1次自动保存
var
ocarina
=
self
.
setInterval
(
"timeCircleSave()"
,
600000
);
//
var ocarina = self.setInterval("timeCircleSave()",600000);
var
processStatus
=
0
recordId
...
...
@@ -22,11 +27,71 @@ var oTable;
function
StatusCheck
()
{
if
(
processStatus
===
1
){
$
(
'#goback_btn'
).
hide
()
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
input[type='number']`
).
val
(()
=>
{
try
{
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
if
(
data
.
reviews
[
j
].
questionsId
===
i
){
return
data
.
reviews
[
j
].
score
;
}
}
}
}
catch
(
e
)
{
}
})
try
{
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
if
(
data
.
reviews
[
j
].
questionsId
===
i
){
if
(
data
.
reviews
[
j
].
approvalStatus
==
0
){
$
(
`#submit
${
i
}
input:radio[value='1']`
).
attr
(
'checked'
,
'true'
)
}
else
{
$
(
`#submit
${
i
}
input:radio[value='2']`
).
attr
(
'checked'
,
'true'
)
}
}
}
}
}
catch
(
e
)
{
}
}
}
else
if
(
processStatus
===
2
){
$
(
'#tempSave_btn'
).
hide
()
$
(
'#pass_btn'
).
hide
()
$
(
'#reject_btn'
).
hide
()
$
(
'textarea[name*="question_"]'
).
prop
(
'readonly'
,
true
)
//$('textarea[name*="question_"]').prop('readonly', true)
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
input[type='number']`
).
val
(()
=>
{
try
{
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
if
(
data
.
reviews
[
j
].
questionsId
===
i
){
return
data
.
reviews
[
j
].
score
;
}
}
}
}
catch
(
e
)
{
}
})
try
{
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
if
(
data
.
reviews
[
j
].
questionsId
===
i
){
if
(
data
.
reviews
[
j
].
approvalStatus
==
0
){
$
(
`#submit
${
i
}
input:radio[value='1']`
).
attr
(
'checked'
,
'true'
)
}
else
{
$
(
`#submit
${
i
}
input:radio[value='2']`
).
attr
(
'checked'
,
'true'
)
}
}
}
}
}
catch
(
e
)
{
}
}
}
else
if
(
processStatus
===
3
){
$
(
'#rejectLabel'
).
hide
();
$
(
'#rejectReason'
).
hide
();
...
...
@@ -34,6 +99,24 @@ function StatusCheck() {
$
(
'#pass_btn'
).
hide
()
$
(
'#reject_btn'
).
hide
()
$
(
'textarea[name*="question_"]'
).
prop
(
'readonly'
,
true
)
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
a`
).
hide
()
$
(
`#submit
${
i
}
input[type='radio']`
).
parent
().
hide
()
$
(
`#submit
${
i
}
input[type='number']`
).
val
(()
=>
{
try
{
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
if
(
data
.
reviews
[
j
].
questionsId
===
i
){
return
data
.
reviews
[
j
].
score
;
}
}
}
}
catch
(
e
)
{
}
})
$
(
`#submit
${
i
}
input[type='number']`
).
attr
(
'disabled'
,
"true"
)
}
}
}
...
...
@@ -212,6 +295,9 @@ var tableOptionsList = [
{
option
:
'96'
,
num
:
20
}
];
//返回的全部list数据
var
data
=
[]
// 问卷全部数据
var
formData
=
[];
...
...
@@ -400,6 +486,7 @@ function getSaveData() {
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
processStatus
=
result
.
data
.
processStatus
data
=
result
.
data
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
...
...
@@ -485,19 +572,20 @@ function previews(url) {
}
function
saveQuestionnaire
(
isAuto
){
formData
=
[]
$
(
document
).
ready
(
function
()
{
var
rejectReason
=
''
//
var rejectReason = ''
$
(
'textarea[name*="question_"]'
).
each
(
function
()
{
if
(
$
(
this
)
[
0
].
value
){
if
(
$
(
this
)
.
val
()
){
var
tempObj
=
{};
if
(
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
)
===
'22'
){
rejectReason
=
$
(
this
)[
0
].
value
;
}
else
{
//
if ($(this).attr('name').replace('question_', '') === '22'){
//
rejectReason = $(this)[0].value;
//
} else {
tempObj
[
'questionsId'
]
=
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
);
tempObj
[
'recordId'
]
=
recordId
tempObj
[
'remark'
]
=
$
(
this
)
[
0
].
value
;
tempObj
[
'remark'
]
=
$
(
this
)
.
val
()
;
formData
.
push
(
tempObj
)
}
//
}
}
});
});
...
...
@@ -525,11 +613,12 @@ function saveQuestionnaire(isAuto){
}
// 定时自动暂存
function
timeCircleSave
()
{
saveQuestionnaire
(
1
);
}
//
function timeCircleSave() {
//
saveQuestionnaire(1);
//
}
function
passQuestionnaire
(){
//存储备注
$
(
document
).
ready
(
function
()
{
$
(
'textarea[name*="question_"]'
).
each
(
function
()
{
if
(
$
(
this
)[
0
].
value
){
...
...
@@ -571,6 +660,7 @@ function passQuestionnaire(){
}
function
rejectQuestionnaire
(){
//存储备注
formData
=
[]
var
rejectReason
=
''
;
if
(
$
(
'#rejectReason'
)[
0
].
value
==
''
){
...
...
@@ -622,3 +712,516 @@ function gobcak(){
history
.
go
(
-
1
);
}
//页面回显
function
synchronizeUpperAndLowerFormContents
()
{
$
(
document
).
ready
(()
=>
{
//引导指标1
var
guidingindicators1
=
$
(
"#basicindicators1 #content-basic-1"
).
clone
(
false
)
//将要写入容器清空
$
(
"#guidingindicators1 #content-guide-1"
).
empty
()
//将内容写入到指定容器
$
(
"#guidingindicators1 #content-guide-1"
).
append
(
guidingindicators1
)
//将需要同步的备注显示到下面
var
text1
=
$
(
"#basicindicators1 textarea"
).
clone
(
false
)
//移除属性防止提交
text1
.
removeAttr
(
"name"
)
//赋值
text1
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
1
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
//将属性置为不可改变
text1
.
attr
(
"disabled"
,
"disabled"
)
//将内容写入
$
(
"#guidingindicators1 #submit10"
).
prepend
(
text1
)
//引导指标2
var
guidingindicators2
=
$
(
"#basicindicators1 #content-basic-1"
).
clone
(
false
)
$
(
"#guidingindicators2 #content-guide-2"
).
empty
()
$
(
"#guidingindicators2 #content-guide-2"
).
append
(
guidingindicators2
)
var
text2
=
$
(
"#basicindicators1 textarea"
).
clone
(
false
)
text2
.
removeAttr
(
"name"
)
text2
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
1
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text2
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators2 #submit11"
).
prepend
(
text2
)
//引导指标3
var
guidingindicators3
=
$
(
"#basicindicators3 #content-basic-3"
).
clone
(
false
)
$
(
"#guidingindicators3 #content-guide-3"
).
empty
()
$
(
"#guidingindicators3 #content-guide-3"
).
append
(
guidingindicators3
)
var
text3
=
$
(
"#basicindicators3 textarea"
).
clone
(
false
)
text3
.
removeAttr
(
"name"
)
text3
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
3
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text3
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators3 #submit12"
).
prepend
(
text3
)
//引导指标4
var
guidingindicators4
=
$
(
"#basicindicators3 #content-basic-3"
).
clone
(
false
)
$
(
"#guidingindicators4 #content-guide-4"
).
empty
()
$
(
"#guidingindicators4 #content-guide-4"
).
append
(
guidingindicators4
)
var
text4
=
$
(
"#basicindicators3 textarea"
).
clone
(
false
)
text4
.
removeAttr
(
"name"
)
text4
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
3
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text4
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators4 #submit13"
).
prepend
(
text4
)
$
(
"#guidingindicators4 table tr"
).
each
((
index
,
element
)
=>
{
if
(
$
(
$
(
element
).
children
()[
5
]).
children
().
attr
(
'title'
)
==
"否"
)
{
$
(
element
).
remove
()
}
})
//引导指标5
var
guidingindicators5
=
$
(
"#basicindicators4 #content-basic-4"
).
clone
(
false
)
$
(
"#guidingindicators5 #content-guide-5"
).
empty
()
$
(
"#guidingindicators5 #content-guide-5"
).
append
(
guidingindicators5
)
var
text5
=
$
(
"#basicindicators4 textarea"
).
clone
(
false
)
text5
.
removeAttr
(
"name"
)
text5
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
4
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text5
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators5 #submit14"
).
prepend
(
text5
)
//引导指标7
var
guidingindicators7
=
$
(
"#basicindicators6 #content-basic-6"
).
clone
(
false
)
$
(
"#guidingindicators7 #content-guide-7"
).
empty
()
$
(
"#guidingindicators7 #content-guide-7"
).
append
(
guidingindicators7
)
var
text7
=
$
(
"#basicindicators6 textarea"
).
clone
(
false
)
text7
.
removeAttr
(
"name"
)
text7
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
6
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text7
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators7 #submit16"
).
prepend
(
text7
)
//引导指标8
var
guidingindicators8
=
$
(
"#basicindicators7 #content-basic-7"
).
clone
(
false
)
$
(
"#guidingindicators8 #content-guide-8"
).
empty
()
$
(
"#guidingindicators8 #content-guide-8"
).
append
(
guidingindicators8
)
var
text8
=
$
(
"#basicindicators7 textarea"
).
clone
(
false
)
text8
.
removeAttr
(
"name"
)
text8
.
val
(()
=>
{
try
{
if
(
!
(
data
.
reviews
.
length
>
0
)){
return
}
}
catch
(
e
)
{
return
}
for
(
var
i
=
0
;
i
<
data
.
reviews
.
length
;
i
++
){
if
(
data
.
reviews
[
i
].
questionsId
===
7
){
return
data
.
reviews
[
i
].
remark
;
}
}
})
text8
.
attr
(
"disabled"
,
"disabled"
)
$
(
"#guidingindicators8 #submit17"
).
prepend
(
text8
)
})
}
//审核方法
function
submitForReview
(
questionNum
)
{
formData
=
[]
if
(
$
(
`#submit
${
questionNum
}
input:radio:checked`
).
val
()){
if
(
$
(
`#submit
${
questionNum
}
input:radio:checked`
).
val
()
==
1
){
//驳回
if
(
$
(
`textarea[name='question_
${
questionNum
}
']`
).
val
().
replace
(
" "
,
""
).
length
>
0
){
var
tempObj
=
{};
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'remark'
]
=
$
(
`textarea[name='question_
${
questionNum
}
']`
).
val
()
tempObj
[
'approvalStatus'
]
=
0
formData
.
push
(
tempObj
)
}
else
{
swal
(
'失败'
,
'请填写驳回原因!'
,
'error'
)
return
}
}
else
{
//通过
var
tempObj
=
{};
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'remark'
]
=
$
(
`textarea[name='question_
${
questionNum
}
']`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
}
var
param
=
{
id
:
recordId
,
questionnaireUuid
:
1
,
reason
:
''
,
processStatus
:
1
,
reviews
:
formData
};
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"questionnaire/checkReject"
,
data
:
JSON
.
stringify
(
param
),
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
swal
(
"成功!"
,
'审核成功'
,
"success"
);
$
(
`#submit
${
questionNum
}
a`
).
attr
(
'disabled'
,
"true"
)
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
else
{
swal
(
'失败'
,
'请选择提交状态!'
,
'error'
)
}
}
//判分方法
function
scoreSubmission
(
questionNum
)
{
formData
=
[]
//需要判分 引导指标1-奖励指标5
switch
(
questionNum
)
{
//引导指标1
case
10
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
4
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标2
case
11
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
4
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标3
case
12
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
5
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标4
case
13
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标5
case
14
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
30
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标6
case
15
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
2
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标7
case
16
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
3
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标8
case
17
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
4
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标9
case
18
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
6
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标10
case
19
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
6
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标11
case
20
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
4
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标12
case
21
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
7
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//引导指标13
case
22
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//奖励指标1
case
23
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//奖励指标2
case
24
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//奖励指标3
case
25
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//奖励指标4
case
26
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
//奖励指标5
case
27
:
var
tempObj
=
{};
if
(
$
(
`#submit
${
questionNum
}
input`
).
val
()
<
0
||
$
(
`#submit
${
questionNum
}
input`
).
val
()
>
10
){
swal
(
'失败'
,
'分数不符合预期!'
,
'error'
)
return
}
tempObj
[
'questionsId'
]
=
questionNum
tempObj
[
'recordId'
]
=
parseInt
(
recordId
)
tempObj
[
'score'
]
=
$
(
`#submit
${
questionNum
}
input`
).
val
()
tempObj
[
'remark'
]
=
$
(
`#submit
${
questionNum
}
textarea[name="question_
${
questionNum
}
"]`
).
val
()
tempObj
[
'approvalStatus'
]
=
1
formData
.
push
(
tempObj
)
break
default
:
swal
(
'失败'
,
'score error!'
,
'error'
)
break
}
var
param
=
{
id
:
recordId
,
questionnaireUuid
:
1
,
reason
:
''
,
processStatus
:
1
,
reviews
:
formData
}
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"questionnaire/checkReject"
,
data
:
JSON
.
stringify
(
param
),
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
swal
(
"成功!"
,
'审核成功'
,
"success"
);
$
(
`#submit
${
questionNum
}
a`
).
attr
(
'disabled'
,
"true"
)
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
//取消按钮
function
emptyContent
(
questionNum
)
{
$
(
`#submit
${
questionNum
}
input[type='radio']`
).
removeAttr
(
"checked"
)
$
(
`#submit
${
questionNum
}
input[type='number']`
).
val
(
''
)
$
(
`#submit
${
questionNum
}
textarea[name='question_
${
questionNum
}
']`
).
val
(
''
)
}
src/main/webapp/res/js/education/questionnaire_Information_list.js
View file @
e556c35d
...
...
@@ -114,3 +114,20 @@ function setAllMaterial_detail(projectID){
window
.
location
.
href
=
webroot
+
"goto/education/questionnaire_information?recordId="
+
projectID
;
}
// 修改弹出框的title, 显示弹框
function
ShowCreateModal
(){
$
(
'#createFileMModal'
).
modal
(
'show'
);
}
// 关闭弹框, 获取输入值,然后执行逻辑
$
(
"#abadonExport"
).
click
(
function
(){
$
(
"#createFileMModal"
).
modal
(
"hide"
);
});
//导出
function
exportData
()
{
if
(
$
(
"#exportSelect input:radio:checked"
).
val
()){
window
.
open
(
webroot
+
"questionnaire/exportFullTimeWorkPerson?index="
+
$
(
"#exportSelect input:radio:checked"
).
val
(),
"_parent"
)
}
else
{
swal
(
"失败!"
,
"请选择导出指标!"
,
"error"
);
}
}
Write
Preview
Markdown
is supported
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