This commit is contained in:
shidongli 2024-12-12 17:01:34 +08:00
parent 731a71a860
commit 52960f929f

View File

@ -164,7 +164,11 @@
</div>
<div class="top">
<div class="toptop">
<el-radio v-model="item.checked2" :label="2" @change="handleCheckAllChange2($event, item, index)">
<el-radio
v-model="item.checked2"
:label="2"
@change="handleCheckAllChange2($event, item, index)"
>
<span style="width: 78px">指定时间</span>
<el-date-picker
format="yyyy-MM-dd HH:mm:ss"
@ -173,8 +177,8 @@
type="datetime"
placeholder="选择日期时间"
:picker-options="pickerOptions"
@input="input(item,index)"
@focus="setCurrentTime(item,index)"
@input="input(item, index)"
@focus="setCurrentTime(item, index)"
ref="datePicker"
>
</el-date-picker>
@ -720,7 +724,7 @@ export default {
item.timedata = ""
},
input(item,index){
input(item, index) {
this.$forceUpdate()
// const dateParts = item.nodePlanTime.split(' ');
// const date = new Date();
@ -761,7 +765,7 @@ export default {
item.routeNodeDay = ""
console.log(e, item, 'value3')
let yy = new Date().getFullYear();
let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth()) : (new Date().getMonth());
let mm = (new Date().getMonth() + 1) < 10 ? '0' + (new Date().getMonth() + 1) : (new Date().getMonth() + 1);// 0
let dd = (new Date().getDate()) < 10 ? '0' + (new Date().getDate()) : (new Date().getDate());
let hh = new Date().getHours() < 10 ? '0' + new Date().getHours() : new Date().getHours();
let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();