Browse Source

LY 培训

ly 3 năm trước cách đây
mục cha
commit
d17eb7d1dc
1 tập tin đã thay đổi với 21 bổ sung0 xóa
  1. 21 0
      ui/src/views/training/spec/successor/staffResume.vue

+ 21 - 0
ui/src/views/training/spec/successor/staffResume.vue

@@ -44,6 +44,20 @@
         </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>
@@ -241,6 +255,7 @@ export default {
     /** 查询培养计划列表 */
     getPlanList() {
       this.loading = true;
+      this.queryParams.year = this.queryDeviceParams.year
       listPlan(this.queryParams).then(response => {
         this.planList = response.rows;
         this.total = response.total;
@@ -249,6 +264,7 @@ export default {
     },
     getParticipants() {
       this.queryCompanyParams.staffId = this.staff.staffid
+      this.queryCompanyParams.year = this.queryDeviceParams.year
       listParticipants(this.queryCompanyParams).then(response => {
         this.participantsList = response.rows;
       });
@@ -259,6 +275,11 @@ export default {
         this.devicceList = response.rows;
       });
     },
+    staffQuery (){
+      this.getPlanList()
+      this.getParticipants()
+      this.getDevice()
+    },
     // 装置名称字典翻译
     plantCodeFormat(row, column) {
       return this.selectDictLabel(this.plantCodeOptions, row.plantCode);