|
@@ -1,10 +1,10 @@
|
|
<template>
|
|
<template>
|
|
<div class="app-container">
|
|
<div class="app-container">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
<el-form :model="queryParams" ref="queryForm" :inline="true" v-show="showSearch" label-width="68px">
|
|
- <el-form-item label="培训内容" prop="plantName">
|
|
|
|
|
|
+ <el-form-item label="课程内容" prop="plantName">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.plantName"
|
|
v-model="queryParams.plantName"
|
|
- placeholder="请输入培训内容"
|
|
|
|
|
|
+ placeholder="请输入课程内容"
|
|
clearable
|
|
clearable
|
|
size="small"
|
|
size="small"
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
@@ -26,7 +26,7 @@
|
|
placeholder="选择结束日期">
|
|
placeholder="选择结束日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="学时" prop="classHour">
|
|
|
|
|
|
+ <!-- <el-form-item label="学时" prop="classHour">
|
|
<el-input
|
|
<el-input
|
|
v-model="queryParams.classHour"
|
|
v-model="queryParams.classHour"
|
|
placeholder="请输入学时"
|
|
placeholder="请输入学时"
|
|
@@ -34,7 +34,7 @@
|
|
size="small"
|
|
size="small"
|
|
@keyup.enter.native="handleQuery"
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
/>
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label="学习状态" prop="studyState">
|
|
<el-form-item label="学习状态" prop="studyState">
|
|
<el-select v-model="queryParams.studyState" placeholder="请选择学习状态" clearable size="small">
|
|
<el-select v-model="queryParams.studyState" placeholder="请选择学习状态" clearable size="small">
|
|
<el-option
|
|
<el-option
|
|
@@ -112,31 +112,24 @@
|
|
<!-- 表格 -->
|
|
<!-- 表格 -->
|
|
<el-table v-loading="loading" :data="planList" @selection-change="handleSelectionChange" :height="clientHeight" border :cell-style="tableCellStyle">
|
|
<el-table v-loading="loading" :data="planList" @selection-change="handleSelectionChange" :height="clientHeight" border :cell-style="tableCellStyle">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
- <el-table-column label="培训员工" align="center" prop="staffName" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column label="培训内容" align="center" prop="plantName" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column label="开始日期" align="center" prop="startDate">
|
|
|
|
|
|
+ <el-table-column label="课程内容" align="center" prop="plantName" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="具体内容" align="center" prop="classContent" :show-overflow-tooltip="true"/>
|
|
|
|
+ <el-table-column label="开始日期" align="center" prop="startDate" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.startDate, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.startDate, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="结束日期" align="center" prop="endDate">
|
|
|
|
|
|
+ <el-table-column label="结束日期" align="center" prop="endDate" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.endDate, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="实际完成培训日期" align="center" prop="dateOfCompletion">
|
|
|
|
|
|
+ <el-table-column label="实际完成日期" align="center" prop="dateOfCompletion" width="150">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<span>{{ parseTime(scope.row.dateOfCompletion, '{y}-{m}-{d}') }}</span>
|
|
<span>{{ parseTime(scope.row.dateOfCompletion, '{y}-{m}-{d}') }}</span>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column label="学时" align="center" prop="classHour" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column label="具体内容" align="center" prop="classContent" :show-overflow-tooltip="true"/>
|
|
|
|
- <el-table-column label="学习状态" align="center" prop="studyState" :formatter="studyStateFormat">
|
|
|
|
- <!-- <template slot-scope="scope">
|
|
|
|
- <span>{{scope.row.studyState}}</span>
|
|
|
|
- <el-button icon="el-icon-view" style="color:#6e96fa" v-if="scope.row.studyState == 2" @click="handleFeedback(scope.row)" circle></el-button>
|
|
|
|
- </template> -->
|
|
|
|
- </el-table-column>
|
|
|
|
|
|
+ <el-table-column label="学习状态" align="center" prop="studyState" :formatter="studyStateFormat" width="120"/>
|
|
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
|
<el-table-column label="操作" align="center" fixed="right" class-name="small-padding fixed-width">
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
<el-button
|
|
<el-button
|
|
@@ -185,7 +178,7 @@
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
<!-- 添加对话框显示下拉列表 -->
|
|
<!-- 添加对话框显示下拉列表 -->
|
|
- <el-form-item label="培训员工" prop="staffId" v-if="this.operation=='add'">
|
|
|
|
|
|
+ <el-form-item label="员工" prop="staffId" v-if="this.operation=='add'">
|
|
<el-select v-model="form.staffId" placeholder="请选择学员">
|
|
<el-select v-model="form.staffId" placeholder="请选择学员">
|
|
<el-option
|
|
<el-option
|
|
v-for="successor in successorOptions"
|
|
v-for="successor in successorOptions"
|
|
@@ -196,11 +189,11 @@
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<!-- 修改对话框显示员工姓名 -->
|
|
<!-- 修改对话框显示员工姓名 -->
|
|
- <el-form-item label="培训员工" prop="staffName" v-if="this.operation=='modify'">
|
|
|
|
|
|
+ <el-form-item label="员工" prop="staffName" v-if="this.operation=='modify'">
|
|
<el-input v-model="form.staffName" readonly />
|
|
<el-input v-model="form.staffName" readonly />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="培训内容" prop="plantName">
|
|
|
|
- <el-input v-model="form.plantName" placeholder="请输入培训内容" />
|
|
|
|
|
|
+ <el-form-item label="课程内容" prop="plantName">
|
|
|
|
+ <el-input v-model="form.plantName" placeholder="请输入课程内容" />
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item label="部门编号" prop="deptId">
|
|
<el-form-item label="部门编号" prop="deptId">
|
|
<el-input v-model="form.deptId" placeholder="请输入部门编号" />
|
|
<el-input v-model="form.deptId" placeholder="请输入部门编号" />
|
|
@@ -221,9 +214,9 @@
|
|
placeholder="选择结束日期">
|
|
placeholder="选择结束日期">
|
|
</el-date-picker>
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item label="学时" prop="classHour">
|
|
|
|
|
|
+ <!-- <el-form-item label="学时" prop="classHour">
|
|
<el-input v-model="form.classHour" placeholder="请输入学时" />
|
|
<el-input v-model="form.classHour" placeholder="请输入学时" />
|
|
- </el-form-item>
|
|
|
|
|
|
+ </el-form-item> -->
|
|
<el-form-item label="具体内容">
|
|
<el-form-item label="具体内容">
|
|
<!-- <editor v-model="form.classContent" :min-height="192"/> -->
|
|
<!-- <editor v-model="form.classContent" :min-height="192"/> -->
|
|
<el-input
|
|
<el-input
|
|
@@ -549,7 +542,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
// 单元格样式
|
|
// 单元格样式
|
|
tableCellStyle (row, column, rowIndex, columnIndex) {
|
|
tableCellStyle (row, column, rowIndex, columnIndex) {
|
|
- if (row.column.label === "实际完成培训日期" && row.row.dateOfCompletion > row.row.endDate) {
|
|
|
|
|
|
+ if (row.column.label === "实际完成日期" && row.row.dateOfCompletion > row.row.endDate) {
|
|
return "background: #FFEEEE"
|
|
return "background: #FFEEEE"
|
|
}
|
|
}
|
|
},
|
|
},
|
|
@@ -728,7 +721,7 @@ export default {
|
|
handleAdd() {
|
|
handleAdd() {
|
|
this.reset();
|
|
this.reset();
|
|
this.open = true;
|
|
this.open = true;
|
|
- this.title = "添加培训计划";
|
|
|
|
|
|
+ this.title = "添加培养计划";
|
|
this.operation = "add";
|
|
this.operation = "add";
|
|
},
|
|
},
|
|
/** 修改按钮操作 */
|
|
/** 修改按钮操作 */
|
|
@@ -738,7 +731,7 @@ export default {
|
|
getPlan(id).then(response => {
|
|
getPlan(id).then(response => {
|
|
this.form = response.data;
|
|
this.form = response.data;
|
|
this.open = true;
|
|
this.open = true;
|
|
- this.title = "修改培训计划";
|
|
|
|
|
|
+ this.title = "修改培养计划";
|
|
this.operation = "modify";
|
|
this.operation = "modify";
|
|
});
|
|
});
|
|
},
|
|
},
|
|
@@ -779,7 +772,7 @@ export default {
|
|
/** 导出按钮操作 */
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
handleExport() {
|
|
const queryParams = this.queryParams;
|
|
const queryParams = this.queryParams;
|
|
- this.$confirm('是否确认导出所有培训计划数据项?', "警告", {
|
|
|
|
|
|
+ this.$confirm('是否确认导出所有培养计划数据项?', "警告", {
|
|
confirmButtonText: "确定",
|
|
confirmButtonText: "确定",
|
|
cancelButtonText: "取消",
|
|
cancelButtonText: "取消",
|
|
type: "warning"
|
|
type: "warning"
|