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
0a638e6c
Commit
0a638e6c
authored
Nov 21, 2022
by
熊海
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理审核页面小数输入问题和导出数据显示状态问题
parent
f474fd24
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
46 additions
and
44 deletions
+46
-44
Questionnaire.xml
src/main/resources/mapper/Questionnaire.xml
+23
-21
questionnaire_information.jsp
...bapp/WEB-INF/page/education/questionnaire_information.jsp
+18
-18
questionnaire_Information.js
...main/webapp/res/js/education/questionnaire_Information.js
+5
-5
No files found.
src/main/resources/mapper/Questionnaire.xml
View file @
0a638e6c
...
@@ -122,7 +122,8 @@
...
@@ -122,7 +122,8 @@
<!--绩效汇总列表查询-->
<!--绩效汇总列表查询-->
<select
id=
"selectPerformanceSummaryList"
resultType=
"com.tiptimes.model.PerformanceSummary"
>
<select
id=
"selectPerformanceSummaryList"
resultType=
"com.tiptimes.model.PerformanceSummary"
>
SELECT
SELECT
DISTINCT t_answer.`value` as optinName,
DISTINCT t_record.id as id,
t_answer.`value` as optinName,
CASE WHEN t_record.process_status = 2 THEN '0' WHEN t_record.process_status = 3 THEN '30' ELSE '0' END as basicIndicators,
CASE WHEN t_record.process_status = 2 THEN '0' WHEN t_record.process_status = 3 THEN '30' ELSE '0' END as basicIndicators,
(
(
SELECT
SELECT
...
@@ -153,7 +154,8 @@
...
@@ -153,7 +154,8 @@
<!--绩效汇总导出-->
<!--绩效汇总导出-->
<select
id=
"queryGuideAndRewardIndexList"
resultType=
"com.tiptimes.model.exportDTO.PerformanceSummaryTotal"
>
<select
id=
"queryGuideAndRewardIndexList"
resultType=
"com.tiptimes.model.exportDTO.PerformanceSummaryTotal"
>
SELECT
SELECT
DISTINCT t_record.create_by as spaceName,
DISTINCT t_record.id as id,
t_record.create_by as spaceName,
(CASE WHEN (SELECT t_review.approval_status FROM t_review WHERE t_review.questions_id=1 AND t_review.record_id=t_record.id)=0
(CASE WHEN (SELECT t_review.approval_status FROM t_review WHERE t_review.questions_id=1 AND t_review.record_id=t_record.id)=0
THEN '驳回'
THEN '驳回'
ELSE '通过'
ELSE '通过'
...
@@ -239,7 +241,7 @@
...
@@ -239,7 +241,7 @@
MAX(IF(options_id = 6,`value`,NULL)) as locationNumber,
MAX(IF(options_id = 6,`value`,NULL)) as locationNumber,
MAX(IF(options_id = 7,`value`,NULL)) as leasePremises
MAX(IF(options_id = 7,`value`,NULL)) as leasePremises
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.area IS NOT NULL
WHERE queation.area IS NOT NULL
...
@@ -258,7 +260,7 @@
...
@@ -258,7 +260,7 @@
MAX(IF(options_id = 13,`value`,NULL)) as phone,
MAX(IF(options_id = 13,`value`,NULL)) as phone,
MAX(IF(options_id = 14,`value`,NULL)) as isfulltime
MAX(IF(options_id = 14,`value`,NULL)) as isfulltime
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
<!--where-->
<!--where-->
<!--<if test="recordId != null and recordId != ''">-->
<!--<if test="recordId != null and recordId != ''">-->
<!--t_answer.record_id = #{recordId}-->
<!--t_answer.record_id = #{recordId}-->
...
@@ -280,7 +282,7 @@
...
@@ -280,7 +282,7 @@
MAX(IF(options_id = 19,`value`,NULL)) as isSubmitIncubation,
MAX(IF(options_id = 19,`value`,NULL)) as isSubmitIncubation,
MAX(IF(options_id = 20,`value`,NULL)) as isEntryYear
MAX(IF(options_id = 20,`value`,NULL)) as isEntryYear
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.enterpriseName IS NOT NULL
WHERE queation.enterpriseName IS NOT NULL
...
@@ -297,7 +299,7 @@
...
@@ -297,7 +299,7 @@
MAX(IF(options_id = 23,`value`,NULL)) as isAgreementMaterials,
MAX(IF(options_id = 23,`value`,NULL)) as isAgreementMaterials,
MAX(IF(options_id = 24,`value`,NULL)) as isAssessmentPeriod
MAX(IF(options_id = 24,`value`,NULL)) as isAssessmentPeriod
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.enterpriseName IS NOT NULL
WHERE queation.enterpriseName IS NOT NULL
...
@@ -320,7 +322,7 @@
...
@@ -320,7 +322,7 @@
MAX(IF(options_id = 33,`value`,NULL)) as isNetworkConnection,
MAX(IF(options_id = 33,`value`,NULL)) as isNetworkConnection,
MAX(IF(options_id = 34,`value`,NULL)) as alliance
MAX(IF(options_id = 34,`value`,NULL)) as alliance
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.courseName IS NOT NULL
WHERE queation.courseName IS NOT NULL
...
@@ -350,7 +352,7 @@
...
@@ -350,7 +352,7 @@
MAX(IF(options_id = 50,`value`,NULL)) as mentor,
MAX(IF(options_id = 50,`value`,NULL)) as mentor,
MAX(IF(options_id = 51,`value`,NULL)) as isSupporting
MAX(IF(options_id = 51,`value`,NULL)) as isSupporting
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.mentorName IS NOT NULL
WHERE queation.mentorName IS NOT NULL
...
@@ -367,7 +369,7 @@
...
@@ -367,7 +369,7 @@
MAX(IF(options_id = 54,`value`,NULL)) as activityType,
MAX(IF(options_id = 54,`value`,NULL)) as activityType,
MAX(IF(options_id = 55,`value`,NULL)) as platformNews
MAX(IF(options_id = 55,`value`,NULL)) as platformNews
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.activityTime IS NOT NULL
WHERE queation.activityTime IS NOT NULL
...
@@ -383,7 +385,7 @@
...
@@ -383,7 +385,7 @@
MAX(IF(options_id = 57,`value`,NULL)) as organizer,
MAX(IF(options_id = 57,`value`,NULL)) as organizer,
MAX(IF(options_id = 58,`value`,NULL)) as projectName
MAX(IF(options_id = 58,`value`,NULL)) as projectName
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.eventName IS NOT NULL
WHERE queation.eventName IS NOT NULL
...
@@ -397,7 +399,7 @@
...
@@ -397,7 +399,7 @@
t_answer.`group`,t_record.create_by as spaceName,
t_answer.`group`,t_record.create_by as spaceName,
MAX(IF(options_id = 60,`value`,NULL)) as funding
MAX(IF(options_id = 60,`value`,NULL)) as funding
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.funding IS NOT NULL;
WHERE queation.funding IS NOT NULL;
...
@@ -413,7 +415,7 @@
...
@@ -413,7 +415,7 @@
MAX(IF(options_id = 63,`value`,NULL)) as projectName,
MAX(IF(options_id = 63,`value`,NULL)) as projectName,
MAX(IF(options_id = 61,`value`,NULL)) as projectLeaderName
MAX(IF(options_id = 61,`value`,NULL)) as projectLeaderName
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.issueNumber IS NOT NULL;
WHERE queation.issueNumber IS NOT NULL;
...
@@ -429,7 +431,7 @@
...
@@ -429,7 +431,7 @@
MAX(IF(options_id = 66,`value`,NULL)) as contractAmount,
MAX(IF(options_id = 66,`value`,NULL)) as contractAmount,
MAX(IF(options_id = 67,`value`,NULL)) as isSupportingMaterials
MAX(IF(options_id = 67,`value`,NULL)) as isSupportingMaterials
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.enterpriseName IS NOT NULL;
WHERE queation.enterpriseName IS NOT NULL;
...
@@ -446,7 +448,7 @@
...
@@ -446,7 +448,7 @@
MAX(IF(options_id = 70,`value`,NULL)) as financingWay,
MAX(IF(options_id = 70,`value`,NULL)) as financingWay,
MAX(IF(options_id = 67,`value`,NULL)) as isSupportingMaterials
MAX(IF(options_id = 67,`value`,NULL)) as isSupportingMaterials
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.financingEnterpriseName IS NOT NULL;
WHERE queation.financingEnterpriseName IS NOT NULL;
...
@@ -462,7 +464,7 @@
...
@@ -462,7 +464,7 @@
MAX(IF(options_id = 72,`value`,NULL)) as activitiesFrom,
MAX(IF(options_id = 72,`value`,NULL)) as activitiesFrom,
MAX(IF(options_id = 73,`value`,NULL)) as municipalLevel
MAX(IF(options_id = 73,`value`,NULL)) as municipalLevel
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.activitiesName IS NOT NULL;
WHERE queation.activitiesName IS NOT NULL;
...
@@ -477,7 +479,7 @@
...
@@ -477,7 +479,7 @@
MAX(IF(options_id = 74,`value`,NULL)) as activitiesName,
MAX(IF(options_id = 74,`value`,NULL)) as activitiesName,
MAX(IF(options_id = 75,`value`,NULL)) as activitiesFrom
MAX(IF(options_id = 75,`value`,NULL)) as activitiesFrom
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.activitiesName IS NOT NULL;
WHERE queation.activitiesName IS NOT NULL;
...
@@ -495,7 +497,7 @@
...
@@ -495,7 +497,7 @@
MAX(IF(options_id = 79,`value`,NULL)) as serialNumber,
MAX(IF(options_id = 79,`value`,NULL)) as serialNumber,
MAX(IF(options_id = 80,`value`,NULL)) as supportingMaterials
MAX(IF(options_id = 80,`value`,NULL)) as supportingMaterials
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.enterpriseName IS NOT NULL;
WHERE queation.enterpriseName IS NOT NULL;
...
@@ -513,7 +515,7 @@
...
@@ -513,7 +515,7 @@
MAX(IF(options_id = 85,`value`,NULL)) as winningProject,
MAX(IF(options_id = 85,`value`,NULL)) as winningProject,
MAX(IF(options_id = 81,`value`,NULL)) as isSupportingMaterials
MAX(IF(options_id = 81,`value`,NULL)) as isSupportingMaterials
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.track IS NOT NULL;
WHERE queation.track IS NOT NULL;
...
@@ -532,7 +534,7 @@
...
@@ -532,7 +534,7 @@
MAX(IF(options_id = 91,`value`,NULL)) as winningProject,
MAX(IF(options_id = 91,`value`,NULL)) as winningProject,
MAX(IF(options_id = 86,`value`,NULL)) as supportingMaterials
MAX(IF(options_id = 86,`value`,NULL)) as supportingMaterials
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.eventName IS NOT NULL;
WHERE queation.eventName IS NOT NULL;
...
@@ -549,7 +551,7 @@
...
@@ -549,7 +551,7 @@
MAX(IF(options_id = 95,`value`,NULL)) as isWhetherProject,
MAX(IF(options_id = 95,`value`,NULL)) as isWhetherProject,
MAX(IF(options_id = 92,`value`,NULL)) as isOutstandingProject
MAX(IF(options_id = 92,`value`,NULL)) as isOutstandingProject
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.theYear IS NOT NULL;
WHERE queation.theYear IS NOT NULL;
...
@@ -564,7 +566,7 @@
...
@@ -564,7 +566,7 @@
MAX(IF(options_id = 96,`value`,NULL)) as isWhetherSpace,
MAX(IF(options_id = 96,`value`,NULL)) as isWhetherSpace,
MAX(IF(options_id = 97,`value`,NULL)) as isWhetherIncubation
MAX(IF(options_id = 97,`value`,NULL)) as isWhetherIncubation
FROM t_answer
FROM t_answer
LEFT JOIN t_record ON t_record.id = t_answer.record_id
LEFT JOIN t_record ON t_record.id = t_answer.record_id
where t_record.process_status=3
GROUP BY t_answer.`group`,t_record.create_by
GROUP BY t_answer.`group`,t_record.create_by
) as queation
) as queation
WHERE queation.isWhetherSpace IS NOT NULL;
WHERE queation.isWhetherSpace IS NOT NULL;
...
...
src/main/webapp/WEB-INF/page/education/questionnaire_information.jsp
View file @
0a638e6c
...
@@ -1082,7 +1082,7 @@
...
@@ -1082,7 +1082,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px;"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px;"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1139,7 +1139,7 @@
...
@@ -1139,7 +1139,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1239,7 +1239,7 @@
...
@@ -1239,7 +1239,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1338,7 +1338,7 @@
...
@@ -1338,7 +1338,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1449,7 +1449,7 @@
...
@@ -1449,7 +1449,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1535,7 +1535,7 @@
...
@@ -1535,7 +1535,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1750,7 +1750,7 @@
...
@@ -1750,7 +1750,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1855,7 +1855,7 @@
...
@@ -1855,7 +1855,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -1941,7 +1941,7 @@
...
@@ -1941,7 +1941,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2037,7 +2037,7 @@
...
@@ -2037,7 +2037,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2124,7 +2124,7 @@
...
@@ -2124,7 +2124,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2204,7 +2204,7 @@
...
@@ -2204,7 +2204,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2311,7 +2311,7 @@
...
@@ -2311,7 +2311,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2416,7 +2416,7 @@
...
@@ -2416,7 +2416,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2530,7 +2530,7 @@
...
@@ -2530,7 +2530,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2626,7 +2626,7 @@
...
@@ -2626,7 +2626,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2671,7 +2671,7 @@
...
@@ -2671,7 +2671,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
@@ -2716,7 +2716,7 @@
...
@@ -2716,7 +2716,7 @@
<label
class=
"col-sm-1"
<label
class=
"col-sm-1"
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
style=
"font-size: 15px;padding-left: 25px"
>
得分:
</label>
<div
class=
"col-md-1"
>
<div
class=
"col-md-1"
>
<input
type=
"number
"
class=
"form-control"
<input
data-myAttr=
"score"
type=
"text"
onkeyup=
"this.value=this.value.replace(/[^\d.]/g, '').replace(/\.{1,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^(\-)*(\d+)\.(\d).*$/, '$1$2.$3').replace(/^\./g, '')
"
class=
"form-control"
name=
"option*"
>
name=
"option*"
>
</div>
</div>
<label
class=
"col-sm-1 "
<label
class=
"col-sm-1 "
...
...
src/main/webapp/res/js/education/questionnaire_Information.js
View file @
0a638e6c
...
@@ -28,7 +28,7 @@ function StatusCheck() {
...
@@ -28,7 +28,7 @@ function StatusCheck() {
if
(
processStatus
===
1
){
if
(
processStatus
===
1
){
$
(
'#goback_btn'
).
hide
()
$
(
'#goback_btn'
).
hide
()
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
input[
type='number
']`
).
val
(()
=>
{
$
(
`#submit
${
i
}
input[
data-myAttr='score
']`
).
val
(()
=>
{
try
{
try
{
if
(
data
.
reviews
.
length
>
0
){
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
...
@@ -64,7 +64,7 @@ function StatusCheck() {
...
@@ -64,7 +64,7 @@ function StatusCheck() {
//$('textarea[name*="question_"]').prop('readonly', true)
//$('textarea[name*="question_"]').prop('readonly', true)
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
a`
).
hide
()
$
(
`#submit
${
i
}
a`
).
hide
()
$
(
`#submit
${
i
}
input[
type='number
']`
).
val
(()
=>
{
$
(
`#submit
${
i
}
input[
data-myAttr='score
']`
).
val
(()
=>
{
try
{
try
{
if
(
data
.
reviews
.
length
>
0
){
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
...
@@ -103,7 +103,7 @@ function StatusCheck() {
...
@@ -103,7 +103,7 @@ function StatusCheck() {
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
for
(
let
i
=
1
;
i
<
28
;
i
++
)
{
$
(
`#submit
${
i
}
a`
).
hide
()
$
(
`#submit
${
i
}
a`
).
hide
()
$
(
`#submit
${
i
}
input[type='radio']`
).
parent
().
hide
()
$
(
`#submit
${
i
}
input[type='radio']`
).
parent
().
hide
()
$
(
`#submit
${
i
}
input[
type='number
']`
).
val
(()
=>
{
$
(
`#submit
${
i
}
input[
data-myAttr='score
']`
).
val
(()
=>
{
try
{
try
{
if
(
data
.
reviews
.
length
>
0
){
if
(
data
.
reviews
.
length
>
0
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
for
(
var
j
=
0
;
j
<
data
.
reviews
.
length
;
j
++
){
...
@@ -116,7 +116,7 @@ function StatusCheck() {
...
@@ -116,7 +116,7 @@ function StatusCheck() {
}
}
})
})
$
(
`#submit
${
i
}
input[
type='number
']`
).
attr
(
'disabled'
,
"true"
)
$
(
`#submit
${
i
}
input[
data-myAttr='score
']`
).
attr
(
'disabled'
,
"true"
)
}
}
}
}
}
}
...
@@ -1273,7 +1273,7 @@ function scoreSubmission(questionNum) {
...
@@ -1273,7 +1273,7 @@ function scoreSubmission(questionNum) {
//取消按钮
//取消按钮
function
emptyContent
(
questionNum
)
{
function
emptyContent
(
questionNum
)
{
$
(
`#submit
${
questionNum
}
input[type='radio']`
).
removeAttr
(
"checked"
)
$
(
`#submit
${
questionNum
}
input[type='radio']`
).
removeAttr
(
"checked"
)
$
(
`#submit
${
questionNum
}
input[
type='number
']`
).
val
(
''
)
$
(
`#submit
${
questionNum
}
input[
data-myAttr='score
']`
).
val
(
''
)
$
(
`#submit
${
questionNum
}
textarea[name='question_
${
questionNum
}
']`
).
val
(
''
)
$
(
`#submit
${
questionNum
}
textarea[name='question_
${
questionNum
}
']`
).
val
(
''
)
}
}
...
...
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