diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/data.js b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/data.js
index 56d19415..85dc4a06 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/data.js
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/data.js
@@ -143,7 +143,7 @@ export const searchFormList = [
required: true,
type: "datePicker",
default: [
- moment().startOf("month").format("YYYY-MM-DD HH:mm:ss"),
+ moment().subtract(1, 'days').endOf('day').format("YYYY-MM-DD HH:mm:ss"),
moment().format("YYYY-MM-DD HH:mm:ss"),
],
options: {
diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue
index 03ced8dd..c4303c20 100644
--- a/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue
+++ b/ruoyi-ui/src/views/JiHeExpressway/pages/maintenanceOperations/smart/statisticalAnalysis/query/index.vue
@@ -7,9 +7,24 @@
导出丢包
-
+ 上一日
+ 下一日
+
+
+
+
@@ -39,7 +54,7 @@
{{ scope.row.direction == "1" ? "菏泽方向" : scope.row.direction == "2" ? "双向": "济南方向"}}
-
+
@@ -125,6 +140,7 @@ export default {
sectionData: [],
searchFormList,
searchFormList2,
+ datetime: moment().format('YYYY-MM-DD'),
startTime: "",
time: "",
deviceName: null,
@@ -144,7 +160,12 @@ export default {
destroyed() {
},
+
methods: {
+ init(){
+ this.datetime = moment().format('YYYY-MM-DD');
+ this.handleSearch(datetime);
+ },
showRecord(item){
this.dialogData = item;
this.dialogVisible = true;
@@ -253,7 +274,7 @@ export default {
formatter: function (value, index) {
const date = moment(value);
const isSameDay = index > 0 && moment(x[index - 1]).isSame(date, 'day');
- return date.format('YYYY-MM-DD');
+ return date.format('MM-DD HH');
}
}
};
@@ -310,6 +331,14 @@ export default {
}
});
},
+ onDate1(){
+ this.datetime = moment(this.datetime).subtract(1, "days").format('YYYY-MM-DD');
+ this.handleSearch( this.datetime);
+ },
+ onDate2(){
+ this.datetime = moment(this.datetime).subtract(-1, "days").format('YYYY-MM-DD');
+ this.handleSearch( this.datetime);
+ },
onDeviceChange(){
//判断全选
if(this.devices.indexOf('all') !== -1 && this.devicesSource.indexOf('all') === -1){
@@ -334,8 +363,8 @@ export default {
this.initQueryTable();
},
handleSearch(data) {
- this.startTime = moment(data.time[0]).format("YYYY-MM-DD") + ' 00:00:00';
- this.time = moment(data.time[1]).format("YYYY-MM-DD") + ' 23:59:59';
+ this.startTime = moment(data).format("YYYY-MM-DD") + ' 00:00:00';
+ this.time = moment(data).format("YYYY-MM-DD") + ' 23:59:59';
this.searchText = `${moment(this.startTime).format(
@@ -362,8 +391,8 @@ export default {
text: "文件正在下载...",
});
const params = {
- startTime: this.startTime,
- time: this.time,
+ startTime: moment(this.datetime).format("YYYY-MM-DD") + ' 00:00:00',
+ time: moment(this.datetime).format("YYYY-MM-DD") + ' 23:59:59',
type: this.devices.join(','),
pageNum: this.searchData.pageNum,
pageSize: this.searchData.pageSize,
@@ -401,7 +430,7 @@ export default {
},
},
async mounted() {
- this.startTime = moment().startOf("month").format("YYYY-MM-DD HH:mm:ss");
+ this.startTime = moment().subtract(1, 'days').endOf('day').format("YYYY-MM-DD HH:mm:ss");
this.time = moment().format("YYYY-MM-DD HH:mm:ss");
@@ -571,4 +600,18 @@ export default {
border: 0px !important;
background-color: transparent !important;
}
+.dsort {
+ font-size: 12px;
+ display: flex;
+ flex-direction: row;
+ justify-content: flex-end;
+ gap: 14px;
+}
+.shezhi{
+ width: 150px;
+ height: 34px;
+ ::v-deep .el-input__inner{
+ height:32px;
+ }
+}