选择框精确到日
This commit is contained in:
@ -17,7 +17,7 @@
|
||||
<el-form-item label="时间选择">
|
||||
<el-date-picker
|
||||
v-model="dateRange"
|
||||
type="datetimerange"
|
||||
type="daterange"
|
||||
range-separator="至"
|
||||
start-placeholder="开始时间"
|
||||
:picker-options="pickerOptions"
|
||||
@ -112,8 +112,8 @@ export default {
|
||||
{name:'类型三',id:3},
|
||||
],
|
||||
gjdjOptions:[
|
||||
{name:'严重',id:1},
|
||||
{name:'普通',id:2},
|
||||
{name:'等级一',id:1},
|
||||
{name:'等级二',id:2},
|
||||
],
|
||||
tableData:[
|
||||
{name:'告警一',gjdj:'等级一',gjnr:'设备一温度过高',startTime:'2025/06/20 18:09:40',finishTime:'2025/06/20 20:07:01',status:1},
|
||||
@ -151,7 +151,6 @@ export default {
|
||||
const now = new Date();
|
||||
const lastMonth = new Date(now.getFullYear(), now.getMonth() - 1, 1);
|
||||
this.defaultDateRange = [lastMonth, now];
|
||||
// this.dateRange = [lastMonth, now];
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user