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
5be86eca
Commit
5be86eca
authored
Nov 04, 2021
by
Asjoker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
问卷管理-详情细化
parent
055b4a0f
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
538 additions
and
437 deletions
+538
-437
GoToCtrl.java
src/main/java/com/tiptimes/ctrl/GoToCtrl.java
+2
-0
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+7
-2
questionnaire_information.jsp
...bapp/WEB-INF/page/education/questionnaire_information.jsp
+36
-98
questionnaire_information.jsp
...n/webapp/WEB-INF/page/space/questionnaire_information.jsp
+48
-28
ajaxfileupload.js
src/main/webapp/res/js/ajaxfileupload/ajaxfileupload.js
+98
-2
questionnaire_Information.js
...main/webapp/res/js/education/questionnaire_Information.js
+85
-24
questionnaire_Information_list.js
...webapp/res/js/education/questionnaire_Information_list.js
+2
-118
questionnaire_Information.js
src/main/webapp/res/js/space/questionnaire_Information.js
+260
-165
No files found.
src/main/java/com/tiptimes/ctrl/GoToCtrl.java
View file @
5be86eca
...
...
@@ -213,6 +213,8 @@ public class GoToCtrl {
public
String
getEducationQuestionnaire_information_list
(
HttpServletRequest
request
)
{
String
recordId
=
request
.
getParameter
(
"recordId"
);
request
.
setAttribute
(
"recordId"
,
recordId
);
String
processStatus
=
request
.
getParameter
(
"processStatus"
);
request
.
setAttribute
(
"processStatus"
,
processStatus
);
return
"/education/questionnaire_Information_list"
;
}
...
...
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
5be86eca
...
...
@@ -61,6 +61,7 @@ public class QuestionnaireCtrl {
if
(
record
.
getProcessStatus
()==
1
||
record
.
getProcessStatus
()==
3
)
{
map
.
put
(
"result"
,
false
);
map
.
put
(
"msg"
,
"不能重复上报"
);
return
map
;
}
//3.根据上报记录id删除原上报数据
this
.
questionnaireService
.
delAnswer
(
recordId
);
...
...
@@ -205,8 +206,12 @@ public class QuestionnaireCtrl {
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>"
;
if
(
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
2
||
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
3
)
{
html_table
=
html_table
+
"<span style=\"margin-right: 10px;\" class=\"getAllProject_table\" onclick=\"setAllMaterial_edit('"
+
educationQuestionnaireInformation_list_i
.
getId
()
+
"')\">查看</span>"
;
}
if
(
educationQuestionnaireInformation_list_i
.
getProcessStatus
()
==
1
)
{
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
();
...
...
src/main/webapp/WEB-INF/page/education/questionnaire_information.jsp
View file @
5be86eca
...
...
@@ -86,25 +86,25 @@
<div
class=
"row"
>
<label
class=
"col-sm-3 control-label"
>
众创空间名称
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
class=
"form-control"
name=
"option_1"
>
<div
class=
"form-control"
name=
"option_1"
>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
所属高校
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
class=
"form-control"
name=
"option_2"
>
<div
class=
"form-control"
name=
"option_2"
>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
填报人姓名
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
class=
"form-control"
name=
"option_3"
>
<div
class=
"form-control"
name=
"option_3"
>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
联系电话
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
class=
"form-control"
name=
"option_4"
>
<div
class=
"form-control"
name=
"option_4"
>
</div>
</div>
</div>
</div>
...
...
@@ -122,13 +122,13 @@
<div
class=
"row"
>
<label
class=
"col-sm-3 control-label"
>
众创空间面积
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
type=
"text"
class=
"form-control"
name=
"option_5"
>
<div
class=
"form-control"
name=
"option_5"
></div
>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
众创空间提供工位数
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-md-4"
>
<div
type=
"text"
class=
"form-control"
name=
"option_6"
>
<div
class=
"form-control"
name=
"option_6"
></div
>
</div>
</div>
</div>
...
...
@@ -143,18 +143,19 @@
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
3.是否租赁场地
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
>
<div
class=
"form-control"
name=
"option_7"
>
</div>
<div
class=
"form-control"
name=
"option_7"
></div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<%-- 此处为option_8 --%>
<label
class=
"col-sm-3 control-label"
>
每块场地实景照片1张
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
id=
"demo1"
>
<div
type=
"hidden"
id=
"material_img"
value=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
>
<img
src=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
width=
"150px"
height=
"100px"
id=
"img"
>
<a
class=
"btn btn-primary"
onclick=
"upImg()"
>
上传图片
</a>
</div>
<div
class=
"col-sm-8"
id=
"demo1"
>
<%-- <div>--%>
<%-- <a class="btn btn-primary" onclick="upImg()">上传图片</a>--%>
<%-- </div>--%>
<div
class=
"col-sm-8"
id=
"file_DIV_List_Show_8"
>
</div>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -197,15 +198,11 @@
<div
class=
"td-class"
name=
"option_14"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</tbody>
</table>
<%-- <div id="fourTip"></div>--%>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.professionalEmploy','professionalEmploy-1', 20)"
>
增加一行
</a>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
...
...
@@ -216,7 +213,8 @@
<%-- <a class="btn btn-primary" onclick="upImg()">上传图片</a>--%>
<%-- </div>--%>
<div
class=
"col-sm-4"
>
<a
class=
"btn btn-primary"
onclick=
"file_DIV_Show('0', 15)"
id=
"upload_situation"
><strong>
添加
</strong></a>
<%-- <a class="btn btn-primary" onclick="file_DIV_Show('0', 15)" id="upload_situation"><strong>添加</strong></a>--%>
<a
class=
"btn btn-primary"
onclick=
"downloadMultiFiles(15)"
><strong>
下载
</strong></a>
</div>
</div>
</div>
...
...
@@ -272,20 +270,16 @@
<div
class=
"td-class"
name=
"option_20"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 3)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.incubates','incubates-1', 80)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
<label>
备注
</label>
<textarea
name=
"question_
5
"
cols=
"30"
rows=
"3"
></textarea>
<textarea
name=
"question_
6
"
cols=
"30"
rows=
"3"
></textarea>
</div>
</div>
...
...
@@ -335,15 +329,11 @@
<div
class=
"td-class"
name=
"option_24"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.newPost','newPost-1', 80)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -445,15 +435,11 @@
<div
class=
"td-class"
name=
"option_34"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.newCourse','newCourse-1', 20)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -604,15 +590,11 @@
<div
class=
"td-class"
name=
"option_51"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.newTeacher','newTeacher-1', 40)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -676,15 +658,11 @@
<div
class=
"td-class"
name=
"option_56"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 5)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.activity','activity-1', 13)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -727,15 +705,11 @@
<td><div
class=
"td-class"
type=
""
name=
"option_57"
></div></td>
<td><div
class=
"td-class"
type=
""
name=
"option_58"
></div></td>
<td><div
class=
"td-class"
type=
""
name=
"option_59"
></div></td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 2)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.competition','competition-1', 5)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -750,7 +724,7 @@
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
11.2021年创新创业工作经费(万元)
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
>
<div
type=
"text"
class=
"form-control"
id=
"option_60"
>
<div
class=
"form-control"
id=
"option_60"
></div
>
<label
class=
"grayTip"
>
仅支持2位小数, 如1234.00
</label>
</div>
</div>
...
...
@@ -763,8 +737,7 @@
<%-- </div>--%>
<div
class=
"col-sm-4"
>
<%-- option_60 --%>
<a
class=
"btn btn-primary"
onclick=
"file_DIV_Show('0', 61)"
id=
"upload_badget"
><strong>
添加
</strong></a>
<label
class=
"grayTip"
>
支持格式: .jpg、 .gif、 .pdf
</label>
<a
class=
"btn btn-primary"
onclick=
"downloadMultiFiles(61)"
><strong>
下载
</strong></a>
</div>
</div>
</div>
...
...
@@ -791,7 +764,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
12.申报成功高校众创空间联盟发布的创新创业研究课题信息
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
12.申报成功高校众创空间联盟发布的创新创业研究课题信息 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"twelve"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -821,15 +794,11 @@
<td><div
class=
"td-class"
type=
""
name=
"option_62"
></div></td>
<td><div
class=
"td-class"
type=
""
name=
"option_63"
></div></td>
<td><div
class=
"td-class"
type=
""
name=
"option_64"
></div></td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.twelve','twelve-1', 2)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -848,7 +817,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
13.在孵企业销售收入或累计合同额情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
13.在孵企业销售收入或累计合同额情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"thirteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -881,15 +850,11 @@
<div
class=
"td-class"
name=
"option_67"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.thirteen','thirteen-1', 80)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -903,7 +868,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
本评估周期实现股权或债权融资情况(含股东增资或股东借款)
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
本评估周期实现股权或债权融资情况(含股东增资或股东借款) :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"borrow"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -942,15 +907,11 @@
<div
class=
"td-class"
name=
"option_71"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.borrow','borrow-1', 10)"
>
增加一行
</a>
</div>
</div>
</div>
</div>
...
...
@@ -961,7 +922,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
14.主办或承办市级及以上级别路演、双创周活动
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
14.主办或承办市级及以上级别路演、双创周活动 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"fourteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -993,15 +954,11 @@
<div
class=
"td-class"
name=
"option_73"
></div>
</td>
<td><div
class=
"td-class"
type=
""
name=
"option_74"
></div></td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.fourteen','fourteen-1', 10)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1042,15 +999,11 @@
<div
class=
"td-class"
name=
"option_75"
></div>
</td>
<td><div
class=
"td-class"
type=
""
name=
"option_76"
></div></td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.fifteen','fifteen-1', 8)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1065,7 +1018,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
16.在孵企业新增知识产权(包括专利、软著等)
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
16.在孵企业新增知识产权(包括专利、软著等) :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"sixteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1112,15 +1065,11 @@
<div
class=
"td-class"
name=
"option_81"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.sixteen','sixteen-1', 80)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1137,7 +1086,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
17.获得“互联网+”大赛全国赛事奖项情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
17.获得“互联网+”大赛全国赛事奖项情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"seventeen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1185,15 +1134,11 @@
<div
class=
"td-class"
name=
"option_86"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.seventeen','seventeen-1', 20)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1208,7 +1153,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"eighteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1261,15 +1206,11 @@
<td>
<div
class=
"td-class"
name=
"option_92"
></div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.eighteen','eighteen-1', 20)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1284,7 +1225,7 @@
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
19.入选天津市创业拔尖项目情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
19.入选天津市创业拔尖项目情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"nineteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1329,15 +1270,11 @@
<div
class=
"td-class"
name=
"option_96"
>
</div>
</td>
<td><button
class=
"td-button"
type=
"button"
onclick=
"del(this, 1)"
>
删除
</button></td>
</tr>
</c:forEach>
</tbody>
</table>
</div>
<div
style=
"margin-left: 25%"
>
<a
class=
"btn btn-primary"
onclick=
"fun('.nineteen','nineteen-1', 3)"
>
增加一行
</a>
</div>
</div>
</div>
<div
style=
"margin: 30px 0 0;"
>
...
...
@@ -1353,8 +1290,8 @@
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
20.是否为国家级备案众创空间
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
style=
"margin: 0 20px
"
>
<div
name=
"option_97"
></div>
<div
class=
"col-md-4
"
>
<div
class=
"form-control"
name=
"option_97"
></div>
</div>
</div>
</div>
...
...
@@ -1371,8 +1308,8 @@
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
21.是否为国家创业孵化示范基地
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
style=
"margin: 0 20px
"
>
<div
name=
"option_98"
></div>
<div
class=
"col-md-4
"
>
<div
class=
"form-control"
name=
"option_98"
></div>
</div>
</div>
</div>
...
...
@@ -1385,16 +1322,17 @@
<div
class=
"form-group"
>
<div
class=
"col-sm-10"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
驳回原因
<span
class=
"text-danger"
>
*
</span>
:
</label>
<textarea
name=
"question_22"
cols=
"100"
rows=
"3"
></textarea>
<textarea
id=
"rejectReason"
name=
"question_22"
cols=
"100"
rows=
"3"
></textarea>
</div>
</div>
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<a
class=
"btn btn-primary"
onclick=
"saveQuestionnaire()"
>
暂存备注
</a>
<a
class=
"btn btn-primary"
onclick=
"passQuestionnaire()"
>
通过
</a>
<a
class=
"btn btn-primary"
onclick=
"rejectQuestionnaire()"
>
驳回
</a>
<a
class=
"btn btn-primary"
id=
"goback_btn"
onclick=
"gobcak()"
>
返回
</a>
<a
class=
"btn btn-primary"
id=
"tempSave_btn"
onclick=
"saveQuestionnaire()"
>
暂存备注
</a>
<a
class=
"btn btn-primary"
id=
"pass_btn"
onclick=
"passQuestionnaire()"
>
通过
</a>
<a
class=
"btn btn-primary"
id=
"reject_btn"
onclick=
"rejectQuestionnaire()"
>
驳回
</a>
</div>
</div>
<%-- <table id="hidden-table-info" width="100%" class="table table-striped table-bordered table-hover dataTables-example"></table>--%>
...
...
src/main/webapp/WEB-INF/page/space/questionnaire_information.jsp
View file @
5be86eca
...
...
@@ -63,6 +63,23 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
.table-class
{
width
:
1000px
;
}
.cover
{
position
:
absolute
;
z-index
:
1
;
top
:
0
;
left
:
0
;
width
:
160px
;
height
:
130px
;
background-color
:
rgba
(
0
,
0
,
0
,
.3
);
display
:
none
;
line-height
:
125px
;
text-align
:
center
;
cursor
:
pointer
;
}
.cover
.delbtn
{
color
:
red
;
font-size
:
20px
;
}
</style>
</head>
...
...
@@ -145,10 +162,12 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"row"
style=
"margin-top: 15px"
>
<%-- 此处为option_8 --%>
<label
class=
"col-sm-3 control-label"
>
每块场地实景照片1张
<span
class=
"text-danger"
>
*
</span>
:
</label>
<div
class=
"col-sm-4"
id=
"demo1"
>
<input
type=
"hidden"
id=
"material_img"
value=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
>
<img
src=
"
<%=
request
.
getContextPath
()
%>
/res/image/a8e5f2d84a324822886b39c74b460288.jpg"
width=
"150px"
height=
"100px"
id=
"img"
>
<a
class=
"btn btn-primary"
onclick=
"upImg()"
>
上传图片
</a>
<div
class=
"col-sm-8"
id=
"demo1"
>
<div>
<a
class=
"btn btn-primary"
onclick=
"upImg()"
>
上传图片
</a>
</div>
<div
class=
"col-sm-8"
id=
"file_DIV_List_Show_8"
>
</div>
</div>
</div>
</div>
...
...
@@ -204,13 +223,14 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
填写《关于众创空间运营情况的相关说明》(见附件),打印并加盖众创空间直属部门公章后上传
<span
class=
"text-danger"
>
*
</span>
:
</label>
<%-- <div class="col-sm-10" id="demo1">--%>
<%-- <input type="hidden" id="material_img" value="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg">--%>
<%-- <img src="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg" width="150px" height="100px" id="img" >--%>
<%-- <a class="btn btn-primary" onclick="upImg()">上传图片</a>--%>
<%-- </div>--%>
<div
class=
"col-sm-4"
>
<a
class=
"btn btn-primary"
onclick=
"file_DIV_Show('0', 15)"
id=
"upload_situation"
><strong>
添加
</strong></a>
<a
class=
"btn btn-primary"
onclick=
"downloadMultiFiles(15)"
><strong>
下载
</strong></a>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
></label>
<div
class=
"col-sm-10"
id=
"file_DIV_List_Show_15"
>
</div>
</div>
</div>
...
...
@@ -805,15 +825,16 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-3 control-label"
>
由财务部门出具的相关证明照片或PDF格式文件
<span
class=
"text-danger"
>
*
</span>
:
</label>
<%-- <div class="col-sm-10" id="demo1">--%>
<%-- <input type="hidden" id="material_img" value="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg">--%>
<%-- <img src="<%=request.getContextPath()%>/res/image/a8e5f2d84a324822886b39c74b460288.jpg" width="150px" height="100px" id="img" >--%>
<%-- <a class="btn btn-primary" onclick="upImg()">上传图片</a>--%>
<%-- </div>--%>
<div
class=
"col-sm-4"
>
<%-- option_60 --%>
<a
class=
"btn btn-primary"
onclick=
"file_DIV_Show('0', 61)"
id=
"upload_badget"
><strong>
添加
</strong></a>
<label
class=
"grayTip"
>
支持格式: .jpg、 .gif、 .pdf
</label>
<a
class=
"btn btn-primary"
onclick=
"downloadMultiFiles(61)"
><strong>
下载
</strong></a>
<label
class=
"grayTip"
>
支持格式: .jpg、 .gif、 .pdf
</label>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 15px"
>
<label
class=
"col-sm-2 control-label"
></label>
<div
class=
"col-sm-10"
id=
"file_DIV_List_Show_61"
>
</div>
</div>
</div>
...
...
@@ -836,7 +857,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
12.申报成功高校众创空间联盟发布的创新创业研究课题信息
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
12.申报成功高校众创空间联盟发布的创新创业研究课题信息 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"twelve"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -889,7 +910,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
13.在孵企业销售收入或累计合同额情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
13.在孵企业销售收入或累计合同额情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"thirteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -943,7 +964,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
本评估周期实现股权或债权融资情况(含股东增资或股东借款)
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
本评估周期实现股权或债权融资情况(含股东增资或股东借款) :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"borrow"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1004,7 +1025,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
14.主办或承办市级及以上级别路演、双创周活动
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
14.主办或承办市级及以上级别路演、双创周活动 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"fourteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1112,7 +1133,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
16.在孵企业新增知识产权(包括专利、软著等)
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
16.在孵企业新增知识产权(包括专利、软著等) :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"sixteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1193,7 +1214,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
17.获得“互联网+”大赛全国赛事奖项情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
17.获得“互联网+”大赛全国赛事奖项情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"seventeen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1267,7 +1288,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
18.获得创客马拉松大赛及市教委组织的其他双创大赛奖项情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"eighteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1346,7 +1367,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"form-group draggable"
>
<div
class=
"col-sm-10"
>
<div
class=
"row"
>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
19.入选天津市创业拔尖项目情况
<span
class=
"text-danger"
>
*
</span>
:
</label>
<label
class=
"col-sm-3"
style=
"font-size: 18px;padding-left: 40px"
>
19.入选天津市创业拔尖项目情况 :
</label>
<div
style=
"width:1000px;overflow-x: auto;border: #333333 1px;margin-bottom: 15px"
>
<table
class=
"nineteen"
border=
"1"
style=
"max-width: 1000px"
>
<thead>
...
...
@@ -1452,11 +1473,10 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"hr-line-dashed"
></div>
<div
class=
"form-group"
>
<div
class=
"col-sm-4 col-sm-offset-2"
>
<a
class=
"btn btn-primary"
onclick=
"saveQuestionnaire()"
>
暂存内容
</a>
<a
class=
"btn btn-primary"
onclick=
"submitQuestionnaire()"
>
保存内容
</a>
<a
class=
"btn btn-primary"
onclick=
"saveQuestionnaire(
0
)"
>
暂存内容
</a>
<a
class=
"btn btn-primary"
onclick=
"submitQuestionnaire()"
>
上报
</a>
</div>
</div>
<table
id=
"hidden-table-info"
width=
"100%"
class=
"table table-striped table-bordered table-hover dataTables-example"
></table>
</form>
</div>
...
...
@@ -1510,7 +1530,7 @@ String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.
<div
class=
"col-sm-9"
id=
"theFile_file_div"
>
<input
type=
"file"
id=
"theFile_file"
name=
"mainfile"
class=
"form-control"
>
</div>
<span
id=
"uploadTip"
class=
"help-block m-b-none"
style=
"color: #ff0000;margin-left: calc(25% + 15px)"
></span>
</form>
</div>
</div>
...
...
src/main/webapp/res/js/ajaxfileupload/ajaxfileupload.js
View file @
5be86eca
...
...
@@ -397,12 +397,108 @@ function fileChangeNo(id) {
/*swal("失败!","请先选择上传文件", "error");*/
return
false
;
}
return
true
;
}
function
option15validate
(
id
){
var
maxsize
=
30
*
1024
*
1024
;
var
errMsg
=
"上传的附件文件不能超过30M!!!"
;
var
tipMsg
=
"您的浏览器暂不支持计算上传文件的大小,确保上传文件不要超过30M,建议使用IE、FireFox、Chrome浏览器。"
;
var
browserCfg
=
{};
var
ua
=
window
.
navigator
.
userAgent
;
if
(
isIE
()){
browserCfg
.
ie
=
true
;
}
else
if
(
ua
.
indexOf
(
"Firefox"
)
>=
1
){
browserCfg
.
firefox
=
true
;
}
else
if
(
ua
.
indexOf
(
"Chrome"
)
>=
1
){
browserCfg
.
chrome
=
true
;
}
var
obj_file
=
document
.
getElementById
(
id
);
if
(
obj_file
.
value
==
""
){
// alert("请先选择上传文件");
swal
(
"失败!"
,
"请先选择上传文件"
,
"error"
);
return
false
;
}
var
photoExt
=
obj_file
.
value
.
substr
(
obj_file
.
value
.
lastIndexOf
(
"."
)).
toLowerCase
();
//获得文件后缀名
if
(
photoExt
!=
'.jpg'
&&
photoExt
!=
'.gif'
&&
photoExt
!=
'.png'
&&
photoExt
!=
'.JPG'
&&
photoExt
!=
'.PNG'
&&
photoExt
!=
'.GIF'
&&
photoExt
!=
'.bmp'
&&
photoExt
!=
'.doc'
&&
photoExt
!=
'.docx'
&&
photoExt
!=
'.pdf'
&&
photoExt
!=
'.xls'
&&
photoExt
!=
'.xlsx'
&&
photoExt
!=
'.ppt'
&&
photoExt
!=
'.pptx'
&&
photoExt
!=
'.txt'
&&
photoExt
!=
'.sav'
&&
photoExt
!=
'.caj'
){
swal
(
"失败!"
,
"请上传后缀名为.png、 .jpg、 .gif、 .bmp、 .doc、 .docx、 .pdf、 .xls、 .xlsx、 .ppt、 .pptx、 .txt、 .sav、 .caj的文件!"
,
"error"
);
return
false
;
}
var
filesize
=
0
;
if
(
browserCfg
.
firefox
||
browserCfg
.
chrome
){
filesize
=
obj_file
.
files
[
0
].
size
;
}
else
if
(
browserCfg
.
ie
){
var
obj_img
=
document
.
getElementById
(
id
);
obj_img
.
dynsrc
=
obj_file
.
value
;
filesize
=
obj_img
.
fileSize
;
}
else
{
//alert(tipMsg);
swal
(
"失败!"
,
tipMsg
,
"error"
);
return
false
;
}
if
(
filesize
==-
1
){
// alert(tipMsg);
swal
(
"失败!"
,
tipMsg
,
"error"
);
return
false
;
}
else
if
(
filesize
>
maxsize
){
//alert(errMsg);
swal
(
"失败!"
,
errMsg
,
"error"
);
return
false
;
}
else
{
return
true
;
}
}
function
option61validate
(
id
){
var
maxsize
=
30
*
1024
*
1024
;
var
errMsg
=
"上传的附件文件不能超过30M!!!"
;
var
tipMsg
=
"您的浏览器暂不支持计算上传文件的大小,确保上传文件不要超过30M,建议使用IE、FireFox、Chrome浏览器。"
;
var
browserCfg
=
{};
var
ua
=
window
.
navigator
.
userAgent
;
if
(
isIE
()){
browserCfg
.
ie
=
true
;
}
else
if
(
ua
.
indexOf
(
"Firefox"
)
>=
1
){
browserCfg
.
firefox
=
true
;
}
else
if
(
ua
.
indexOf
(
"Chrome"
)
>=
1
){
browserCfg
.
chrome
=
true
;
}
var
obj_file
=
document
.
getElementById
(
id
);
if
(
obj_file
.
value
==
""
){
// alert("请先选择上传文件");
swal
(
"失败!"
,
"请先选择上传文件"
,
"error"
);
return
false
;
}
var
photoExt
=
obj_file
.
value
.
substr
(
obj_file
.
value
.
lastIndexOf
(
"."
)).
toLowerCase
();
//获得文件后缀名
if
(
photoExt
!=
'.jpg'
&&
photoExt
!=
'.gif'
&&
photoExt
!=
'.JPG'
&&
photoExt
!=
'.GIF'
&&
photoExt
!=
'.pdf'
){
swal
(
"失败!"
,
"请上传后缀名为.jpg、 .gif、 .pdf的文件!"
,
"error"
);
return
false
;
}
var
filesize
=
0
;
if
(
browserCfg
.
firefox
||
browserCfg
.
chrome
){
filesize
=
obj_file
.
files
[
0
].
size
;
}
else
if
(
browserCfg
.
ie
){
var
obj_img
=
document
.
getElementById
(
id
);
obj_img
.
dynsrc
=
obj_file
.
value
;
filesize
=
obj_img
.
fileSize
;
}
else
{
//alert(tipMsg);
swal
(
"失败!"
,
tipMsg
,
"error"
);
return
false
;
}
if
(
filesize
==-
1
){
// alert(tipMsg);
swal
(
"失败!"
,
tipMsg
,
"error"
);
return
false
;
}
else
if
(
filesize
>
maxsize
){
//alert(errMsg);
swal
(
"失败!"
,
errMsg
,
"error"
);
return
false
;
}
else
{
return
true
;
}
}
function
isIE
()
{
//ie?
if
(
!!
window
.
ActiveXObject
||
"ActiveXObject"
in
window
)
return
true
;
...
...
src/main/webapp/res/js/education/questionnaire_Information.js
View file @
5be86eca
...
...
@@ -8,11 +8,27 @@ $(function () {
});
all_order
();
getSaveData
();
StatusCheck
();
})
var
processStatus
=
0
recordId
var
oTable
;
function
StatusCheck
()
{
console
.
log
(
processStatus
,
'!!!!!!!!!!'
)
console
.
log
(
recordId
,
'!!!!!!!!!!'
)
if
(
processStatus
===
1
){
console
.
log
(
'I am IN!'
)
$
(
'#goback_btn'
).
hide
()
}
else
if
(
processStatus
===
2
||
processStatus
===
3
){
$
(
'#tempSave_btn'
).
hide
()
$
(
'#pass_btn'
).
hide
()
$
(
'#reject_btn'
).
hide
()
$
(
'textarea[name*="question_"]'
).
prop
(
'readonly'
,
true
)
}
}
// 验证、填数据用列表
var
option_list
=
[
{
num
:
1
,
name
:
'1.基本信息'
,
table
:
''
,
max
:
0
},
...
...
@@ -321,7 +337,6 @@ function countTable(table, standard, max){
}
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
++
...
...
@@ -356,24 +371,18 @@ function del($td, limit){
// 下载多文件
function
downloadMultiFiles
(
optionId
){
var
param
=
{
optionId
:
optionId
//虚拟iframe实现无刷新下载文件 get传参
var
url
=
webroot
+
"questionnaire/downZipByFileId?optionId="
+
optionId
+
"&questionnaireUuid=1&recordId="
+
recordId
;
var
downloadFrame
=
$
(
'#downloadFrame'
);
if
(
downloadFrame
.
length
==
0
){
downloadFrame
=
$
(
'<iframe id="downloadFrame" src="" style="display:none"></iframe>'
);
$
(
'body'
).
append
(
downloadFrame
);
}
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"questionnaire/downZipByFileId"
,
data
:
JSON
.
stringify
(
param
),
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
}
});
downloadFrame
.
attr
(
'src'
,
url
);
}
// 获取暂存数据
function
getSaveData
()
{
var
recordIds
=
parseInt
(
recordId
)
console
.
log
(
recordIds
,
"!!!!!!!!!!"
)
// var param = {
// questionnaireUuid: 1,
// recordId: parseInt(recordId)
...
...
@@ -384,6 +393,7 @@ function getSaveData() {
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
processStatus
=
result
.
data
.
processStatus
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
...
...
@@ -399,12 +409,12 @@ function getSaveData() {
if
(
tempOption
===
i
.
option
){
option_list
.
forEach
(
opt
=>
{
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
()
{
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
===
item
.
group
){
$
(
this
).
html
(
item
.
value
)
$
(
this
).
attr
(
'title'
,
item
.
value
)
return
false
;
}
})
...
...
@@ -413,19 +423,50 @@ function getSaveData() {
}
})
}
else
{
else
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
===
1
)
{
$
(
this
).
html
(
item
.
value
)
$
(
this
).
attr
(
'title'
,
item
.
value
)
}
}
})
})
});
result
.
data
.
answerList
.
forEach
(
item
=>
{
if
(
item
.
optionsId
===
8
){
tempImgList
.
push
(
item
);
}
})
img_DIV_List_Show
();
$
(
document
).
ready
(
function
()
{
$
(
'[name*="question_"]'
).
each
(
function
()
{
var
tempOption
=
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
);
result
.
data
.
reviews
.
forEach
(
item
=>
{
if
(
item
.
questionsId
==
tempOption
)
{
$
(
this
).
val
(
item
.
remark
)
}
})
})
});
$
(
'#rejectReason'
).
val
(
result
.
data
.
reason
)
});
}
});
}
var
tempImgList
=
new
Array
();
function
img_DIV_List_Show
()
{
var
prehtml
=
""
;
for
(
var
file_i
in
tempImgList
)
{
prehtml
+=
"<div>"
;
prehtml
+=
"<div class=
\"
col-sm-8
\"
>"
;
prehtml
+=
'<img src="'
+
tempImgList
[
file_i
].
date
+
'" width="150px" height="100px" style="margin-left: 15px" />'
;
prehtml
+=
"</div>"
;
prehtml
+=
"</div>"
;
}
$
(
"#file_DIV_List_Show_8"
).
html
(
prehtml
);
}
function
saveQuestionnaire
(){
$
(
document
).
ready
(
function
()
{
...
...
@@ -438,7 +479,7 @@ function saveQuestionnaire(){
}
else
{
tempObj
[
'questionsId'
]
=
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
);
tempObj
[
'recordId'
]
=
recordId
tempObj
[
'rema
ke
'
]
=
$
(
this
)[
0
].
value
;
tempObj
[
'rema
rk
'
]
=
$
(
this
)[
0
].
value
;
formData
.
push
(
tempObj
)
}
}
...
...
@@ -446,9 +487,7 @@ function saveQuestionnaire(){
});
var
param
=
{
id
:
recordId
,
questionnaireUuid
:
1
,
reviewList
:
formData
reviews
:
formData
};
$
.
ajax
({
...
...
@@ -472,7 +511,7 @@ function passQuestionnaire(){
}
else
{
tempObj
[
'questionsId'
]
=
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
);
tempObj
[
'recordId'
]
=
recordId
tempObj
[
'rema
ke
'
]
=
$
(
this
)[
0
].
value
;
tempObj
[
'rema
rk
'
]
=
$
(
this
)[
0
].
value
;
formData
.
push
(
tempObj
)
}
}
...
...
@@ -480,8 +519,9 @@ function passQuestionnaire(){
});
var
param
=
{
id
:
recordId
,
id
:
parseInt
(
recordId
)
,
questionnaireUuid
:
1
,
processStatus
:
3
,
reviewList
:
formData
};
...
...
@@ -492,12 +532,22 @@ function passQuestionnaire(){
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
swal
(
"成功!"
,
'通过成功'
,
"error"
);
history
.
go
(
-
1
);
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
function
rejectQuestionnaire
(){
var
rejectReason
=
''
;
if
(
$
(
'#rejectReason'
)[
0
].
value
==
''
){
swal
(
"失败!"
,
'未填写驳回原因'
,
"error"
);
return
;
}
$
(
document
).
ready
(
function
()
{
$
(
'textarea[name*="question_"]'
).
each
(
function
()
{
if
(
$
(
this
)[
0
].
value
){
...
...
@@ -507,7 +557,7 @@ function rejectQuestionnaire(){
}
else
{
tempObj
[
'questionsId'
]
=
$
(
this
).
attr
(
'name'
).
replace
(
'question_'
,
''
);
tempObj
[
'recordId'
]
=
recordId
tempObj
[
'rema
ke
'
]
=
$
(
this
)[
0
].
value
;
tempObj
[
'rema
rk
'
]
=
$
(
this
)[
0
].
value
;
formData
.
push
(
tempObj
)
}
}
...
...
@@ -518,6 +568,7 @@ function rejectQuestionnaire(){
id
:
recordId
,
questionnaireUuid
:
1
,
reason
:
rejectReason
,
processStatus
:
2
,
reviewList
:
formData
};
...
...
@@ -528,7 +579,17 @@ function rejectQuestionnaire(){
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
swal
(
"成功!"
,
'驳回成功'
,
"error"
);
history
.
go
(
-
1
);
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
function
gobcak
(){
history
.
go
(
-
1
);
}
src/main/webapp/res/js/education/questionnaire_Information_list.js
View file @
5be86eca
...
...
@@ -85,123 +85,7 @@ function setAllMaterial_edit(projectID){
window
.
location
.
href
=
webroot
+
"goto/education/questionnaire_information?recordId="
+
projectID
;
}
function
setAllMaterial_Recommend
(
informationID
,
state
)
{
var
data
=
{};
data
[
'informationID'
]
=
informationID
;
data
[
'state'
]
=
"1"
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/setMaterialSpaceEducationState"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
else
{
//alert(result.msg);
swal
(
"成功!"
,
result
.
msg
,
"success"
);
//page_start=($('#hidden-table-info').dataTable().fnSettings()._iDisplayStart) / ($('#hidden-table-info').dataTable().fnSettings()._iDisplayLength);//当前页开始
//indexAllArticleTableONLINETeam();
$
(
'#hidden-table-info'
).
DataTable
().
draw
(
false
);
}
}
});
}
function
setAllMaterial_order
(
projectID
,
order1
){
$
(
"#DIV_id"
).
val
(
projectID
);
$
(
"#myModalLabel_order1"
).
val
(
order1
);
$
(
'#show_DIV'
).
modal
(
'show'
);
}
function
order_DIV_close
(){
$
(
'#show_DIV'
).
modal
(
'hide'
);
}
function
order_DIV_save
(){
var
projectID
=
$
(
"#DIV_id"
).
val
();
var
order1
=
$
(
"#myModalLabel_order1"
).
val
();
var
data
=
{};
data
[
'informationID'
]
=
projectID
;
data
[
'order1'
]
=
order1
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/setMaterialSpaceOrder"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
else
{
//alert(result.msg);
swal
(
"成功!"
,
result
.
msg
,
"success"
);
//page_start=($('#hidden-table-info').dataTable().fnSettings()._iDisplayStart) / ($('#hidden-table-info').dataTable().fnSettings()._iDisplayLength);//当前页开始
//indexAllArticleTableONLINETeam();
$
(
'#hidden-table-info'
).
DataTable
().
draw
(
false
);
order_DIV_close
();
}
}
});
}
function
setAllMaterial_delete
(
informationID
)
{
swal
({
title
:
"您确定删除吗?"
,
type
:
"warning"
,
showCancelButton
:
true
,
confirmButtonColor
:
"#DD6B55"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
closeOnConfirm
:
false
,
closeOnCancel
:
false
},
function
(
isConfirm
)
{
if
(
isConfirm
)
{
var
data
=
{};
data
[
'informationID'
]
=
informationID
;
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"Material/deleteOneMaterial"
,
data
:
JSON
.
stringify
(
data
)
,
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
false
){
//alert(result.msg);
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
else
{
//alert(result.msg);
swal
(
"成功!"
,
result
.
msg
,
"success"
);
//page_start=($('#hidden-table-info').dataTable().fnSettings()._iDisplayStart) / ($('#hidden-table-info').dataTable().fnSettings()._iDisplayLength);//当前页开始
//indexAllArticleTableONLINETeam();
$
(
'#hidden-table-info'
).
DataTable
().
draw
(
false
);
changPage
();
}
}
});
}
else
{
swal
(
"已取消"
,
"您已取消操作!"
,
"error"
);
}
});
function
setAllMaterial_detail
(
projectID
){
window
.
location
.
href
=
webroot
+
"goto/education/questionnaire_information?recordId="
+
projectID
;
}
//删除当前页最后一条记录,跳到上一页
function
changPage
(){
var
settings
=
oTable
.
fnSettings
();
//获得datatable的settings; //获得datatable的settings
var
paging_length
=
settings
.
_iDisplayLength
;
//当前每页显示多少记录
var
page_start
=
settings
.
_iDisplayStart
;
//当前页开始是第几条记录
var
iRecordsDisplay
=
settings
.
_iRecordsDisplay
;
//当前页
if
((
iRecordsDisplay
-
page_start
)
==
1
)
{
if
(
page_start
>
0
)
{
oTable
.
fnPageChange
(
'previous'
,
true
);
}
}
}
src/main/webapp/res/js/space/questionnaire_Information.js
View file @
5be86eca
...
...
@@ -7,7 +7,6 @@ $(function () {
autoclose
:
true
});
all_order
();
testListApi
();
getSaveData
();
})
...
...
@@ -190,49 +189,82 @@ var tableOptionsList = [
{
option
:
'96'
,
num
:
20
}
];
// validate标记
var
validateFlag
=
true
function
toValidate
()
{
validateFlag
=
true
$
(
document
).
ready
(
function
()
{
$
(
'input[name*="option_"]'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
if
(
!
$
(
this
).
val
()
||
$
(
this
).
val
()
==
''
)
{
var
tempOption
=
$
(
this
).
attr
(
'name'
).
replace
(
'option_'
,
''
);
broList
.
forEach
(
item
=>
{
if
(
tempOption
===
item
.
option
)
{
var
itemName
=
''
;
option_list
.
forEach
(
i
=>
{
if
(
item
.
num
===
i
.
num
){
itemName
=
i
.
name
return
false
;
}
})
swal
(
"失败!"
,
itemName
+
' 存在未填项'
,
"error"
);
return
false
;
}
})
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
>
1
){
return
true
;
}
else
{
broList
.
forEach
(
item
=>
{
if
(
tempOption
===
item
.
option
)
{
var
itemName
=
''
;
option_list
.
forEach
(
i
=>
{
if
(
item
.
num
===
i
.
num
){
itemName
=
i
.
name
return
false
;
}
})
validateFlag
=
false
swal
(
"失败!"
,
itemName
+
' 存在未填项'
,
"error"
);
return
false
;
}
})
}
return
false
;
}
});
});
$
(
document
).
ready
(
function
()
{
$
(
'select[name*="option_"]'
).
each
(
function
()
{
if
(
!
$
(
this
).
val
())
{
if
(
!
$
(
this
).
val
()
||
$
(
this
).
val
()
==
''
)
{
var
tempOption
=
$
(
this
).
attr
(
'name'
).
replace
(
'option_'
,
''
);
broList
.
forEach
(
item
=>
{
if
(
tempOption
===
item
.
option
)
{
var
itemName
=
''
;
option_list
.
forEach
(
i
=>
{
if
(
item
.
num
===
i
.
num
){
itemName
=
i
.
name
return
false
;
}
})
swal
(
"失败!"
,
itemName
+
' 存在未填项'
,
"error"
);
return
false
;
}
})
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
>
1
){
return
true
;
}
else
{
broList
.
forEach
(
item
=>
{
if
(
tempOption
===
item
.
option
)
{
var
itemName
=
''
;
option_list
.
forEach
(
i
=>
{
if
(
item
.
num
===
i
.
num
){
itemName
=
i
.
name
return
false
;
}
})
validateFlag
=
false
swal
(
"失败!"
,
itemName
+
' 存在未填项'
,
"error"
);
return
false
;
}
})
}
return
false
;
}
});
});
if
(
tempImgList
.
length
<
1
){
validateFlag
=
false
swal
(
"失败!"
,
'3.每块场地实景照片1张'
+
' 存在未填项'
,
"error"
);
return
;
}
if
(
file_list
.
length
<
1
){
console
.
log
(
'in1'
)
console
.
log
(
file_list
)
validateFlag
=
false
swal
(
"失败!"
,
'4.填写《关于众创空间运营情况的相关说明》'
+
' 存在未填项'
,
"error"
);
return
;
}
if
(
file_list_2
.
length
<
1
){
console
.
log
(
'in2'
)
console
.
log
(
file_list_2
)
validateFlag
=
false
swal
(
"失败!"
,
'11.由财务部门出具的相关证明照片或PDF格式文件'
+
' 存在未填项'
,
"error"
);
return
;
}
}
// 问卷全部数据
...
...
@@ -366,7 +398,6 @@ function countTable(table, standard, max){
}
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
++
...
...
@@ -384,7 +415,8 @@ function fun(table, row1, max){
var
$td
=
$tempRow
.
clone
();
$
(
tempTable
).
append
(
$td
);
all_order
();
$
(
"table tr:last"
).
find
(
":input"
).
val
(
''
);
//将尾行元素克隆来的保存的值清空
var
lastRow
=
$
(
tempTable
).
find
(
'tr:last'
)
//将尾行元素克隆来的保存的值清空
$
(
lastRow
).
find
(
'[name*="option_"]'
).
val
(
''
);
}
}
...
...
@@ -401,28 +433,31 @@ function del($td, limit){
// 下载多文件
function
downloadMultiFiles
(
optionId
){
var
param
=
{
optionId
:
optionId
//虚拟iframe实现无刷新下载文件 get传参
var
url
=
webroot
+
"questionnaire/downZipByFileId?optionId="
+
optionId
+
"&questionnaireUuid=1"
;
var
downloadFrame
=
$
(
'#downloadFrame'
);
if
(
downloadFrame
.
length
==
0
){
downloadFrame
=
$
(
'<iframe id="downloadFrame" src="" style="display:none"></iframe>'
);
$
(
'body'
).
append
(
downloadFrame
);
}
$
.
ajax
({
type
:
"POST"
,
url
:
webroot
+
"questionnaire/downZipByFileId"
,
data
:
JSON
.
stringify
(
param
),
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
}
});
downloadFrame
.
attr
(
'src'
,
url
);
}
var
imgCount
=
0
;
var
tempImgList
=
new
Array
();
// 上传多图片
function
upImg
(){
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
$
(
"#projectPlanbookFile_DIV"
).
modal
(
'show'
);
if
(
tempImgList
.
length
>=
7
){
swal
(
"失败!"
,
'场地实景照片最多上传7张'
,
"error"
)
}
else
{
$
(
"#projectPlanbookFile_file_div"
).
empty
();
$
(
"#projectPlanbookFile_file_div"
).
html
(
'<input type="file" id="projectPlanbookFile_file" name="mainfile" class="form-control" >'
);
$
(
'#projectPlanbookFile_file'
).
prettyFile
();
$
(
"#projectPlanbookFile_DIV"
).
modal
(
'show'
);
}
}
var
imgCount
=
0
;
function
projectPlanbookFile_update
(){
if
(
fileChangeNo
(
"projectPlanbookFile_file"
)
==
true
){
if
(
imgFileChange
(
"projectPlanbookFile_file"
)
==
false
){
...
...
@@ -444,19 +479,25 @@ function projectPlanbookFile_update(){
swal
(
"失败!"
,
"只支持jpg、png、gif格式"
,
"error"
);
return
;
}
if
(
imgCount
>
1
){
var
picHtml
=
'<img src="'
+
data
.
date
+
'" width="150px" height="100px" >'
$
(
"#demo1"
).
prepend
(
picHtml
);
}
else
{
$
(
"#img"
).
attr
(
'src'
,
data
.
date
);
$
(
"#material_img"
).
val
(
data
.
date
);
}
// if (imgCount > 1){
// var picHtml = '<img src="'+data.date+'" id="img_'+imgCount+'" width="150px" height="100px" style="margin-left: 15px" />';
// picHtml = picHtml + "<label onclick=\"file_DIV_delete_8('"+imgCount+"')\">删除</label>";
// picHtml = picHtml + "<br>"
// $("#img_1").after(picHtml);
// } else {
// var picHtml = '<img src="'+data.date+'" id="img_1" width="150px" height="100px" /> ';
// picHtml = picHtml + "<label onclick=\"file_DIV_delete_8('"+imgCount+"')\">删除</label>";
// picHtml = picHtml + "<br>";
// $("#demo1").prepend(picHtml);
// }
var
tempOb
=
{
optionsId
:
8
,
value
:
data
.
date
,
group
:
imgCount
}
formData
.
push
(
tempOb
);
tempImgList
.
push
(
tempOb
);
img_DIV_List_Show
();
$
(
'#projectPlanbookFile_DIV'
).
modal
(
'hide'
);
$
(
"#projectPlanbookFile_file_div"
).
empty
();
...
...
@@ -470,6 +511,43 @@ function projectPlanbookFile_update(){
}
}
function
img_DIV_List_Show
()
{
var
prehtml
=
""
;
for
(
var
file_i
in
tempImgList
)
{
prehtml
+=
"<div>"
;
prehtml
+=
"<div class=
\"
col-sm-8
\"
>"
;
prehtml
+=
'<img src="'
+
tempImgList
[
file_i
].
date
+
'" width="150px" height="100px" style="margin-left: 15px" />'
;
prehtml
+=
"<label onclick=
\"
file_DIV_delete_8('"
+
tempImgList
[
file_i
].
group
+
"')
\"
>删除</label>"
;
prehtml
+=
"</div>"
;
prehtml
+=
"</div>"
;
}
$
(
"#file_DIV_List_Show_8"
).
html
(
prehtml
);
}
function
file_DIV_delete_8
(
group
){
if
(
group
!=
""
){
for
(
var
file_i
in
tempImgList
){
if
(
tempImgList
[
file_i
].
group
==
group
){
tempImgList
.
splice
(
file_i
,
1
);
break
;
}
}
}
img_DIV_List_Show
();
}
/*删除功能*/
// $(".delbtn").click(function() {
// var _this = $(this);
// _this.parents(".imageDiv").remove();
// var tempGroup = _this.attr("id").replace('img_','')
// tempImgList.forEach(item => {
// if (item.group == tempGroup){
//
// }
// })
// });
// 获取暂存数据
function
getSaveData
()
{
var
param
=
{
...
...
@@ -495,13 +573,10 @@ function getSaveData() {
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
;
...
...
@@ -512,7 +587,7 @@ function getSaveData() {
}
})
}
else
{
else
if
(
$
(
this
.
parentNode
).
parent
(
"tr"
).
prevAll
().
length
+
1
===
1
)
{
$
(
this
).
val
(
item
.
value
)
}
}
...
...
@@ -530,15 +605,18 @@ function getSaveData() {
}
else
if
(
item
.
optionsId
===
98
)
{
$
(
"#radio_4"
).
prop
(
"checked"
,
true
);
}
if
(
item
.
optionsId
===
8
){
tempImgList
.
push
(
item
);
}
})
img_DIV_List_Show
();
}
});
}
function
saveQuestionnaire
(){
function
saveQuestionnaire
(
type
){
$
(
document
).
ready
(
function
()
{
$
(
'input[name*="option_"]'
).
each
(
function
()
{
if
(
$
(
this
).
val
())
{
...
...
@@ -589,9 +667,31 @@ function saveQuestionnaire(){
formData
.
push
(
tempObj2
);
}
for
(
var
file_i
in
file_list
){
var
fileObj1
=
{}
fileObj1
[
'optionsId'
]
=
15
;
fileObj1
[
'group'
]
=
file_i
;
fileObj1
[
'value'
]
=
file_list
[
file_i
].
fileId
formData
.
push
(
fileObj1
)
}
for
(
var
file_id
in
file_list_2
){
var
fileObj2
=
{}
fileObj2
[
'optionsId'
]
=
61
;
fileObj2
[
'group'
]
=
file_id
;
fileObj2
[
'value'
]
=
file_list_2
[
file_id
].
fileId
formData
.
push
(
fileObj2
)
}
for
(
var
i
in
tempImgList
){
var
fileObjImg
=
{}
fileObjImg
[
'optionsId'
]
=
8
;
fileObjImg
[
'group'
]
=
i
;
fileObjImg
[
'value'
]
=
tempImgList
[
i
].
value
formData
.
push
(
fileObjImg
)
}
var
param
=
{
id
:
1
,
type
:
0
,
type
:
type
,
answersList
:
formData
};
...
...
@@ -602,6 +702,15 @@ function saveQuestionnaire(){
async
:
false
,
contentType
:
'application/json;charset=UTF-8'
,
success
:
function
(
result
)
{
if
(
result
.
result
==
true
){
if
(
type
===
0
){
swal
(
"成功!"
,
"暂存成功!"
,
"success"
);
}
else
{
swal
(
"成功!"
,
"上报成功!"
,
"success"
);
}
}
else
{
swal
(
"失败!"
,
result
.
msg
,
"error"
);
}
}
});
}
...
...
@@ -609,13 +718,18 @@ function saveQuestionnaire(){
function
submitQuestionnaire
()
{
toValidate
();
saveQuestionnaire
();
if
(
validateFlag
){
saveQuestionnaire
(
1
);
}
}
// 多文件上传
var
file_list
=
new
Array
();
var
file_list_update_id
=
1
;
var
file_list_2
=
new
Array
();
var
file_list_update_id_2
=
1
;
function
file_class
(
id
,
fileId
,
fileName
)
{
var
file_i
=
new
Object
;
file_i
.
id
=
id
;
...
...
@@ -628,53 +742,67 @@ function file_class(id,fileId,fileName) {
var
upload_option
=
0
function
file_DIV_Show
(
fileID
,
option
){
upload_option
=
option
if
(
upload_option
===
15
){
if
(
file_list
.
length
>=
10
)
{
swal
(
"失败!"
,
'《关于众创空间运营情况的相关说明》附件最多上传10个文件!'
,
"error"
);
return
;
}
else
{
$
(
'#uploadTip'
).
html
(
'支持格式: .png、 .jpg、 .gif、 .bmp、 .doc、 .docx、 .pdf、 .xls、 .xlsx、 .ppt、 .pptx、 .txt、 .sav、 .caj'
)
}
}
else
if
(
upload_option
===
61
){
if
(
file_list_2
.
length
>=
10
){
swal
(
"失败!"
,
'《关于众创空间运营情况的相关说明》附件最多上传10个文件!'
,
"error"
);
return
;
}
else
{
$
(
'#uploadTip'
).
html
(
'支持格式: .jpg、 .gif、 .pdf'
)
}
}
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
(
pdfFileChang
e
(
"theFile_file"
)
==
false
){
if
(
upload_option
===
15
){
if
(
option15validat
e
(
"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
;
}
else
if
(
upload_option
===
61
){
if
(
option61validate
(
"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
;
var
fileName
=
data
.
fileName
;
if
(
upload_option
===
15
){
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
if
(
upload_option
===
61
){
file_list_update_id_2
++
;
var
file_class_i_2
=
file_class
(
id
,
fileId
,
fileName
);
file_list_2
.
push
(
file_class_i_2
);
}
});
}
else
{
//alert("请选择文件!");
swal
(
"失败!"
,
"请选择文件!"
,
"error"
);
}
file_DIV_List_Show
();
$
(
'#theFile_DIV'
).
modal
(
'hide'
);
}
});
}
function
file_DIV_delete
(
id
){
...
...
@@ -688,77 +816,44 @@ function file_DIV_delete(id){
}
file_DIV_List_Show
();
}
function
file_DIV_delete_61
(
id
){
if
(
id
!=
""
){
for
(
var
file_i
in
file_list_2
){
if
(
file_list_2
[
file_i
].
id
==
id
){
file_list_2
.
splice
(
file_i
,
1
);
break
;
}
}
}
file_DIV_List_Show
();
}
function
file_DIV_List_Show
(){
function
file_DIV_List_Show
(
option
){
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>"
;
if
(
upload_option
===
15
){
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_15"
).
html
(
html
);
}
else
if
(
upload_option
===
61
){
for
(
var
file_i
in
file_list
){
html
+=
"<div>"
;
html
+=
"<div class=
\"
col-sm-8
\"
>"
;
html
+=
"<label >文件名称:"
+
file_list_2
[
file_i
].
fileName
+
"</label>"
;
html
+=
"</div>"
;
html
+=
"<div class=
\"
col-sm-3
\"
>"
;
html
+=
"<label class=
\"
project_information_class_hover
\"
onclick=
\"
file_DIV_delete_61('"
+
file_list_2
[
file_i
].
id
+
"')
\"
>删除</label>"
;
html
+=
"</div>"
;
html
+=
"</div>"
;
}
$
(
"#file_DIV_List_Show_61"
).
html
(
html
);
}
$
(
"#file_DIV_List_Show_div"
).
html
(
html
);
}
function
testListApi
()
{
var
url
=
webroot
+
"questionnaire/selectRecordList?questionnaireUuid=1"
;
$
(
document
).
ready
(
function
()
{
oTable
=
$
(
'#hidden-table-info'
).
dataTable
(
{
"bPaginage"
:
true
,
/*默认为true,是否开启分页功能,即使设置为false,仍然会有一个默认的<前进,后退>分页组件 */
"bDeferRender"
:
true
,
//延迟渲染 是否延迟渲染,当用Ajax或者js方式加载数据时开启延迟渲染会带来很大的速度提升* 当该属性设置为true时,表格每一行新增的元素只有在需要被画出来时才会被DataTable创建出来
"bDestroy"
:
true
,
//销毁表格对象
"aLengthMenu"
:
[
5
,
10
,
25
,
50
],
//用户可自选每页展示数量 5条或10条
"searching"
:
false
,
//禁用搜索(搜索框)
"lengthChange"
:
true
,
//是否允许终端用户从一个选择列表中选择分页的页数,页数为10,25,50和100,需要分页组件bPaginate的支持
"bStateSave"
:
true
,
//是否打开客户端状态记录功能,此功能在ajax刷新纪录的时候不会将个性化设定回复为初始化状态, 这样当终端用户重新加载这个页面的时候可以使用以前的设置
"bSort"
:
false
,
//是否启动各个字段的排序功能 是否开启列排序
"bProcessing"
:
true
,
//当表格在处理的时候(比如排序操作)是否显示“处理中...”
//"aaSorting" : [[0, "asc"]],//默认的排序方式,第1列,升序排列
"bServerSide"
:
true
,
//开启服务器模式 配置DataTable使用服务器端处理,注意,sAjaxSource参数必须指定
//"bFilter" : true, //是否启动过滤、搜索功能
"bAutoWidth"
:
false
,
"retrieve"
:
true
,
//类似单例模式,重复利用以存在对象。使用指定的选择器检索表格,注意,如果表格已经被初始化,该参数会直接返回已经被创建的对象 * 并不会顾及你传递进来的初始化参数对象的变化,将该参数设置为true说明你确认已经明白这一点 * 如果你需要的话,bDestroy可以用来重新初始化表格
/* "iDisplayLength": 5,
"iDisplayStart": 0,*/
"select"
:
{
style
:
'os'
,
selector
:
'td:first-child'
},
"ajax"
:
{
//ajax方式向后台发送请求
"type"
:
"POST"
,
"url"
:
url
,
"dataType"
:
"json"
,
"dataSrc"
:
"data.recordList"
},
"columns"
:
[
{
"sTitle"
:
"众创空间名称"
,
"mData"
:
"createBy"
},
{
"sTitle"
:
"填报人"
,
"mData"
:
"writePeople"
},
{
"sTitle"
:
"联系方式"
,
"mData"
:
"phoneNumber"
},
{
"sTitle"
:
"填报状态"
,
"mData"
:
"processStatus"
}
],
"oLanguage"
:
{
// 国际化配置
"sProcessing"
:
"正在获取数据,请稍后..."
,
"sLengthMenu"
:
"每页 _MENU_ 条记录"
,
"sZeroRecords"
:
"没有找到数据"
,
"sInfo"
:
"显示 _START_ 到 _END_ 项 共 _TOTAL_ 项"
,
"sInfoEmpty"
:
"记录数为0"
,
"sInfoFiltered"
:
"(全部记录数 _MAX_ 条)"
,
"sInfoPostFix"
:
""
,
// "sSearch" : "查询",
"sUrl"
:
""
,
"oPaginate"
:
{
"sFirst"
:
"第一页"
,
"sPrevious"
:
"上一页"
,
"sNext"
:
"下一页"
,
"sLast"
:
"最后一页"
}
},
});
}
);
}
\ No newline at end of file
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