From 620880da2e11fe0a56d24662f4736332bf08e9e5 Mon Sep 17 00:00:00 2001 From: value <z1292839451@163.com> Date: 星期五, 31 五月 2024 15:48:50 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- src/components/do/b3-work-time-management/work-time-statistics.vue | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/components/do/b3-work-time-management/work-time-statistics.vue b/src/components/do/b3-work-time-management/work-time-statistics.vue index fd79c90..57777e9 100644 --- a/src/components/do/b3-work-time-management/work-time-statistics.vue +++ b/src/components/do/b3-work-time-management/work-time-statistics.vue @@ -5,17 +5,17 @@ <div class="search_label">鏃ユ湡锛�</div> <div class="search_input" style="display: flex;align-items: center;"> <el-date-picker - v-model="componentData.entity.laboratory" + v-model="componentData.entity.month" type="month" - format="yyyy-MM-dd HH:mm:ss" - value-format="yyyy-MM-dd HH:mm:ss" + format="yyyy-MM" + value-format="yyyy" placeholder="閫夋嫨鏈�" size="small" style="width: 100%;"> </el-date-picker> </div> </div> <div class="search_thing"> <div class="search_label">鍛樺伐锛�</div> - <el-select v-model="componentData.entity.laboratory" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()"> + <el-select v-model="componentData.entity.name" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()"> <el-option v-for="item in personList" :key="item.id" :label="item.name" :value="item.id"> </el-option> </el-select> @@ -23,10 +23,12 @@ <div class="search_thing"> <div class="search_label">閮ㄩ棬锛�</div> <div class="search_input"> - <el-select v-model="componentData.entity.laboratory" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()"> - <el-option v-for="item in weekList" :key="item.value" :label="item.label" :value="item.value"> - </el-option> - </el-select> + <!-- <el-select v-model="componentData.entity.laboratory" placeholder="鍏ㄩ儴" size="small" @change="refreshTable()"> + <el-option v-for="item in weekList" :key="item.value" :label="item.label" :value="item.value"> + </el-option> + </el-select> --> + <el-input size="small" placeholder="璇疯緭鍏�" clearable + v-model="componentData.entity.departLims" @keyup.enter.native="refreshTable()"></el-input> </div> </div> <div class="search_thing" style="padding-left: 30px;width: 100px;"> @@ -50,8 +52,8 @@ :url="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :componentData="componentData" :inputUrl="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :downUrl="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" :key="upIndex" /> <ValueTable ref="ValueTable1" - v-show="currentTable == 'value1'" - :url="$api.auxiliaryWorkingHours.selectAuxiliaryWorkingHours" + v-if="currentTable == 'value1'" + :url="$api.auxiliaryCorrectionHours.selectAuxiliaryCorrectionHours" :componentData="componentData0" :key="upIndex" /> </div> </div> @@ -59,6 +61,9 @@ <script> import ValueTable from '../../tool/value-table.vue' +import { + getYearAndMonthAndDays + } from '../../../util/date' export default { components: { ValueTable @@ -67,9 +72,9 @@ return{ componentData: { entity: { - number: null, - department: null, - laboratory: null, + month: null, + name: null, + departLims: null, orderBy: { field: 'id', order: 'desc' @@ -116,9 +121,9 @@ }, componentData0: { entity: { - number: null, - department: null, - laboratory: null, + month: getYearAndMonthAndDays().split('-')[0]+'-'+getYearAndMonthAndDays().split('-')[1], + name: null, + departLims: null, orderBy: { field: 'id', order: 'desc' @@ -163,6 +168,7 @@ requiredAdd: [], requiredUp: [] }, + entity:{}, upIndex:0, weekList:[], personList:[], @@ -173,6 +179,9 @@ this.getUsers() }, methods: { + getYearAndMonthAndDays(date){ + return getYearAndMonthAndDays(date) + }, refresh(){}, refreshTable(){}, getUsers(){ -- Gitblit v1.9.3