Commit 6ea15448 by crushh

udpate: 时间

parent 4ceae9fc
......@@ -103,8 +103,6 @@ router.beforeEach((to, from, next) => {
to.meta.refresh=refresh;
}
}
console.log(from)
console.log(to)
next();
});
......
......@@ -190,8 +190,8 @@ export default {
getChartList() {
let para = {
linkId: this.linkId,
startTime: this.dateDefault[0],
endTime: this.dateDefault[1]
startTime: this.dateDefault[0] + ' 00:00:00',
endTime: this.dateDefault[1] + ' 23:59:59'
};
statisticsChart(para).then(res => {
const { result } = res.data;
......
......@@ -116,8 +116,8 @@ export default {
let para = {
inFields: {
hmId: that.hmId,
startTime: that.dateDefault[0],
endTime: that.dateDefault[1],
startTime: that.dateDefault[0] + ' 00:00:00',
endTime: that.dateDefault[1] + ' 23:59:59',
type: that.dateKey >= 2 ? 2 : 1
}
};
......
......@@ -215,8 +215,8 @@ export default {
// 列表数据
async getTableList() {
const paras = JSON.parse(JSON.stringify(this.pageParam));
paras.inFields.startTime = this.dateDefault ? this.dateDefault[0].toString() : '';
paras.inFields.endTime = this.dateDefault ? this.dateDefault[1].toString() : '';
paras.inFields.startTime = this.dateDefault ? this.dateDefault[0] + ' 00:00:00' : '';
paras.inFields.endTime = this.dateDefault ? this.dateDefault[1] + ' 23:59:59' : '';
if (this.id && this.typeT == 'code') {
paras.inFields.hmId = this.id;
} else if (this.id && this.typeT == 'link') {
......@@ -238,8 +238,8 @@ export default {
},
lookRecords(row) {
const { clerkId, linkId, hmId } = row;
const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] : undefined;
const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] : undefined;
const startTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[0] + ' 00:00:00' : undefined;
const endTime = this.dateDefault && this.dateDefault.length ? this.dateDefault[1] + '23:59:59' : undefined;
let query = { linkId, clerkId, hmId };
startTime ? (query.startTime = startTime) : '';
endTime ? (query.endTime = endTime) : '';
......
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