34f41387 by 任超

style:登薄日志

1 parent 2728c985
......@@ -25,7 +25,8 @@
<el-col :span="6">
<el-form-item label="结束日期" prop="endTime">
<el-date-picker type="date" class="width100" placeholder="结束日期" :picker-options="pickerOptionsEnd"
clearable v-model="form.endTime" value-format="yyyy/MM/dd HH:mm:ss" @change="endTimeChange"></el-date-picker>
clearable v-model="form.endTime" value-format="yyyy/MM/dd HH:mm:ss"
@change="endTimeChange"></el-date-picker>
</el-form-item>
</el-col>
<!-- 操作按钮 -->
......@@ -55,7 +56,7 @@ import tableMixin from "@/mixins/tableMixin.js";
import { getRecordLogPage } from "@/api/recordLog.js";
import { mapGetters } from 'vuex'
//引入日期处理方法
import {timeFormat } from "@/utils/operation";
import { timeFormat } from "@/utils/operation";
export default {
name: "dbrzcx",
mixins: [tableMixin],
......@@ -68,7 +69,7 @@ export default {
pickerOptionsStart: {
disabledDate: (time) => {
if (this.form.endTime) {
return time.getTime() >= new Date(this.form.endTime).getTime()
return time.getTime() >= new Date(this.form.endTime).getTime()
}
}
},
......@@ -76,7 +77,7 @@ export default {
pickerOptionsEnd: {
disabledDate: (time) => {
if (this.form.startTime) {
return time.getTime() < new Date(this.form.startTime).getTime()
return time.getTime() < new Date(this.form.startTime).getTime()
}
}
},
......@@ -86,6 +87,12 @@ export default {
startTime: '',
endTime: '',
},
// 分页
pageData: {
total: 0,
pageSize: 10,
current: 1
},
// table数据
tableData: {
// 表头
......@@ -109,8 +116,8 @@ export default {
},
methods: {
//截止日期变化
endTimeChange(val){
this.form.endTime = timeFormat(new Date(val),true)
endTimeChange (val) {
this.form.endTime = timeFormat(new Date(val), true)
},
queryClick () {
getRecordLogPage({ ...this.form, ...this.pageData }).then(res => {
......