时分秒
This commit is contained in:
parent
95c7ffafdd
commit
4c2a534616
@ -235,7 +235,7 @@
|
|||||||
dateTimePickerInfo: {
|
dateTimePickerInfo: {
|
||||||
showCheckDate: false,
|
showCheckDate: false,
|
||||||
dataIndex: undefined,
|
dataIndex: undefined,
|
||||||
defaultDateTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
|
defaultDateTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM:ss'),
|
||||||
value: '',
|
value: '',
|
||||||
name: '',
|
name: '',
|
||||||
mode: ''
|
mode: ''
|
||||||
@ -359,9 +359,9 @@
|
|||||||
this.model.ID = this.ID
|
this.model.ID = this.ID
|
||||||
this.model.EVALUATE_LEVELName = res.EVALUATE_LEVEL !== '' && res.EVALUATE_LEVEL !== undefined ? this.enumsData['SKEvaluateLevelEnum'].find(item => item.code === res.EVALUATE_LEVEL).name : ''
|
this.model.EVALUATE_LEVELName = res.EVALUATE_LEVEL !== '' && res.EVALUATE_LEVEL !== undefined ? this.enumsData['SKEvaluateLevelEnum'].find(item => item.code === res.EVALUATE_LEVEL).name : ''
|
||||||
this.model.ACT_END_DATE = uni.$u.timeFormat(this.model.ACT_END_DATE,
|
this.model.ACT_END_DATE = uni.$u.timeFormat(this.model.ACT_END_DATE,
|
||||||
'yyyy-mm-dd')
|
'yyyy-mm-dd hh:MM:ss')
|
||||||
this.model.LEAVE_DATE = uni.$u.timeFormat(this.model.LEAVE_DATE,
|
this.model.LEAVE_DATE = uni.$u.timeFormat(this.model.LEAVE_DATE,
|
||||||
'yyyy-mm-dd')
|
'yyyy-mm-dd hh:MM:ss')
|
||||||
this.model.IS_LEAVEName = res.IS_LEAVE !== '' && res.IS_LEAVE !== undefined ? this.enumsData['FOYesOrNoEnum'].find(item => item.code === res.IS_LEAVE).name : ''
|
this.model.IS_LEAVEName = res.IS_LEAVE !== '' && res.IS_LEAVE !== undefined ? this.enumsData['FOYesOrNoEnum'].find(item => item.code === res.IS_LEAVE).name : ''
|
||||||
|
|
||||||
})
|
})
|
||||||
@ -794,20 +794,20 @@
|
|||||||
showCheckDate(dataIndex, item) {
|
showCheckDate(dataIndex, item) {
|
||||||
this.dateTimePickerInfo = {
|
this.dateTimePickerInfo = {
|
||||||
showCheckDate: true,
|
showCheckDate: true,
|
||||||
defaultDateTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd'),
|
defaultDateTime: uni.$u.timeFormat(new Date(), 'yyyy-mm-dd hh:MM:ss'),
|
||||||
dataIndex: dataIndex,
|
dataIndex: dataIndex,
|
||||||
item: item,
|
item: item,
|
||||||
mode: 'date'
|
mode: 'datetime'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//隐藏控件 显示时间
|
//隐藏控件 显示时间
|
||||||
handleCheckDate(e) {
|
handleCheckDate(e) {
|
||||||
if (this.dateTimePickerInfo.dataIndex == 1) {
|
if (this.dateTimePickerInfo.dataIndex == 1) {
|
||||||
this.model.ACT_END_DATE = uni.$u.timeFormat(e.value,
|
this.model.ACT_END_DATE = uni.$u.timeFormat(e.value,
|
||||||
'yyyy-mm-dd')
|
'yyyy-mm-dd hh:MM:ss')
|
||||||
} else if (this.dateTimePickerInfo.dataIndex == 2) {
|
} else if (this.dateTimePickerInfo.dataIndex == 2) {
|
||||||
this.model.LEAVE_DATE = uni.$u.timeFormat(e.value,
|
this.model.LEAVE_DATE = uni.$u.timeFormat(e.value,
|
||||||
'yyyy-mm-dd')
|
'yyyy-mm-dd hh:MM:ss')
|
||||||
}
|
}
|
||||||
this.dateTimePickerInfo.showCheckDate = false
|
this.dateTimePickerInfo.showCheckDate = false
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user