Auto commit

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