Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zhengyuan-danger-chemistry-manage
Project
Project
Details
Activity
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
耿迪迪
zhengyuan-danger-chemistry-manage
Commits
12de4132
Commit
12de4132
authored
Feb 03, 2023
by
zhangjianqian
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
d8519ddc
9f3f3cf8
Hide whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
436 additions
and
146 deletions
+436
-146
TEnterpriseSystemController.java
...troller/safetyManagement/TEnterpriseSystemController.java
+3
-0
TTrainCourseController.java
...m/zehong/web/controller/train/TTrainCourseController.java
+13
-0
TTrainUserCourse.java
.../main/java/com/zehong/system/domain/TTrainUserCourse.java
+62
-39
TTrainUserCourseMapper.java
...java/com/zehong/system/mapper/TTrainUserCourseMapper.java
+15
-8
ITTrainCourseService.java
.../java/com/zehong/system/service/ITTrainCourseService.java
+7
-0
TTrainCourseServiceImpl.java
...m/zehong/system/service/impl/TTrainCourseServiceImpl.java
+10
-0
TTrainUserCourseMapper.xml
...c/main/resources/mapper/system/TTrainUserCourseMapper.xml
+31
-6
lessonsProgram.js
...er-manage-web/src/api/educationPlanExam/lessonsProgram.js
+9
-0
Lesson.vue
...ws/educationPlanExam/lessonsProgram/components/Lesson.vue
+7
-2
QuestionList.vue
...cationPlanExam/lessonsProgram/components/QuestionList.vue
+1
-1
index.vue
...-web/src/views/educationPlanExam/lessonsProgram/index.vue
+77
-31
index.vue
...c/views/educationPlanExam/myLessons/CheckLesson/index.vue
+3
-2
index.vue
...manage-web/src/views/educationPlanExam/testStat/index.vue
+54
-14
QuestionList.vue
...s/educationPlanExam/textPaper/components/QuestionList.vue
+1
-1
index.vue
...anage-web/src/views/educationPlanExam/textPaper/index.vue
+85
-28
visitorQuestion.vue
...iews/educationPlanExam/visitorProgram/visitorQuestion.vue
+1
-1
index.vue
...web/src/views/educationPlanExam/visitorTestStat/index.vue
+5
-5
index.vue
...web/src/views/safetyManagement/enterpriseSystem/index.vue
+28
-7
index.vue
danger-manage-web/src/views/safetyManagement/laws/index.vue
+24
-1
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/safetyManagement/TEnterpriseSystemController.java
View file @
12de4132
...
...
@@ -69,6 +69,7 @@ public class TEnterpriseSystemController extends BaseController
/**
* 新增企业制度管理
*/
@PreAuthorize
(
"@ss.hasPermi('safetyManagement:enterpriseSystem:add')"
)
@Log
(
title
=
"企业制度管理"
,
businessType
=
BusinessType
.
INSERT
)
@PostMapping
public
AjaxResult
add
(
@RequestBody
TEnterpriseSystem
tEnterpriseSystem
)
...
...
@@ -79,6 +80,7 @@ public class TEnterpriseSystemController extends BaseController
/**
* 修改企业制度管理
*/
@PreAuthorize
(
"@ss.hasPermi('safetyManagement:enterpriseSystem:edit')"
)
@Log
(
title
=
"企业制度管理"
,
businessType
=
BusinessType
.
UPDATE
)
@PutMapping
public
AjaxResult
edit
(
@RequestBody
TEnterpriseSystem
tEnterpriseSystem
)
...
...
@@ -89,6 +91,7 @@ public class TEnterpriseSystemController extends BaseController
/**
* 删除企业制度管理
*/
@PreAuthorize
(
"@ss.hasPermi('safetyManagement:enterpriseSystem:remove')"
)
@Log
(
title
=
"企业制度管理"
,
businessType
=
BusinessType
.
DELETE
)
@DeleteMapping
(
"/{systemIds}"
)
public
AjaxResult
remove
(
@PathVariable
Long
[]
systemIds
)
...
...
danger-manage-admin/src/main/java/com/zehong/web/controller/train/TTrainCourseController.java
View file @
12de4132
...
...
@@ -12,6 +12,7 @@ import com.zehong.common.utils.ServletUtils;
import
com.zehong.common.utils.poi.ExcelUtil
;
import
com.zehong.framework.web.service.TokenService
;
import
com.zehong.system.domain.StatisticsTrainCourse
;
import
com.zehong.system.domain.TDeviceInfo
;
import
com.zehong.system.domain.TTrainCourse
;
import
com.zehong.system.domain.TTrainUserCourse
;
import
com.zehong.system.domain.vo.UserCourseVo
;
...
...
@@ -193,4 +194,16 @@ public class TTrainCourseController extends BaseController
List
<
TTrainUserCourse
>
persons
=
tTrainCourseService
.
testPersonDetailByCourseId
(
courseId
);
return
getDataTable
(
persons
);
}
/**
* 导出所有考试详细数据项
*/
@Log
(
title
=
"设备信息管理"
,
businessType
=
BusinessType
.
EXPORT
)
@GetMapping
(
"/examDetails"
)
public
AjaxResult
examDetails
(
@RequestParam
(
value
=
"courseId"
)
Long
courseId
)
{
List
<
TTrainUserCourse
>
persons
=
tTrainCourseService
.
examDetails
(
courseId
);
ExcelUtil
<
TTrainUserCourse
>
util
=
new
ExcelUtil
<
TTrainUserCourse
>(
TTrainUserCourse
.
class
);
return
util
.
exportExcel
(
persons
,
"考试详细数据"
);
}
}
danger-manage-system/src/main/java/com/zehong/system/domain/TTrainUserCourse.java
View file @
12de4132
...
...
@@ -9,7 +9,7 @@ import com.zehong.common.core.domain.BaseEntity;
/**
* 用户课程对象 t_train_user_course
*
*
* @author zehong
* @date 2022-09-19
*/
...
...
@@ -21,42 +21,60 @@ public class TTrainUserCourse extends BaseEntity
private
Long
userCourseId
;
/** 用户id */
@Excel
(
name
=
"用户id"
)
private
Long
userId
;
/** 课程id */
@Excel
(
name
=
"课程id"
)
private
Long
courseId
;
/** 0未学习 1未通过 2已通过 */
@Excel
(
name
=
"0未学习 1未通过 2已通过"
)
private
Integer
state
;
/**人员名称**/
@Excel
(
name
=
"考试人员"
)
private
String
staffName
;
/** 创建人 */
private
String
createUser
;
/**人员部门**/
@Excel
(
name
=
"所属部门"
)
private
String
deptName
;
/** 最后一次考试时间 */
@JsonFormat
(
pattern
=
"yyyy-MM-dd HH:mm:ss"
)
@Excel
(
name
=
"
最后一次
考试时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
@Excel
(
name
=
"考试时间"
,
width
=
30
,
dateFormat
=
"yyyy-MM-dd"
)
private
Date
examinationTime
;
/** 最后一次考试结果(答对数量) */
@Excel
(
name
=
"
最后一次考试结果"
,
readConverterExp
=
"答=对数量
"
)
@Excel
(
name
=
"
得分
"
)
private
Integer
examinationResult
;
/** 创建人 */
@Excel
(
name
=
"创建人"
)
private
String
createUser
;
/**人员名称**/
private
String
staffName
;
/** 0未学习 1未通过 2已通过 */
private
Integer
state
;
/**人员部门**/
private
String
deptName
;
/** 0未学习 1未通过 2已通过 */
@Excel
(
name
=
"考试结果"
)
private
String
states
;
private
Integer
personnelType
;
private
Integer
finishDuration
;
private
Integer
trainState
;
public
static
long
getSerialVersionUID
()
{
return
serialVersionUID
;
}
public
String
getStates
()
{
return
states
;
}
public
void
setStates
(
String
states
)
{
this
.
states
=
states
;
}
public
Integer
getFinishDuration
()
{
return
finishDuration
;
}
...
...
@@ -86,61 +104,61 @@ public class TTrainUserCourse extends BaseEntity
this
.
userCourseId
=
userCourseId
;
}
public
Long
getUserCourseId
()
public
Long
getUserCourseId
()
{
return
userCourseId
;
}
public
void
setUserId
(
Long
userId
)
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getUserId
()
public
Long
getUserId
()
{
return
userId
;
}
public
void
setCourseId
(
Long
courseId
)
public
void
setCourseId
(
Long
courseId
)
{
this
.
courseId
=
courseId
;
}
public
Long
getCourseId
()
public
Long
getCourseId
()
{
return
courseId
;
}
public
void
setState
(
Integer
state
)
public
void
setState
(
Integer
state
)
{
this
.
state
=
state
;
}
public
Integer
getState
()
public
Integer
getState
()
{
return
state
;
}
public
void
setExaminationTime
(
Date
examinationTime
)
public
void
setExaminationTime
(
Date
examinationTime
)
{
this
.
examinationTime
=
examinationTime
;
}
public
Date
getExaminationTime
()
public
Date
getExaminationTime
()
{
return
examinationTime
;
}
public
void
setExaminationResult
(
Integer
examinationResult
)
public
void
setExaminationResult
(
Integer
examinationResult
)
{
this
.
examinationResult
=
examinationResult
;
}
public
Integer
getExaminationResult
()
public
Integer
getExaminationResult
()
{
return
examinationResult
;
}
public
void
setCreateUser
(
String
createUser
)
public
void
setCreateUser
(
String
createUser
)
{
this
.
createUser
=
createUser
;
}
public
String
getCreateUser
()
public
String
getCreateUser
()
{
return
createUser
;
}
...
...
@@ -163,15 +181,20 @@ public class TTrainUserCourse extends BaseEntity
@Override
public
String
toString
()
{
return
new
ToStringBuilder
(
this
,
ToStringStyle
.
MULTI_LINE_STYLE
)
.
append
(
"userCourseId"
,
getUserCourseId
())
.
append
(
"userId"
,
getUserId
())
.
append
(
"courseId"
,
getCourseId
())
.
append
(
"state"
,
getState
())
.
append
(
"examinationTime"
,
getExaminationTime
())
.
append
(
"examinationResult"
,
getExaminationResult
())
.
append
(
"createTime"
,
getCreateTime
())
.
append
(
"createUser"
,
getCreateUser
())
.
toString
();
return
"TTrainUserCourse{"
+
"userCourseId="
+
userCourseId
+
", userId="
+
userId
+
", courseId="
+
courseId
+
", staffName='"
+
staffName
+
'\''
+
", createUser='"
+
createUser
+
'\''
+
", deptName='"
+
deptName
+
'\''
+
", examinationTime="
+
examinationTime
+
", examinationResult="
+
examinationResult
+
", state="
+
state
+
", states='"
+
states
+
'\''
+
", personnelType="
+
personnelType
+
", finishDuration="
+
finishDuration
+
", trainState="
+
trainState
+
'}'
;
}
}
danger-manage-system/src/main/java/com/zehong/system/mapper/TTrainUserCourseMapper.java
View file @
12de4132
...
...
@@ -5,15 +5,15 @@ import com.zehong.system.domain.TTrainUserCourse;
/**
* 用户课程Mapper接口
*
*
* @author zehong
* @date 2022-09-19
*/
public
interface
TTrainUserCourseMapper
public
interface
TTrainUserCourseMapper
{
/**
* 查询用户课程
*
*
* @param userCourseId 用户课程ID
* @return 用户课程
*/
...
...
@@ -21,7 +21,7 @@ public interface TTrainUserCourseMapper
/**
* 查询用户课程列表
*
*
* @param tTrainUserCourse 用户课程
* @return 用户课程集合
*/
...
...
@@ -29,7 +29,7 @@ public interface TTrainUserCourseMapper
/**
* 新增用户课程
*
*
* @param tTrainUserCourse 用户课程
* @return 结果
*/
...
...
@@ -37,7 +37,7 @@ public interface TTrainUserCourseMapper
/**
* 修改用户课程
*
*
* @param tTrainUserCourse 用户课程
* @return 结果
*/
...
...
@@ -45,7 +45,7 @@ public interface TTrainUserCourseMapper
/**
* 删除用户课程
*
*
* @param userCourseId 用户课程ID
* @return 结果
*/
...
...
@@ -53,7 +53,7 @@ public interface TTrainUserCourseMapper
/**
* 批量删除用户课程
*
*
* @param userCourseIds 需要删除的数据ID
* @return 结果
*/
...
...
@@ -65,4 +65,11 @@ public interface TTrainUserCourseMapper
* @return List<TTrainUserCourse>
*/
List
<
TTrainUserCourse
>
testPersonDetailByCourseId
(
Long
courseId
);
/**
* 导出所有考试详细数据项
* @param courseId
* @return
*/
List
<
TTrainUserCourse
>
examDetails
(
Long
courseId
);
}
danger-manage-system/src/main/java/com/zehong/system/service/ITTrainCourseService.java
View file @
12de4132
...
...
@@ -107,5 +107,12 @@ public interface ITTrainCourseService
* @return List<TTrainUserCourse>
*/
List
<
TTrainUserCourse
>
testPersonDetailByCourseId
(
Long
courseId
);
/**
* 导出所有考试详细数据项
* @param courseId
* @return
*/
List
<
TTrainUserCourse
>
examDetails
(
Long
courseId
);
}
danger-manage-system/src/main/java/com/zehong/system/service/impl/TTrainCourseServiceImpl.java
View file @
12de4132
...
...
@@ -336,6 +336,16 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
return
tTrainUserCourseMapper
.
testPersonDetailByCourseId
(
courseId
);
}
/**
* 导出所有考试详细数据项
* @param courseId
* @return
*/
@Override
public
List
<
TTrainUserCourse
>
examDetails
(
Long
courseId
)
{
return
tTrainUserCourseMapper
.
examDetails
(
courseId
);
}
@Override
public
TTrainUserCourse
getUserCourse
(
Long
userCourseId
){
TTrainUserCourse
userCourse
=
tTrainUserCourseMapper
.
selectTTrainUserCourseById
(
userCourseId
);
...
...
danger-manage-system/src/main/resources/mapper/system/TTrainUserCourseMapper.xml
View file @
12de4132
...
...
@@ -3,7 +3,7 @@
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper
namespace=
"com.zehong.system.mapper.TTrainUserCourseMapper"
>
<resultMap
type=
"TTrainUserCourse"
id=
"TTrainUserCourseResult"
>
<result
property=
"userCourseId"
column=
"user_course_id"
/>
<result
property=
"userId"
column=
"user_id"
/>
...
...
@@ -18,6 +18,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"deptName"
column=
"dept_name"
/>
<result
property=
"finishDuration"
column=
"finish_duration"
/>
<result
property=
"trainState"
column=
"train_state"
/>
<result
property=
"states"
column=
"states"
/>
</resultMap>
<sql
id=
"selectTTrainUserCourseVo"
>
...
...
@@ -35,12 +36,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"createUser != null and createUser != ''"
>
and create_user = #{createUser}
</if>
</where>
</select>
<select
id=
"selectTTrainUserCourseById"
parameterType=
"Long"
resultMap=
"TTrainUserCourseResult"
>
<include
refid=
"selectTTrainUserCourseVo"
/>
where user_course_id = #{userCourseId}
</select>
<insert
id=
"insertTTrainUserCourse"
parameterType=
"TTrainUserCourse"
useGeneratedKeys=
"true"
keyProperty=
"userCourseId"
>
insert into t_train_user_course
<trim
prefix=
"("
suffix=
")"
suffixOverrides=
","
>
...
...
@@ -91,7 +92,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</delete>
<delete
id=
"deleteTTrainUserCourseByIds"
parameterType=
"String"
>
delete from t_train_user_course where user_course_id in
delete from t_train_user_course where user_course_id in
<foreach
item=
"userCourseId"
collection=
"array"
open=
"("
separator=
","
close=
")"
>
#{userCourseId}
</foreach>
...
...
@@ -102,11 +103,35 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
sys.staff_name,
d.dept_name,
train.examination_result,
train.state,train.examination_time
train.state,
train.examination_time
FROM
t_train_user_course train
LEFT JOIN sys_user sys ON train.user_id = sys.user_id
left join sys_dept d on sys.dept_id = d.dept_id
WHERE train.course_id = #{courseId}
</select>
<!--导出所有考试详细数据项-->
<select
id=
"examDetails"
parameterType=
"Long"
resultMap=
"TTrainUserCourseResult"
>
SELECT
sys.staff_name,
d.dept_name,
train.examination_result,
train.examination_result,
CASE
WHEN train.state = 0 THEN
'未考试'
WHEN train.state = 1 THEN
'未通过'
WHEN train.state = 2 THEN
'已通过'
END AS states ,
train.examination_time
FROM
t_train_user_course train
LEFT JOIN sys_user sys ON train.user_id = sys.user_id
left join sys_dept d on sys.dept_id = d.dept_id
WHERE train.course_id = #{courseId}
</select>
</mapper>
\ No newline at end of file
</mapper>
danger-manage-web/src/api/educationPlanExam/lessonsProgram.js
View file @
12de4132
...
...
@@ -193,3 +193,12 @@ export function bachAddTopicGuest(data) {
data
:
data
})
}
export
function
exportDeviceInfo
(
query
)
{
return
request
({
url
:
'/system/course/examDetails'
,
method
:
'get'
,
params
:
query
})
}
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/Lesson.vue
View file @
12de4132
...
...
@@ -17,7 +17,7 @@
>
<div
class=
"top flex"
>
<el-form-item
label=
"课程标题"
prop=
"courseName"
>
<el-input
style=
"width:
400
px"
v-model=
"form.courseName"
:disabled=
"checkLock"
></el-input>
<el-input
style=
"width:
568
px"
v-model=
"form.courseName"
:disabled=
"checkLock"
></el-input>
</el-form-item>
<!--
<el-form-item
label=
"培训计划"
prop=
"courseType"
>
-->
...
...
@@ -44,6 +44,7 @@
clearable
size=
"small"
:disabled=
"checkLock"
style=
"width:215px"
>
<el-option
v-for=
"course in courseOptions"
...
...
@@ -59,12 +60,15 @@
style=
"margin-left: 55px"
>
<el-input
style=
"width:
22
0px"
style=
"width:
18
0px"
placeholder=
"分钟"
type=
"number"
v-model=
"form.duration"
:disabled=
"checkLock"
></el-input>
<el-label>
(分钟)
</el-label>
</el-form-item>
</div>
<div
class=
"flex"
>
...
...
@@ -219,6 +223,7 @@ export default {
getLessonById
()
{
getLessonById
(
this
.
courseId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
res
.
data
.
duration
=
res
.
data
.
duration
/
60
;
const
data
=
res
.
data
;
const
{
courseName
,
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/QuestionList.vue
View file @
12de4132
...
...
@@ -33,7 +33,7 @@
>
分
</div>
<div
class=
"detail-item"
>
判断
提
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
判断
题
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
>
/题,共
<span>
{{
pds
}}
</span>
题,计
<span
class=
"textC"
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
</span
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/index.vue
View file @
12de4132
...
...
@@ -132,11 +132,21 @@
width=
"180"
>
<
template
v-slot=
"{ row: { topicNum, courseId, status } }"
>
<span
@
click=
"checkQuestion(courseId, status)"
class=
"timuNum"
>
<span
v-if=
"topicNum > 0"
>
<span>
<span
class=
"timuNum"
@
click=
"checkQuestion(courseId, status)"
v-if=
"topicNum > 0"
>
{{
status
==
0
?
`已录入${topicNum
}
题`
:
"查看"
}}
<
/span
>
<
span
v
-
else
>
未录入
<
/span
>
<
span
v
-
else
-
if
=
"status === 1 && topicNum == 0"
>
-
<
/span
>
<
span
class
=
"timuNum"
@
click
=
"checkQuestion(courseId, status)"
v
-
else
>
未录入
<
/spa
n
>
<
/span
>
<
/template
>
<
/el-table-column
>
...
...
@@ -145,7 +155,9 @@
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
v
-
slot
=
"{ row: { status, courseId
}
}
"
>
<
template
v
-
slot
=
"{ row: { courseName, courseType, status, courseId
}
}
"
>
<!--
<
div
>
{{
status
}}
<
/div> --
>
<
el
-
button
v
-
if
=
"status == 0"
...
...
@@ -175,7 +187,7 @@
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"issueDilog(courseId)"
@
click
=
"issueDilog(courseId
, courseName, courseType
)"
>
发布
<
/el-butto
n
>
<
/template
>
...
...
@@ -196,7 +208,18 @@
:
checkLock
.
sync
=
"checkLock"
:
visible
.
sync
=
"dilogFlag"
/>
<
el
-
dialog
title
=
"发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
el
-
dialog
class
=
"lessons-program"
title
=
"培训考试发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
span
class
=
"dialogName"
>
培训名称
:
<
span
class
=
"a"
>
{{
dilogName
}}
<
/span
>
<
/span
>
<
span
class
=
"dialogName"
>
培训计划
:
<
span
class
=
"a"
>
{{
dilogType
}}
<
/span></
span
>
<
div
class
=
"detail flex"
>
<
div
class
=
"detail-item"
>
单选题
<
span
>
{{
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
...
...
@@ -213,20 +236,19 @@
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
判断
提
<
span
>
{{
bottomFrom
.
judgmentScore
}}
<
/spa
n
判断
题
<
span
>
{{
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
/题,共<span>{{ pds
}}
</
span
>
题,计
<
span
class
=
"textC"
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
合格分数为
<
span
class
=
"textC"
>
{{
bottomFrom
.
qualifiedNum
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
div
class
=
"detail"
>
<
div
class
=
"detail-item"
>
一
共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
>
道题,总共计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
...
...
@@ -235,6 +257,12 @@
>
分
<
/div
>
<
/div
>
<
div
class
=
"detail"
>
<
div
class
=
"detail-item"
>
合格分数为
<
span
class
=
"textC"
>
{{
bottomFrom
.
qualifiedNum
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"issueVisible = false"
>
取
消
<
/el-button
>
...
...
@@ -289,6 +317,8 @@ export default {
dilogFlag
:
false
,
// 发布弹框
issueVisible
:
false
,
dilogName
:
""
,
dilogType
:
null
,
bottomFrom
:
{
singleChoiceScore
:
0
,
multipleChoiceScore
:
0
,
...
...
@@ -307,13 +337,13 @@ export default {
computed
:
{
...
mapGetters
([
"courseOptions"
]),
danxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
1
).
length
;
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
1
).
length
||
0
;
}
,
duoxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
2
).
length
;
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
2
).
length
||
0
;
}
,
pds
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
3
).
length
;
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
3
).
length
||
0
;
}
,
}
,
created
()
{
...
...
@@ -426,8 +456,8 @@ export default {
.
catch
(()
=>
{
}
);
}
,
// 发布弹框
issueDilog
(
courseId
)
{
getQuestion
({
courseId
}
)
issueDilog
(
courseId
,
name
,
type
)
{
getQuestion
({
courseId
}
)
.
then
((
res
)
=>
{
this
.
questionList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
...
...
@@ -442,13 +472,19 @@ export default {
}
)
.
then
((
res
)
=>
{
this
.
bottomFrom
=
{
singleChoiceScore
:
res
.
data
.
singleChoiceScore
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
,
judgmentScore
:
res
.
data
.
judgmentScore
,
qualifiedNum
:
res
.
data
.
qualifiedNum
,
singleChoiceScore
:
res
.
data
.
singleChoiceScore
||
0
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
||
0
,
judgmentScore
:
res
.
data
.
judgmentScore
||
0
,
qualifiedNum
:
res
.
data
.
qualifiedNum
||
0
,
}
;
}
)
.
then
((
res
)
=>
{
this
.
dilogName
=
name
;
this
.
dilogType
=
type
&&
this
.
courseOptions
.
filter
((
item
)
=>
item
.
planId
==
type
)[
0
]
&&
this
.
courseOptions
.
filter
((
item
)
=>
item
.
planId
==
type
)[
0
]
.
planName
;
this
.
issueVisible
=
true
;
this
.
issueCourseId
=
courseId
;
}
);
...
...
@@ -457,15 +493,16 @@ export default {
}
,
// 发布
issueLesson
(
courseId
)
{
this
.
$confirm
(
"确定要发布吗"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}
)
.
then
(()
=>
{
// 判断是否录入答题合格数
return
getLessonById
(
courseId
);
}
)
// this.$confirm("确定要发布吗",
{
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
//
}
)
// .then(() =>
{
// // 判断是否录入答题合格数
// return getLessonById(courseId);
//
}
)
getLessonById
(
courseId
)
.
then
((
res
)
=>
{
// if (
// res.data.singleChoiceScore >= 0 &&
...
...
@@ -592,12 +629,21 @@ export default {
width
:
100
%
;
}
::
v
-
deep
.
el
-
dialog
{
margin
-
top
:
15
vh
!
important
;
margin
-
top
:
10
vh
!
important
;
}
::
v
-
deep
.
el
-
dialog
.
el
-
dialog__body
{
padding
-
top
:
5
px
;
}
.
dialogName
{
margin
-
right
:
50
px
;
// color: #ccc;
font
-
size
:
16
px
;
}
.
detail
{
// position: absolute;
// bottom: -20px;
// left: 10px;
margin
-
top
:
20
px
;
.
textC
{
font
-
weight
:
800
;
font
-
size
:
18
px
;
...
...
danger-manage-web/src/views/educationPlanExam/myLessons/CheckLesson/index.vue
View file @
12de4132
...
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-20 20:14:18
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-05 09:38:13
* @LastEditTime: 2023-0
2-03 15:59:38
* @FilePath: /danger-manage-web/src/views/myLessons/CheckLesson.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
...
...
@@ -92,7 +92,8 @@
</div>
<div
class=
"btn-wrapper flex"
>
<el-button
v-if=
"this.finish"
@
click=
"againQuesstion"
type=
"primary"
>
{{
<!-- topicNum>0代表有考试题,没考试题不需要考试 -->
<el-button
v-if=
"this.finish &&lessonData.topicNum>0 "
@
click=
"againQuesstion"
type=
"primary"
>
{{
state
==
2
||
state
==
1
?
"重新考试"
:
"开始考试"
}}
</el-button>
<el-button
@
click=
"$router.back()"
type=
"primary"
plain
>
取消
</el-button>
...
...
danger-manage-web/src/views/educationPlanExam/testStat/index.vue
View file @
12de4132
...
...
@@ -60,22 +60,22 @@
<el-table-column
label=
"应参加人数"
align=
"center"
prop=
"count"
/>
<el-table-column
label=
"实际考试人数"
align=
"center"
prop=
"test"
/>
<el-table-column
label=
"合格人数"
align=
"center"
prop=
"pass"
/>
<el-table-column
label=
"合格率"
align=
"center"
prop=
"rate"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
rate
}}
%
</
template
>
</el-table-column
>
<!-- <el-table-column label="合格率" align="center" prop="rate">--
>
<!-- <template slot-scope="scope">--
>
<!-- {{scope.row.rate}}%-->
<!-- </template>--
>
<!-- </el-table-column>--
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
v-slot=
"{ row: { courseId
}
}"
>
<
template
v-slot=
"{ row: { courseId
,courseName}
}"
>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"courseDetail(courseId)"
@
click=
"courseDetail(courseId
,courseName
)"
>
查看详情
</el-button>
</
template
>
</el-table-column>
...
...
@@ -89,13 +89,33 @@
/>
<!--考试详情 -->
<el-dialog
title=
"考试详情"
:visible
.
sync=
"testStatDetailOpen"
append-to-body
:close-on-click-modal=
"false"
>
<el-dialog
:title=
"'考试详情:'+courseName"
:visible
.
sync=
"testStatDetailOpen"
append-to-body
:close-on-click-modal=
"false"
>
<el-button
type=
"warning"
plain
icon=
"el-icon-download"
size=
"mini"
:loading=
"exportLoading"
@
click=
"handleExport"
style=
"position: relative;left: 16px;top: -17px;"
>
导出
</el-button>
<el-table
v-loading=
"loading"
:data=
"testStatDetailData"
>
<el-table-column
label=
"序号"
width=
'100'
align=
"center"
prop=
"detailNum"
/>
<el-table-column
label=
"考试人员"
align=
"center"
prop=
"staffName"
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"deptName"
/>
<el-table-column
label=
"考试时间"
align=
"center"
prop=
"examinationTime"
/>
<el-table-column
label=
"答对个数"
align=
"center"
prop=
"examinationResult"
/>
<el-table-column
label=
"所属部门"
align=
"center"
prop=
"deptName"
>
<span
slot-scope=
"scope"
v-if=
"scope.row.deptName"
>
{{scope.row.deptName}}
</span>
<span
v-else
>
-
</span>
</el-table-column>
<el-table-column
label=
"考试时间"
align=
"center"
prop=
"examinationTime"
>
<span
slot-scope=
"scope"
v-if=
"scope.row.examinationTime"
>
{{scope.row.examinationTime}}
</span>
<span
v-else
>
-
</span>
</el-table-column>
<el-table-column
label=
"得分"
align=
"center"
prop=
"examinationResult"
>
<span
slot-scope=
"scope"
v-if=
"scope.row.examinationResult"
>
{{scope.row.examinationResult}}
</span>
<span
v-else
>
-
</span>
</el-table-column>
<el-table-column
label=
"考试结果"
align=
"center"
prop=
"state"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"scope.row.state == 0"
>
未考试
</span>
...
...
@@ -104,6 +124,7 @@
</
template
>
</el-table-column>
</el-table>
<pagination
v-show=
"totalDetail > 0"
:total=
"totalDetail"
...
...
@@ -116,7 +137,7 @@
</template>
<
script
>
import
{
statisticsTrainCourse
,
testPersonDetailByCourseId
}
from
"@/api/educationPlanExam/lessonsProgram.js"
;
import
{
statisticsTrainCourse
,
testPersonDetailByCourseId
,
exportDeviceInfo
}
from
"@/api/educationPlanExam/lessonsProgram.js"
;
export
default
{
name
:
"testStat"
,
data
(){
...
...
@@ -126,6 +147,7 @@
// 总条数
total
:
0
,
releaseTime
:
""
,
courseName
:
""
,
queryParams
:{
pageNum
:
1
,
pageSize
:
10
,
...
...
@@ -134,6 +156,8 @@
releaseTimeBegin
:
""
,
releaseTimeEnd
:
""
},
// 导出遮罩层
exportLoading
:
false
,
testStatData
:[],
testStatDetailOpen
:
false
,
testStatDetailData
:
[],
...
...
@@ -141,7 +165,7 @@
queryDetailParams
:{
pageNum
:
1
,
pageSize
:
10
,
courseId
:
""
courseId
:
0
}
}
},
...
...
@@ -149,6 +173,20 @@
this
.
getTestList
();
},
methods
:
{
/** 导出按钮操作 */
handleExport
()
{
this
.
$confirm
(
'是否确认导出所有考试详细数据项?'
,
"警告"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
}).
then
(()
=>
{
this
.
exportLoading
=
true
;
return
exportDeviceInfo
(
this
.
queryDetailParams
);
}).
then
(
response
=>
{
this
.
download
(
response
.
msg
);
this
.
exportLoading
=
false
;
}).
catch
(()
=>
{});
},
getTestList
(){
console
.
log
(
"this.queryParams:"
,
this
.
queryParams
)
statisticsTrainCourse
(
this
.
queryParams
).
then
(
res
=>
{
...
...
@@ -185,8 +223,10 @@
};
this
.
getTestList
();
},
courseDetail
(
courseId
){
courseDetail
(
courseId
,
courseName
){
this
.
testStatDetailOpen
=
true
;
this
.
courseName
=
courseName
;
this
.
queryDetailParams
.
courseId
=
courseId
;
this
.
getTestStatDetails
(
courseId
);
},
getTestStatDetails
(
courseId
){
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/QuestionList.vue
View file @
12de4132
...
...
@@ -34,7 +34,7 @@
>
分
</div>
<div
class=
"detail-item"
>
判断
提
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
判断
题
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
>
/题,共
<span>
{{
pds
}}
</span>
题,计
<span
class=
"textC"
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
</span
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/index.vue
View file @
12de4132
...
...
@@ -63,7 +63,7 @@
<el-table
v-loading=
"loading"
:data=
"lessonsList"
>
<el-table-column
label=
"序号"
align=
"center"
prop=
"bankNum"
width=
"55"
/>
<el-table-column
label=
"
课程标题
"
align=
"center"
prop=
"courseName"
/>
<el-table-column
label=
"
考试名称
"
align=
"center"
prop=
"courseName"
/>
<el-table-column
label=
"开始时间"
align=
"center"
...
...
@@ -102,7 +102,11 @@
align
=
"center"
class
-
name
=
"small-padding fixed-width"
>
<
template
v
-
slot
=
"{ row: { status, courseId, qualifiedNum
}
}
"
>
<
template
v
-
slot
=
"{
row: { courseName, topicNum, status, courseId,testStartTime,testEndTime
}
,
}
"
>
<!--
<
div
>
{{
status
}}
<
/div> --
>
<!--
<
el
-
button
v
-
if
=
"status == 0"
...
...
@@ -140,7 +144,7 @@
size
=
"mini"
type
=
"text"
icon
=
"el-icon-delete"
@
click
=
"issueDilog(courseId)"
@
click
=
"issueDilog(courseId
, courseName, topicNum,testStartTime,testEndTime
)"
>
发布
<
/el-butto
n
>
<
/template
>
...
...
@@ -161,7 +165,29 @@
:
checkLock
.
sync
=
"checkLock"
:
visible
.
sync
=
"dilogFlag"
/>
<
el
-
dialog
title
=
"发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
el
-
dialog
class
=
"lessons-program"
title
=
"试卷考试发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
div
>
<
span
class
=
"dialogName"
>
考试名称
:
<
span
class
=
"a"
>
{{
dilogName
}}
<
/span
>
<
/span
>
<
/div
>
<
div
style
=
"margin-top:20px"
>
<
span
class
=
"dialogName"
>
开始时间
:
<
span
class
=
"a"
>
{{
dilogStartTime
}}
<
/span
>
<
/span
>
<
span
class
=
"dialogName"
>
结束时间
:
<
span
class
=
"a"
>
{{
dilogEndTime
}}
<
/span
>
<
/span
>
<
/div
>
<!--
<
span
class
=
"dialogName"
>
培训计划
:
<
span
class
=
"a"
>
{{
dilogType
}}
<
/span></
span
>
-->
<
div
class
=
"detail flex"
>
<
div
class
=
"detail-item"
>
单选题
<
span
>
{{
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
...
...
@@ -178,20 +204,19 @@
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
判断
提
<
span
>
{{
bottomFrom
.
judgmentScore
}}
<
/spa
n
判断
题
<
span
>
{{
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
/题,共<span>{{ pds
}}
</
span
>
题,计
<
span
class
=
"textC"
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
合格分数为
<
span
class
=
"textC"
>
{{
bottomFrom
.
qualifiedNum
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
div
class
=
"detail"
>
<
div
class
=
"detail-item"
>
一
共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
>
道题,总共计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
...
...
@@ -200,6 +225,12 @@
>
分
<
/div
>
<
/div
>
<
div
class
=
"detail"
>
<
div
class
=
"detail-item"
>
合格分数为
<
span
class
=
"textC"
>
{{
bottomFrom
.
qualifiedNum
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"issueVisible = false"
>
取
消
<
/el-button
>
...
...
@@ -255,6 +286,11 @@ export default {
dilogFlag
:
false
,
// 发布
issueVisible
:
false
,
dilogName
:
""
,
dilogTopicNum
:
0
,
dilogStartTime
:
0
,
dilogEndTime
:
0
,
// dilogType: null,
bottomFrom
:
{
singleChoiceScore
:
0
,
multipleChoiceScore
:
0
,
...
...
@@ -404,12 +440,18 @@ export default {
.
catch
(()
=>
{
}
);
}
,
// 发布
issueDilog
(
courseId
)
{
getQuestion
({
courseId
}
)
issueDilog
(
courseId
,
name
,
num
,
startTime
,
endTime
)
{
if
(
num
===
0
)
{
this
.
$message
({
message
:
"请至少录入一道考题在发布"
,
type
:
"warning"
,
}
);
return
;
}
getQuestion
({
courseId
}
)
.
then
((
res
)
=>
{
console
.
log
(
res
)
console
.
log
(
res
)
;
this
.
questionList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
topicType
:
item
.
topicType
,
topicId
:
item
.
topicId
,
...
...
@@ -422,13 +464,17 @@ export default {
}
)
.
then
((
res
)
=>
{
this
.
bottomFrom
=
{
singleChoiceScore
:
res
.
data
.
singleChoiceScore
||
0
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
||
0
,
judgmentScore
:
res
.
data
.
judgmentScore
||
0
,
qualifiedNum
:
res
.
data
.
qualifiedNum
||
0
,
singleChoiceScore
:
res
.
data
.
singleChoiceScore
||
0
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
||
0
,
judgmentScore
:
res
.
data
.
judgmentScore
||
0
,
qualifiedNum
:
res
.
data
.
qualifiedNum
||
0
,
}
;
}
)
.
then
((
res
)
=>
{
// 名称
this
.
dilogName
=
name
;
this
.
dilogStartTime
=
startTime
;
this
.
dilogEndTime
=
endTime
;
this
.
issueVisible
=
true
;
this
.
issueCourseId
=
courseId
;
}
);
...
...
@@ -436,15 +482,17 @@ export default {
//
}
,
issueLesson
(
courseId
)
{
this
.
$confirm
(
"确定要发布吗"
,
{
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
}
)
.
then
(()
=>
{
// 判断是否录入答题合格数
return
getLessonById
(
courseId
);
}
)
// this.$confirm("确定要发布吗",
{
// confirmButtonText: "确定",
// cancelButtonText: "取消",
// type: "warning",
//
}
)
// .then(() =>
{
// // 判断是否录入答题合格数
// return getLessonById(courseId);
//
}
)
getLessonById
(
courseId
)
.
then
((
res
)
=>
{
// if (
// res.data.singleChoiceScore > 0 &&
...
...
@@ -500,12 +548,21 @@ export default {
width
:
100
%
;
}
::
v
-
deep
.
el
-
dialog
{
margin
-
top
:
15
vh
!
important
;
margin
-
top
:
10
vh
!
important
;
}
::
v
-
deep
.
el
-
dialog
.
el
-
dialog__body
{
padding
-
top
:
5
px
;
}
.
dialogName
{
margin
-
right
:
50
px
;
// color: #ccc;
font
-
size
:
16
px
;
}
.
detail
{
// position: absolute;
// bottom: -20px;
// left: 10px;
margin
-
top
:
20
px
;
.
textC
{
font
-
weight
:
800
;
font
-
size
:
18
px
;
...
...
danger-manage-web/src/views/educationPlanExam/visitorProgram/visitorQuestion.vue
View file @
12de4132
...
...
@@ -40,7 +40,7 @@
>
分
</div>
<div
class=
"detail-item"
>
判断
提
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
判断
题
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
>
/题,共
<span>
{{
pds
}}
</span>
题,计
<span
class=
"textC"
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
</span
...
...
danger-manage-web/src/views/educationPlanExam/visitorTestStat/index.vue
View file @
12de4132
...
...
@@ -62,11 +62,11 @@
<
span
>
{{
parseTime
(
scope
.
row
.
testEndTime
,
'{y
}
-{m
}
-{d
}
{h
}
:{i
}
:{s
}
'
)
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<!--
<
el
-
table
-
column
label
=
"正确率"
align
=
"center"
prop
=
"score"
>--
>
<!--
<
template
slot
-
scope
=
"scope"
>--
>
<!--
<
span
>
{{
Math
.
round
(
scope
.
row
.
score
/
topicNum
*
100
)
}}
%<
/span>--
>
<!--
<
/template>--
>
<!--
<
/el-table-column>--
>
<
el
-
table
-
column
label
=
"答题得分"
align
=
"center"
prop
=
"score"
>
<
template
slot
-
scope
=
"scope"
>
<
span
>
{{
scope
.
row
.
score
}}
<
/span
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
label
=
"是否合格"
align
=
"center"
prop
=
"isQualified"
>
<
template
slot
-
scope
=
"scope"
>
<
span
v
-
if
=
"scope.row.isQualified == '0'"
>
合格
<
/span
>
...
...
danger-manage-web/src/views/safetyManagement/enterpriseSystem/index.vue
View file @
12de4132
...
...
@@ -56,6 +56,7 @@
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['safetyManagement:enterpriseSystem:add']"
>
新增
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
...
...
@@ -77,18 +78,24 @@
<span
v-else
>
-
</span>
</
template
>
</el-table-column>
<el-table-column
label=
"状态"
align=
"center"
prop=
"status"
:formatter=
"statusFormat"
/
>
<!-- <el-table-column label="状态" align="center" prop="status" :formatter="statusFormat" />--
>
<el-table-column
label=
"创建时间"
align=
"center"
prop=
"createTime"
/>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<el-button
v-if=
"scope.row.status == '0'"
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['safetyManagement:enterpriseSystem:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<!--
<el-button
v-if=
"scope.row.status == '0'"
size=
"mini"
type=
"text"
...
...
@@ -108,13 +115,13 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleInvalid(scope.row)"
>
作废
</el-button>
>
作废
</el-button>
-->
<el-button
v-if=
"scope.row.status == '0'"
size=
"mini"
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['safetyManagement:enterpriseSystem:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -169,10 +176,10 @@
</span>
<span
v-else
>
-
</span>
</el-form-item>
<el-form-item
v-show=
"operate"
label=
"审批"
prop=
"status"
>
<
!--<
el-form-item v-show="operate" label="审批" prop="status">
<el-radio v-model="form.status" label="2">通过</el-radio>
<el-radio v-model="form.status" label="0">驳回</el-radio>
</el-form-item>
</el-form-item>
-->
</div>
<div
style=
"width: 58%;margin-left: 2%"
>
<div
class=
"dialogTitle"
>
制度内容
</div>
...
...
@@ -180,7 +187,7 @@
</div>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
v-show=
"!readOnly"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
...
...
@@ -339,6 +346,20 @@ export default {
}
});
},
/** 详情按钮操作 */
handleDetail
(
row
)
{
this
.
readOnly
=
true
;
this
.
reset
();
const
systemId
=
row
.
systemId
||
this
.
ids
getEnterpriseSystem
(
systemId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"企业制度信息详情"
;
if
(
this
.
form
.
fileUrl
!=
null
||
this
.
form
.
fileUrl
==
""
){
this
.
fileList
=
[{
name
:
this
.
form
.
fileName
,
url
:
uploadfile
}];
}
});
},
/** 审批按钮操作 */
handleApproval
(
row
)
{
this
.
readOnly
=
true
;
...
...
danger-manage-web/src/views/safetyManagement/laws/index.vue
View file @
12de4132
...
...
@@ -46,6 +46,7 @@
icon=
"el-icon-plus"
size=
"mini"
@
click=
"handleAdd"
v-hasPermi=
"['safetyManagement:enterpriseSystem:add']"
>
新增
</el-button>
</el-col>
<right-toolbar
:showSearch
.
sync=
"showSearch"
@
queryTable=
"getList"
></right-toolbar>
...
...
@@ -92,7 +93,14 @@
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleUpdate(scope.row)"
v-hasPermi=
"['safetyManagement:enterpriseSystem:edit']"
>
修改
</el-button>
<el-button
size=
"mini"
type=
"text"
icon=
"el-icon-edit"
@
click=
"handleDetail(scope.row)"
>
详情
</el-button>
<!--
<el-button
v-if=
"scope.row.status == '0'"
size=
"mini"
...
...
@@ -119,6 +127,7 @@
type=
"text"
icon=
"el-icon-delete"
@
click=
"handleDelete(scope.row)"
v-hasPermi=
"['safetyManagement:enterpriseSystem:remove']"
>
删除
</el-button>
</
template
>
</el-table-column>
...
...
@@ -200,7 +209,7 @@
</div>
</div>
</el-form>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
v-show=
"!readOnly"
>
<el-button
type=
"primary"
@
click=
"submitForm"
>
确 定
</el-button>
<el-button
@
click=
"cancel"
>
取 消
</el-button>
</div>
...
...
@@ -357,6 +366,20 @@ export default {
}
});
},
/** 详情按钮操作*/
handleDetail
(
row
)
{
this
.
readOnly
=
true
;
this
.
reset
();
const
systemId
=
row
.
systemId
||
this
.
ids
getEnterpriseSystem
(
systemId
).
then
(
response
=>
{
this
.
form
=
response
.
data
;
this
.
open
=
true
;
this
.
title
=
"法律法规信息详情"
;
if
(
this
.
form
.
fileUrl
!=
null
||
this
.
form
.
fileUrl
==
""
){
this
.
fileList
=
[{
name
:
this
.
form
.
fileName
,
url
:
uploadfile
}];
}
});
},
/** 审批按钮操作 */
handleApproval
(
row
)
{
this
.
readOnly
=
true
;
...
...
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