|
@@ -44,20 +44,7 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-card>
|
|
|
- <div style="margin-top: 7px;margin-bottom: -14px">
|
|
|
- <el-form :model="queryDeviceParams" ref="queryRegularForm" label-width="68px" :inline="true">
|
|
|
- <el-form-item :label="$t('年份')" prop="year">
|
|
|
- <el-date-picker clearable size="small" style="width: 200px"
|
|
|
- v-model="queryDeviceParams.year"
|
|
|
- type="year"
|
|
|
- value-format="yyyy"
|
|
|
- :placeholder="$t('请选择') + $t('年份')">
|
|
|
- </el-date-picker>
|
|
|
- </el-form-item>
|
|
|
- <el-button type="cyan" icon="el-icon-search" size="mini" @click="staffQuery" style="margin-left: 20px;">
|
|
|
- {{ $t('搜索') }}</el-button>
|
|
|
- </el-form>
|
|
|
- </div>
|
|
|
+
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
<span>公司级培养</span>
|
|
@@ -97,9 +84,23 @@
|
|
|
</el-card>
|
|
|
<el-card>
|
|
|
<div slot="header" class="clearfix">
|
|
|
- <span> 专项培养</span>
|
|
|
+ <span> 专项培养</span><div style="float: right;margin-bottom: -14px">
|
|
|
+ <el-form :model="queryDeviceParams" ref="queryRegularForm" label-width="68px" :inline="true">
|
|
|
+ <el-form-item :label="$t('年份')" prop="year">
|
|
|
+ <el-date-picker clearable size="small" style="width: 200px"
|
|
|
+ v-model="queryDeviceParams.year"
|
|
|
+ type="year"
|
|
|
+ value-format="yyyy"
|
|
|
+ :placeholder="$t('请选择') + $t('年份')">
|
|
|
+ </el-date-picker>
|
|
|
+ </el-form-item>
|
|
|
+ <el-button type="cyan" icon="el-icon-search" size="mini" @click="staffPlanQuery" style="margin-left: 20px;">
|
|
|
+ {{ $t('搜索') }}</el-button>
|
|
|
+ </el-form>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <el-table :data="planList" border>
|
|
|
+
|
|
|
+ <el-table :data="planList" v-loading="planLoading" border>
|
|
|
<el-table-column label="培养内容" align="center" prop="plantName" :show-overflow-tooltip="true"/>
|
|
|
<el-table-column label="开始日期" align="center" prop="startDate" width="100">
|
|
|
<template slot-scope="scope">
|
|
@@ -132,7 +133,8 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
// 遮罩层
|
|
|
- loading: true,
|
|
|
+ loading: false,
|
|
|
+ planLoading: false,
|
|
|
visible: false,
|
|
|
// 选中数组
|
|
|
ids: [],
|
|
@@ -240,6 +242,7 @@ export default {
|
|
|
this.visible = true
|
|
|
this.staff = row.staff
|
|
|
this.queryParams.staffId = row.staff.staffid
|
|
|
+ this.getNowTime()
|
|
|
this.getPlanList()
|
|
|
this.getParticipants()
|
|
|
this.getDevice()
|
|
@@ -254,17 +257,17 @@ export default {
|
|
|
},
|
|
|
/** 查询培养计划列表 */
|
|
|
getPlanList() {
|
|
|
- this.loading = true;
|
|
|
+ this.planLoading = true;
|
|
|
this.queryParams.year = this.queryDeviceParams.year
|
|
|
listPlan(this.queryParams).then(response => {
|
|
|
this.planList = response.rows;
|
|
|
this.total = response.total;
|
|
|
- this.loading = false;
|
|
|
+ this.planLoading = false;
|
|
|
});
|
|
|
},
|
|
|
getParticipants() {
|
|
|
this.queryCompanyParams.staffId = this.staff.staffid
|
|
|
- this.queryCompanyParams.year = this.queryDeviceParams.year
|
|
|
+ // this.queryCompanyParams.year = this.queryDeviceParams.year
|
|
|
listParticipants(this.queryCompanyParams).then(response => {
|
|
|
this.participantsList = response.rows;
|
|
|
});
|
|
@@ -275,10 +278,8 @@ export default {
|
|
|
this.devicceList = response.rows;
|
|
|
});
|
|
|
},
|
|
|
- staffQuery (){
|
|
|
+ staffPlanQuery (){
|
|
|
this.getPlanList()
|
|
|
- this.getParticipants()
|
|
|
- this.getDevice()
|
|
|
},
|
|
|
// 装置名称字典翻译
|
|
|
plantCodeFormat(row, column) {
|