修改
This commit is contained in:
parent
731a71a860
commit
52960f929f
@ -164,19 +164,23 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="top">
|
<div class="top">
|
||||||
<div class="toptop">
|
<div class="toptop">
|
||||||
<el-radio v-model="item.checked2" :label="2" @change="handleCheckAllChange2($event, item, index)">
|
<el-radio
|
||||||
<span style="width: 78px">指定时间:</span>
|
v-model="item.checked2"
|
||||||
<el-date-picker
|
:label="2"
|
||||||
format="yyyy-MM-dd HH:mm:ss"
|
@change="handleCheckAllChange2($event, item, index)"
|
||||||
value-format="yyyy-MM-dd HH:mm:ss"
|
|
||||||
v-model="item.nodePlanTime"
|
|
||||||
type="datetime"
|
|
||||||
placeholder="选择日期时间"
|
|
||||||
:picker-options="pickerOptions"
|
|
||||||
@input="input(item,index)"
|
|
||||||
@focus="setCurrentTime(item,index)"
|
|
||||||
ref="datePicker"
|
|
||||||
>
|
>
|
||||||
|
<span style="width: 78px">指定时间:</span>
|
||||||
|
<el-date-picker
|
||||||
|
format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
value-format="yyyy-MM-dd HH:mm:ss"
|
||||||
|
v-model="item.nodePlanTime"
|
||||||
|
type="datetime"
|
||||||
|
placeholder="选择日期时间"
|
||||||
|
:picker-options="pickerOptions"
|
||||||
|
@input="input(item, index)"
|
||||||
|
@focus="setCurrentTime(item, index)"
|
||||||
|
ref="datePicker"
|
||||||
|
>
|
||||||
</el-date-picker>
|
</el-date-picker>
|
||||||
</el-radio>
|
</el-radio>
|
||||||
</div>
|
</div>
|
||||||
@ -720,17 +724,17 @@ export default {
|
|||||||
item.timedata = ""
|
item.timedata = ""
|
||||||
},
|
},
|
||||||
|
|
||||||
input(item,index){
|
input(item, index) {
|
||||||
this.$forceUpdate()
|
this.$forceUpdate()
|
||||||
// const dateParts = item.nodePlanTime.split(' ');
|
// const dateParts = item.nodePlanTime.split(' ');
|
||||||
// const date = new Date();
|
// const date = new Date();
|
||||||
// // const year = date.getFullYear();
|
// // const year = date.getFullYear();
|
||||||
// // const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
// // const month = String(date.getMonth() + 1).padStart(2, '0'); // 月份从0开始,所以需要加1
|
||||||
// // const day = String(date.getDate()).padStart(2, '0');
|
// // const day = String(date.getDate()).padStart(2, '0');
|
||||||
// const hours = String(date.getHours()).padStart(2, '0');
|
// const hours = String(date.getHours()).padStart(2, '0');
|
||||||
// const minutes = String(date.getMinutes()).padStart(2, '0');
|
// const minutes = String(date.getMinutes()).padStart(2, '0');
|
||||||
// const ss = String(date.getSeconds()).padStart(2, '0');
|
// const ss = String(date.getSeconds()).padStart(2, '0');
|
||||||
// item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes + ':' + ss ;
|
// item.nodePlanTime = dateParts[0]+ ' ' + hours + ':' + minutes + ':' + ss ;
|
||||||
|
|
||||||
},
|
},
|
||||||
// 出院/诊后
|
// 出院/诊后
|
||||||
@ -761,7 +765,7 @@ export default {
|
|||||||
item.routeNodeDay = ""
|
item.routeNodeDay = ""
|
||||||
console.log(e, item, 'value3')
|
console.log(e, item, 'value3')
|
||||||
let yy = new Date().getFullYear();
|
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 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 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();
|
let mf = new Date().getMinutes() < 10 ? '0' + new Date().getMinutes() : new Date().getMinutes();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user