Auto commit

上级 fd510718
...@@ -11,12 +11,12 @@ export default { ...@@ -11,12 +11,12 @@ export default {
if (this.txtDate.length > 0) { if (this.txtDate.length > 0) {
this.result = '' this.result = ''
const dateList = this.txtDate.split(/\n/) const dateList = this.txtDate.split(/\n/)
for (let dateStr of x) { for (let dateStr of dateList) {
const curArr = dateStr.split('-') const curArr = dateStr.split('-')
const start = new Date(`2023-03-01 ${curArr[0]}`).getTime() const start = new Date(`2023-03-01 ${curArr[0]}`).getTime()
const end = new Date(`2023-03-01 ${curArr[1]}`).getTime() const end = new Date(`2023-03-01 ${curArr[1]}`).getTime()
this.result += dateStr, parseFloat((end-start)/1000/60) + '<br>' this.result += '<p>' + `<span style="font-weight: 600; color: green;width: 120px; display:inline-block;margin-right: 16px;">${dateStr}</span>${parseFloat((end-start)/1000/60)}分钟` + '</p>'
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册