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
272e7779
Commit
272e7779
authored
Feb 02, 2023
by
吴卿华
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/master'
parents
238a296c
83a6b852
Show whitespace changes
Inline
Side-by-side
Showing
30 changed files
with
1093 additions
and
427 deletions
+1093
-427
TStaningBookController.java
...g/web/controller/hiddenDanger/TStaningBookController.java
+6
-2
TStaningBook.java
.../src/main/java/com/zehong/system/domain/TStaningBook.java
+20
-0
ITStaningBookService.java
.../java/com/zehong/system/service/ITStaningBookService.java
+1
-1
LedserviceImpl.java
...n/java/com/zehong/system/service/impl/LedserviceImpl.java
+1
-1
TStaningBookServiceImpl.java
...m/zehong/system/service/impl/TStaningBookServiceImpl.java
+4
-6
TTrainCourseServiceImpl.java
...m/zehong/system/service/impl/TTrainCourseServiceImpl.java
+5
-1
TStaningBookMapper.xml
...m/src/main/resources/mapper/system/TStaningBookMapper.xml
+5
-3
contractTrain.js
danger-manage-web/src/api/contractTrain/contractTrain.js
+9
-0
index.vue
danger-manage-web/src/components/FileUpload/index.vue
+191
-188
ChangPapelTable.vue
...anage-web/src/components/PeopleChange/ChangPapelTable.vue
+17
-2
index.vue
danger-manage-web/src/components/PeopleChange/index.vue
+8
-3
dangerArr.js
danger-manage-web/src/utils/cesium/dangerArr.js
+32
-32
DangerTips.vue
...r-manage-web/src/views/dangerScale/profile/DangerTips.vue
+76
-0
index.vue
danger-manage-web/src/views/dangerScale/profile/index.vue
+5
-2
AddQuestion.vue
...ucationPlanExam/lessonsProgram/components/AddQuestion.vue
+32
-12
ChangeQuestion.vue
...tionPlanExam/lessonsProgram/components/ChangeQuestion.vue
+7
-4
Dia.vue
...views/educationPlanExam/lessonsProgram/components/Dia.vue
+33
-14
Lesson.vue
...ws/educationPlanExam/lessonsProgram/components/Lesson.vue
+59
-30
QuestionList.vue
...cationPlanExam/lessonsProgram/components/QuestionList.vue
+18
-1
index.vue
...-web/src/views/educationPlanExam/lessonsProgram/index.vue
+155
-17
index.vue
...c/views/educationPlanExam/myLessons/CheckLesson/index.vue
+6
-0
AddQuestion.vue
...educationPlanExam/questionBank/components/AddQuestion.vue
+1
-1
AddQuestion.vue
...ws/educationPlanExam/textPaper/components/AddQuestion.vue
+27
-9
ChangeQuestion.vue
...educationPlanExam/textPaper/components/ChangeQuestion.vue
+6
-4
Dia.vue
.../src/views/educationPlanExam/textPaper/components/Dia.vue
+54
-6
Lesson.vue
...c/views/educationPlanExam/textPaper/components/Lesson.vue
+17
-4
QuestionList.vue
...s/educationPlanExam/textPaper/components/QuestionList.vue
+24
-5
index.vue
...anage-web/src/views/educationPlanExam/textPaper/index.vue
+161
-27
visitorAdd.vue
...src/views/educationPlanExam/visitorProgram/visitorAdd.vue
+1
-1
index.vue
danger-manage-web/src/views/system/book/index.vue
+112
-51
No files found.
danger-manage-admin/src/main/java/com/zehong/web/controller/hiddenDanger/TStaningBookController.java
View file @
272e7779
...
@@ -44,8 +44,9 @@ public class TStaningBookController extends BaseController
...
@@ -44,8 +44,9 @@ public class TStaningBookController extends BaseController
{
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
SysUser
user
=
loginUser
.
getUser
();
tStaningBook
.
setUserId
(
user
.
getUserId
());
startPage
();
startPage
();
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Dept
Id
());
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Roles
().
get
(
0
).
getRole
Id
());
return
getDataTable
(
list
);
return
getDataTable
(
list
);
}
}
...
@@ -60,7 +61,7 @@ public class TStaningBookController extends BaseController
...
@@ -60,7 +61,7 @@ public class TStaningBookController extends BaseController
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
SysUser
user
=
loginUser
.
getUser
();
startPage
();
startPage
();
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Dept
Id
());
List
<
TStaningBook
>
list
=
tStaningBookService
.
selectTStaningBookList
(
tStaningBook
,
user
.
get
Roles
().
get
(
0
).
getRole
Id
());
ExcelUtil
<
TStaningBook
>
util
=
new
ExcelUtil
<
TStaningBook
>(
TStaningBook
.
class
);
ExcelUtil
<
TStaningBook
>
util
=
new
ExcelUtil
<
TStaningBook
>(
TStaningBook
.
class
);
return
util
.
exportExcel
(
list
,
"隐患台账数据"
);
return
util
.
exportExcel
(
list
,
"隐患台账数据"
);
}
}
...
@@ -83,6 +84,9 @@ public class TStaningBookController extends BaseController
...
@@ -83,6 +84,9 @@ public class TStaningBookController extends BaseController
@PostMapping
@PostMapping
public
AjaxResult
add
(
@RequestBody
TStaningBook
tStaningBook
)
public
AjaxResult
add
(
@RequestBody
TStaningBook
tStaningBook
)
{
{
LoginUser
loginUser
=
tokenService
.
getLoginUser
(
ServletUtils
.
getRequest
());
SysUser
user
=
loginUser
.
getUser
();
tStaningBook
.
setCreateId
(
user
.
getUserId
());
return
toAjax
(
tStaningBookService
.
insertTStaningBook
(
tStaningBook
));
return
toAjax
(
tStaningBookService
.
insertTStaningBook
(
tStaningBook
));
}
}
...
...
danger-manage-system/src/main/java/com/zehong/system/domain/TStaningBook.java
View file @
272e7779
...
@@ -145,6 +145,26 @@ public class TStaningBook extends BaseEntity
...
@@ -145,6 +145,26 @@ public class TStaningBook extends BaseEntity
private
List
<
Long
>
deptList
;
private
List
<
Long
>
deptList
;
private
Long
userId
;
private
Long
createId
;
public
Long
getUserId
()
{
return
userId
;
}
public
void
setUserId
(
Long
userId
)
{
this
.
userId
=
userId
;
}
public
Long
getCreateId
()
{
return
createId
;
}
public
void
setCreateId
(
Long
createId
)
{
this
.
createId
=
createId
;
}
public
List
<
Long
>
getDeptList
()
{
public
List
<
Long
>
getDeptList
()
{
return
deptList
;
return
deptList
;
}
}
...
...
danger-manage-system/src/main/java/com/zehong/system/service/ITStaningBookService.java
View file @
272e7779
...
@@ -28,7 +28,7 @@ public interface ITStaningBookService
...
@@ -28,7 +28,7 @@ public interface ITStaningBookService
* @param tStaningBook 隐患台账
* @param tStaningBook 隐患台账
* @return 隐患台账集合
* @return 隐患台账集合
*/
*/
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
dept
Id
);
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
role
Id
);
/**
/**
* 新增隐患台账
* 新增隐患台账
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/LedserviceImpl.java
View file @
272e7779
...
@@ -239,7 +239,7 @@ public class LedserviceImpl {
...
@@ -239,7 +239,7 @@ public class LedserviceImpl {
led
.
AddSinglelineTextToImageTextArea
(
hProgram
,
0
,
1
,
0
,
"上海灵信视觉"
,
"宋体"
,
12
,
0xff
,
0
,
0
,
0
,
6
,
8
,
0
);
led
.
AddSinglelineTextToImageTextArea
(
hProgram
,
0
,
1
,
0
,
"上海灵信视觉"
,
"宋体"
,
12
,
0xff
,
0
,
0
,
0
,
6
,
8
,
0
);
//添加数字时钟节目
//添加数字时钟节目
led
.
AddProgram
(
hProgram
,
1
,
0
,
1
);
led
.
AddProgram
(
hProgram
,
1
,
0
,
1
);
led
.
AddDigitalClockArea
(
hProgram
,
1
,
1
,
0
,
0
,
ledWidth
,
ledHeight
,
"宋体"
,
8
,
0xff
,
0
,
0
,
0
,
0
,
0
,
0
,
0
,
1
,
1
,
0
,
0
,
0xff
,
0
,
0xff
,
0
,
0xff
,
1
);
led
.
AddDigitalClockArea
(
hProgram
,
1
,
1
,
0
,
0
,
ledWidth
,
ledHeight
,
"宋体"
,
9
,
0xff
,
0
,
0
,
0
,
1
,
0
,
1
,
1
,
1
,
1
,
1
,
0
,
0xff
,
0
,
0xff
,
3
,
0xff
,
0
);
int
errCode
=
led
.
NetWorkSend
(
strIp
,
hProgram
);
int
errCode
=
led
.
NetWorkSend
(
strIp
,
hProgram
);
led
.
DeleteProgram
(
hProgram
);
led
.
DeleteProgram
(
hProgram
);
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/TStaningBookServiceImpl.java
View file @
272e7779
...
@@ -51,13 +51,11 @@ public class TStaningBookServiceImpl implements ITStaningBookService
...
@@ -51,13 +51,11 @@ public class TStaningBookServiceImpl implements ITStaningBookService
* @return 隐患台账
* @return 隐患台账
*/
*/
@Override
@Override
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
dept
Id
)
public
List
<
TStaningBook
>
selectTStaningBookList
(
TStaningBook
tStaningBook
,
Long
role
Id
)
{
{
List
<
Long
>
oneList
=
new
ArrayList
<>();
if
(
roleId
!=
3
){
//当角色是管理员时候查询全部
oneList
.
add
(
deptId
);
tStaningBook
.
setUserId
(
0
l
);
List
<
Long
>
deptIds
=
selectDeptIds
(
new
ArrayList
<>(),
oneList
);
}
deptIds
.
add
(
deptId
);
tStaningBook
.
setDeptList
(
deptIds
);
List
<
TStaningBook
>
list
=
tStaningBookMapper
.
selectTStaningBookList
(
tStaningBook
);
List
<
TStaningBook
>
list
=
tStaningBookMapper
.
selectTStaningBookList
(
tStaningBook
);
return
list
;
return
list
;
}
}
...
...
danger-manage-system/src/main/java/com/zehong/system/service/impl/TTrainCourseServiceImpl.java
View file @
272e7779
...
@@ -67,6 +67,10 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
...
@@ -67,6 +67,10 @@ public class TTrainCourseServiceImpl implements ITTrainCourseService
return
0
;
return
0
;
}
}
List
<
String
>
userIds
=
tTrainPlanMapper
.
selectAlluserByplanId
(
course
.
getCourseType
());
List
<
String
>
userIds
=
tTrainPlanMapper
.
selectAlluserByplanId
(
course
.
getCourseType
());
//异常数据
if
(
userIds
==
null
||
userIds
.
size
()==
0
){
return
0
;
}
tTrainCourseMapper
.
insertUserCourse
(
courseId
,
userIds
,
course
.
getPersonnelType
());
tTrainCourseMapper
.
insertUserCourse
(
courseId
,
userIds
,
course
.
getPersonnelType
());
course
.
setStatus
(
1
);
course
.
setStatus
(
1
);
course
.
setReleaseTime
(
new
Date
());
course
.
setReleaseTime
(
new
Date
());
...
...
danger-manage-system/src/main/resources/mapper/system/TStaningBookMapper.xml
View file @
272e7779
...
@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -37,6 +37,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result
property=
"workId"
column=
"work_id"
/>
<result
property=
"workId"
column=
"work_id"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createTime"
column=
"create_time"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createBy"
column=
"create_by"
/>
<result
property=
"createId"
column=
"create_id"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"isDel"
column=
"is_del"
/>
<result
property=
"deptName"
column=
"deptName"
/>
<result
property=
"deptName"
column=
"deptName"
/>
</resultMap>
</resultMap>
...
@@ -57,9 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -57,9 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id`
LEFT JOIN sys_dept d ON d.`dept_id` = b.`dept_id`
<where>
<where>
<foreach
collection=
"deptList"
item=
"deptId"
open=
"AND b.dept_id in ("
separator=
","
close=
")"
>
<if
test=
"userId != null and userId != 0"
>
and (b.escalation=#{userId}||b.rectification = #{userId}||b.create_id = #{userId} )
</if>
#{deptId}
</foreach>
<if
test=
"troubleName != null and troubleName != ''"
>
and b.trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"troubleName != null and troubleName != ''"
>
and b.trouble_name like concat('%', #{troubleName}, '%')
</if>
<if
test=
"findTime != null "
>
and b.find_time
>
#{findTime}
</if>
<if
test=
"findTime != null "
>
and b.find_time
>
#{findTime}
</if>
<if
test=
"rectificationTime != null "
>
and b.find_time
<
#{rectificationTime}
</if>
<if
test=
"rectificationTime != null "
>
and b.find_time
<
#{rectificationTime}
</if>
...
@@ -103,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -103,6 +102,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
work_id,
</if>
<if
test=
"workId != null"
>
work_id,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createTime != null"
>
create_time,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createBy != null"
>
create_by,
</if>
<if
test=
"createId != null"
>
create_id,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
<if
test=
"isDel != null"
>
is_del,
</if>
</trim>
</trim>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
<trim
prefix=
"values ("
suffix=
")"
suffixOverrides=
","
>
...
@@ -134,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -134,6 +134,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
#{workId},
</if>
<if
test=
"workId != null"
>
#{workId},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createTime != null"
>
#{createTime},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createBy != null"
>
#{createBy},
</if>
<if
test=
"createId != null"
>
#{createId},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
<if
test=
"isDel != null"
>
#{isDel},
</if>
</trim>
</trim>
</insert>
</insert>
...
@@ -169,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
...
@@ -169,6 +170,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if
test=
"workId != null"
>
work_id = #{workId},
</if>
<if
test=
"workId != null"
>
work_id = #{workId},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createTime != null"
>
create_time = #{createTime},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createBy != null"
>
create_by = #{createBy},
</if>
<if
test=
"createId != null"
>
create_id = #{createId},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
<if
test=
"isDel != null"
>
is_del = #{isDel},
</if>
</trim>
</trim>
where book_id = #{bookId}
where book_id = #{bookId}
...
...
danger-manage-web/src/api/contractTrain/contractTrain.js
View file @
272e7779
/*
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-12-27 16:04:04
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-01-31 16:22:00
* @FilePath: /danger-manage-web/src/api/contractTrain/contractTrain.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import
request
from
'@/utils/request'
import
request
from
'@/utils/request'
// 查询承包商及访客培训列表
// 查询承包商及访客培训列表
...
@@ -9,6 +17,7 @@ export function listCourse(query) {
...
@@ -9,6 +17,7 @@ export function listCourse(query) {
})
})
}
}
// 查询承包商及访客培训详细
// 查询承包商及访客培训详细
export
function
getCourse
(
contractorCourseId
)
{
export
function
getCourse
(
contractorCourseId
)
{
return
request
({
return
request
({
...
...
danger-manage-web/src/components/FileUpload/index.vue
View file @
272e7779
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
<div
class=
"upload-file"
>
<div
class=
"upload-file"
>
<el-upload
<el-upload
:action=
"uploadFileUrl"
:action=
"uploadFileUrl"
:disabled=
"disabled"
:before-upload=
"handleBeforeUpload"
:before-upload=
"handleBeforeUpload"
:file-list=
"fileArr"
:file-list=
"fileArr"
:limit=
"1"
:limit=
"1"
...
@@ -16,11 +17,11 @@
...
@@ -16,11 +17,11 @@
:show-file-list=
"true"
:show-file-list=
"true"
:headers=
"headers"
:headers=
"headers"
class=
"upload-file-uploader"
class=
"upload-file-uploader"
:class=
"
{ hide: fileArr.length
>0 ||
addShow }"
:class=
"
{ hide: fileArr.length
> 0 ||
addShow }"
ref="upload"
ref="upload"
>
>
<!-- 上传按钮 -->
<!-- 上传按钮 -->
<el-button
plain
type=
"primary"
>
选取文件
</el-button>
<el-button
:disabled=
"disabled"
plain
type=
"primary"
>
选取文件
</el-button>
<!--
<i
class=
"el-icon-plus"
></i>
-->
<!--
<i
class=
"el-icon-plus"
></i>
-->
<!-- 上传提示 -->
<!-- 上传提示 -->
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
<div
class=
"el-upload__tip"
slot=
"tip"
v-if=
"showTip"
>
...
@@ -33,9 +34,9 @@
...
@@ -33,9 +34,9 @@
</
template
>
</
template
>
的文件,且不超过一个
的文件,且不超过一个
</div>
</div>
</el-upload>
</el-upload>
<el-image
v-show=
"false"
<el-image
v-show=
"false"
id=
"img"
id=
"img"
ref=
"previewImg"
ref=
"previewImg"
:src=
"dialogImageUrl"
:src=
"dialogImageUrl"
...
@@ -66,9 +67,9 @@
...
@@ -66,9 +67,9 @@
</template>
</template>
<
script
>
<
script
>
import
{
getToken
}
from
"@/utils/auth"
;
import
{
getToken
}
from
"@/utils/auth"
;
export
default
{
export
default
{
props
:
{
props
:
{
// 值
// 值
value
:
[
String
,
Object
,
Array
],
value
:
[
String
,
Object
,
Array
],
...
@@ -95,6 +96,10 @@
...
@@ -95,6 +96,10 @@
type
:
Boolean
,
type
:
Boolean
,
default
:
true
,
default
:
true
,
},
},
disabled
:
{
type
:
Boolean
,
default
:
false
,
},
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -134,7 +139,7 @@
...
@@ -134,7 +139,7 @@
}
}
},
},
bigImageArr
()
{
bigImageArr
()
{
return
[
this
.
dialogImageUrl
]
return
[
this
.
dialogImageUrl
];
},
},
},
},
methods
:
{
methods
:
{
...
@@ -234,31 +239,29 @@
...
@@ -234,31 +239,29 @@
// this.fileList = this.list;
// this.fileList = this.list;
this
.
addShow
=
this
.
fileArr
.
length
>
0
?
true
:
false
;
this
.
addShow
=
this
.
fileArr
.
length
>
0
?
true
:
false
;
},
},
};
};
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
img
{
img
{
width
:
100%
;
width
:
100%
;
}
}
.upload-file-uploader
{
.upload-file-uploader
{
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
}
.upload-file-list
.el-upload-list__item
{
.upload-file-list
.el-upload-list__item
{
border
:
1px
solid
#e4e7ed
;
border
:
1px
solid
#e4e7ed
;
line-height
:
2
;
line-height
:
2
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
position
:
relative
;
position
:
relative
;
}
}
.upload-file-list
.ele-upload-list__item-content
{
.upload-file-list
.ele-upload-list__item-content
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
align-items
:
center
;
align-items
:
center
;
color
:
inherit
;
color
:
inherit
;
}
}
.ele-upload-list__item-content-action
.el-link
{
.ele-upload-list__item-content-action
.el-link
{
margin-right
:
10px
;
margin-right
:
10px
;
}
}
</
style
>
</
style
>
danger-manage-web/src/components/PeopleChange/ChangPapelTable.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-12-19 15:23:58
* @Date: 2022-12-19 15:23:58
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-12-21 16:56:26
* @LastEditTime: 202
3-02-01 17:24:30
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/Lesson-table.vue
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/Lesson-table.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -16,7 +16,10 @@
...
@@ -16,7 +16,10 @@
@
select-all=
"all"
@
select-all=
"all"
ref=
"multipleTable"
ref=
"multipleTable"
>
>
<el-table-column
type=
"selection"
></el-table-column>
<el-table-column
v-if=
'!disabled'
type=
"selection"
></el-table-column>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"staffName"
>
<el-table-column
label=
"姓名"
align=
"center"
prop=
"staffName"
>
</el-table-column>
</el-table-column>
<el-table-column
<el-table-column
...
@@ -55,10 +58,14 @@ export default {
...
@@ -55,10 +58,14 @@ export default {
selectNameList
:
{
selectNameList
:
{
type
:
Array
,
type
:
Array
,
},
},
disabled
:
{
type
:
Boolean
,
},
},
},
created
()
{
created
()
{
// this.listStaff();
// this.listStaff();
},
},
data
()
{
data
()
{
return
{
return
{
queryParams
:
{
queryParams
:
{
...
@@ -71,6 +78,9 @@ export default {
...
@@ -71,6 +78,9 @@ export default {
nameList
:
[],
nameList
:
[],
loading
:
false
,
loading
:
false
,
};
};
},
mounted
()
{
},
},
methods
:
{
methods
:
{
listStaff
()
{
listStaff
()
{
...
@@ -109,6 +119,11 @@ export default {
...
@@ -109,6 +119,11 @@ export default {
}
}
this
.
$emit
(
"selectAll"
,
this
.
nameList
,
allSelect
);
this
.
$emit
(
"selectAll"
,
this
.
nameList
,
allSelect
);
},
},
selectable
(
row
,
rowIndex
)
{
if
(
!
this
.
disabled
)
{
return
true
;
}
},
// 切换选项
// 切换选项
toggleSelection
(
staffId
,
SeclctFlag
=
false
)
{
toggleSelection
(
staffId
,
SeclctFlag
=
false
)
{
const
item
=
this
.
nameList
.
find
((
item
)
=>
{
const
item
=
this
.
nameList
.
find
((
item
)
=>
{
...
...
danger-manage-web/src/components/PeopleChange/index.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-12-19 17:39:55
* @Date: 2022-12-19 17:39:55
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-13 15:37:54
* @LastEditTime: 2023-0
2-02 10:56:52
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangePapel.vue
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangePapel.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -43,6 +43,7 @@
...
@@ -43,6 +43,7 @@
<ChangPapelTable
<ChangPapelTable
ref=
"table"
ref=
"table"
:selectNameList
.
sync=
"selectNameList"
:selectNameList
.
sync=
"selectNameList"
:disabled=
"disabled"
@
selectOne=
"selectOne"
@
selectOne=
"selectOne"
@
selectAll=
"selectAll"
@
selectAll=
"selectAll"
/>
/>
...
@@ -83,6 +84,9 @@ export default {
...
@@ -83,6 +84,9 @@ export default {
type
:
String
,
type
:
String
,
default
:
null
,
default
:
null
,
},
},
disabled
:{
type
:
Boolean
,
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -143,6 +147,7 @@ export default {
...
@@ -143,6 +147,7 @@ export default {
this
.
$refs
.
table
.
listStaff
();
this
.
$refs
.
table
.
listStaff
();
},
},
deleteName
(
staffId
)
{
deleteName
(
staffId
)
{
if
(
this
.
disabled
)
return
;
const
index
=
this
.
selectNameList
.
findIndex
((
item
)
=>
{
const
index
=
this
.
selectNameList
.
findIndex
((
item
)
=>
{
return
item
.
staffId
==
staffId
;
return
item
.
staffId
==
staffId
;
});
});
...
...
danger-manage-web/src/utils/cesium/dangerArr.js
View file @
272e7779
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
// [114.07708709377842, 38.248960473114614],
// [114.07708709377842, 38.248960473114614],
// ],
// ],
// colorNum: 1,
// colorNum: 1,
// fxlb: "
高
风险区域",
// fxlb: "
重大
风险区域",
// bsjh: "",
// bsjh: "",
// wxy: "锅炉操作",
// wxy: "锅炉操作",
// fxd: "锅炉点火",
// fxd: "锅炉点火",
...
@@ -145,7 +145,7 @@ export const dangerArr = [
...
@@ -145,7 +145,7 @@ export const dangerArr = [
[
114.08164030994841
,
38.25079994477491
],
[
114.08164030994841
,
38.25079994477491
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
colorNum
:
2
,
colorNum
:
2
,
},
},
...
@@ -160,7 +160,7 @@ export const dangerArr = [
...
@@ -160,7 +160,7 @@ export const dangerArr = [
[
114.08037480953207
,
38.249932590119556
],
[
114.08037480953207
,
38.249932590119556
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
,
fxlb
:
"
重大
风险"
,
src
:
[
jzyh
,
jzdhz
,
dxzd
,
dxxl
,
dxbz
,
bxdfdmj
],
src
:
[
jzyh
,
jzdhz
,
dxzd
,
dxxl
,
dxbz
,
bxdfdmj
],
},
},
colorNum
:
1
,
colorNum
:
1
,
...
@@ -174,7 +174,7 @@ export const dangerArr = [
...
@@ -174,7 +174,7 @@ export const dangerArr = [
[
114.08098376391818
,
38.24951885572243
],
[
114.08098376391818
,
38.24951885572243
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -201,7 +201,7 @@ export const dangerArr = [
...
@@ -201,7 +201,7 @@ export const dangerArr = [
[
114.08000932886821
,
38.25149427805925
],
[
114.08000932886821
,
38.25149427805925
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
colorNum
:
2
,
colorNum
:
2
,
},
},
...
@@ -215,7 +215,7 @@ export const dangerArr = [
...
@@ -215,7 +215,7 @@ export const dangerArr = [
[
114.07992247747968
,
38.2490596822873
],
[
114.07992247747968
,
38.2490596822873
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -240,7 +240,7 @@ export const dangerArr = [
...
@@ -240,7 +240,7 @@ export const dangerArr = [
[
114.07896214915758
,
38.2485657203445
],
[
114.07896214915758
,
38.2485657203445
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -253,7 +253,7 @@ export const dangerArr = [
...
@@ -253,7 +253,7 @@ export const dangerArr = [
[
114.07968503158452
,
38.249621022521914
],
[
114.07968503158452
,
38.249621022521914
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
colorNum
:
2
,
colorNum
:
2
,
},
},
...
@@ -266,7 +266,7 @@ export const dangerArr = [
...
@@ -266,7 +266,7 @@ export const dangerArr = [
[
114.07932854865001
,
38.25049906057526
],
[
114.07932854865001
,
38.25049906057526
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -279,7 +279,7 @@ export const dangerArr = [
...
@@ -279,7 +279,7 @@ export const dangerArr = [
[
114.07929156270377
,
38.24989004286162
],
[
114.07929156270377
,
38.24989004286162
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -293,7 +293,7 @@ export const dangerArr = [
...
@@ -293,7 +293,7 @@ export const dangerArr = [
[
114.07818775308438
,
38.24904718615451
],
[
114.07818775308438
,
38.24904718615451
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -308,7 +308,7 @@ export const dangerArr = [
...
@@ -308,7 +308,7 @@ export const dangerArr = [
[
114.07822516569071
,
38.24873709204756
],
[
114.07822516569071
,
38.24873709204756
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -320,7 +320,7 @@ export const dangerArr = [
...
@@ -320,7 +320,7 @@ export const dangerArr = [
[
114.0778791617466
,
38.24978811628299
],
[
114.0778791617466
,
38.24978811628299
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
colorNum
:
2
,
colorNum
:
2
,
},
},
...
@@ -334,7 +334,7 @@ export const dangerArr = [
...
@@ -334,7 +334,7 @@ export const dangerArr = [
[
114.07811902680491
,
38.25084109067064
],
[
114.07811902680491
,
38.25084109067064
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -346,7 +346,7 @@ export const dangerArr = [
...
@@ -346,7 +346,7 @@ export const dangerArr = [
[
114.07816939918499
,
38.250464604821424
],
[
114.07816939918499
,
38.250464604821424
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -362,7 +362,7 @@ export const dangerArr = [
...
@@ -362,7 +362,7 @@ export const dangerArr = [
[
114.07655032796976
,
38.24855692071795
],
[
114.07655032796976
,
38.24855692071795
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
},
},
{
{
...
@@ -375,7 +375,7 @@ export const dangerArr = [
...
@@ -375,7 +375,7 @@ export const dangerArr = [
[
114.07645852296761
,
38.249258052783055
],
[
114.07645852296761
,
38.249258052783055
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -387,7 +387,7 @@ export const dangerArr = [
...
@@ -387,7 +387,7 @@ export const dangerArr = [
[
114.07673177371679
,
38.24999869046041
],
[
114.07673177371679
,
38.24999869046041
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -400,7 +400,7 @@ export const dangerArr = [
...
@@ -400,7 +400,7 @@ export const dangerArr = [
[
114.07638572203807
,
38.250006593486276
],
[
114.07638572203807
,
38.250006593486276
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -413,7 +413,7 @@ export const dangerArr = [
...
@@ -413,7 +413,7 @@ export const dangerArr = [
[
114.0763611632972
,
38.2506105391965
],
[
114.0763611632972
,
38.2506105391965
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -440,7 +440,7 @@ export const dangerArr = [
...
@@ -440,7 +440,7 @@ export const dangerArr = [
[
114.07610863025666
,
38.249559594773935
],
[
114.07610863025666
,
38.249559594773935
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
},
},
{
{
...
@@ -452,7 +452,7 @@ export const dangerArr = [
...
@@ -452,7 +452,7 @@ export const dangerArr = [
[
114.07629629633044
,
38.249994075703896
],
[
114.07629629633044
,
38.249994075703896
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -479,7 +479,7 @@ export const dangerArr = [
...
@@ -479,7 +479,7 @@ export const dangerArr = [
[
114.07614690640786
,
38.250982027231906
],
[
114.07614690640786
,
38.250982027231906
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -492,7 +492,7 @@ export const dangerArr = [
...
@@ -492,7 +492,7 @@ export const dangerArr = [
[
114.07506815524074
,
38.24935807751058
],
[
114.07506815524074
,
38.24935807751058
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -505,7 +505,7 @@ export const dangerArr = [
...
@@ -505,7 +505,7 @@ export const dangerArr = [
[
114.07575424777615
,
38.25022009521355
],
[
114.07575424777615
,
38.25022009521355
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -518,7 +518,7 @@ export const dangerArr = [
...
@@ -518,7 +518,7 @@ export const dangerArr = [
[
114.07569321404614
,
38.25050557141559
],
[
114.07569321404614
,
38.25050557141559
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -531,7 +531,7 @@ export const dangerArr = [
...
@@ -531,7 +531,7 @@ export const dangerArr = [
[
114.07533109169464
,
38.25112532353275
],
[
114.07533109169464
,
38.25112532353275
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -544,7 +544,7 @@ export const dangerArr = [
...
@@ -544,7 +544,7 @@ export const dangerArr = [
[
114.07506400522227
,
38.2498509809399
],
[
114.07506400522227
,
38.2498509809399
],
],
],
data
:
{
data
:
{
fxlb
:
"较
高
风险"
fxlb
:
"较
大
风险"
},
},
colorNum
:
2
,
colorNum
:
2
,
},
},
...
@@ -557,7 +557,7 @@ export const dangerArr = [
...
@@ -557,7 +557,7 @@ export const dangerArr = [
[
114.07507104315593
,
38.249669088954406
],
[
114.07507104315593
,
38.249669088954406
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -571,7 +571,7 @@ export const dangerArr = [
...
@@ -571,7 +571,7 @@ export const dangerArr = [
[
114.07329016901807
,
38.24975956466659
],
[
114.07329016901807
,
38.24975956466659
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
},
},
{
{
...
@@ -583,7 +583,7 @@ export const dangerArr = [
...
@@ -583,7 +583,7 @@ export const dangerArr = [
[
114.07449942174725
,
38.25005976641145
],
[
114.07449942174725
,
38.25005976641145
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
@@ -596,7 +596,7 @@ export const dangerArr = [
...
@@ -596,7 +596,7 @@ export const dangerArr = [
[
114.07409377782558
,
38.25057015884229
],
[
114.07409377782558
,
38.25057015884229
],
],
],
data
:
{
data
:
{
fxlb
:
"
高
风险"
fxlb
:
"
重大
风险"
},
},
colorNum
:
1
,
colorNum
:
1
,
},
},
...
...
danger-manage-web/src/views/dangerScale/profile/DangerTips.vue
0 → 100644
View file @
272e7779
<!--
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2023-02-01 09:37:02
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-02-01 09:59:55
* @FilePath: /danger-manage-web/src/views/dangerScale/profile/tiops.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<
template
>
<div
class=
"danger-tips"
>
<!--
<div>
管道压力
</div>
-->
<div
class=
"hasColorBox"
:style=
"
{ color: dangerColor['1'] }">
<div
:style=
"
{ backgroundColor: dangerColor['1'] }">
</div>
<span>
重大风险
</span>
</div>
<div
class=
"hasColorBox"
:style=
"
{ color: dangerColor[`2`] }">
<div
:style=
"
{ backgroundColor: dangerColor[`2`] }">
</div>
<span>
较大风险
</span>
</div>
<div
class=
"hasColorBox"
:style=
"
{ color: dangerColor[`3`] }">
<div
:style=
"
{ backgroundColor: dangerColor[`3`] }">
</div>
<span>
一般风险
</span>
</div>
<div
class=
"hasColorBox"
:style=
"
{ color: dangerColor[`4`] }">
<div
:style=
"
{ backgroundColor: dangerColor[`4`] }">
</div>
<span>
低风险
</span>
</div>
</div>
</
template
>
<
script
>
export
default
{
name
:
""
,
data
()
{
return
{
dangerColor
:
{
1
:
"red"
,
2
:
"orange"
,
3
:
"yellow"
,
4
:
"blue"
,
},
};
},
methods
:
{},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.danger-tips
{
position
:
absolute
;
color
:
#fff
;
left
:
10px
;
top
:
10px
;
padding
:
1px
;
padding-left
:
10px
;
width
:
150px
;
// background: rgba(6, 29, 51, 0.2);
.hasColorBox
{
// border: 1px solid #053b6a;
padding
:
2px
5px
;
margin-bottom
:
5px
;
position
:relative
;
&
>
div
{
display
:
inline-block
;
width
:
50px
;
height
:
20px
;
margin-right
:
10px
;
}
&
>
span
{
position
:absolute
;
display
:
inline-block
;
width
:
100px
;
}
}
}
</
style
>
danger-manage-web/src/views/dangerScale/profile/index.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-06-16 15:03:40
* @Date: 2022-06-16 15:03:40
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-10-22 10:39:48
* @LastEditTime: 202
3-02-01 09:48:47
* @FilePath: /danger-manage-web/src/views/bigwindow/index.vue
* @FilePath: /danger-manage-web/src/views/bigwindow/index.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -20,13 +20,14 @@
...
@@ -20,13 +20,14 @@
>
>
</div>
-->
</div>
-->
<div
id=
"mapbox"
></div>
<div
id=
"mapbox"
></div>
<DangerTips
/>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
CreateCesium
,
{
DEVICE_PIC_TYPE
}
from
"@/utils/cesium/cesiumClass.js"
;
import
CreateCesium
,
{
DEVICE_PIC_TYPE
}
from
"@/utils/cesium/cesiumClass.js"
;
import
{
dangerArr
}
from
"@/utils/cesium/dangerArr.js"
;
import
{
dangerArr
}
from
"@/utils/cesium/dangerArr.js"
;
import
DangerTips
from
"./DangerTips.vue"
;
import
Video
from
"@/components/bigWindow/video"
;
import
Video
from
"@/components/bigWindow/video"
;
import
Null
from
"@/components/bigWindow/Null"
;
import
Null
from
"@/components/bigWindow/Null"
;
import
Danger
from
"@/components/bigWindow/Danger"
;
import
Danger
from
"@/components/bigWindow/Danger"
;
...
@@ -42,6 +43,7 @@ export default {
...
@@ -42,6 +43,7 @@ export default {
name
:
"profile"
,
name
:
"profile"
,
components
:
{
components
:
{
Editor
,
Editor
,
DangerTips
,
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -249,6 +251,7 @@ export default {
...
@@ -249,6 +251,7 @@ export default {
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.big-window
{
.big-window
{
width
:
100%
;
width
:
100%
;
position
:relative
;
// height: calc(100vh - 84px);
// height: calc(100vh - 84px);
height
:
calc
(
100vh
-
50px
);
height
:
calc
(
100vh
-
50px
);
#mapbox
{
#mapbox
{
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/AddQuestion.vue
View file @
272e7779
...
@@ -11,9 +11,15 @@
...
@@ -11,9 +11,15 @@
size=
"mini"
size=
"mini"
@
input=
"topicTypeChange"
@
input=
"topicTypeChange"
>
>
<el-radio-button
:label=
"1"
>
单选
</el-radio-button>
<el-radio-button
:disabled=
"checkLock"
:label=
"1"
<el-radio-button
:label=
"2"
>
多选
</el-radio-button>
>
单选
</el-radio-button
<el-radio-button
:label=
"3"
>
判断
</el-radio-button>
>
<el-radio-button
:disabled=
"checkLock"
:label=
"2"
>
多选
</el-radio-button
>
<el-radio-button
:disabled=
"checkLock"
:label=
"3"
>
判断
</el-radio-button
>
</el-radio-group>
</el-radio-group>
</div>
</div>
...
@@ -29,7 +35,7 @@
...
@@ -29,7 +35,7 @@
:rules=
"
{
:rules=
"
{
required: true,
required: true,
message: '必须输入题目内容',
message: '必须输入题目内容',
trigger:
'blur'
,
trigger:
['blur', 'change']
,
}"
}"
>
>
<el-input
<el-input
...
@@ -38,6 +44,7 @@
...
@@ -38,6 +44,7 @@
resize=
"none"
resize=
"none"
rows=
"4"
rows=
"4"
v-model=
"form.topicTitle"
v-model=
"form.topicTitle"
:disabled=
"checkLock"
>
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -55,7 +62,7 @@
...
@@ -55,7 +62,7 @@
:rules=
"
{
:rules=
"
{
required: true,
required: true,
message: '选项内容不能为空不能为空',
message: '选项内容不能为空不能为空',
trigger:
'change'
,
trigger:
['blur', 'change']
,
}"
}"
>
>
<div
class=
"add-select flex"
>
<div
class=
"add-select flex"
>
...
@@ -65,6 +72,7 @@
...
@@ -65,6 +72,7 @@
style=
"flex: 1; margin-right: 10px"
style=
"flex: 1; margin-right: 10px"
rows=
"2"
rows=
"2"
v-model=
"question.value"
v-model=
"question.value"
:disabled=
"checkLock"
></el-input>
></el-input>
<div
class=
"flex algin-items"
>
<div
class=
"flex algin-items"
>
<div
<div
...
@@ -79,8 +87,9 @@
...
@@ -79,8 +87,9 @@
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
v-if=
"index > 0"
v-if=
"index > 0
&& form.topicType != 3
"
@
click
.
prevent=
"removeDomain(question)"
@
click
.
prevent=
"removeDomain(question)"
:disabled=
"checkLock"
>
删除
</el-button
>
删除
</el-button
>
>
</div>
</div>
...
@@ -111,7 +120,11 @@
...
@@ -111,7 +120,11 @@
设为正确答案
设为正确答案
</div>
-->
</div>
-->
<div
style=
"padding-left: 30px"
v-if=
"form.topicType != 3"
>
<div
style=
"padding-left: 30px"
v-if=
"form.topicType != 3"
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
<el-button
size=
"mini"
:disabled=
"checkLock"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
>
新增选项
</el-button
>
新增选项
</el-button
>
>
</div>
</div>
...
@@ -146,6 +159,10 @@ export default {
...
@@ -146,6 +159,10 @@ export default {
topicId
:
{
topicId
:
{
type
:
Number
,
type
:
Number
,
},
},
// 如果是查看,就禁止修改
checkLock
:
{
type
:
Boolean
,
},
},
},
components
:
{},
components
:
{},
data
()
{
data
()
{
...
@@ -171,7 +188,7 @@ export default {
...
@@ -171,7 +188,7 @@ export default {
console
.
log
(
res
.
data
);
console
.
log
(
res
.
data
);
const
data
=
res
.
data
;
const
data
=
res
.
data
;
this
.
form
=
{
this
.
form
=
{
topicType
:
data
.
topicType
,
topicType
:
data
.
topicType
,
topicTitle
:
data
.
topicTitle
,
topicTitle
:
data
.
topicTitle
,
questions
:
JSON
.
parse
(
data
.
topicOption
),
questions
:
JSON
.
parse
(
data
.
topicOption
),
};
};
...
@@ -232,6 +249,7 @@ export default {
...
@@ -232,6 +249,7 @@ export default {
}
}
},
},
rightAnswerClick
(
index
)
{
rightAnswerClick
(
index
)
{
if
(
this
.
checkLock
)
return
;
if
(
this
.
form
.
topicType
===
2
)
{
if
(
this
.
form
.
topicType
===
2
)
{
const
ind
=
this
.
answerNum
.
indexOf
(
index
);
const
ind
=
this
.
answerNum
.
indexOf
(
index
);
if
(
ind
<
0
)
{
if
(
ind
<
0
)
{
...
@@ -250,6 +268,8 @@ export default {
...
@@ -250,6 +268,8 @@ export default {
},
},
// 删除选项
// 删除选项
removeDomain
(
question
)
{
removeDomain
(
question
)
{
if
(
this
.
checkLock
)
return
;
const
index
=
this
.
form
.
questions
.
indexOf
(
question
);
const
index
=
this
.
form
.
questions
.
indexOf
(
question
);
console
.
log
(
index
);
console
.
log
(
index
);
// 如果是正确答案,就让正确答案清空
// 如果是正确答案,就让正确答案清空
...
@@ -279,7 +299,7 @@ export default {
...
@@ -279,7 +299,7 @@ export default {
},
},
save
(
num
=
2
)
{
save
(
num
=
2
)
{
return
new
Promise
((
resove
)
=>
{
return
new
Promise
((
resove
)
=>
{
if
(
this
.
answerNum
.
length
<=
0
)
{
if
(
this
.
answerNum
.
length
<=
0
)
{
this
.
$message
({
this
.
$message
({
message
:
"警告,请设置一个正确答案"
,
message
:
"警告,请设置一个正确答案"
,
type
:
"warning"
,
type
:
"warning"
,
...
@@ -292,8 +312,8 @@ export default {
...
@@ -292,8 +312,8 @@ export default {
data
.
topicTitle
=
this
.
form
.
topicTitle
;
data
.
topicTitle
=
this
.
form
.
topicTitle
;
data
.
topicOption
=
JSON
.
stringify
(
this
.
form
.
questions
);
data
.
topicOption
=
JSON
.
stringify
(
this
.
form
.
questions
);
data
.
answer
=
JSON
.
stringify
(
this
.
answerNum
);
data
.
answer
=
JSON
.
stringify
(
this
.
answerNum
);
data
.
topicType
=
this
.
form
.
topicType
;
data
.
topicType
=
this
.
form
.
topicType
;
console
.
log
(
data
)
console
.
log
(
data
)
;
this
.
addQuestion
(
data
).
then
((
res
)
=>
{
this
.
addQuestion
(
data
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
// 把修改的这个归位,变成正常添加
// 把修改的这个归位,变成正常添加
...
@@ -323,7 +343,7 @@ export default {
...
@@ -323,7 +343,7 @@ export default {
});
});
},
},
reset
()
{
reset
()
{
const
topicType
=
this
.
form
.
topicType
const
topicType
=
this
.
form
.
topicType
;
this
.
form
=
{
this
.
form
=
{
topicType
,
topicType
,
topicTitle
:
""
,
topicTitle
:
""
,
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/ChangeQuestion.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-12-27 09:30:19
* @Date: 2022-12-27 09:30:19
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-12-28 10:29:18
* @LastEditTime: 202
3-02-01 16:15:10
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangeQuestion.vue
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangeQuestion.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -193,7 +193,8 @@ export default {
...
@@ -193,7 +193,8 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
saveAndNext
()
{
save
(
num
=
2
)
{
const
topicInfos
=
this
.
list
const
topicInfos
=
this
.
list
.
filter
((
item
)
=>
item
.
checked
)
.
filter
((
item
)
=>
item
.
checked
)
.
map
((
item
)
=>
{
.
map
((
item
)
=>
{
...
@@ -202,18 +203,20 @@ export default {
...
@@ -202,18 +203,20 @@ export default {
quan
:
item
.
changeNum
,
quan
:
item
.
changeNum
,
};
};
});
});
console
.
log
(
this
.
courseId
,
topicInfos
);
console
.
log
(
this
.
courseId
,
topicInfos
);
const
data
=
{
courseId
:
this
.
courseId
,
topicInfos
};
const
data
=
{
courseId
:
this
.
courseId
,
topicInfos
};
console
.
log
(
data
);
console
.
log
(
data
);
bachAddTopic
(
data
).
then
((
res
)
=>
{
bachAddTopic
(
data
).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$parent
.
$parent
.
componentsNumChange
(
2
);
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
$parent
.
getList
();
this
.
$parent
.
$parent
.
$parent
.
getList
();
}
}
});
});
},
},
saveAndNext
(){
this
.
save
(
3
)
},
resetClick
()
{},
resetClick
()
{},
search
()
{
search
()
{
this
.
getList
();
this
.
getList
();
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/Dia.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 10:38:49
* @Date: 2022-09-22 10:38:49
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-13 15:59:47
* @LastEditTime: 2023-0
2-01 16:16:44
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/addLesson.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/addLesson.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
:is=
"currentComponent"
:is=
"currentComponent"
:courseId
.
sync=
"courseId"
:courseId
.
sync=
"courseId"
:topicId
.
sync=
"topicId"
:topicId
.
sync=
"topicId"
:checkLock=
"checkLock"
ref=
"current"
ref=
"current"
></component>
></component>
</transition>
</transition>
...
@@ -32,27 +33,31 @@
...
@@ -32,27 +33,31 @@
<QuestionList/>
-->
<QuestionList/>
-->
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
v-if=
"!checkLock"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-if=
"this.componentsNum == 2"
v-if=
"this.componentsNum == 2
&& !checkLock
"
@
click=
"componentsNumChange(4)"
@
click=
"componentsNumChange(4)"
>
从题库选择
</el-button
>
从题库选择
</el-button
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-if=
"this.componentsNum ==
1 || this.componentsNum ==
3"
v-if=
"this.componentsNum ==
4 ||this.componentsNum==
3"
@
click=
"
save
"
@
click=
"
componentsNumChange(2)
"
>
保存
</el-button
>
返回题目列表
</el-button
>
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-if=
"this.componentsNum == 4"
v-if=
"
@
click=
"componentsNumChange(2)"
this.componentsNum == 1 ||
>
返回题目列表
</el-button
this.componentsNum == 3 ||
this.componentsNum == 4
"
@
click=
"save"
>
保存
</el-button
>
>
<el-button
type=
"primary"
@
click=
"saveAndNext"
>
{{
<el-button
type=
"primary"
@
click=
"saveAndNext"
v-if=
"!checkLock"
>
{{
saveNextText
saveNextText
}}
</el-button>
}}
</el-button>
<el-button
<el-button
...
@@ -63,6 +68,16 @@
...
@@ -63,6 +68,16 @@
>
>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
v-else
>
<el-button
type=
"primary"
v-if=
"this.componentsNum == 3 && checkLock"
@
click=
"componentsNumChange(2)"
>
返回题目列表
</el-button
>
<el-button
type=
"primary"
@
click=
"dialogCancel"
>
{{
"确认"
}}
</el-button>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
...
@@ -72,7 +87,6 @@ import AddQuestion from "./AddQuestion";
...
@@ -72,7 +87,6 @@ import AddQuestion from "./AddQuestion";
import
QuestionList
from
"./QuestionList"
;
import
QuestionList
from
"./QuestionList"
;
import
ChangeQuestion
from
"./ChangeQuestion"
;
import
ChangeQuestion
from
"./ChangeQuestion"
;
export
default
{
export
default
{
name
:
"AnswerLesson"
,
name
:
"AnswerLesson"
,
props
:
{
props
:
{
...
@@ -87,6 +101,9 @@ export default {
...
@@ -87,6 +101,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
// components: {
// components: {
// Lesson,
// Lesson,
...
@@ -116,14 +133,14 @@ export default {
...
@@ -116,14 +133,14 @@ export default {
this
.
currentComponent
=
QuestionList
;
this
.
currentComponent
=
QuestionList
;
this
.
title
=
"题目列表"
;
this
.
title
=
"题目列表"
;
}
else
if
(
num
===
3
)
{
}
else
if
(
num
===
3
)
{
this
.
currentComponent
=
AddQuestion
;
this
.
currentComponent
=
AddQuestion
;
if
(
this
.
topicId
)
{
if
(
this
.
topicId
)
{
this
.
title
=
"修改题目"
;
this
.
title
=
"修改题目"
;
}
else
{
}
else
{
this
.
title
=
"新增题目"
;
this
.
title
=
"新增题目"
;
}
}
}
else
if
(
num
==
4
)
{
}
else
if
(
num
==
4
)
{
this
.
currentComponent
=
ChangeQuestion
;
this
.
currentComponent
=
ChangeQuestion
;
this
.
title
=
"从题库选题"
;
this
.
title
=
"从题库选题"
;
}
}
...
@@ -167,6 +184,8 @@ export default {
...
@@ -167,6 +184,8 @@ export default {
this
.
topicId
=
null
;
this
.
topicId
=
null
;
}
}
this
.
$emit
(
"update:visible"
,
false
);
this
.
$emit
(
"update:visible"
,
false
);
// 关闭的时候归位
this
.
$emit
(
"update:checkLock"
,
false
);
},
},
// 把ID改变了
// 把ID改变了
changeCourseId
(
courseId
)
{
changeCourseId
(
courseId
)
{
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/Lesson.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 10:59:44
* @Date: 2022-09-22 10:59:44
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-04 17:47:53
* @LastEditTime: 2023-0
2-01 15:21:15
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/Lession.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/Lession.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
>
>
<div
class=
"top flex"
>
<div
class=
"top flex"
>
<el-form-item
label=
"课程标题"
prop=
"courseName"
>
<el-form-item
label=
"课程标题"
prop=
"courseName"
>
<el-input
style=
"width: 400px"
v-model=
"form.courseName"
></el-input>
<el-input
style=
"width: 400px"
v-model=
"form.courseName"
:disabled=
"checkLock"
></el-input>
</el-form-item>
</el-form-item>
<!--
<el-form-item
label=
"培训计划"
prop=
"courseType"
>
-->
<!--
<el-form-item
label=
"培训计划"
prop=
"courseType"
>
-->
...
@@ -37,14 +37,13 @@
...
@@ -37,14 +37,13 @@
<!--
</el-form-item>
-->
<!--
</el-form-item>
-->
</div>
</div>
<div
class=
"flex"
>
<div
class=
"flex"
>
<el-form-item
label=
"培训计划"
prop=
"courseType"
>
<el-form-item
label=
"培训计划"
prop=
"courseType"
>
<el-select
<el-select
v-model=
"form.courseType"
v-model=
"form.courseType"
placeholder=
"请选择培训计划"
placeholder=
"请选择培训计划"
clearable
clearable
size=
"small"
size=
"small"
:disabled=
"checkLock"
>
>
<el-option
<el-option
v-for=
"course in courseOptions"
v-for=
"course in courseOptions"
...
@@ -54,8 +53,18 @@
...
@@ -54,8 +53,18 @@
/>
/>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
<el-form-item
label=
"培训时长"
prop=
"duration"
style=
"margin-left: 55px"
>
<el-form-item
<el-input
style=
"width: 220px"
placeholder=
"分钟"
type=
"number"
v-model=
"form.duration"
></el-input>
label=
"培训时长"
prop=
"duration"
style=
"margin-left: 55px"
>
<el-input
style=
"width: 220px"
placeholder=
"分钟"
type=
"number"
v-model=
"form.duration"
:disabled=
"checkLock"
></el-input>
</el-form-item>
</el-form-item>
</div>
</div>
<div
class=
"flex"
>
<div
class=
"flex"
>
...
@@ -67,6 +76,7 @@
...
@@ -67,6 +76,7 @@
type=
"datetime"
type=
"datetime"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
default-time=
"00:00:00"
default-time=
"00:00:00"
:disabled=
"checkLock"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间"
prop=
"testEndTime"
>
<el-form-item
label=
"结束时间"
prop=
"testEndTime"
>
...
@@ -76,12 +86,13 @@
...
@@ -76,12 +86,13 @@
type=
"datetime"
type=
"datetime"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
default-time=
"00:00:00"
default-time=
"00:00:00"
:disabled=
"checkLock"
/>
/>
</el-form-item>
</el-form-item>
</div>
</div>
<!--
</div>
-->
<!--
</div>
-->
<el-form-item
label=
"课程内容"
prop=
"courseConent"
>
<el-form-item
label=
"课程内容"
prop=
"courseConent"
>
<Editor
v-model=
"form.courseConent"
:min-height=
"192"
/>
<Editor
v-model=
"form.courseConent"
:min-height=
"192"
:readOnly=
"checkLock"
/>
<el-input
<el-input
v-show=
"false"
v-show=
"false"
disabled
disabled
...
@@ -98,6 +109,7 @@
...
@@ -98,6 +109,7 @@
:fileArr=
"fileListVideo"
:fileArr=
"fileListVideo"
:fileSize=
"500"
:fileSize=
"500"
:fileType=
"['mp4']"
:fileType=
"['mp4']"
:disabled=
"checkLock"
/>
/>
<el-input
v-show=
"false"
disabled
v-model=
"form.video"
></el-input>
<el-input
v-show=
"false"
disabled
v-model=
"form.video"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -108,6 +120,7 @@
...
@@ -108,6 +120,7 @@
@
remove=
"listRemoveFile"
@
remove=
"listRemoveFile"
:fileArr=
"fileListFile"
:fileArr=
"fileListFile"
:fileType=
"fileType"
:fileType=
"fileType"
:disabled=
"checkLock"
/>
/>
<el-input
v-show=
"false"
disabled
v-model=
"form.enclosure"
></el-input>
<el-input
v-show=
"false"
disabled
v-model=
"form.enclosure"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -133,6 +146,9 @@ export default {
...
@@ -133,6 +146,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:{
type
:
Boolean
,
}
},
},
components
:
{
components
:
{
Editor
,
Editor
,
...
@@ -204,8 +220,16 @@ export default {
...
@@ -204,8 +220,16 @@ export default {
getLessonById
(
this
.
courseId
).
then
((
res
)
=>
{
getLessonById
(
this
.
courseId
).
then
((
res
)
=>
{
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
const
data
=
res
.
data
;
const
data
=
res
.
data
;
const
{
courseName
,
courseType
,
courseConent
,
video
,
enclosure
,
duration
,
testStartTime
,
testEndTime
}
=
const
{
data
;
courseName
,
courseType
,
courseConent
,
video
,
enclosure
,
duration
,
testStartTime
,
testEndTime
,
}
=
data
;
this
.
form
=
{
this
.
form
=
{
courseName
,
courseName
,
courseType
,
courseType
,
...
@@ -214,21 +238,22 @@ export default {
...
@@ -214,21 +238,22 @@ export default {
enclosure
,
enclosure
,
duration
,
duration
,
testStartTime
,
testStartTime
,
testEndTime
testEndTime
,
};
};
this
.
fileListVideo
=
[
console
.
log
(
'video'
,
video
)
this
.
fileListVideo
=
video
?
[
{
{
name
:
courseName
+
"视频"
,
name
:
courseName
+
"视频"
,
url
:
uploadfile
,
url
:
uploadfile
,
},
},
];
]
:[]
;
this
.
fileListFile
=
[
this
.
fileListFile
=
[
{
{
name
:
courseName
+
"附件"
,
name
:
courseName
+
"附件"
,
url
:
uploadfile
,
url
:
uploadfile
,
},
},
];
];
console
.
log
(
"--"
,
this
.
fileListFile
);
console
.
log
(
"--"
,
this
.
fileListFile
);
}
}
});
});
},
},
...
@@ -280,14 +305,18 @@ export default {
...
@@ -280,14 +305,18 @@ export default {
message
:
"保存课程成功"
,
message
:
"保存课程成功"
,
type
:
"success"
,
type
:
"success"
,
});
});
// 隐藏dia
this
.
$parent
.
$parent
.
dialogCancel
()
}
else
if
(
num
==
3
)
{
}
else
if
(
num
==
3
)
{
this
.
$message
({
this
.
$message
({
message
:
"保存课程成功,请开始录入题目"
,
message
:
"保存课程成功,请开始录入题目"
,
type
:
"success"
,
type
:
"success"
,
});
});
}
// 跳转动态路由,并且把ID改变添加用
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
changeCourseId
(
courseId
);
this
.
$parent
.
$parent
.
changeCourseId
(
courseId
);
}
this
.
$parent
.
$parent
.
$parent
.
getList
();
this
.
$parent
.
$parent
.
$parent
.
getList
();
return
true
;
return
true
;
...
@@ -307,7 +336,7 @@ export default {
...
@@ -307,7 +336,7 @@ export default {
.form-wrapper
{
.form-wrapper
{
padding-top
:
22px
;
padding-top
:
22px
;
width
:
100%
;
width
:
100%
;
height
:
6
5
0px
;
height
:
6
8
0px
;
overflow
:
hidden
;
overflow
:
hidden
;
// padding-bottom: 10px;
// padding-bottom: 10px;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/components/QuestionList.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 17:56:05
* @Date: 2022-09-22 17:56:05
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-31 14:03:36
* @LastEditTime: 2023-0
2-02 10:05:15
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -71,12 +71,21 @@
...
@@ -71,12 +71,21 @@
<div
class=
"right"
>
<div
class=
"right"
>
<div>
<div>
<el-button
<el-button
v-if=
"!checkLock"
@
click=
"edit(item.topicId)"
@
click=
"edit(item.topicId)"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
type=
"text"
type=
"text"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"checkLock"
@
click=
"edit(item.topicId)"
icon=
"el-icon-edit"
type=
"text"
>
查看
</el-button
>
<el-button
v-if=
"!checkLock"
@
click=
"deleteLesson(item.topicId)"
@
click=
"deleteLesson(item.topicId)"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
type=
"text"
type=
"text"
...
@@ -98,6 +107,7 @@
...
@@ -98,6 +107,7 @@
v-model=
"bottomFrom.singleChoiceScore"
v-model=
"bottomFrom.singleChoiceScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -109,6 +119,7 @@
...
@@ -109,6 +119,7 @@
v-model=
"bottomFrom.multipleChoiceScore"
v-model=
"bottomFrom.multipleChoiceScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -121,6 +132,7 @@
...
@@ -121,6 +132,7 @@
v-model=
"bottomFrom.judgmentScore"
v-model=
"bottomFrom.judgmentScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -133,6 +145,7 @@
...
@@ -133,6 +145,7 @@
v-model=
"bottomFrom.qualifiedNum"
v-model=
"bottomFrom.qualifiedNum"
style=
"width: 60px"
style=
"width: 60px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
为合格
</div>
<div>
为合格
</div>
...
@@ -144,6 +157,7 @@
...
@@ -144,6 +157,7 @@
icon=
"el-icon-check"
icon=
"el-icon-check"
size=
"mini"
size=
"mini"
type=
"success"
type=
"success"
:disabled=
"checkLock"
>
保存
</el-button
>
保存
</el-button
>
>
</div>
</div>
...
@@ -164,6 +178,9 @@ export default {
...
@@ -164,6 +178,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
components
:
{},
components
:
{},
data
()
{
data
()
{
...
...
danger-manage-web/src/views/educationPlanExam/lessonsProgram/index.vue
View file @
272e7779
...
@@ -131,11 +131,13 @@
...
@@ -131,11 +131,13 @@
prop=
"topicNum"
prop=
"topicNum"
width=
"180"
width=
"180"
>
>
<
template
v-slot=
"{ row: { topicNum, courseId } }"
>
<
template
v-slot=
"{ row: { topicNum, courseId, status } }"
>
<div
@
click=
"checkQuestion(courseId)"
class=
"timuNum"
>
<span
@
click=
"checkQuestion(courseId, status)"
class=
"timuNum"
>
<div
v-if=
"topicNum > 0"
>
{{
`已录入${topicNum
}
题`
}}
<
/div
>
<span
v-if=
"topicNum > 0"
>
<
div
v
-
else
>
未录入
<
/div
>
{{
status
==
0
?
`已录入${topicNum
}
题`
:
"查看"
}}
<
/div
>
<
/span
>
<
span
v
-
else
>
未录入
<
/span
>
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
...
@@ -153,6 +155,14 @@
...
@@ -153,6 +155,14 @@
@
click
=
"changeLesson(courseId)"
@
click
=
"changeLesson(courseId)"
>
修改
<
/el-butto
n
>
修改
<
/el-butto
n
>
>
<
el
-
button
v
-
if
=
"status == 1"
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"checkLesson(courseId)"
>
详情
<
/el-butto
n
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -165,7 +175,7 @@
...
@@ -165,7 +175,7 @@
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-delete"
icon
=
"el-icon-delete"
@
click
=
"issue
Lesson
(courseId)"
@
click
=
"issue
Dilog
(courseId)"
>
发布
<
/el-butto
n
>
发布
<
/el-butto
n
>
>
<
/template
>
<
/template
>
...
@@ -183,18 +193,68 @@
...
@@ -183,18 +193,68 @@
ref
=
"Dia"
ref
=
"Dia"
:
componentsNum
.
sync
=
"componentsNum"
:
componentsNum
.
sync
=
"componentsNum"
:
courseId
.
sync
=
"courseId"
:
courseId
.
sync
=
"courseId"
:
checkLock
.
sync
=
"checkLock"
:
visible
.
sync
=
"dilogFlag"
:
visible
.
sync
=
"dilogFlag"
/>
/>
<
el
-
dialog
title
=
"发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
div
class
=
"detail flex"
>
<
div
class
=
"detail-item"
>
单选题
<
span
>
{{
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
>
分
/
题
,
共
<
span
>
{{
danxs
}}
<
/spa
n
>
题,计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
多选题
<
span
>
{{
bottomFrom
.
multipleChoiceScore
}}
<
/spa
n
>
分
/
题
,
共
<
span
>
{{
duoxs
}}
<
/span> 题,计<span class="textC">{{
duoxs
*
bottomFrom
.
multipleChoiceScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
判断提
<
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
class
=
"detail-item"
>
一共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
>
道题,总共计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
pds
*
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"issueVisible = false"
>
取
消
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"issueLesson(issueCourseId)"
>
确认发布
<
/el-butto
n
>
<
/span
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
import
{
getQuestion
,
getLessons
,
getLessons
,
getLessonById
,
getLessonById
,
issue
,
issue
,
deleteLesson
,
deleteLesson
,
}
from
"@/api/educationPlanExam/lessonsProgram.js"
;
}
from
"@/api/educationPlanExam/lessonsProgram.js"
;
// 获取培训计划
// 获取培训计划
import
{
getPlanList
}
from
"@/api/educationPlanExam/trainingProgram"
;
import
{
getPlanList
}
from
"@/api/educationPlanExam/trainingProgram"
;
import
{
mapGetters
,
mapMutations
}
from
"vuex"
;
import
{
mapGetters
,
mapMutations
}
from
"vuex"
;
...
@@ -222,18 +282,39 @@ export default {
...
@@ -222,18 +282,39 @@ export default {
courseName
:
null
,
courseName
:
null
,
releaseTime
:
""
,
releaseTime
:
""
,
}
,
}
,
// 表单参数
// 表单参数
form
:
{
}
,
form
:
{
}
,
// 表单校验
// 表单校验
dilogFlag
:
false
,
dilogFlag
:
false
,
// 发布弹框
issueVisible
:
false
,
bottomFrom
:
{
singleChoiceScore
:
0
,
multipleChoiceScore
:
0
,
judgmentScore
:
0
,
qualifiedNum
:
0
,
}
,
issueCourseId
:
null
,
questionList
:
[],
componentsNum
:
1
,
componentsNum
:
1
,
// 点击的id,如果是新增为空
// 点击的id,如果是新增为空
courseId
:
null
,
courseId
:
null
,
// false为编辑,true为查看,查看不允许编辑的时候
checkLock
:
false
,
}
;
}
;
}
,
}
,
computed
:
{
computed
:
{
...
mapGetters
([
"courseOptions"
]),
...
mapGetters
([
"courseOptions"
]),
danxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
1
).
length
;
}
,
duoxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
2
).
length
;
}
,
pds
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
3
).
length
;
}
,
}
,
}
,
created
()
{
created
()
{
this
.
getPlanList
();
this
.
getPlanList
();
...
@@ -275,21 +356,34 @@ export default {
...
@@ -275,21 +356,34 @@ export default {
}
,
}
,
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
checkLock
=
false
;
this
.
$refs
.
Dia
.
title
=
"新增培训课程"
;
this
.
$refs
.
Dia
.
title
=
"新增培训课程"
;
this
.
componentsNum
=
1
;
this
.
componentsNum
=
1
;
this
.
courseId
=
null
;
this
.
courseId
=
null
;
this
.
dilogFlag
=
true
;
this
.
dilogFlag
=
true
;
}
,
}
,
changeLesson
(
courseId
)
{
changeLesson
(
courseId
)
{
this
.
checkLock
=
false
;
this
.
$refs
.
Dia
.
title
=
"修改培训课程"
;
this
.
$refs
.
Dia
.
title
=
"修改培训课程"
;
this
.
componentsNum
=
1
;
this
.
componentsNum
=
1
;
this
.
courseId
=
courseId
;
this
.
courseId
=
courseId
;
this
.
dilogFlag
=
true
;
this
.
dilogFlag
=
true
;
}
,
}
,
checkLesson
(
courseId
)
{
this
.
checkLock
=
true
;
this
.
$refs
.
Dia
.
title
=
"查看培训课程"
;
this
.
componentsNum
=
1
;
this
.
courseId
=
courseId
;
this
.
dilogFlag
=
true
;
}
,
// 直接查看考题
// 直接查看考题
checkQuestion
(
courseId
)
{
checkQuestion
(
courseId
,
status
)
{
// 要查看考题的id
// 要查看考题的id
if
(
status
==
1
)
{
this
.
checkLock
=
true
;
}
this
.
courseId
=
courseId
;
this
.
courseId
=
courseId
;
console
.
log
(
this
.
courseId
);
console
.
log
(
this
.
courseId
);
// 2代表列表组件
// 2代表列表组件
...
@@ -331,9 +425,39 @@ export default {
...
@@ -331,9 +425,39 @@ export default {
}
)
}
)
.
catch
(()
=>
{
}
);
.
catch
(()
=>
{
}
);
}
,
}
,
// 发布弹框
issueDilog
(
courseId
)
{
getQuestion
({
courseId
}
)
.
then
((
res
)
=>
{
this
.
questionList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
topicType
:
item
.
topicType
,
topicId
:
item
.
topicId
,
topicTitle
:
item
.
topicTitle
,
}
;
}
);
}
)
.
then
((
res
)
=>
{
return
getLessonById
(
courseId
);
}
)
.
then
((
res
)
=>
{
this
.
bottomFrom
=
{
singleChoiceScore
:
res
.
data
.
singleChoiceScore
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
,
judgmentScore
:
res
.
data
.
judgmentScore
,
qualifiedNum
:
res
.
data
.
qualifiedNum
,
}
;
}
)
.
then
((
res
)
=>
{
this
.
issueVisible
=
true
;
this
.
issueCourseId
=
courseId
;
}
);
//
}
,
// 发布
// 发布
issueLesson
(
courseId
)
{
issueLesson
(
courseId
)
{
this
.
$confirm
(
"
请确定发布
"
,
{
this
.
$confirm
(
"
确定要发布吗
"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
type
:
"warning"
,
...
@@ -343,14 +467,14 @@ export default {
...
@@ -343,14 +467,14 @@ export default {
return
getLessonById
(
courseId
);
return
getLessonById
(
courseId
);
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
//
if (
res
.
data
.
singleChoiceScore
>
0
&&
// res.data.singleChoiceScore >=
0 &&
res
.
data
.
multipleChoiceScore
>
0
&&
// res.data.multipleChoiceScore >=
0 &&
res
.
data
.
judgmentScore
>
0
&&
// res.data.judgmentScore >=
0 &&
res
.
data
.
qualifiedNum
>
0
// res.data.qualifiedNum >=
0
)
{
//
)
{
return
true
;
return
true
;
}
//
}
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
...
@@ -370,6 +494,7 @@ export default {
...
@@ -370,6 +494,7 @@ export default {
type
:
"success"
,
type
:
"success"
,
}
);
}
);
this
.
getList
();
this
.
getList
();
this
.
issueVisible
=
false
;
}
}
}
)
}
)
.
catch
(()
=>
{
}
);
.
catch
(()
=>
{
}
);
...
@@ -469,4 +594,17 @@ export default {
...
@@ -469,4 +594,17 @@ export default {
::
v
-
deep
.
el
-
dialog
{
::
v
-
deep
.
el
-
dialog
{
margin
-
top
:
15
vh
!
important
;
margin
-
top
:
15
vh
!
important
;
}
}
.
detail
{
// position: absolute;
// bottom: -20px;
// left: 10px;
.
textC
{
font
-
weight
:
800
;
font
-
size
:
18
px
;
}
.
detail
-
item
{
margin
-
right
:
20
px
;
color
:
red
;
}
}
<
/style
>
<
/style
>
danger-manage-web/src/views/educationPlanExam/myLessons/CheckLesson/index.vue
View file @
272e7779
...
@@ -305,6 +305,12 @@ export default {
...
@@ -305,6 +305,12 @@ export default {
};
};
xhr
.
send
();
xhr
.
send
();
},
},
openXslx
(
url
,
name
)
{
// window.open(`https://view.xdocin.com/view?src=${url}`);
console
.
log
(
url
)
this
.
ky
=
`https://view.xdocin.com/view?src=
${
url
}
`
;
this
.
iframeVisible
=
true
;
},
},
},
};
};
</
script
>
</
script
>
...
...
danger-manage-web/src/views/educationPlanExam/questionBank/components/AddQuestion.vue
View file @
272e7779
...
@@ -81,7 +81,7 @@
...
@@ -81,7 +81,7 @@
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
v-if=
"index > 0"
v-if=
"index > 0
&& form.topicType != 3
"
@
click
.
prevent=
"removeDomain(question)"
@
click
.
prevent=
"removeDomain(question)"
>
删除
</el-button
>
删除
</el-button
>
>
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/AddQuestion.vue
View file @
272e7779
...
@@ -11,9 +11,15 @@
...
@@ -11,9 +11,15 @@
size=
"mini"
size=
"mini"
@
input=
"topicTypeChange"
@
input=
"topicTypeChange"
>
>
<el-radio-button
:label=
"1"
>
单选
</el-radio-button>
<el-radio-button
:disabled=
"checkLock"
:label=
"1"
<el-radio-button
:label=
"2"
>
多选
</el-radio-button>
>
单选
</el-radio-button
<el-radio-button
:label=
"3"
>
判断
</el-radio-button>
>
<el-radio-button
:disabled=
"checkLock"
:label=
"2"
>
多选
</el-radio-button
>
<el-radio-button
:disabled=
"checkLock"
:label=
"3"
>
判断
</el-radio-button
>
</el-radio-group>
</el-radio-group>
</div>
</div>
<div
class=
"right"
>
{{
courseName
}}
</div>
<div
class=
"right"
>
{{
courseName
}}
</div>
...
@@ -28,7 +34,7 @@
...
@@ -28,7 +34,7 @@
:rules=
"
{
:rules=
"
{
required: true,
required: true,
message: '必须输入题目内容',
message: '必须输入题目内容',
trigger:
'blur'
,
trigger:
['blur', 'change']
,
}"
}"
>
>
<el-input
<el-input
...
@@ -37,6 +43,7 @@
...
@@ -37,6 +43,7 @@
resize=
"none"
resize=
"none"
rows=
"4"
rows=
"4"
v-model=
"form.topicTitle"
v-model=
"form.topicTitle"
:disabled=
"checkLock"
>
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
...
@@ -54,7 +61,7 @@
...
@@ -54,7 +61,7 @@
:rules=
"
{
:rules=
"
{
required: true,
required: true,
message: '第一项不能为空不能为空',
message: '第一项不能为空不能为空',
trigger:
'blur'
,
trigger:
['blur', 'change']
,
}"
}"
>
>
<div
class=
"add-select flex"
>
<div
class=
"add-select flex"
>
...
@@ -64,6 +71,7 @@
...
@@ -64,6 +71,7 @@
style=
"flex: 1; margin-right: 10px"
style=
"flex: 1; margin-right: 10px"
rows=
"2"
rows=
"2"
v-model=
"question.value"
v-model=
"question.value"
:disabled=
"checkLock"
></el-input>
></el-input>
<div
class=
"flex algin-items"
>
<div
class=
"flex algin-items"
>
<div
<div
...
@@ -76,8 +84,9 @@
...
@@ -76,8 +84,9 @@
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
v-if=
"index > 0"
v-if=
"index > 0
&& form.topicType != 3
"
@
click
.
prevent=
"removeDomain(question)"
@
click
.
prevent=
"removeDomain(question)"
:disabled=
"checkLock"
>
删除
</el-button
>
删除
</el-button
>
>
</div>
</div>
...
@@ -108,7 +117,11 @@
...
@@ -108,7 +117,11 @@
设为正确答案
设为正确答案
</div>
-->
</div>
-->
<div
style=
"padding-left: 30px"
>
<div
style=
"padding-left: 30px"
>
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
<el-button
size=
"mini"
type=
"primary"
@
click
.
prevent=
"add(addValue)"
:disabled=
"checkLock"
>
新增选项
</el-button
>
新增选项
</el-button
>
>
</div>
</div>
...
@@ -143,6 +156,9 @@ export default {
...
@@ -143,6 +156,9 @@ export default {
topicId
:
{
topicId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
components
:
{},
components
:
{},
data
()
{
data
()
{
...
@@ -229,6 +245,7 @@ export default {
...
@@ -229,6 +245,7 @@ export default {
}
}
},
},
rightAnswerClick
(
index
)
{
rightAnswerClick
(
index
)
{
if
(
this
.
checkLock
)
return
;
if
(
this
.
form
.
topicType
===
2
)
{
if
(
this
.
form
.
topicType
===
2
)
{
const
ind
=
this
.
answerNum
.
indexOf
(
index
);
const
ind
=
this
.
answerNum
.
indexOf
(
index
);
if
(
ind
<
0
)
{
if
(
ind
<
0
)
{
...
@@ -247,6 +264,7 @@ export default {
...
@@ -247,6 +264,7 @@ export default {
},
},
// 删除选项
// 删除选项
removeDomain
(
question
)
{
removeDomain
(
question
)
{
if
(
this
.
checkLock
)
return
;
const
index
=
this
.
form
.
questions
.
indexOf
(
question
);
const
index
=
this
.
form
.
questions
.
indexOf
(
question
);
console
.
log
(
index
);
console
.
log
(
index
);
// 如果是正确答案,就让正确答案清空
// 如果是正确答案,就让正确答案清空
...
@@ -333,9 +351,9 @@ export default {
...
@@ -333,9 +351,9 @@ export default {
reset
()
{
reset
()
{
this
.
form
=
{
this
.
form
=
{
topicTitle
:
""
,
topicTitle
:
""
,
questions
:
[{
value
:
""
},
{
value
:
""
}
,
{
value
:
""
}
],
questions
:
[{
value
:
""
},
{
value
:
""
}],
};
};
this
.
answerNum
=
null
;
this
.
answerNum
=
[]
;
this
.
addValue
=
""
;
this
.
addValue
=
""
;
},
},
},
},
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangeQuestion.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-12-27 09:30:19
* @Date: 2022-12-27 09:30:19
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-12-28 10:29:18
* @LastEditTime: 202
3-02-01 18:02:14
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangeQuestion.vue
* @FilePath: /danger-manage-web/src/views/educationPlanExam/textPaper/components/ChangeQuestion.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -193,7 +193,7 @@ export default {
...
@@ -193,7 +193,7 @@ export default {
this
.
loading
=
false
;
this
.
loading
=
false
;
});
});
},
},
save
AndNext
(
)
{
save
(
num
=
2
)
{
const
topicInfos
=
this
.
list
const
topicInfos
=
this
.
list
.
filter
((
item
)
=>
item
.
checked
)
.
filter
((
item
)
=>
item
.
checked
)
.
map
((
item
)
=>
{
.
map
((
item
)
=>
{
...
@@ -202,18 +202,20 @@ export default {
...
@@ -202,18 +202,20 @@ export default {
quan
:
item
.
changeNum
,
quan
:
item
.
changeNum
,
};
};
});
});
console
.
log
(
this
.
courseId
,
topicInfos
);
console
.
log
(
this
.
courseId
,
topicInfos
);
const
data
=
{
courseId
:
this
.
courseId
,
topicInfos
};
const
data
=
{
courseId
:
this
.
courseId
,
topicInfos
};
console
.
log
(
data
);
console
.
log
(
data
);
bachAddTopic
(
data
).
then
((
res
)
=>
{
bachAddTopic
(
data
).
then
((
res
)
=>
{
console
.
log
(
res
);
console
.
log
(
res
);
if
(
res
.
code
==
200
)
{
if
(
res
.
code
==
200
)
{
this
.
$parent
.
$parent
.
componentsNumChange
(
2
);
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
$parent
.
getList
();
this
.
$parent
.
$parent
.
$parent
.
getList
();
}
}
});
});
},
},
saveAndNext
()
{
this
.
save
(
3
);
},
resetClick
()
{},
resetClick
()
{},
search
()
{
search
()
{
this
.
getList
();
this
.
getList
();
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/Dia.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 10:38:49
* @Date: 2022-09-22 10:38:49
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-12-28 10:31:06
* @LastEditTime: 202
3-02-01 17:34:25
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/addLesson.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/addLesson.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
:is=
"currentComponent"
:is=
"currentComponent"
:courseId
.
sync=
"courseId"
:courseId
.
sync=
"courseId"
:topicId
.
sync=
"topicId"
:topicId
.
sync=
"topicId"
:checkLock=
"checkLock"
ref=
"current"
ref=
"current"
></component>
></component>
</transition>
</transition>
...
@@ -32,7 +33,7 @@
...
@@ -32,7 +33,7 @@
<QuestionList/>
-->
<QuestionList/>
-->
</div>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<
!--
<
div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
<el-button
type=
"primary"
type=
"primary"
v-if=
"this.componentsNum == 2"
v-if=
"this.componentsNum == 2"
...
@@ -62,6 +63,51 @@
...
@@ -62,6 +63,51 @@
>
{{
"确认"
}}
</el-button
>
{{
"确认"
}}
</el-button
>
>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
</div>
-->
<div
slot=
"footer"
class=
"dialog-footer"
v-if=
"!checkLock"
>
<el-button
type=
"primary"
v-if=
"this.componentsNum == 2 && !checkLock"
@
click=
"componentsNumChange(4)"
>
从题库选择
</el-button
>
<el-button
type=
"primary"
v-if=
"this.componentsNum == 4 || this.componentsNum == 3"
@
click=
"componentsNumChange(2)"
>
返回题目列表
</el-button
>
<el-button
type=
"primary"
v-if=
"
this.componentsNum == 1 ||
this.componentsNum == 3 ||
this.componentsNum == 4
"
@
click=
"save"
>
保存
</el-button
>
<el-button
type=
"primary"
@
click=
"saveAndNext"
v-if=
"!checkLock"
>
{{
saveNextText
}}
</el-button>
<el-button
v-if=
"this.componentsNum == 2"
type=
"primary"
@
click=
"dialogCancel"
>
{{
"确认"
}}
</el-button
>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
v-else
>
<el-button
type=
"primary"
v-if=
"this.componentsNum == 3 && checkLock"
@
click=
"componentsNumChange(2)"
>
返回题目列表
</el-button
>
<el-button
type=
"primary"
@
click=
"dialogCancel"
>
{{
"确认"
}}
</el-button>
<el-button
@
click=
"dialogCancel"
>
取消
</el-button>
</div>
</div>
</el-dialog>
</el-dialog>
</
template
>
</
template
>
...
@@ -86,6 +132,9 @@ export default {
...
@@ -86,6 +132,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
// components: {
// components: {
// Lesson,
// Lesson,
...
@@ -137,10 +186,8 @@ export default {
...
@@ -137,10 +186,8 @@ export default {
text
=
"保存并录入题目"
;
text
=
"保存并录入题目"
;
}
else
if
(
this
.
componentsNum
==
2
)
{
}
else
if
(
this
.
componentsNum
==
2
)
{
text
=
"录入考题"
;
text
=
"录入考题"
;
}
else
if
(
this
.
componentsNum
==
3
)
{
text
=
"保存并录入下一题"
;
}
else
{
}
else
{
text
=
"
确定选择
"
;
text
=
"
保存并录入下一题
"
;
}
}
return
text
;
return
text
;
},
},
...
@@ -168,6 +215,7 @@ export default {
...
@@ -168,6 +215,7 @@ export default {
this
.
topicId
=
null
;
this
.
topicId
=
null
;
}
}
this
.
$emit
(
"update:visible"
,
false
);
this
.
$emit
(
"update:visible"
,
false
);
this
.
$emit
(
"update:checkLock"
,
false
);
},
},
// 把ID改变了
// 把ID改变了
changeCourseId
(
courseId
)
{
changeCourseId
(
courseId
)
{
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/Lesson.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 10:59:44
* @Date: 2022-09-22 10:59:44
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 202
2-12-26 16:31:34
* @LastEditTime: 202
3-02-01 16:58:26
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/Lession.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/Lession.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -16,7 +16,11 @@
...
@@ -16,7 +16,11 @@
:rules=
"rules"
:rules=
"rules"
>
>
<el-form-item
label=
"考试标题"
prop=
"courseName"
>
<el-form-item
label=
"考试标题"
prop=
"courseName"
>
<el-input
style=
"width: 700px"
v-model=
"form.courseName"
></el-input>
<el-input
:disabled=
"checkLock"
style=
"width: 700px"
v-model=
"form.courseName"
></el-input>
</el-form-item>
</el-form-item>
<div
class=
"top flex"
>
<div
class=
"top flex"
>
<el-form-item
label=
"开始时间"
prop=
"testStartTime"
>
<el-form-item
label=
"开始时间"
prop=
"testStartTime"
>
...
@@ -27,6 +31,7 @@
...
@@ -27,6 +31,7 @@
type=
"datetime"
type=
"datetime"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
default-time=
"00:00:00"
default-time=
"00:00:00"
:disabled=
"checkLock"
/>
/>
</el-form-item>
</el-form-item>
<el-form-item
label=
"结束时间"
prop=
"testEndTime"
>
<el-form-item
label=
"结束时间"
prop=
"testEndTime"
>
...
@@ -36,6 +41,7 @@
...
@@ -36,6 +41,7 @@
type=
"datetime"
type=
"datetime"
placeholder=
"选择日期时间"
placeholder=
"选择日期时间"
default-time=
"00:00:00"
default-time=
"00:00:00"
:disabled=
"checkLock"
/>
/>
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -43,6 +49,7 @@
...
@@ -43,6 +49,7 @@
<ChangePapel
<ChangePapel
ref=
"changePaple"
ref=
"changePaple"
:jsonSelectNameList=
"jsonSelectNameList"
:jsonSelectNameList=
"jsonSelectNameList"
:disabled=
"checkLock"
@
getPeopleList=
"getPeopleList"
@
getPeopleList=
"getPeopleList"
/>
/>
</el-form-item>
</el-form-item>
...
@@ -70,6 +77,9 @@ export default {
...
@@ -70,6 +77,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
components
:
{
components
:
{
// Editor,
// Editor,
...
@@ -196,14 +206,17 @@ export default {
...
@@ -196,14 +206,17 @@ export default {
message
:
"保存课程成功"
,
message
:
"保存课程成功"
,
type
:
"success"
,
type
:
"success"
,
});
});
this
.
$parent
.
$parent
.
dialogCancel
();
}
else
if
(
num
==
3
)
{
}
else
if
(
num
==
3
)
{
this
.
$message
({
this
.
$message
({
message
:
"保存课程成功,请开始录入题目"
,
message
:
"保存课程成功,请开始录入题目"
,
type
:
"success"
,
type
:
"success"
,
});
});
}
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
componentsNumChange
(
num
);
this
.
$parent
.
$parent
.
changeCourseId
(
courseId
);
this
.
$parent
.
$parent
.
changeCourseId
(
courseId
);
}
// this.$parent.$parent.componentsNumChange(num);
// this.$parent.$parent.changeCourseId(courseId);
this
.
$parent
.
$parent
.
$parent
.
getList
();
this
.
$parent
.
$parent
.
$parent
.
getList
();
return
true
;
return
true
;
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/components/QuestionList.vue
View file @
272e7779
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: 纪泽龙 jizelong@qq.com
* @Author: 纪泽龙 jizelong@qq.com
* @Date: 2022-09-22 17:56:05
* @Date: 2022-09-22 17:56:05
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditors: 纪泽龙 jizelong@qq.com
* @LastEditTime: 2023-0
1-31 14:04
:09
* @LastEditTime: 2023-0
2-01 17:45
:09
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue
* @FilePath: /danger-manage-web/src/views/lessonsProgram/components/QuestionList.vue
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
-->
...
@@ -34,13 +34,15 @@
...
@@ -34,13 +34,15 @@
>
分
>
分
</div>
</div>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
判断提
<span>
{{
bottomFrom
.
judgmentScore
}}
</span>
/题,共
<span>
{{
pds
}}
</span>
题,计
<span
判断提
<span>
{{
bottomFrom
.
judgmentScore
}}
</span
class=
"textC"
>
/题,共
<span>
{{
pds
}}
</span>
题,计
<span
class=
"textC"
>
{{
>
{{
pds
*
bottomFrom
.
judgmentScore
}}
</span
pds
*
bottomFrom
.
judgmentScore
}}
</span
>
分
>
分
</div>
</div>
<div
class=
"detail-item"
>
<div
class=
"detail-item"
>
一共
<span>
{{
danxs
+
duoxs
+
pds
}}
</span>
道题,总共计
<span
class=
"textC"
>
{{
一共
<span>
{{
danxs
+
duoxs
+
pds
}}
</span
>
道题,总共计
<span
class=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
+
danxs
*
bottomFrom
.
singleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
pds
*
bottomFrom
.
judgmentScore
pds
*
bottomFrom
.
judgmentScore
...
@@ -70,12 +72,21 @@
...
@@ -70,12 +72,21 @@
<div
class=
"right"
>
<div
class=
"right"
>
<div>
<div>
<el-button
<el-button
v-if=
"!checkLock"
@
click=
"edit(item.topicId)"
@
click=
"edit(item.topicId)"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
type=
"text"
type=
"text"
>
修改
</el-button
>
修改
</el-button
>
>
<el-button
<el-button
v-if=
"checkLock"
@
click=
"edit(item.topicId)"
icon=
"el-icon-edit"
type=
"text"
>
查看
</el-button
>
<el-button
v-if=
"!checkLock"
@
click=
"deleteLesson(item.topicId)"
@
click=
"deleteLesson(item.topicId)"
icon=
"el-icon-delete"
icon=
"el-icon-delete"
type=
"text"
type=
"text"
...
@@ -106,6 +117,7 @@
...
@@ -106,6 +117,7 @@
v-model=
"bottomFrom.singleChoiceScore"
v-model=
"bottomFrom.singleChoiceScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -117,6 +129,7 @@
...
@@ -117,6 +129,7 @@
v-model=
"bottomFrom.multipleChoiceScore"
v-model=
"bottomFrom.multipleChoiceScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -129,6 +142,7 @@
...
@@ -129,6 +142,7 @@
v-model=
"bottomFrom.judgmentScore"
v-model=
"bottomFrom.judgmentScore"
style=
"width: 50px"
style=
"width: 50px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
分
</div>
<div>
分
</div>
...
@@ -141,6 +155,7 @@
...
@@ -141,6 +155,7 @@
v-model=
"bottomFrom.qualifiedNum"
v-model=
"bottomFrom.qualifiedNum"
style=
"width: 60px"
style=
"width: 60px"
size=
"mini"
size=
"mini"
:disabled=
"checkLock"
></el-input>
></el-input>
</div>
</div>
<div>
为合格
</div>
<div>
为合格
</div>
...
@@ -151,6 +166,7 @@
...
@@ -151,6 +166,7 @@
icon=
"el-icon-check"
icon=
"el-icon-check"
size=
"mini"
size=
"mini"
type=
"success"
type=
"success"
:disabled=
"checkLock"
>
保存
</el-button
>
保存
</el-button
>
>
</div>
</div>
...
@@ -171,6 +187,9 @@ export default {
...
@@ -171,6 +187,9 @@ export default {
courseId
:
{
courseId
:
{
type
:
Number
,
type
:
Number
,
},
},
checkLock
:
{
type
:
Boolean
,
},
},
},
components
:
{},
components
:
{},
data
()
{
data
()
{
...
...
danger-manage-web/src/views/educationPlanExam/textPaper/index.vue
View file @
272e7779
...
@@ -82,15 +82,17 @@
...
@@ -82,15 +82,17 @@
prop=
"topicNum"
prop=
"topicNum"
width=
"180"
width=
"180"
>
>
<template
v-slot=
"
{ row: { topicNum, courseId } }">
<template
v-slot=
"
{ row: { topicNum, courseId, status } }">
<div
class=
"timuNum"
>
<span
class=
"timuNum"
@
click=
"checkQuestion(courseId, status)"
>
<div
v-if=
"topicNum > 0"
>
{{
`已录入${topicNum
}
题`
}}
<
/div
>
<span
v-if=
"topicNum > 0"
>
<
div
v
-
else
>
未录入
<
/div
>
{{
status
==
0
?
`已录入${topicNum
}
题`
:
"查看"
}}
<
/div
>
<
/span
>
<
span
v
-
else
>
未录入
<
/span
>
<
/span
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
<
el
-
table
-
column
<
el
-
table
-
column
label
=
"
答对几题算合格
"
label
=
"
合格分数
"
align
=
"center"
align
=
"center"
prop
=
"qualifiedNum"
prop
=
"qualifiedNum"
:
formatter
=
"formatter"
:
formatter
=
"formatter"
...
@@ -102,17 +104,15 @@
...
@@ -102,17 +104,15 @@
>
>
<
template
v
-
slot
=
"{ row: { status, courseId, qualifiedNum
}
}
"
>
<
template
v
-
slot
=
"{ row: { status, courseId, qualifiedNum
}
}
"
>
<!--
<
div
>
{{
status
}}
<
/div> --
>
<!--
<
div
>
{{
status
}}
<
/div> --
>
<
el
-
button
<!--
<
el
-
button
:
disabled
=
"status == 1"
v
-
if
=
"status == 0"
v
-
if
=
"status == 0"
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-edit"
icon
=
"el-icon-edit"
@
click
=
"checkQuestion(courseId)"
@
click
=
"checkQuestion(courseId)"
>
录入考题
<
/el-butto
n
>
录入考题
<
/el-butto
n
>
>
-->
<
el
-
button
<
el
-
button
:
disabled
=
"status == 1"
v
-
if
=
"status == 0"
v
-
if
=
"status == 0"
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -120,6 +120,14 @@
...
@@ -120,6 +120,14 @@
@
click
=
"changeLesson(courseId)"
@
click
=
"changeLesson(courseId)"
>
编辑
<
/el-butto
n
>
编辑
<
/el-butto
n
>
>
<
el
-
button
v
-
if
=
"status == 1"
size
=
"mini"
type
=
"text"
icon
=
"el-icon-edit"
@
click
=
"checkLesson(courseId)"
>
详情
<
/el-butto
n
>
<
el
-
button
<
el
-
button
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
...
@@ -128,13 +136,12 @@
...
@@ -128,13 +136,12 @@
>
删除
<
/el-butto
n
>
删除
<
/el-butto
n
>
>
<
el
-
button
<
el
-
button
:
disabled
=
"status == 1"
v
-
if
=
"status == 0"
v
-
if
=
"status == 0"
size
=
"mini"
size
=
"mini"
type
=
"text"
type
=
"text"
icon
=
"el-icon-delete"
icon
=
"el-icon-delete"
@
click
=
"issue
Lesson(courseId, qualifiedNum
)"
@
click
=
"issue
Dilog(courseId
)"
>
发布
考试
<
/el-butto
n
>
发布
<
/el-butto
n
>
>
<
/template
>
<
/template
>
<
/el-table-column
>
<
/el-table-column
>
...
@@ -151,16 +158,62 @@
...
@@ -151,16 +158,62 @@
ref
=
"Dia"
ref
=
"Dia"
:
componentsNum
.
sync
=
"componentsNum"
:
componentsNum
.
sync
=
"componentsNum"
:
courseId
.
sync
=
"courseId"
:
courseId
.
sync
=
"courseId"
:
checkLock
.
sync
=
"checkLock"
:
visible
.
sync
=
"dilogFlag"
:
visible
.
sync
=
"dilogFlag"
/>
/>
<
el
-
dialog
title
=
"提示"
:
visible
.
sync
=
"issue"
width
=
"30%"
>
<
el
-
dialog
title
=
"发布详情"
:
visible
.
sync
=
"issueVisible"
width
=
"60%"
>
<
div
>
123
<
/div
>
<
div
class
=
"detail flex"
>
<
div
class
=
"detail-item"
>
单选题
<
span
>
{{
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
>
分
/
题
,
共
<
span
>
{{
danxs
}}
<
/spa
n
>
题,计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
多选题
<
span
>
{{
bottomFrom
.
multipleChoiceScore
}}
<
/spa
n
>
分
/
题
,
共
<
span
>
{{
duoxs
}}
<
/span> 题,计<span class="textC">{{
duoxs
*
bottomFrom
.
multipleChoiceScore
}}
<
/spa
n
>
分
<
/div
>
<
div
class
=
"detail-item"
>
判断提
<
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
class
=
"detail-item"
>
一共
<
span
>
{{
danxs
+
duoxs
+
pds
}}
<
/spa
n
>
道题,总共计
<
span
class
=
"textC"
>
{{
danxs
*
bottomFrom
.
singleChoiceScore
+
duoxs
*
bottomFrom
.
multipleChoiceScore
+
pds
*
bottomFrom
.
judgmentScore
}}
<
/spa
n
>
分
<
/div
>
<
/div
>
<
span
slot
=
"footer"
class
=
"dialog-footer"
>
<
el
-
button
@
click
=
"issueVisible = false"
>
取
消
<
/el-button
>
<
el
-
button
type
=
"primary"
@
click
=
"issueLesson(issueCourseId)"
>
确认发布
<
/el-butto
n
>
<
/span
>
<
/el-dialog
>
<
/el-dialog
>
<
/div
>
<
/div
>
<
/template
>
<
/template
>
<
script
>
<
script
>
import
{
import
{
getQuestion
,
getLessons
,
getLessons
,
getLessonById
,
getLessonById
,
issue
,
issue
,
...
@@ -200,14 +253,36 @@ export default {
...
@@ -200,14 +253,36 @@ export default {
// 表单校验
// 表单校验
dilogFlag
:
false
,
dilogFlag
:
false
,
// 发布
issueVisible
:
false
,
bottomFrom
:
{
singleChoiceScore
:
0
,
multipleChoiceScore
:
0
,
judgmentScore
:
0
,
qualifiedNum
:
0
,
}
,
issueCourseId
:
null
,
questionList
:
[],
componentsNum
:
1
,
componentsNum
:
1
,
// 点击的id,如果是新增为空
// 点击的id,如果是新增为空
courseId
:
null
,
courseId
:
null
,
issue
:
false
,
issue
:
false
,
// false为编辑,true为查看,查看不允许编辑的时候
checkLock
:
false
,
}
;
}
;
}
,
}
,
computed
:
{
computed
:
{
...
mapGetters
([
"courseOptions"
]),
...
mapGetters
([
"courseOptions"
]),
danxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
1
).
length
;
}
,
duoxs
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
2
).
length
;
}
,
pds
()
{
return
this
.
questionList
.
filter
((
item
)
=>
item
.
topicType
===
3
).
length
;
}
,
}
,
}
,
created
()
{
created
()
{
// this.getPlanList();
// this.getPlanList();
...
@@ -257,12 +332,22 @@ export default {
...
@@ -257,12 +332,22 @@ export default {
}
,
}
,
/** 新增按钮操作 */
/** 新增按钮操作 */
handleAdd
()
{
handleAdd
()
{
this
.
checkLock
=
false
;
this
.
$refs
.
Dia
.
title
=
"新增考试试卷"
;
this
.
$refs
.
Dia
.
title
=
"新增考试试卷"
;
this
.
componentsNum
=
1
;
this
.
componentsNum
=
1
;
this
.
courseId
=
null
;
this
.
courseId
=
null
;
this
.
dilogFlag
=
true
;
this
.
dilogFlag
=
true
;
}
,
}
,
changeLesson
(
courseId
)
{
changeLesson
(
courseId
)
{
this
.
checkLock
=
false
;
this
.
$refs
.
Dia
.
title
=
"修改考试试卷"
;
this
.
componentsNum
=
1
;
this
.
courseId
=
courseId
;
this
.
dilogFlag
=
true
;
}
,
checkLesson
(
courseId
)
{
this
.
checkLock
=
true
;
this
.
$refs
.
Dia
.
title
=
"修改考试试卷"
;
this
.
$refs
.
Dia
.
title
=
"修改考试试卷"
;
this
.
componentsNum
=
1
;
this
.
componentsNum
=
1
;
this
.
courseId
=
courseId
;
this
.
courseId
=
courseId
;
...
@@ -270,8 +355,12 @@ export default {
...
@@ -270,8 +355,12 @@ export default {
}
,
}
,
// 直接查看考题
// 直接查看考题
checkQuestion
(
courseId
)
{
checkQuestion
(
courseId
,
status
)
{
// 要查看考题的id
// 要查看考题的id
if
(
status
==
1
)
{
this
.
checkLock
=
true
;
}
this
.
courseId
=
courseId
;
this
.
courseId
=
courseId
;
console
.
log
(
this
.
courseId
);
console
.
log
(
this
.
courseId
);
// 2代表列表组件
// 2代表列表组件
...
@@ -315,8 +404,39 @@ export default {
...
@@ -315,8 +404,39 @@ export default {
.
catch
(()
=>
{
}
);
.
catch
(()
=>
{
}
);
}
,
}
,
// 发布
// 发布
issueLesson
(
courseId
,
qualifiedNum
)
{
issueDilog
(
courseId
)
{
this
.
$confirm
(
"请确定发布"
,
{
getQuestion
({
courseId
}
)
.
then
((
res
)
=>
{
console
.
log
(
res
)
this
.
questionList
=
res
.
rows
.
map
((
item
)
=>
{
return
{
topicType
:
item
.
topicType
,
topicId
:
item
.
topicId
,
topicTitle
:
item
.
topicTitle
,
}
;
}
);
}
)
.
then
((
res
)
=>
{
return
getLessonById
(
courseId
);
}
)
.
then
((
res
)
=>
{
this
.
bottomFrom
=
{
singleChoiceScore
:
res
.
data
.
singleChoiceScore
||
0
,
multipleChoiceScore
:
res
.
data
.
multipleChoiceScore
||
0
,
judgmentScore
:
res
.
data
.
judgmentScore
||
0
,
qualifiedNum
:
res
.
data
.
qualifiedNum
||
0
,
}
;
}
)
.
then
((
res
)
=>
{
this
.
issueVisible
=
true
;
this
.
issueCourseId
=
courseId
;
}
);
//
}
,
issueLesson
(
courseId
)
{
this
.
$confirm
(
"确定要发布吗"
,
{
confirmButtonText
:
"确定"
,
confirmButtonText
:
"确定"
,
cancelButtonText
:
"取消"
,
cancelButtonText
:
"取消"
,
type
:
"warning"
,
type
:
"warning"
,
...
@@ -326,14 +446,14 @@ export default {
...
@@ -326,14 +446,14 @@ export default {
return
getLessonById
(
courseId
);
return
getLessonById
(
courseId
);
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
//
if (
res
.
data
.
singleChoiceScore
>
0
&&
//
res.data.singleChoiceScore > 0 &&
res
.
data
.
multipleChoiceScore
>
0
&&
//
res.data.multipleChoiceScore > 0 &&
res
.
data
.
judgmentScore
>
0
&&
//
res.data.judgmentScore > 0 &&
res
.
data
.
qualifiedNum
>
0
//
res.data.qualifiedNum > 0
)
{
//
)
{
return
true
;
return
true
;
}
//
}
}
)
}
)
.
then
((
res
)
=>
{
.
then
((
res
)
=>
{
if
(
res
)
{
if
(
res
)
{
...
@@ -355,6 +475,7 @@ export default {
...
@@ -355,6 +475,7 @@ export default {
type
:
"success"
,
type
:
"success"
,
}
);
}
);
this
.
getList
();
this
.
getList
();
this
.
issueVisible
=
false
;
}
}
}
)
}
)
.
catch
(()
=>
{
}
);
.
catch
(()
=>
{
}
);
...
@@ -373,7 +494,7 @@ export default {
...
@@ -373,7 +494,7 @@ export default {
}
}
.
timuNum
{
.
timuNum
{
color
:
#
1
d84ff
;
color
:
#
1
d84ff
;
//
cursor: pointer;
cursor
:
pointer
;
}
}
::
v
-
deep
.
el
-
select
{
::
v
-
deep
.
el
-
select
{
width
:
100
%
;
width
:
100
%
;
...
@@ -381,4 +502,17 @@ export default {
...
@@ -381,4 +502,17 @@ export default {
::
v
-
deep
.
el
-
dialog
{
::
v
-
deep
.
el
-
dialog
{
margin
-
top
:
15
vh
!
important
;
margin
-
top
:
15
vh
!
important
;
}
}
.
detail
{
// position: absolute;
// bottom: -20px;
// left: 10px;
.
textC
{
font
-
weight
:
800
;
font
-
size
:
18
px
;
}
.
detail
-
item
{
margin
-
right
:
20
px
;
color
:
red
;
}
}
<
/style
>
<
/style
>
danger-manage-web/src/views/educationPlanExam/visitorProgram/visitorAdd.vue
View file @
272e7779
...
@@ -78,7 +78,7 @@
...
@@ -78,7 +78,7 @@
<el-button
<el-button
size=
"mini"
size=
"mini"
type=
"danger"
type=
"danger"
v-if=
"index > 0"
v-if=
"index > 0
&& form.topicType != 3
"
@
click
.
prevent=
"removeDomain(question)"
@
click
.
prevent=
"removeDomain(question)"
plain
plain
icon=
"el-icon-delete"
icon=
"el-icon-delete"
...
...
danger-manage-web/src/views/system/book/index.vue
View file @
272e7779
...
@@ -98,7 +98,7 @@
...
@@ -98,7 +98,7 @@
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<el-table-column
label=
"操作"
align=
"center"
class-name=
"small-padding fixed-width"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
<el-button
v-if=
"scope.row.state==0"
v-if=
"scope.row.state==0
&&scope.row.rectification == user.userId
"
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
v-hasPermi=
"['system:book:edit']"
v-hasPermi=
"['system:book:edit']"
>
整改
</el-button>
>
整改
</el-button>
<el-button
<el-button
v-if=
"scope.row.state==1"
v-if=
"scope.row.state==1
&&(scope.row.escalation == user.userId||scope.row.createId == user.userId)
"
size=
"mini"
size=
"mini"
type=
"text"
type=
"text"
icon=
"el-icon-edit"
icon=
"el-icon-edit"
...
@@ -231,17 +231,17 @@
...
@@ -231,17 +231,17 @@
</el-form-item>
</el-form-item>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<
el-form-item
label=
"责任部门"
prop=
"deptId"
>
<
!--<el-form-item label="责任部门" prop="deptId">--
>
<!--
<el-input v-model="form.deptId" placeholder="请输入部门id" />
-->
<!--
<!–<el-input v-model="form.deptId" placeholder="请输入部门id" />–>
-->
<
el-select
v-model=
"form.deptId"
filterable
placeholder=
"请选择责任部门"
>
<
!--<el-select v-model="form.deptId" filterable placeholder="请选择责任部门">--
>
<
el-option
<
!--<el-option-->
v-for=
"dict in deptList"
<!--v-for="dict in deptList"-->
:key=
"dict.deptId"
<!--:key="dict.deptId"-->
:label=
"dict.deptName"
<!--:label="dict.deptName"-->
:value=
"parseInt(dict.deptId)"
<!--:value="parseInt(dict.deptId)"-->
></el-option
>
<!--></el-option>--
>
<
/el-select
>
<
!--</el-select>--
>
<
/el-form-item
>
<
!--</el-form-item>--
>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改时限"
prop=
"rectificationTerm"
>
<el-form-item
label=
"整改时限"
prop=
"rectificationTerm"
>
...
@@ -257,20 +257,25 @@
...
@@ -257,20 +257,25 @@
<el-form-item
label=
"整改建议"
prop=
"proposal"
>
<el-form-item
label=
"整改建议"
prop=
"proposal"
>
<el-input
type=
"textarea"
v-model=
"form.proposal"
placeholder=
"请输入整改建议"
/>
<el-input
type=
"textarea"
v-model=
"form.proposal"
placeholder=
"请输入整改建议"
/>
</el-form-item>
</el-form-item>
<!--<el-form-item label="投入费用" prop="investmentCost" v-if="zhong==1">-->
<!--<el-input v-model="form.investmentCost" placeholder="请输入投入费用" />-->
<!--</el-form-item>-->
<!--<el-form-item label="投入物资" prop="investmentMaterial" v-if="zhong==1">-->
<!--<el-input v-model="form.investmentMaterial" placeholder="请输入投入物资" />-->
<!--</el-form-item>-->
<el-divider
content-position=
"left"
v-if=
"zhong==2||fast"
><i
class=
"el-icon-info"
></i><span
class=
"boxx"
>
整改信息
</span></el-divider>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改人"
prop=
"rectification"
v-if=
"zhong==2||fast"
>
<el-form-item
label=
"责任部门"
prop=
"deptId"
>
<!--<el-input v-model="form.deptId" placeholder="请输入部门id" />-->
<el-select
v-model=
"form.deptId"
filterable
placeholder=
"请选择责任部门"
@
change=
"switchDept()"
>
<el-option
v-for=
"dict in deptList"
:key=
"dict.deptId"
:label=
"dict.deptName"
:value=
"parseInt(dict.deptId)"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改人"
prop=
"rectification"
>
<el-select
v-model=
"form.rectification"
filterable
placeholder=
"请选择"
>
<el-select
v-model=
"form.rectification"
filterable
placeholder=
"请选择"
>
<el-option
<el-option
v-for=
"item in staffList"
v-for=
"item in staffList
2
"
:key=
"item.staffId"
:key=
"item.staffId"
:label=
"item.staffName"
:label=
"item.staffName"
:value=
"item.staffId"
>
:value=
"item.staffId"
>
...
@@ -278,6 +283,28 @@
...
@@ -278,6 +283,28 @@
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
<!--<el-form-item label="投入费用" prop="investmentCost" v-if="zhong==1">-->
<!--<el-input v-model="form.investmentCost" placeholder="请输入投入费用" />-->
<!--</el-form-item>-->
<!--<el-form-item label="投入物资" prop="investmentMaterial" v-if="zhong==1">-->
<!--<el-input v-model="form.investmentMaterial" placeholder="请输入投入物资" />-->
<!--</el-form-item>-->
<el-divider
content-position=
"left"
v-if=
"zhong==2||fast"
><i
class=
"el-icon-info"
></i><span
class=
"boxx"
>
整改信息
</span></el-divider>
<el-row
:gutter=
"24"
class=
"mb8"
>
<!--<el-col :span="12">-->
<!--<el-form-item label="整改人" prop="rectification" v-if="zhong==2||fast">-->
<!--<el-select v-model="form.rectification" filterable placeholder="请选择">-->
<!--<el-option-->
<!--v-for="item in staffList2"-->
<!--:key="item.staffId"-->
<!--:label="item.staffName"-->
<!--:value="item.staffId">-->
<!--</el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<!--</el-col>-->
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改时间"
prop=
"rectificationTime"
v-if =
"zhong==2||fast"
>
<el-form-item
label=
"整改时间"
prop=
"rectificationTime"
v-if =
"zhong==2||fast"
>
<el-date-picker
clearable
size=
"small"
<el-date-picker
clearable
size=
"small"
...
@@ -643,11 +670,39 @@
...
@@ -643,11 +670,39 @@
</span>
</span>
<span
v-else
>
-
</span>
<span
v-else
>
-
</span>
</el-form-item>
</el-form-item>
<el-row
:gutter=
"24"
class=
"mb8"
>
<!--<el-col :span="12">-->
<!--<el-form-item label="责任部门" prop="deptId">-->
<!--<!–<el-input v-model="form.deptId" placeholder="请输入部门id" />–>-->
<!--<el-select v-model="form.deptId" filterable placeholder="请选择责任部门" disabled >-->
<!--<el-option-->
<!--v-for="dict in deptList"-->
<!--:key="dict.deptId"-->
<!--:label="dict.deptName"-->
<!--:value="parseInt(dict.deptId)"-->
<!--></el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<!--</el-col>-->
<el-col
:span=
"12"
>
<el-form-item
label=
"整改时限"
prop=
"rectificationTerm"
>
<el-date-picker
clearable
size=
"small"
disabled
v-model=
"form.rectificationTerm"
type=
"datetime"
value-format=
"yyyy-MM-dd HH:mm:ss"
placeholder=
"选择整改时间"
>
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-form-item
label=
"整改建议"
prop=
"proposal"
>
<el-input
type=
"textarea"
v-model=
"form.proposal"
placeholder=
"请输入整改建议"
disabled
/>
</el-form-item>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"责任部门"
prop=
"deptId"
>
<el-form-item
label=
"责任部门"
prop=
"deptId"
>
<!--<el-input v-model="form.deptId" placeholder="请输入部门id" />-->
<!--<el-input v-model="form.deptId" placeholder="请输入部门id" />-->
<el-select
v-model=
"form.deptId"
filterable
placeholder=
"请选择责任部门"
disabled
>
<el-select
v-model=
"form.deptId"
filterable
placeholder=
"请选择责任部门"
disabled
>
<el-option
<el-option
v-for=
"dict in deptList"
v-for=
"dict in deptList"
:key=
"dict.deptId"
:key=
"dict.deptId"
...
@@ -658,19 +713,18 @@
...
@@ -658,19 +713,18 @@
</el-form-item>
</el-form-item>
</el-col>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改时限"
prop=
"rectificationTerm"
>
<el-form-item
label=
"整改人"
prop=
"rectification"
>
<el-date-picker
clearable
size=
"small"
disabled
<el-select
v-model=
"form.rectification"
filterable
placeholder=
"请选择"
disabled
>
v-model=
"form.rectificationTerm"
<el-option
type=
"datetime"
v-for=
"item in staffList"
value-format=
"yyyy-MM-dd HH:mm:ss"
:key=
"item.staffId"
placeholder=
"选择整改时间"
>
:label=
"item.staffName"
</el-date-picker>
:value=
"item.staffId"
>
</el-option>
</el-select>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
<el-form-item
label=
"整改建议"
prop=
"proposal"
>
<el-input
type=
"textarea"
v-model=
"form.proposal"
placeholder=
"请输入整改建议"
disabled
/>
</el-form-item>
<!--
<!--
<el-form-item label="备注" prop="remarks">
<el-form-item label="备注" prop="remarks">
<el-input v-model="form.remarks" placeholder="请输入备注" disabled/>
<el-input v-model="form.remarks" placeholder="请输入备注" disabled/>
...
@@ -684,18 +738,7 @@
...
@@ -684,18 +738,7 @@
<!--</el-form-item>-->
<!--</el-form-item>-->
<el-divider
content-position=
"left"
><i
class=
"el-icon-info"
></i><span
class=
"boxx"
>
整改信息
</span></el-divider>
<el-divider
content-position=
"left"
><i
class=
"el-icon-info"
></i><span
class=
"boxx"
>
整改信息
</span></el-divider>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-row
:gutter=
"24"
class=
"mb8"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改人"
prop=
"rectification"
>
<el-select
v-model=
"form.rectification"
filterable
placeholder=
"请选择"
:disabled=
"disabled"
>
<el-option
v-for=
"item in staffList"
:key=
"item.staffId"
:label=
"item.staffName"
:value=
"item.staffId"
>
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
label=
"整改时间"
prop=
"rectificationTime"
>
<el-form-item
label=
"整改时间"
prop=
"rectificationTime"
>
<el-date-picker
clearable
size=
"small"
<el-date-picker
clearable
size=
"small"
...
@@ -792,6 +835,7 @@
...
@@ -792,6 +835,7 @@
import
{
listBook
,
getBook
,
delBook
,
addBook
,
updateBook
,
exportBook
}
from
"@/api/system/book"
;
import
{
listBook
,
getBook
,
delBook
,
addBook
,
updateBook
,
exportBook
}
from
"@/api/system/book"
;
import
{
listDept
}
from
"@/api/system/dept"
;
import
{
listDept
}
from
"@/api/system/dept"
;
import
{
listStaff
}
from
"@/api/safetyManagement/staff"
;
import
{
listStaff
}
from
"@/api/safetyManagement/staff"
;
import
{
getUserProfile
}
from
"@/api/system/user"
;
let
uploadfile
=
require
(
"@/assets/uploadfile.png"
);
let
uploadfile
=
require
(
"@/assets/uploadfile.png"
);
export
default
{
export
default
{
name
:
"Book"
,
name
:
"Book"
,
...
@@ -801,6 +845,7 @@ export default {
...
@@ -801,6 +845,7 @@ export default {
data
()
{
data
()
{
return
{
return
{
readOnly
:
false
,
readOnly
:
false
,
user
:
null
,
disabled
:
false
,
disabled
:
false
,
disabled2
:
false
,
disabled2
:
false
,
fast
:
false
,
fast
:
false
,
...
@@ -862,6 +907,7 @@ export default {
...
@@ -862,6 +907,7 @@ export default {
staffName
:
""
staffName
:
""
},
},
staffList
:[],
staffList
:[],
staffList2
:[],
// 表单参数
// 表单参数
form
:
{},
form
:
{},
// 表单校验
// 表单校验
...
@@ -881,12 +927,15 @@ export default {
...
@@ -881,12 +927,15 @@ export default {
findTime
:
[
findTime
:
[
{
required
:
true
,
message
:
"上报时间不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"上报时间不能为空"
,
trigger
:
"blur"
}
],
],
deptId
:
[
//
deptId: [
{
required
:
true
,
message
:
"责任部门不能为空"
,
trigger
:
"blur"
}
//
{ required: true, message: "责任部门不能为空", trigger: "blur" }
],
//
],
rectificationTerm
:[
rectificationTerm
:[
{
required
:
true
,
message
:
"整改时限不能为空"
,
trigger
:
"blur"
}
{
required
:
true
,
message
:
"整改时限不能为空"
,
trigger
:
"blur"
}
]
],
rectification
:[
{
required
:
true
,
message
:
"整改人不能为空"
,
trigger
:
"blur"
}
],
}
}
};
};
},
},
...
@@ -900,6 +949,9 @@ export default {
...
@@ -900,6 +949,9 @@ export default {
this
.
getDicts
(
"t_trouble_level"
).
then
(
response
=>
{
this
.
getDicts
(
"t_trouble_level"
).
then
(
response
=>
{
this
.
troubleLevelOptions
=
response
.
data
;
this
.
troubleLevelOptions
=
response
.
data
;
});
});
getUserProfile
().
then
(
response
=>
{
this
.
user
=
response
.
data
;
});
},
},
methods
:
{
methods
:
{
/** 查询隐患台账列表 */
/** 查询隐患台账列表 */
...
@@ -914,11 +966,18 @@ export default {
...
@@ -914,11 +966,18 @@ export default {
checkFile
(
url
)
{
checkFile
(
url
)
{
window
.
open
(
url
,
'_blank'
);
window
.
open
(
url
,
'_blank'
);
},
},
switchDept
(){
//console.log(this.form.deptId);
listStaff
({
pageNum
:
1
,
pageSize
:
99999
,
deptId
:
this
.
form
.
deptId
}).
then
(
response
=>
{
this
.
staffList2
=
response
.
rows
;
});
},
/** 查询员工列表 */
/** 查询员工列表 */
getStaffList
()
{
getStaffList
()
{
this
.
loading
=
true
;
this
.
loading
=
true
;
listStaff
(
this
.
queryParams2
).
then
(
response
=>
{
listStaff
(
this
.
queryParams2
).
then
(
response
=>
{
this
.
staffList
=
response
.
rows
;
this
.
staffList
=
response
.
rows
;
this
.
staffList2
=
response
.
rows
;
this
.
loading
=
false
;
this
.
loading
=
false
;
}
}
);
);
...
@@ -961,7 +1020,7 @@ export default {
...
@@ -961,7 +1020,7 @@ export default {
troubleLevel
:
null
,
troubleLevel
:
null
,
measures
:
null
,
measures
:
null
,
troubleHarm
:
null
,
troubleHarm
:
null
,
escalation
:
null
,
escalation
:
this
.
user
.
userId
,
findTime
:
null
,
findTime
:
null
,
picture
:
null
,
picture
:
null
,
enclosure
:
null
,
enclosure
:
null
,
...
@@ -1015,6 +1074,7 @@ export default {
...
@@ -1015,6 +1074,7 @@ export default {
this
.
reset
();
this
.
reset
();
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"添加隐患台账"
;
this
.
title
=
"添加隐患台账"
;
this
.
staffList2
=
this
.
staffList
;
},
},
handleFastAdd
()
{
handleFastAdd
()
{
this
.
reset
();
this
.
reset
();
...
@@ -1022,6 +1082,7 @@ export default {
...
@@ -1022,6 +1082,7 @@ export default {
this
.
open
=
true
;
this
.
open
=
true
;
this
.
title
=
"添加隐患台账"
;
this
.
title
=
"添加隐患台账"
;
this
.
zhong
=
3
;
this
.
zhong
=
3
;
this
.
staffList2
=
this
.
staffList
;
},
},
/** 修改按钮操作 */
/** 修改按钮操作 */
...
...
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