Commit 6ea15448 by crushh

udpate: 时间

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