| | |
| | | size="small" |
| | | format="yyyy" |
| | | placeholder="选择年" |
| | | @change="refreshTable()" |
| | | style="width: 140px;" |
| | | :clearable="false"> |
| | | </el-date-picker> |
| | |
| | | clearable |
| | | placeholder="选择月" |
| | | style="width: 140px;margin-left: 16px;" |
| | | size="small"> |
| | | size="small" |
| | | @change="refreshTable()"> |
| | | <el-option |
| | | v-for="item in monthOptions" |
| | | :key="item.value" |
| | |
| | | :value="item.value"> |
| | | </el-option> |
| | | </el-select> |
| | | <el-input v-model="query.userName" placeholder="请输入人员名称" size="small" style="width: 140px;margin: 0 16px;" clearable ></el-input> |
| | | <el-select v-model="query.laboratory" placeholder="请选择实验室" style="width: 140px;" size="small" clearable > |
| | | <el-input v-model="query.userName" placeholder="请输入人员名称" size="small" style="width: 140px;margin: 0 16px;" clearable @keyup.enter.native="refreshTable()"></el-input> |
| | | <el-select v-model="query.laboratory" placeholder="请选择实验室" style="width: 140px;" size="small" clearable @change="refreshTable()"> |
| | | <el-option |
| | | v-for="item in laboratory" |
| | | :key="item.value" |
| | |
| | | </div> |
| | | </div> |
| | | <div class="center" v-loading="pageLoading"> |
| | | <scroll-pagination @load="init" :finishLoding="finishLoding" v-show="query.month&&list.length>0"> |
| | | <scroll-pagination @load="init" :finishLoding="finishLoding" v-show="query.month&&list.length>0" style="height: 100%;" :key="'123'"> |
| | | <div class="clearfix"> |
| | | <div class="fixed-left"> |
| | | <div class="content-title" style="padding-left: 16px;box-sizing: border-box;"> |
| | |
| | | </div> |
| | | </div> |
| | | </scroll-pagination> |
| | | <scroll-pagination @load="initYear" :finishLoding="finishLoding" v-show="!query.month&&list.length>0" style="width: 100%;"> |
| | | <scroll-pagination @load="initYear" :finishLoding="finishLoding" v-show="!query.month&&yearList.length>0" style="width: 100%;" :key="'111'"> |
| | | <div class="clearfix year-table"> |
| | | <div class="fixed-left"> |
| | | <div class="content-title" style="padding-left: 16px;box-sizing: border-box;"> |
| | |
| | | </div> |
| | | </div> |
| | | </scroll-pagination> |
| | | <span style="color:#909399;font-size:14px;position: absolute;left:50%;top: 50%;transform: translate(-59%,-50%);" v-if="list.length==0">暂无数据</span> |
| | | <span style="color:#909399;font-size:14px;position: absolute;left:50%;top: 50%;transform: translate(-59%,-50%);" v-if="(query.month&&list.length==0)||(!query.month&&yearList.length==0)">暂无数据</span> |
| | | </div> |
| | | <el-dialog title="排班" :visible.sync="schedulingVisible" width="400px"> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">周次:</div> |
| | | <div class="search_input"> |
| | | <div class="search_label" style="width:90px"><span style="color: red;margin-right: 4px;">*</span>周次:</div> |
| | | <div class="search_input" style="width: calc(100% - 90px);"> |
| | | <el-date-picker |
| | | v-model="schedulingQuery.week" |
| | | type="week" |
| | | format="yyyy 第 WW 周" |
| | | placeholder="选择周次" style="width: 203px;"> |
| | | placeholder="选择周次" style="width: 100%"> |
| | | </el-date-picker> |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">人员名称:</div> |
| | | <div class="search_input"> |
| | | <div class="search_label" style="width:90px"><span style="color: red;margin-right: 4px;">*</span>人员名称:</div> |
| | | <div class="search_input" style="width: calc(100% - 90px);"> |
| | | <el-select v-model="schedulingQuery.userId" placeholder="请选择" style="width: 100%;" multiple clearable collapse-tags > |
| | | <el-option |
| | | v-for="item in personList" |
| | |
| | | </div> |
| | | </div> |
| | | <div class="search_thing"> |
| | | <div class="search_label" style="width:90px">班次:</div> |
| | | <div class="search_input"> |
| | | <div class="search_label" style="width:90px"><span style="color: red;margin-right: 4px;">*</span>班次:</div> |
| | | <div class="search_input" style="width: calc(100% - 90px);"> |
| | | <el-select v-model="schedulingQuery.shift" placeholder="请选择" style="width: 100%;"> |
| | | <el-option |
| | | v-for="item in classType" |
| | |
| | | // } |
| | | // this.monthList.reverse() |
| | | // }, |
| | | 'query.month'(val){ |
| | | if(!val){ |
| | | this.currentPage = 1; |
| | | this.yearList = [] |
| | | this.initYear() |
| | | } |
| | | } |
| | | // 'query.month'(val){ |
| | | // if(!val){ |
| | | // this.currentPage = 1; |
| | | // this.yearList = [] |
| | | // this.initYear() |
| | | // } |
| | | // } |
| | | }, |
| | | mounted(){ |
| | | this.selectEnumByCategory() |
| | |
| | | } |
| | | }, |
| | | refreshTable(){ |
| | | this.list = []; |
| | | this.yearList = [] |
| | | this.currentPage = 1 |
| | | if(this.query.month){ |
| | | this.list = []; |
| | | this.init() |
| | | }else{ |
| | | this.yearList = [] |
| | | this.initYear() |
| | | } |
| | | }, |
| | |
| | | let obj = {} |
| | | for (let key in item.month[m]) { |
| | | let type = this.getDayByDic(key) |
| | | console.log(type) |
| | | if(type!=undefined||type!=null){ |
| | | obj[`day${type}`] = item.month[m][key] |
| | | } |
| | |
| | | } |
| | | .center { |
| | | width: 100%; |
| | | height: calc(100% - 40px ); |
| | | height: calc(100% - 50px ); |
| | | background-color: #fff; |
| | | overflow-y: auto; |
| | | display: flex; |
| | | } |
| | | >>>.scroll-pagination{ |
| | | overflow-y: scroll; |
| | | scrollbar-width: none; /* 对于 Firefox 和 IE 的兼容写法 */ |
| | | scrollbar-width: none; |
| | | } |
| | | >>>.scroll-pagination::-webkit-scrollbar { |
| | | display: none; /* 对于 Chrome, Safari 和 Opera 的写法 */ |
| | | display: none; |
| | | } |
| | | .fixed-left { |
| | | float: left; |