|
@@ -96,7 +96,7 @@
|
|
<el-col :span="11">
|
|
<el-col :span="11">
|
|
<el-form-item prop="startTime">
|
|
<el-form-item prop="startTime">
|
|
<el-date-picker v-model="ruleForm.startTime" type="datetime" value-format="YYYY-MM-DD HH:mm:ss"
|
|
<el-date-picker v-model="ruleForm.startTime" type="datetime" value-format="YYYY-MM-DD HH:mm:ss"
|
|
- placeholder="选择开启时间" style="width: 100%" :change="onStartTimeChange(ruleForm.startTime)"/>
|
|
|
|
|
|
+ placeholder="选择开启时间" style="width: 100%" @change="onStartTimeChange(ruleForm.startTime)"/>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<el-col class="text-center" :span="2" style="text-align: center">
|
|
<el-col class="text-center" :span="2" style="text-align: center">
|
|
@@ -354,7 +354,7 @@ const onTypeChange = (val) => {
|
|
const onStartTimeChange = (val) => {
|
|
const onStartTimeChange = (val) => {
|
|
if (val != null && val != "") {
|
|
if (val != null && val != "") {
|
|
let startDate = new Date(val)
|
|
let startDate = new Date(val)
|
|
- for (var i=0; i < templateData.value.length; i++) {
|
|
|
|
|
|
+ for (var i = 0; i < templateData.value.length; i++) {
|
|
if (templateData.value[i].id == ruleForm.actTemId) {
|
|
if (templateData.value[i].id == ruleForm.actTemId) {
|
|
const dayOfMs = 24 * 60 * 60 * 1000;
|
|
const dayOfMs = 24 * 60 * 60 * 1000;
|
|
let endTimeMs = startDate.getTime() + templateData.value[i].keepDay * dayOfMs
|
|
let endTimeMs = startDate.getTime() + templateData.value[i].keepDay * dayOfMs
|