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
bb297ef0
Commit
bb297ef0
authored
Nov 17, 2022
by
王国存
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'test' into 'master'
Test See merge request
!37
parents
1d72ecd2
ae511555
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
150 additions
and
124 deletions
+150
-124
QuestionnaireCtrl.java
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
+3
-3
PerformanceSummary.java
src/main/java/com/tiptimes/model/PerformanceSummary.java
+12
-12
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+92
-99
questionnaire_Administration_list.jsp
...-INF/page/education/questionnaire_Administration_list.jsp
+7
-0
questionnaire_Administration_list.js
...app/res/js/education/questionnaire_Administration_list.js
+36
-10
No files found.
src/main/java/com/tiptimes/ctrl/QuestionnaireCtrl.java
View file @
bb297ef0
...
...
@@ -390,15 +390,15 @@ public class QuestionnaireCtrl {
//列表排序
String
sorting
=
""
;
if
(
StringUtils
.
isEmpty
(
performanceSummary
.
getSorting
())){
sorting
=
"t
r
.id asc"
;
sorting
=
"t
_record
.id asc"
;
}
else
if
(
performanceSummary
.
getSorting
().
equals
(
"desc"
)){
sorting
=
"basicIndicators desc,guideIndicators desc,rewardIndicators desc"
;
}
else
{
sorting
=
"t
r
.id asc"
;
sorting
=
"t
_record
.id asc"
;
}
performanceSummary
.
setSorting
(
sorting
);
in
t
totalScore
=
0
;
floa
t
totalScore
=
0
;
//查询空间的不同指标的分数
List
<
PerformanceSummary
>
performanceSummaryList
=
questionnaireService
.
selectPerformanceSummaryList
(
performanceSummary
);
if
(
performanceSummaryList
.
size
()
>
0
){
...
...
src/main/java/com/tiptimes/model/PerformanceSummary.java
View file @
bb297ef0
...
...
@@ -3,10 +3,10 @@ package com.tiptimes.model;
public
class
PerformanceSummary
{
private
String
optinName
;
//众创空间名称
private
in
t
basicIndicators
;
//基础指标得分
private
in
t
guideIndicators
;
//引导指标得分
private
in
t
rewardIndicators
;
//奖励指标得分
private
in
t
totalScore
;
//合计得分
private
floa
t
basicIndicators
;
//基础指标得分
private
floa
t
guideIndicators
;
//引导指标得分
private
floa
t
rewardIndicators
;
//奖励指标得分
private
floa
t
totalScore
;
//合计得分
private
String
sorting
;
//排序使用 - desc 默认 --asc 升
...
...
@@ -18,35 +18,35 @@ public class PerformanceSummary {
this
.
optinName
=
optinName
;
}
public
in
t
getBasicIndicators
()
{
public
floa
t
getBasicIndicators
()
{
return
basicIndicators
;
}
public
void
setBasicIndicators
(
in
t
basicIndicators
)
{
public
void
setBasicIndicators
(
floa
t
basicIndicators
)
{
this
.
basicIndicators
=
basicIndicators
;
}
public
in
t
getGuideIndicators
()
{
public
floa
t
getGuideIndicators
()
{
return
guideIndicators
;
}
public
void
setGuideIndicators
(
in
t
guideIndicators
)
{
public
void
setGuideIndicators
(
floa
t
guideIndicators
)
{
this
.
guideIndicators
=
guideIndicators
;
}
public
in
t
getRewardIndicators
()
{
public
floa
t
getRewardIndicators
()
{
return
rewardIndicators
;
}
public
void
setRewardIndicators
(
in
t
rewardIndicators
)
{
public
void
setRewardIndicators
(
floa
t
rewardIndicators
)
{
this
.
rewardIndicators
=
rewardIndicators
;
}
public
in
t
getTotalScore
()
{
public
floa
t
getTotalScore
()
{
return
totalScore
;
}
public
void
setTotalScore
(
in
t
totalScore
)
{
public
void
setTotalScore
(
floa
t
totalScore
)
{
this
.
totalScore
=
totalScore
;
}
...
...
src/main/resources/mapper/Questionnaire.xml
View file @
bb297ef0
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/page/education/questionnaire_Administration_list.jsp
View file @
bb297ef0
...
...
@@ -94,6 +94,13 @@
</div>
</div>
</div>
<div
class=
"modal fade"
id=
"loadingModal"
backdrop=
"static"
keyboard=
"false"
>
<div
style=
"width: 200px;height:20px; z-index: 20000; position: absolute; text-align: center; left: 50%; top: 50%;margin-left:-100px;margin-top:-10px"
>
<div
class=
"progress progress-striped active"
style=
"margin-bottom: 0;background-color:rgba(0,0,0,0)"
>
<img
src=
"
<%=
request
.
getContextPath
()
%>
/res/image/loading.gif"
><span
style=
"color: white"
>
数据加载中,请稍候...
</span>
</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/res/js/education/questionnaire_Administration_list.js
View file @
bb297ef0
...
...
@@ -90,17 +90,36 @@ function sortAsc() {
//导出汇总文件
function
reform_DIV_Export
()
{
$
.
ajax
({
url
:
webroot
+
"questionnaire/exportPerformanceSummary"
,
method
:
"GET"
,
responseType
:
"blob"
,
success
:
(
res
)
=>
{
window
.
location
.
href
=
webroot
+
"questionnaire/exportPerformanceSummary"
},
error
:
()
=>
{
swal
(
"失败!"
,
'网络有问题,稍后再试'
,
"error"
)
showLoading
()
var
url
=
webroot
+
"questionnaire/exportPerformanceSummary"
;
var
xhr
=
new
XMLHttpRequest
();
xhr
.
open
(
'GET'
,
url
,
true
);
// 也可以使用POST方式,根据接口
xhr
.
responseType
=
"blob"
;
// 返回类型blob
// 定义请求完成的处理函数,请求前也可以增加加载框/禁用下载按钮逻辑
xhr
.
onload
=
function
()
{
// 请求完成
if
(
this
.
status
===
200
)
{
// 返回200
var
blob
=
this
.
response
;
var
reader
=
new
FileReader
();
reader
.
readAsDataURL
(
blob
);
// 转换为base64,可以直接放入a表情href
reader
.
onload
=
function
(
e
)
{
// 转换完成,创建一个a标签用于下载
var
a
=
document
.
createElement
(
'a'
);
a
.
download
=
'绩效汇总表.xls'
;
a
.
href
=
e
.
target
.
result
;
$
(
"body"
).
append
(
a
);
// 修复firefox中无法触发click
a
.
click
();
$
(
a
).
remove
();
hideLoading
()
}
}
else
{
hideLoading
()
swal
(
"失败!"
,
'网络错误,稍后再试'
,
"error"
);
}
})
};
// 发送ajax请求
xhr
.
send
()
}
//搜索标题内容
...
...
@@ -142,4 +161,11 @@ function getTableData() {
}
})
}
showLoading
=
function
(){
$
(
'#loadingModal'
).
modal
({
backdrop
:
'static'
,
keyboard
:
false
});
}
hideLoading
=
function
(){
$
(
'#loadingModal'
).
modal
(
'hide'
);
}
\ 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