Commit 02eb1269 by jack

冒烟发现问题

1 parent caab304b
......@@ -221,3 +221,60 @@ export const deviceActivedShortcuts = [
},
},
]
// 超速报警
export const speedShortcuts = [
{
text: '全部',
onClick(picker) {
const end = ''
const start = ''
picker.$emit('pick', [start, end])
},
},
{
text: '昨日',
onClick(picker) {
const start = moment()
.day(moment().day() - 1)
.format('YYYY-MM-DD')
const end = moment()
.day(moment().day() - 1)
.format('YYYY-MM-DD')
picker.$emit('pick', [start, end])
},
},
{
text: '上周',
onClick(picker) {
let weekOfDay = parseInt(moment().format('E'))
const end = moment().subtract(weekOfDay, 'days').format('YYYY-MM-DD')
const start = moment()
.subtract(weekOfDay + 7 - 1, 'days')
.format('YYYY-MM-DD')
picker.$emit('pick', [start, end])
},
},
{
text: '本月',
onClick(picker) {
const start = moment().add('month', 0).format('YYYY-MM') + '-01'
const end = moment().format('YYYY-MM-DD')
picker.$emit('pick', [start, end])
},
},
{
text: '上月',
onClick(picker) {
const end = moment()
.month(moment().month() - 1)
.endOf('month')
.format('YYYY-MM-DD')
const start = moment()
.month(moment().month() - 1)
.startOf('month')
.format('YYYY-MM-DD')
picker.$emit('pick', [start, end])
},
},
]
......@@ -25,7 +25,7 @@
<div class="search_box">
<el-form :inline="true" size="small">
<el-form-item label="关键字">
<el-input v-model.trim="searchForm.keywords" class="long_input" placeholder="设备号 | 车架号 | 姓名 | 工单号" maxlength="20"></el-input>
<el-input v-model.trim="searchForm.keywords" class="long_input" placeholder="设备号 | 车架号 | 姓名 | 业务工单号" maxlength="20"></el-input>
</el-form-item>
<el-form-item label="车辆归属:">
<el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click">
......@@ -92,11 +92,9 @@
</div>
</template>
<script>
import moment from "moment";
import { fenceShortcuts } from "@/common";
import { speedShortcuts } from "@/common";
import GlsxOrganization from "@/components/glsx-organization";
import {
GET_FENCEALARM_LIST,
GET_SPEEDING_EXPORT,
GET_SPEEDING_SEARCH,
} from "@/services/alarmCenter";
......@@ -118,7 +116,7 @@ export default {
showResult: false,
loading: false,
offPickerOptions: {
shortcuts: fenceShortcuts,
shortcuts: speedShortcuts,
},
filterVisible: false,
orgInfo: {},
......
......@@ -158,7 +158,7 @@ export default {
// 重置
rest() {
this.tableParams = {};
this.searchForm = {};
this.searchForm = { queryTimeType: 1 };
this.$refs.glsxTable.rest();
},
},
......
......@@ -157,7 +157,7 @@ export default {
// 重置
rest() {
this.tableParams = {};
this.searchForm = {};
this.searchForm = {queryTimeType: 1 };
this.$refs.glsxTable.rest();
},
},
......
......@@ -922,7 +922,7 @@ export default {
//this.snForm.deviceArr = [{ sn: "", deviceType: "" }];
//this.snForm.deviceInfoDtos = [{}];
this.snForm = {};
this.snForm = {settleFlag:0};
this.$set(this.snForm, "deviceInfoDtos", [
{ sn: "", deviceClassifyName: "" },
]);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!