Auto commit

上级 ddec39d2
......@@ -13,6 +13,7 @@ export default {
txtRestIdx: '',
txtRestTime: '',
txtLastTime: '',
txtLastCount: '',
needClean: true
}
},
......@@ -41,7 +42,7 @@ export default {
let result = ''
let dateTime = ''
if (this.txtStart.trim().length > 0 && this.txtInterval.trim().length > 0 && this.txtCount.trim().length > 0) {
const count = this.txtLastInterval.trim().length > 0 ? parseInt(this.txtCount) - 1 : parseInt(this.txtCount)
const count = this.txtLastCount.trim().length > 0 ? parseInt(this.txtCount) - parseInt(this.txtLastCount) : parseInt(this.txtCount)
const interval = parseInt(this.txtInterval) * 60 * 1000
dateTime = new Date(`2023-03-01 ${this.txtStart}`).getTime()
for (let index = 1; index <= parseInt(count); index++) {
......@@ -72,15 +73,19 @@ export default {
this.resultList = '';
return false
}
if(this.txtLastInterval.length > 0) {
if(parseInt(this.txtLastCount) > 0) {
for (let index = 1; index <= parseInt(this.txtLastCount); index++) {
const curDate = new Date(dateTime)
const lastTime = parseFloat(this.txtLastInterval) * 60 * 1000
const lastTime = parseFloat(this.txtLastTime) * 60 * 1000
dateTime += lastTime
const endDate = new Date(dateTime)
result += `<p>
<span style="font-weight: 600; color: green;width: 120px; display:inline-block;margin-right: 16px;">【场次${this.txtCount}】</span>
${this.setNum(curDate.getHours())}:${this.setNum(curDate.getMinutes())}-${this.setNum(endDate.getHours())}:${this.setNum(endDate.getMinutes())}
</p>`
const lastInterval = parseInt(this.txtLastInterval) * 60 * 1000
dateTime += lastInterval
}
}
if (this.needClean) {
this.resultList = result;
......@@ -141,6 +146,10 @@ export default {
<label for="txtLastTime">压轴时长:</label>
<input v-model="txtLastTime" type="text" name="" id="txtLastTime">(分钟)
</div>
<div class="txt-box">
<label for="txtLastCount">压轴场次:</label>
<input v-model="txtLastCount" type="text" name="" id="txtLastCount">(舞台数量)
</div>
<div class="txt-box">
<label for="txtRestIdx">分割场次:</label>
<input v-model="txtRestIdx" type="text" name="" id="txtRestIdx">(第几场后休息)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册