Commit 1bbd4d8b authored by 吴冠's avatar 吴冠

time修改

parent f6e967ca
...@@ -163,11 +163,13 @@ import Cookies from 'js-cookie' ...@@ -163,11 +163,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
async getErrorList(params){ async getErrorList(params){
const {data,total} = await getErrorList(params) const {data,total} = await getErrorList(params)
......
...@@ -211,11 +211,13 @@ import Cookies from 'js-cookie' ...@@ -211,11 +211,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
async getAllList(params){ async getAllList(params){
const {data,total,code} = await getAllList(params) const {data,total,code} = await getAllList(params)
......
...@@ -157,11 +157,13 @@ import Cookies from 'js-cookie' ...@@ -157,11 +157,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
timeChange(e){ timeChange(e){
this.getData.beginDate = e[0].getTime() this.getData.beginDate = e[0].getTime()
......
...@@ -215,11 +215,13 @@ export default { ...@@ -215,11 +215,13 @@ export default {
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
reset(){ reset(){
this.getData.industryId = '' this.getData.industryId = ''
......
...@@ -165,11 +165,13 @@ import Cookies from 'js-cookie' ...@@ -165,11 +165,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
async getCadidateList(params){ async getCadidateList(params){
const {data,total} = await getCadidateList(params) const {data,total} = await getCadidateList(params)
......
...@@ -165,11 +165,13 @@ import Cookies from 'js-cookie' ...@@ -165,11 +165,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
async getChangeList(params){ async getChangeList(params){
const {data,total} = await getChangeList(params) const {data,total} = await getChangeList(params)
......
...@@ -163,11 +163,13 @@ import Cookies from 'js-cookie' ...@@ -163,11 +163,13 @@ import Cookies from 'js-cookie'
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
async getClerList(params){ async getClerList(params){
const {data,total} = await getClerList(params) const {data,total} = await getClerList(params)
......
...@@ -209,11 +209,13 @@ export default { ...@@ -209,11 +209,13 @@ export default {
var Month = date.getMonth() + 1; var Month = date.getMonth() + 1;
var Day = date.getDate(); var Day = date.getDate();
var Y = date.getFullYear() + '-'; var Y = date.getFullYear() + '-';
var hh = date.getHours() + ':'; var hh = date.getHours();
var mm = date.getMinutes(); var mm = date.getMinutes();
var h = hh<10?'0'+hh+':':hh+':'
var m = mm<10?'0'+mm:mm
var M = Month < 10 ? '0' + Month + '-' : Month + '-'; var M = Month < 10 ? '0' + Month + '-' : Month + '-';
var D = Day + 1 < 10 ? '0' + Day : Day; var D = Day < 10 ? '0' + Day : Day;
return Y + M + D + " " +hh + mm; return Y + M + D + " " +h + m;
}, },
testChange(e) { testChange(e) {
......
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