//str 传入的日期格式为xx年xx月xx日
chDate2date (str) { return str.replace(/[年|月]/g, '-').replace('日', '') },
//start为开始日期 end为结束日期 getProcess (start, end) { start = +new Date(this.chDate2date(start)) end = +new Date(this.chDate2date(end)) let now = +new Date let rs = (now - start) / (end - start) rs = rs > 1 ? 1 : rs.toFixed(2) return rs * 100 }, formatTooltip (val) { let myDate = new Date() let currdentData = myDate.toLocaleDateString() return currdentData; }