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
88630e0a
Commit
88630e0a
authored
Nov 03, 2021
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷管理-详情细化
parent
d8633e0d
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
250 additions
and
60 deletions
+250
-60
GoToCtrl.java
src/main/java/com/tiptimes/ctrl/GoToCtrl.java
+17
-0
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+41
-15
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+1
-1
questionnaire_Information.js
src/main/webapp/res/js/space/questionnaire_Information.js
+191
-44
No files found.
src/main/java/com/tiptimes/ctrl/GoToCtrl.java
View file @
88630e0a
...
...
@@ -204,6 +204,23 @@ public class GoToCtrl {
return
"/education/notice"
;
}
@RequestMapping
({
"/education/questionnaire_information"
})
public
String
getEducationQuestionnaire_information
(
HttpServletRequest
request
)
{
return
"/education/questionnaire_information"
;
}
@RequestMapping
({
"/education/questionnaire_Information_list"
})
public
String
getEducationQuestionnaire_information_list
(
HttpServletRequest
request
)
{
String
recordId
=
request
.
getParameter
(
"recordId"
);
request
.
setAttribute
(
"recordId"
,
recordId
);
return
"/education/questionnaire_Information_list"
;
}
@RequestMapping
({
"/space/questionnaire_information"
})
public
String
getSpaceQuestionnaire_information
(
HttpServletRequest
request
)
{
return
"/space/questionnaire_information"
;
}
@RequestMapping
({
"/space/top_teacher"
})
public
String
getspacetop_teacher
(
HttpServletRequest
request
)
{
return
"/space/top_teacher"
;
...
...
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
88630e0a
package
com
.
tiptimes
.
ctrl
;
import
com.tiptimes.model.Answer
;
import
com.tiptimes.model.File
;
import
com.tiptimes.model.Questionnaire
;
import
com.tiptimes.model.Record
;
import
com.tiptimes.model.Review
;
import
com.github.pagehelper.PageInfo
;
import
com.tiptimes.model.*
;
import
com.tiptimes.service.FileService
;
import
com.tiptimes.service.QuestionnaireService
;
import
com.tiptimes.util.CompressUtils
;
...
...
@@ -24,11 +21,7 @@ import java.io.FileInputStream;
import
java.io.IOException
;
import
java.io.InputStream
;
import
java.io.OutputStream
;
import
java.util.Date
;
import
java.util.HashMap
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Properties
;
import
java.util.*
;
@Controller
@RequestMapping
({
"/questionnaire"
})
...
...
@@ -199,12 +192,45 @@ public class QuestionnaireCtrl {
@ResponseBody
public
Map
<
String
,
Object
>
selectRecordList
(
Record
record
){
List
<
Record
>
recordList
=
this
.
questionnaireService
.
selectRecordList
(
record
);
List
<
Object
>
object_temp
=
new
ArrayList
();
Iterator
var10
=
recordList
.
iterator
();
while
(
var10
.
hasNext
()){
Record
educationQuestionnaireInformation_list_i
=
(
Record
)
var10
.
next
();
String
html_table
=
""
;
html_table
=
html_table
+
"<span style=\"margin-right: 10px;\" class=\"getAllProject_table\" onclick=\"setAllMaterial_detail('"
+
educationQuestionnaireInformation_list_i
.
getId
()
+
"')\">查看</span>"
;
html_table
=
html_table
+
"<span style=\"margin-right: 10px;\" class=\"getAllProject_table\" onclick=\"setAllMaterial_edit('"
+
educationQuestionnaireInformation_list_i
.
getId
()
+
"')\">审批</span>"
;
Map
<
String
,
Object
>
map_temp_i
=
new
HashMap
();
map_temp_i
.
put
(
"createBy"
,
educationQuestionnaireInformation_list_i
.
getCreateBy
());
if
(
educationQuestionnaireInformation_list_i
.
getWritePeople
().
equals
(
""
)){
map_temp_i
.
put
(
"writePeople"
,
"暂无"
);
}
else
{
map_temp_i
.
put
(
"writePeople"
,
educationQuestionnaireInformation_list_i
.
getWritePeople
());
}
map_temp_i
.
put
(
"phoneNumber"
,
educationQuestionnaireInformation_list_i
.
getPhoneNumber
());
if
(
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
0
){
map_temp_i
.
put
(
"processStatus"
,
"未上报"
);
}
else
if
(
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
1
){
map_temp_i
.
put
(
"processStatus"
,
"待审核"
);
}
else
if
(
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
2
){
map_temp_i
.
put
(
"processStatus"
,
"驳回"
);
}
else
{
map_temp_i
.
put
(
"processStatus"
,
"通过"
);
}
map_temp_i
.
put
(
"editable"
,
html_table
);
object_temp
.
add
(
map_temp_i
);
}
PageInfo
<
Record
>
p
=
new
PageInfo
(
recordList
);
Map
<
String
,
Object
>
map
=
new
HashMap
();
Map
<
String
,
Object
>
data
=
new
HashMap
(
);
map
.
put
(
"result"
,
true
);
map
.
put
(
"
msg"
,
""
);
data
.
put
(
"recordList"
,
recordList
);
map
.
put
(
"
data"
,
data
);
map
.
put
(
"aaData"
,
object_temp
);
map
.
put
(
"
recordsFiltered"
,
p
.
getList
().
size
()
);
map
.
put
(
"iTotalRecords"
,
p
.
getTotal
()
);
map
.
put
(
"
iTotalDisplayRecords"
,
p
.
getTotal
()
);
return
map
;
}
...
...
src/main/resources/mapper/Questionnaire.xml
View file @
88630e0a
...
...
@@ -101,7 +101,7 @@
<select
id=
"selectRecordList"
resultType=
"com.tiptimes.model.Record"
>
SELECT process_status AS 'processStatus',reason,create_by AS 'createBy',
phone_number AS 'phoneNumber',write_people AS 'writePeople'
phone_number AS 'phoneNumber',write_people AS 'writePeople'
,id AS 'id'
FROM t_record
WHERE questionnaire_uuid=#{questionnaireUuid}
<if
test=
"createBy != null and createBy != ''"
>
...
...
src/main/webapp/res/js/space/questionnaire_Information.js
View file @
88630e0a
...
...
@@ -15,28 +15,28 @@ var oTable;
// 验证、填数据用列表
var
option_list
=
[
{
num
:
1
,
name
:
'1.基本信息'
},
{
num
:
2
,
name
:
'2.众创空间场地情况'
},
{
num
:
3
,
name
:
'3.是否租赁场地'
},
{
num
:
4
,
name
:
'4.众创空间配备专职工作人员情况'
},
{
num
:
5
,
name
:
'5.入孵企业情况'
},
{
num
:
6
,
name
:
'6.新增就业情况'
},
{
num
:
7
,
name
:
'7.开设创新创业课程情况'
},
{
num
:
8
,
name
:
'8.签约创业导师情况'
},
{
num
:
9
,
name
:
'9.组织双创活动情况'
},
{
num
:
10
,
name
:
'10.参赛情况'
},
{
num
:
11
,
name
:
'11.2021年创新创业工作经费'
},
{
num
:
12
,
name
:
'12.申报成功高校众创空间联盟发布的创新创业研究课题信息'
},
{
num
:
13
,
name
:
'13.在孵企业销售收入或累计合同额情况(表1)'
},
{
num
:
14
,
name
:
'13.本评估周期实现股权或债权融资情况(表2)'
},
{
num
:
15
,
name
:
'14.主办或承办市级及以上级别路演、双创周活动'
},
{
num
:
16
,
name
:
'15.在孵企业在OTC高校板挂牌情况'
},
{
num
:
17
,
name
:
'16.在孵企业新增知识产权(包括专利、软著等)'
},
{
num
:
18
,
name
:
'17.获得“互联网+”大赛全国赛事奖项情况'
},
{
num
:
19
,
name
:
'18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况'
},
{
num
:
20
,
name
:
'19.入选天津市创业拔尖项目情况'
},
{
num
:
21
,
name
:
'20.是否为国家级备案众创空间'
},
{
num
:
22
,
name
:
'21.是否为国家创业孵化示范基地'
},
{
num
:
1
,
name
:
'1.基本信息'
,
table
:
''
,
max
:
0
},
{
num
:
2
,
name
:
'2.众创空间场地情况'
,
table
:
''
,
max
:
0
},
{
num
:
3
,
name
:
'3.是否租赁场地'
,
table
:
''
,
max
:
0
},
{
num
:
4
,
name
:
'4.众创空间配备专职工作人员情况'
,
table
:
'professionalEmploy'
,
max
:
20
},
{
num
:
5
,
name
:
'5.入孵企业情况'
,
table
:
'incubates'
,
max
:
80
},
{
num
:
6
,
name
:
'6.新增就业情况'
,
table
:
'newPost'
,
max
:
80
},
{
num
:
7
,
name
:
'7.开设创新创业课程情况'
,
table
:
'newCourse'
,
max
:
20
},
{
num
:
8
,
name
:
'8.签约创业导师情况'
,
table
:
'newTeacher'
,
max
:
40
},
{
num
:
9
,
name
:
'9.组织双创活动情况'
,
table
:
'activity'
,
max
:
13
},
{
num
:
10
,
name
:
'10.参赛情况'
,
table
:
'competition'
,
max
:
5
},
{
num
:
11
,
name
:
'11.2021年创新创业工作经费'
,
table
:
''
,
max
:
0
},
{
num
:
12
,
name
:
'12.申报成功高校众创空间联盟发布的创新创业研究课题信息'
,
table
:
'twelve'
,
max
:
2
},
{
num
:
13
,
name
:
'13.在孵企业销售收入或累计合同额情况(表1)'
,
table
:
'thirteen'
,
max
:
80
},
{
num
:
14
,
name
:
'13.本评估周期实现股权或债权融资情况(表2)'
,
table
:
'borrow'
,
max
:
10
},
{
num
:
15
,
name
:
'14.主办或承办市级及以上级别路演、双创周活动'
,
table
:
'fourteen'
,
max
:
10
},
{
num
:
16
,
name
:
'15.在孵企业在OTC高校板挂牌情况'
,
table
:
'fifteen'
,
max
:
8
},
{
num
:
17
,
name
:
'16.在孵企业新增知识产权(包括专利、软著等)'
,
table
:
'sixteen'
,
max
:
80
},
{
num
:
18
,
name
:
'17.获得“互联网+”大赛全国赛事奖项情况'
,
table
:
'seventeen'
,
max
:
20
},
{
num
:
19
,
name
:
'18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况'
,
table
:
'eighteen'
,
max
:
20
},
{
num
:
20
,
name
:
'19.入选天津市创业拔尖项目情况'
,
table
:
'nineteen'
,
max
:
3
},
{
num
:
21
,
name
:
'20.是否为国家级备案众创空间'
,
table
:
''
},
{
num
:
22
,
name
:
'21.是否为国家创业孵化示范基地'
,
table
:
''
},
];
var
broList
=
[
...
...
@@ -102,22 +102,13 @@ var broList = [
{
option
:
'75'
,
num
:
16
},
{
option
:
'76'
,
num
:
16
}
];
var
waitingList
=
[
{
option
:
'1'
,
num
:
1
},
{
option
:
'2'
,
num
:
1
},
{
option
:
'3'
,
num
:
1
},
{
option
:
'4'
,
num
:
1
},
{
option
:
'5'
,
num
:
2
},
{
option
:
'6'
,
num
:
2
},
{
option
:
'7'
,
num
:
3
},
{
option
:
'8'
,
num
:
3
},
var
tableOptionsList
=
[
{
option
:
'9'
,
num
:
4
},
{
option
:
'10'
,
num
:
4
},
{
option
:
'11'
,
num
:
4
},
{
option
:
'12'
,
num
:
4
},
{
option
:
'13'
,
num
:
4
},
{
option
:
'14'
,
num
:
4
},
{
option
:
'15'
,
num
:
4
},
{
option
:
'16'
,
num
:
5
},
{
option
:
'17'
,
num
:
5
},
{
option
:
'18'
,
num
:
5
},
...
...
@@ -162,8 +153,6 @@ var waitingList = [
{
option
:
'57'
,
num
:
10
},
{
option
:
'58'
,
num
:
10
},
{
option
:
'59'
,
num
:
10
},
{
option
:
'60'
,
num
:
11
},
{
option
:
'61'
,
num
:
11
},
{
option
:
'62'
,
num
:
12
},
{
option
:
'63'
,
num
:
12
},
{
option
:
'64'
,
num
:
12
},
...
...
@@ -367,6 +356,25 @@ function nineteen_order() {
})
}
// 获取表格当前行数
function
countTable
(
table
,
standard
,
max
){
var
tableNameText
=
'.'
.
concat
(
table
)
var
firstRowText
=
table
.
concat
(
'-1'
)
var
tempTable
=
$
(
tableNameText
);
if
(
standard
>
max
||
standard
<=
tempTable
.
find
(
"tr"
).
length
-
1
)
{
return
;
}
var
intialNum
=
tempTable
.
find
(
"tr"
).
length
-
1
for
(;
intialNum
<
standard
;){
console
.
log
(
'how about this?'
,
intialNum
)
if
(
tempTable
.
find
(
"tr"
).
length
-
1
<
standard
)
{
fun
(
tableNameText
,
firstRowText
,
max
);
intialNum
++
}
}
}
// 表格加行方法
function
fun
(
table
,
row1
,
max
){
//增加一行,克隆第一个对象
...
...
@@ -391,7 +399,23 @@ function del($td, limit){
}
}
// 上传多个附件
// 下载多文件
function
downloadMultiFiles
(
optionId
){
var
param
=
{
optionId
:
optionId
}
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"questionnaire/downZipByFileId"
,
data
:
JSON
.
stringify
(
param
),
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
}
});
}
// 上传多图片
function
upImg
(){
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
...
...
@@ -462,18 +486,51 @@ function getSaveData() {
swal
(
"失败!"
,
result
.
msg
,
"error"
);
return
;
}
var
i
=
0
;
$
(
document
).
ready
(
function
()
{
$
(
'
input
[name*="option_"]'
).
each
(
function
()
{
$
(
'[name*="option_"]'
).
each
(
function
()
{
var
tempOption
=
$
(
this
).
attr
(
'name'
).
replace
(
'option_'
,
''
);
result
.
data
.
answersList
.
forEach
(
item
=>
{
if
(
item
.
optionsId
===
tempOption
)
{
result
.
data
.
answerList
.
forEach
(
item
=>
{
if
(
item
.
optionsId
==
tempOption
)
{
if
(
item
.
group
>
1
)
{
tableOptionsList
.
forEach
(
i
=>
{
if
(
tempOption
===
i
.
option
){
option_list
.
forEach
(
opt
=>
{
console
.
log
(
'option_listIN!'
)
if
(
i
.
num
===
opt
.
num
){
console
.
log
(
opt
.
table
,
item
.
group
,
opt
.
max
)
countTable
(
opt
.
table
,
item
.
group
,
opt
.
max
);
var
tempName
=
$
(
this
).
attr
(
'name'
)
$
(
"[name="
+
tempName
+
"]"
).
each
(
function
()
{
console
.
log
(
'Did you work?'
)
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
===
item
.
group
){
$
(
this
).
val
(
item
.
value
)
return
false
;
}
})
}
})
}
})
}
else
{
$
(
this
).
val
(
item
.
value
)
}
}
})
})
});
result
.
data
.
answerList
.
forEach
(
item
=>
{
if
(
item
.
optionsId
===
97
&&
item
.
value
===
"是"
){
$
(
"#radio_1"
).
prop
(
"checked"
,
true
);
}
else
if
(
item
.
optionsId
===
97
)
{
$
(
"#radio_2"
).
prop
(
"checked"
,
true
);
}
if
(
item
.
optionsId
===
98
&&
item
.
value
===
"是"
){
$
(
"#radio_3"
).
prop
(
"checked"
,
true
);
}
else
if
(
item
.
optionsId
===
98
)
{
$
(
"#radio_4"
).
prop
(
"checked"
,
true
);
}
})
...
...
@@ -482,11 +539,9 @@ function getSaveData() {
}
function
saveQuestionnaire
(){
$
(
document
).
ready
(
function
()
{
$
(
'input[name*="option_"]'
).
each
(
function
()
{
if
(
$
(
this
).
val
())
{
console
.
log
(
'iamIN!!!!!!!!!'
)
var
tempObj
=
{};
tempObj
[
'optionsId'
]
=
$
(
this
).
attr
(
'name'
).
replace
(
'option_'
,
''
);
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
)
{
...
...
@@ -519,7 +574,6 @@ function saveQuestionnaire(){
});
});
console
.
log
(
formData
,
'!!!!!!!!!'
)
if
(
$
(
'input:radio[name=last_two]:checked'
).
val
())
{
var
tempObj1
=
{};
tempObj1
[
'optionsId'
]
=
97
;
...
...
@@ -558,6 +612,99 @@ function submitQuestionnaire() {
saveQuestionnaire
();
}
// 多文件上传
var
file_list
=
new
Array
();
var
file_list_update_id
=
1
;
function
file_class
(
id
,
fileId
,
fileName
)
{
var
file_i
=
new
Object
;
file_i
.
id
=
id
;
file_i
.
fileId
=
fileId
;
file_i
.
fileName
=
fileName
;
return
file_i
;
}
// 到底是哪个上传
var
upload_option
=
0
function
file_DIV_Show
(
fileID
,
option
){
if
(
fileID
==
"0"
){
$
(
"#theFile_file_div"
).
empty
();
$
(
"#theFile_file_div"
).
html
(
'<input type="file" id="theFile_file" name="mainfile" class="form-control" >'
);
$
(
'#theFile_file'
).
prettyFile
();
}
else
{
for
(
var
file_list_i
in
file_list
){
if
(
file_list
[
file_list_i
].
id
==
parseInt
(
fileID
)){
$
(
"#theFile_file_div"
).
empty
();
$
(
"#theFile_file_div"
).
html
(
'<input type="file" id="theFile_file" name="mainfile" class="form-control" >'
);
$
(
'#theFile_file'
).
prettyFile
();
$
(
"#theFile_file_div input[class='input-large form-control']"
).
val
(
file_list
[
file_list_i
].
fileName
);
}
}
}
upload_option
=
option
$
(
'#theFile_DIV'
).
modal
(
'show'
);
}
function
file_update
(){
if
(
fileChangeNo
(
"theFile_file"
)
==
true
){
if
(
pdfFileChange
(
"theFile_file"
)
==
false
){
return
;
}
$
(
"#theFile_DIV_ZZSC"
).
show
();
$
(
"#theFile_DIV_SC"
).
hide
();
$
.
ajaxFileUpload
({
url
:
webroot
+
'File/upload'
,
secureuri
:
false
,
dataType
:
'json'
,
fileElementId
:
[
"theFile_file"
],
success
:
function
(
data
){
//上传成功
$
(
"#theFile_DIV_ZZSC"
).
hide
();
$
(
"#theFile_DIV_SC"
).
show
();
var
fileId
=
data
.
fileID
;
var
id
=
file_list_update_id
;
file_list_update_id
++
;
var
file_class_i
=
file_class
(
id
,
fileId
,
fileName
);
file_list
.
push
(
file_class_i
);
file_DIV_List_Show
();
$
(
'#theFile_DIV'
).
modal
(
'hide'
);
}
});
}
else
{
//alert("请选择文件!");
swal
(
"失败!"
,
"请选择文件!"
,
"error"
);
}
}
function
file_DIV_delete
(
id
){
if
(
id
!=
""
){
for
(
var
file_i
in
file_list
){
if
(
file_list
[
file_i
].
id
==
id
){
file_list
.
splice
(
file_i
,
1
);
break
;
}
}
}
file_DIV_List_Show
();
}
function
file_DIV_List_Show
(){
var
html
=
""
;
for
(
var
file_i
in
file_list
){
html
+=
"<div>"
;
html
+=
"<div class=
\"
col-sm-8
\"
>"
;
html
+=
"<label >文件名称:"
+
file_list
[
file_i
].
fileName
+
"</label>"
;
html
+=
"</div>"
;
html
+=
"<div class=
\"
col-sm-3
\"
>"
;
html
+=
"<label class=
\"
project_information_class_hover
\"
onclick=
\"
file_DIV_delete('"
+
file_list
[
file_i
].
id
+
"')
\"
>删除</label>"
;
html
+=
"</div>"
;
html
+=
"</div>"
;
}
$
(
"#file_DIV_List_Show_div"
).
html
(
html
);
}
function
testListApi
()
{
var
url
=
webroot
+
"questionnaire/selectRecordList?questionnaireUuid=1"
;
$
(
document
).
ready
(
function
()
{
...
...
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