Commit 6e875d2d authored by zhengke's avatar zhengke

修改

parent 5d461ebf
...@@ -10,11 +10,29 @@ ...@@ -10,11 +10,29 @@
display: flex; display: flex;
align-items: center; align-items: center;
} }
.Sysuser_Date .el-input__inner {
background-color: transparent;
border: 0;
}
</style> </style>
<template> <template>
<div class="page-body"> <div class="page-body">
<div class="page-search row items-center"> <div class="page-search row items-center">
<div class="col-3">
<div class="col-3 Sysuser_Date">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="msg.StartDate" type="date" placeholder="开始日期" size="small" style="width:47%;"
@change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker>
<el-date-picker v-model="msg.EndDate" type="date" placeholder="结束日期" size="small" style="width:47%;"
@change="resetSearch" clear-icon="iconfont icon-guanbi">
</el-date-picker>
</template>
</q-field>
</div>
</div>
</div> </div>
<div class="page-content"> <div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table" <q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat class="sticky-column-table"
...@@ -121,6 +139,8 @@ ...@@ -121,6 +139,8 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
StartDate:'',
EndDate:''
}, },
pageCount: 0, pageCount: 0,
} }
...@@ -129,6 +149,12 @@ ...@@ -129,6 +149,12 @@
}, },
mounted() { mounted() {
let nowDay = new Date();
var year = nowDay.getFullYear(); //年
var month = nowDay.getMonth() + 1; //月
var day = nowDay.getDate(); //日
var currentDay = year + '-' + month + '-' + day;
this.msg.StartDate = currentDay;
this.getMyDutyPage(); this.getMyDutyPage();
}, },
methods: { methods: {
...@@ -137,14 +163,20 @@ ...@@ -137,14 +163,20 @@
queryMyDutyPlanPage(this.msg).then(res => { queryMyDutyPlanPage(this.msg).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.dataList = res.Data.PageData; this.dataList = res.Data.PageData;
this.pageCount = res.Data.Count; this.pageCount = res.Data.PageCount;
} }
this.loading = false; this.loading = false;
}) })
}, },
//重新查询
resetSearch() {
this.msg.pageIndex = 1;
this.getMyDutyPage();
},
//分页改变 //分页改变
changePage(val) { changePage(val) {
this.msg.pageIndex = val; this.msg.pageIndex = val;
this.getMyDutyPage();
}, },
//开始值班 //开始值班
StartSchedule(obj) { StartSchedule(obj) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment