Commit ec34e8fb authored by lizhichao's avatar lizhichao

1.安全教育培训模块需增设培训部门、主讲人2.承包商考试界面,题面显示区域过小;3.培训统计-添加部门搜索;4风险信息管理列表中需区分设备实施清单、作业活动...

1.安全教育培训模块需增设培训部门、主讲人2.承包商考试界面,题面显示区域过小;3.培训统计-添加部门搜索;4风险信息管理列表中需区分设备实施清单、作业活动清单;5.隐患排查中“隐患排查库”把“检查依据”去掉,隐患名称改为“风险描述”
parent 1bc489f5
......@@ -46,6 +46,17 @@ public class TRiskManager extends BaseEntity
@Excel(name = "责任人")
private String riskPerson;
public String getListType() {
return listType;
}
public void setListType(String listType) {
this.listType = listType;
}
//清单类型 2023-10-10
private String listType;
public void setId(Long id)
{
this.id = id;
......
......@@ -87,6 +87,44 @@ public class TTrainCourse extends BaseEntity
@Excel(name = "考试人员")
private String testPersons;
/**
* 2023-10-09添加培训部门、主讲人
*/
/** 考试人员 */
@Excel(name = "培训部门id")
private String deptId;
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
@Excel(name = "培训部门名称")
private String deptName;
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
public String getZhujiang() {
return zhujiang;
}
public void setZhujiang(String zhujiang) {
this.zhujiang = zhujiang;
}
/** 考试人员 */
@Excel(name = "主讲人")
private String zhujiang;
private Integer personnelType;
private Integer duration;
......
......@@ -20,6 +20,26 @@ public class TrainCourseStat {
private Date releaseEndTime;
public String getDeptName() {
return deptName;
}
public void setDeptName(String deptName) {
this.deptName = deptName;
}
private String deptName;
public String getDeptId() {
return deptId;
}
public void setDeptId(String deptId) {
this.deptId = deptId;
}
private String deptId;
public Long getCourseId() {
return courseId;
}
......
......@@ -13,10 +13,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="riskControl" column="risk_control" />
<result property="riskDept" column="risk_dept" />
<result property="riskPerson" column="risk_person" />
<result property="listType" column="list_type" />
</resultMap>
<sql id="selectTRiskManagerVo">
select id, risk_part, risk_content, risk_level, risk_type, risk_control, risk_dept, risk_person from t_risk_manager
select id, risk_part, risk_content, risk_level, risk_type, risk_control, risk_dept, risk_person,list_type from t_risk_manager
</sql>
<select id="selectTRiskManagerList" parameterType="TRiskManager" resultMap="TRiskManagerResult">
......@@ -47,6 +48,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="riskControl != null">risk_control,</if>
<if test="riskDept != null">risk_dept,</if>
<if test="riskPerson != null">risk_person,</if>
<if test="listType != null">list_type,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="riskPart != null">#{riskPart},</if>
......@@ -56,6 +58,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="riskControl != null">#{riskControl},</if>
<if test="riskDept != null">#{riskDept},</if>
<if test="riskPerson != null">#{riskPerson},</if>
<if test="listType != null">#{listType},</if>
</trim>
</insert>
......@@ -69,6 +72,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="riskControl != null">risk_control = #{riskControl},</if>
<if test="riskDept != null">risk_dept = #{riskDept},</if>
<if test="riskPerson != null">risk_person = #{riskPerson},</if>
<if test="listType != null">list_type = #{listType},</if>
</trim>
where id = #{id}
</update>
......
......@@ -29,6 +29,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="singleChoiceScore" column="single_choice_score" />
<result property="judgmentScore" column="judgment_score" />
<result property="isVeriftyFace" column="is_verifty_face" />
<result property="deptName" column="dept_name" />
</resultMap>
<resultMap id="StatisticsTrainCourseResult" type="StatisticsTrainCourse">
......@@ -53,11 +54,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</resultMap>
<sql id="selectTTrainCourseVo">
select multiple_choice_score,single_choice_score,judgment_score,course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration,is_verifty_face from t_train_course
select multiple_choice_score,single_choice_score,judgment_score,course_id, course_name, course_type, course_conent, status,personnel_type, release_time, enclosure, video, qualified_num, topic_num, create_time, create_user, is_del, data_kind, test_start_time, test_end_time, test_persons,duration,is_verifty_face,zhujiang,deptid from t_train_course
</sql>
<select id="selectTTrainCourseList" parameterType="TTrainCourse" resultMap="TTrainCourseResult">
select c.*,p.plan_name from t_train_course c
select c.*,p.plan_name,d.dept_name from t_train_course c
left join sys_dept d on c.deptid=d.dept_id
LEFT JOIN t_train_plan p on p.plan_id = c.course_type
<where>
......@@ -109,6 +111,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="singleChoiceScore != null">single_choice_score,</if>
<if test="judgmentScore != null">judgment_score,</if>
<if test="isVeriftyFace != null">is_verifty_face,</if>
<if test="zhujiang != null">zhujiang,</if>
<if test="deptId != null">deptid,</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="courseName != null">#{courseName},</if>
......@@ -133,6 +137,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="singleChoiceScore != null">#{singleChoiceScore},</if>
<if test="judgmentScore != null">#{judgmentScore},</if>
<if test="isVeriftyFace != null">#{isVeriftyFace},</if>
<if test="zhujiang != null">#{zhujiang},</if>
<if test="deptId != null">#{deptId},</if>
</trim>
</insert>
......@@ -161,6 +167,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="singleChoiceScore != null">single_choice_score = #{singleChoiceScore},</if>
<if test="judgmentScore != null">judgment_score = #{judgmentScore},</if>
<if test="isVeriftyFace != null">is_verifty_face = #{isVeriftyFace},</if>
<if test="zhujiang != null">zhujiang=#{zhujiang},</if>
<if test="deptId != null">deptid=#{deptId},</if>
</trim>
where course_id = #{courseId}
</update>
......
......@@ -11,6 +11,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<result property="planName" column="plan_name" />
<result property="maybeTestNum" column="maybeTestNum" />
<result property="finishNum" column="finishNum" />
<result property="deptName" column="dept_name" />
</resultMap>
<resultMap id="TrainCourseStatDetailResult" type="TrainCourseStatDetail">
......@@ -24,6 +25,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<select id="getTrainCourseStatData" parameterType="com.zehong.system.domain.TrainCourseStat" resultMap="TrainCourseStatResult">
SELECT
d.dept_name,
train.course_id,
train.course_name,
train.release_time,
......@@ -33,12 +35,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
FROM
t_train_course train
LEFT JOIN t_train_plan plan ON plan.plan_id = train.course_type
left join sys_dept d on train.deptid=d.dept_id
<where>
train.is_del = '0' and train.data_kind = 0
AND train.status = '1'
<if test="courseId != null "> and train.course_id = #{courseId}</if>
<if test="courseName !='' and courseName!= null">and train.course_name like concat('%', #{courseName}, '%')</if>
<if test="releaseBeginTime != null and releaseEndTime">and train.release_time BETWEEN #{releaseBeginTime} AND #{releaseEndTime} </if>
<if test="deptId != null "> and train.deptid = #{deptId}</if>
</where>
ORDER BY train.release_time DESC
</select>
......
......@@ -16,8 +16,12 @@
:rules="rules"
>
<div class="top flex">
<el-form-item label="课程标题" prop="courseName">
<el-input style="width: 568px" v-model="form.courseName" :disabled="checkLock"></el-input>
<el-form-item label="培训部门" prop="deptId">
<treeselect v-model="form.deptId" style="width: 220px;" :options="deptOptions" :show-count="true" placeholder="请选择培训部门" />
</el-form-item>
<el-form-item label="课程标题" prop="courseName" style="margin-left: -30px">
<el-input style="width: 532px" v-model="form.courseName" :disabled="checkLock"></el-input>
</el-form-item>
<!--<el-form-item label="培训计划" prop="courseType">-->
......@@ -44,7 +48,7 @@
clearable
size="small"
:disabled="checkLock"
style="width:215px"
style="width:220px"
>
<el-option
v-for="course in courseOptions"
......@@ -57,24 +61,34 @@
<el-form-item
label="培训时长"
prop="duration"
style="margin-left: 55px"
style="margin-left: 30px"
>
<el-input
style="width: 180px"
style="width: 160px"
placeholder="分钟"
type="number"
v-model="form.duration"
:disabled="checkLock"
></el-input>
<el-label>
(分钟)
</el-label>
</el-form-item>
<el-form-item
label="主讲人"
prop="zhujiang"
style="margin-left: 30px"
>
<el-input
style="width: 180px"
placeholder="填写主讲人"
v-model="form.zhujiang"
:disabled="checkLock"
></el-input>
</el-form-item>
</div>
<div class="flex">
<el-form-item label="开始时间" prop="testStartTime">
<el-date-picker
style="margin-right: 50px"
style="margin-right: 30px"
v-model="form.testStartTime"
value-format="yyyy-MM-dd HH:mm:ss"
type="datetime"
......@@ -94,8 +108,8 @@
/>
</el-form-item>
<el-form-item label="是否人脸认证" prop="isVeriftyFace" style="margin-left: 50px">
<el-radio v-model="form.isVeriftyFace" label="1"></el-radio>
<el-radio v-model="form.isVeriftyFace" label="2"></el-radio>
<el-radio v-model="form.isVeriftyFace" label="1" :disabled="checkLock"></el-radio>
<el-radio v-model="form.isVeriftyFace" label="2" :disabled="checkLock"></el-radio>
</el-form-item>
</div>
<!-- </div> -->
......@@ -138,15 +152,18 @@
</template>
<script>
import Editor from "./Editor";
import FileUpload from "@/components/FileUpload";
import uploadfile from "@/assets/uploadfile.png";
import { mapGetters } from "vuex";
import {
addLessons,
getLessonById,
changeLesson,
} from "@/api/educationPlanExam/lessonsProgram";
import { treeselect } from "@/api/system/dept";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import Editor from "./Editor";
import FileUpload from "@/components/FileUpload";
import uploadfile from "@/assets/uploadfile.png";
import { mapGetters } from "vuex";
import {
addLessons,
getLessonById,
changeLesson,
} from "@/api/educationPlanExam/lessonsProgram";
import Treeselect from "@riophae/vue-treeselect";
export default {
name: "",
......@@ -161,11 +178,13 @@ export default {
components: {
Editor,
FileUpload,
Treeselect
},
data() {
return {
form: {
courseName: "",
courseDept:"",
courseType: "",
courseConent: "",
video: "",
......@@ -177,6 +196,9 @@ export default {
fileListFile: [],
readOnly: false,
rules: {
deptId: [
{ required: true, trigger: "blur", message: "培训部门不能为空" },
],
courseName: [
{ required: true, trigger: "blur", message: "课程标题不能为空" },
],
......@@ -193,13 +215,19 @@ export default {
duration: [
{ required: true, trigger: "blur", message: "培训时长不能为空" },
],
zhujiang: [
{ required: true, trigger: "blur", message: "主讲人不能为空" },
],
testStartTime: [
{ required: true, trigger: "blur", message: "开始时间不能为空" },
],
testEndTime: [
{ required: true, trigger: "blur", message: "结束时间不能为空" },
],
},
// 部门树选项
deptOptions: undefined,
};
},
computed: {
......@@ -210,6 +238,7 @@ export default {
if (this.courseId) {
this.getLessonById();
}
this.getTreeselect();
},
mounted() {},
methods: {
......@@ -240,6 +269,8 @@ export default {
testStartTime,
testEndTime,
isVeriftyFace,
zhujiang,
deptId
} = data;
this.form = {
courseName,
......@@ -251,6 +282,8 @@ export default {
testStartTime,
testEndTime,
isVeriftyFace,
zhujiang,
deptId
};
console.log('video',video)
this.fileListVideo = video? [
......@@ -341,6 +374,13 @@ export default {
saveAndNext() {
this.save(3);
},
/** 查询部门下拉树结构 */
getTreeselect() {
treeselect().then(response => {
console.log('部门树返回值')
this.deptOptions = response.data;
});
},
},
};
</script>
......
......@@ -69,7 +69,9 @@
</el-row>
<el-table v-loading="loading" :data="lessonsList">
<el-table-column label="培训部门" align="center" prop="deptName" width="120"/>
<el-table-column label="课程标题" align="center" prop="courseName" />
<el-table-column label="主讲人" align="center" prop="zhujiang" width="100"/>
<!-- <el-table-column label="课程类别" align="center" prop="planName">
<template v-slot="scope">
<div>
......@@ -96,12 +98,12 @@
</div>
</template>
</el-table-column>
<el-table-column label="课程状态" align="center" prop="status">
<el-table-column label="课程状态" align="center" prop="status" width="100">
<template v-slot="scope">
<div>{{ ["未发布", "已发布"][scope.row.status] }}</div>
</template>
</el-table-column>
<el-table-column label="附件" align="center" prop="enclosure">
<el-table-column label="附件" align="center" prop="enclosure" width="100">
<template v-slot="{ row: { enclosure } }">
<a
v-if="enclosure && enclosure.indexOf('.txt') >= 0"
......
......@@ -5,7 +5,9 @@
ref="queryForm"
:inline="true"
label-width="68px">
<el-form-item label="培训部门" prop="deptId">
<treeselect v-model="queryParams.deptId" style="width: 220px;" :options="deptOptions" :show-count="true" placeholder="请选择培训部门" />
</el-form-item>
<el-form-item label="培训名称" prop="courseName">
<el-input
v-model="queryParams.courseName"
......@@ -44,10 +46,11 @@
<!-- 培训统计列表 -->
<el-table v-loading="loading" :data="trainCourseStatData">
<el-table-column label="序号" width='100' align="center" prop="courseNum"/>
<el-table-column label="培训部门" align="center" prop="deptName" width="120"/>
<el-table-column label="课程标题" align="center" prop="courseName"/>
<el-table-column label="培训计划" align="center" prop="planName"/>
<el-table-column label="应参加人数" align="center" prop="maybeTestNum"/>
<el-table-column label="实际完成人数" align="center" prop="finishNum"/>
<el-table-column label="应参加人数" align="center" prop="maybeTestNum" width="100"/>
<el-table-column label="实际完成人数" align="center" prop="finishNum" width="100"/>
<el-table-column
label="操作"
align="center"
......@@ -108,9 +111,12 @@
<script>
import {getTrainCourseStatData,getTrainCourseStatDetailData,trainCourseStatDetailExport} from "@/api/contractTrain/trainCourseStat";
import { treeselect } from "@/api/system/dept";
import Treeselect from "@riophae/vue-treeselect";
export default {
name: "trainCourseStat",
components: {
Treeselect
},
data() {
return {
......@@ -136,13 +142,23 @@ export default {
courseName: "",
trainStatDetailOpen: false,
trainStatDetailData: [],
exportLoading: false
exportLoading: false,
// 部门树选项
deptOptions: undefined,
}
},
created() {
this.getTrainStatList();
this.getTreeselect();
},
methods: {
/** 查询部门下拉树结构 */
getTreeselect() {
treeselect().then(response => {
console.log('部门树返回值')
this.deptOptions = response.data;
});
},
dateFormat(picker){
this.queryParams.releaseBeginTime = picker[0];
this.queryParams.releaseEndTime = picker[1];
......
......@@ -20,16 +20,6 @@
></el-option>
</el-select>
</el-form-item>
<!--<el-form-item label="事故类型" prop="riskType">-->
<!--<el-select v-model="queryParams.riskType" placeholder="请选择事故类型" clearable size="small">-->
<!--<el-option-->
<!--v-for="dict in riskTypeOptions"-->
<!--:key="dict.dictValue"-->
<!--:label="dict.dictLabel"-->
<!--:value="dict.dictValue"-->
<!--&gt;</el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<el-form-item label="责任部门" prop="riskDept">
<el-select
......@@ -102,8 +92,15 @@
<el-table v-loading="loading" :data="managerList" @selection-change="handleSelectionChange">
<el-table-column type="selection" width="55" align="center" />
<el-table-column label="序号" width="55" align="center" prop="id" />
<el-table-column label="序号" width="50" align="center" prop="id" />
<el-table-column label="辨识部位" width="135" align="center" prop="riskPart" />
<el-table-column label="清单类型" width="90" align="center" prop="listType" >
<template slot-scope="scope">
<span v-if="scope.row.listType === '1' ">设备实施</span>
<span v-else-if="scope.row.listType === '2'">作业活动</span>
<span v-else >-</span>
</template>
</el-table-column>
<el-table-column label="存在风险" align="center" prop="riskContent" >
<template slot-scope="scope">
<dl v-html="scope.row.riskContent">
......@@ -143,50 +140,81 @@
/>
<!-- 添加或修改【风险信息】对话框 -->
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
<el-dialog :title="title" :visible.sync="open" width="800px" append-to-body>
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-form-item label="辨识部位" prop="riskPart">
<el-input v-model="form.riskPart" placeholder="请输入辨识部位" />
</el-form-item>
<el-form-item label="存在风险">
<editor v-model="form.riskContent" :min-height="192"/>
</el-form-item>
<el-form-item label="风险等级" prop="riskLevel">
<el-select v-model="form.riskLevel" placeholder="请输入风险等级">
<el-option
v-for="dict in riskLevelOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="事故类型" prop="riskType">
<el-select v-model="form.riskType" multiple placeholder="请选择事故类型">
<el-option
v-for="dict in riskTypeOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="管控措施" prop="riskControl">
<el-input v-model="form.riskControl" placeholder="请输入管控措施" />
</el-form-item>
<el-form-item label="责任部门" prop="riskDept">
<el-select v-model="form.riskDept" placeholder="请输入责任部门" >
<el-option
v-for="dict in deptList"
:key="dict.deptId"
:label="dict.deptName"
:value="dict.deptId"
></el-option>
</el-select>
</el-form-item>
<el-form-item label="责任人" prop="riskPerson">
<el-input v-model="form.riskPerson" placeholder="请输入责任人" />
</el-form-item>
<el-row :gutter="24">
<el-col span="12">
<el-form-item label="辨识部位" prop="riskPart">
<el-input v-model="form.riskPart" placeholder="请输入辨识部位" />
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="清单类型" prop="listType">
<el-select v-model="form.listType" placeholder="请选择清单类型" style="width: 290px">
<el-option label="设备实施" value="1" />
<el-option label="作业活动" value="2" />
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-col span="12">
<el-form-item label="风险等级" prop="riskLevel">
<el-select v-model="form.riskLevel" placeholder="请输入风险等级" style="width: 290px">
<el-option
v-for="dict in riskLevelOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col span="12" style="padding-left: 12px">
<el-form-item label="事故类型" prop="riskType">
<el-select v-model="form.riskType" multiple placeholder="请选择事故类型" style="width: 290px">
<el-option
v-for="dict in riskTypeOptions"
:key="dict.dictValue"
:label="dict.dictLabel"
:value="dict.dictValue"
></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<el-row>
<el-form-item label="存在风险">
<editor v-model="form.riskContent" :min-height="192"/>
</el-form-item>
</el-row>
<el-row>
<el-form-item label="管控措施" prop="riskControl">
<el-input type="textarea" v-model="form.riskControl" placeholder="请输入管控措施" />
</el-form-item>
</el-row>
<el-row>
<el-col span="12">
<el-form-item label="责任部门" prop="riskDept">
<el-select v-model="form.riskDept" placeholder="请输入责任部门" style="width: 290px">
<el-option
v-for="dict in deptList"
:key="dict.deptId"
:label="dict.deptName"
:value="dict.deptId"
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col span="12">
<el-form-item label="责任人" prop="riskPerson">
<el-input v-model="form.riskPerson" placeholder="请输入责任人" style="width: 300px"/>
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<el-button type="primary" @click="submitForm">确 定</el-button>
......@@ -249,6 +277,9 @@ export default {
riskPart: [
{ required: true, message: "辨识部位不能为空", trigger: "blur" }
],
listType: [
{ required: true, message: "清单类型不能为空", trigger: "blur" }
],
riskDept: [
{ required: true, message: "责任部门不能为空", trigger: "blur" }
],
......@@ -324,6 +355,7 @@ export default {
this.form = {
id: null,
riskPart: null,
listType:null,
riskContent: null,
riskLevel: null,
riskType: null,
......
......@@ -59,8 +59,8 @@
<!--<el-table-column label="风险点" align="center" prop="libraryId" />-->
<el-table-column label="所属部门" align="center" prop="deptName" />
<el-table-column label="风险点" align="center" prop="riskPointName" />
<el-table-column label="隐患名称" align="center" prop="inspectTerm" />
<el-table-column label="检查依据" align="center" prop="inspectBasis" />
<el-table-column label="风险描述" align="center" prop="inspectTerm" />
<!-- <el-table-column label="检查依据" align="center" prop="inspectBasis" />-->
<!--<el-table-column label="排查库标题" align="center" prop="libraryName" />-->
<el-table-column label="内容以及标准" align="center" prop="libraryContent" />
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
......@@ -120,17 +120,17 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="隐患名称" prop="inspectTerm">
<el-input v-model="form.inspectTerm" placeholder="请输入隐患名称" />
</el-form-item>
<el-form-item label="检查依据" prop="inspectBasis">
<el-input type="textarea" v-model="form.inspectBasis" placeholder="请输入检查依据" />
<el-form-item label="风险描述" prop="inspectTerm">
<el-input v-model="form.inspectTerm" placeholder="请输入风险描述" />
</el-form-item>
<!-- <el-form-item label="检查依据" prop="inspectBasis">-->
<!-- <el-input type="textarea" v-model="form.inspectBasis" placeholder="请输入检查依据" />-->
<!-- </el-form-item>-->
<!--<el-form-item label="排查库标题" prop="libraryName">-->
<!--<el-input v-model="form.libraryName" placeholder="请输入排查库标题" />-->
<!--</el-form-item>-->
<el-form-item label="内容以及标准" prop="libraryContent">
<el-input type="textarea" v-model="form.libraryContent" :min-height="192"/>
<el-input type="textarea" v-model="form.libraryContent" style="height: 100px"/>
</el-form-item>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -202,7 +202,7 @@ export default {
{ required: true, message: "风险点不能为空", trigger: "change" }
],
inspectTerm: [
{ required: true, message: "隐患名称不能为空", trigger: "change" }
{ required: true, message: "风险描述不能为空", trigger: "change" }
],
// inspectBasis: [
// { required: true, message: "检查依据不能为空", trigger: "change" }
......
......@@ -150,10 +150,6 @@
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
<el-row :gutter="24" >
<el-col :span="10">
<el-form-item label="任务名称" prop="workName">
<el-input v-model="form.workName" placeholder="请输入任务名称" />
</el-form-item>
<el-form-item label="任务周期" prop="workCycle">
<el-select v-model="form.workCycle" placeholder="请选择任务周期">
<el-option
......@@ -164,7 +160,40 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item label="任务名称" prop="workName">
<el-input v-model="form.workName" placeholder="请输入任务名称" />
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24" >
<el-col :span="10">
<el-form-item label="开始时间" prop="workBeginTime">
<el-date-picker clearable size="small"
style = "width: 100%"
v-model="form.workBeginTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择排查开始时间">
</el-date-picker>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item label="结束时间" prop="workEndTime">
<el-date-picker clearable size="small"
style = "width: 100%"
v-model="form.workEndTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择排查结束时间">
</el-date-picker>
</el-form-item>
</el-col>
</el-row>
<el-row :gutter="24" >
<el-col :span="10">
<el-form-item label="排查类型" prop="workType">
<el-select v-model="form.workType" placeholder="请选择任务排查类型">
<el-option
......@@ -175,6 +204,8 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item label="排查形式" prop="workForm">
<el-select v-model="form.workForm" placeholder="请选择任务排查形式">
<el-option
......@@ -185,27 +216,12 @@
></el-option>
</el-select>
</el-form-item>
<el-form-item label="开始时间" prop="workBeginTime">
<el-date-picker clearable size="small"
style = "width: 100%"
v-model="form.workBeginTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择排查开始时间">
</el-date-picker>
</el-form-item>
<el-form-item label="结束时间" prop="workEndTime">
<el-date-picker clearable size="small"
style = "width: 100%"
v-model="form.workEndTime"
type="datetime"
value-format="yyyy-MM-dd HH:mm:ss"
placeholder="选择排查结束时间">
</el-date-picker>
</el-form-item>
<!--<el-form-item label="责任部门" prop="deptId">-->
<!--<el-input v-model="form.deptId" placeholder="请输入责任部门" />-->
<!--</el-form-item>-->
</el-col>
</el-row>
<el-row :gutter="24" >
<el-col :span="10">
<el-form-item label="责任部门" prop="deptId">
<!--<el-input v-model="form.deptId" placeholder="请输入部门id" />-->
<el-select v-model="form.deptId" @change="selectUserList" filterable placeholder="请选择责任部门">
......@@ -217,6 +233,9 @@
></el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="14">
<el-form-item label="责任人" prop="staffId">
<el-select v-model="form.staffId" filterable placeholder="请选择责任人">
<el-option
......@@ -228,25 +247,11 @@
</el-option>
</el-select>
</el-form-item>
</el-col>
<el-col :span="14">
<!--<el-form-item label="关联隐患" prop="bookId">-->
<!--<el-input v-model="form.bookId" placeholder="请" />-->
<!--</el-form-item>-->
<!--<el-form-item label="关联隐患" prop="bookId">-->
<!--&lt;!&ndash;<el-input v-model="form.deptId" placeholder="请输入部门id" />&ndash;&gt;-->
<!--<el-select v-model="form.bookId" placeholder="请选择关联隐患">-->
<!--<el-option-->
<!--v-for="dict in bookList"-->
<!--:key="dict.bookId"-->
<!--:label="dict.troubleName"-->
<!--:value="parseInt(dict.bookId)"-->
<!--&gt;</el-option>-->
<!--</el-select>-->
<!--</el-form-item>-->
<el-form-item label="任务范围" prop="workRange">
<el-input v-model="form.workRange" placeholder="请输入任务范围" />
</el-form-item>
</el-row>
<el-row>
<el-col>
<el-form-item label="排查库" prop="libraryId">
<!--<el-input v-model="form.deptId" placeholder="请输入部门id" />-->
<el-select v-model="form.libraryId" multiple filterable placeholder="请选择" @change="selectLibrary">
......@@ -258,15 +263,15 @@
></el-option>
</el-select>
</el-form-item>
<!--<el-form-item label="排查内容" prop="content">-->
<!--<editor v-model="form.content" :min-height="200"/>-->
<!--</el-form-item>-->
</el-col>
</el-row>
<!--<el-form-item label="任务期限" prop="timeTerm">-->
<!--<el-input v-model="form.timeTerm" placeholder="请输入任务期限" />-->
<!--</el-form-item>-->
<el-row :gutter="24" >
<el-col :span="24">
<el-form-item label="任务范围" prop="workRange">
<el-input type="textarea" :min-height="192" v-model="form.workRange" placeholder="请输入任务范围" />
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
......@@ -864,6 +869,7 @@ export default {
this.userList = response.rows;
});
listLibrary({pageNum:1,pageSize:10000,deptId:deptId}).then(response => {
console.log("sdfsdfsdfssssssssssssssssssssssss")
this.libraryList = response.rows;
});
},
......
......@@ -187,7 +187,7 @@ export default {
}
.top {
background: #f9f9f9;
height: 54px;
height: 100px;
padding: 0px 10px 0px 43px;
overflow-wrap: anywhere;
// align-items: center;
......@@ -200,13 +200,13 @@ export default {
.num {
position: absolute;
left: 0;
width: 48px;
height: 48px;
width: 40px;
height: 40px;
top: 4px;
background: #1d84ff;
border-radius: 50%;
text-align: center;
line-height: 48px;
line-height: 40px;
font-size: 18px;
color: #ffffff;
}
......@@ -219,7 +219,7 @@ export default {
padding-right: 10px;
margin-bottom: 15px;
.item {
padding-top: 38px;
padding-top: 20px;
width: 100%;
overflow-wrap: anywhere;
font-size: 14px;
......
......@@ -195,7 +195,7 @@ export default {
}
.top {
background: #f9f9f9;
height: 54px;
height: 100px;
padding: 0px 10px 0px 43px;
overflow-wrap: anywhere;
// align-items: center;
......@@ -208,13 +208,13 @@ export default {
.num {
position: absolute;
left: 0;
width: 48px;
height: 48px;
width: 40px;
height: 40px;
top: 4px;
background: #1d84ff;
border-radius: 50%;
text-align: center;
line-height: 48px;
line-height: 40px;
font-size: 18px;
color: #ffffff;
}
......@@ -227,7 +227,7 @@ export default {
padding-right: 10px;
margin-bottom: 15px;
.item {
padding-top: 38px;
padding-top: 20px;
width: 100%;
overflow-wrap: anywhere;
font-size: 14px;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment