|
@@ -109,7 +109,7 @@
|
|
|
<el-table-column align="center" label="异常产生时间">
|
|
|
<template slot-scope="scope">
|
|
|
<div>
|
|
|
- {{ scope.row.generateTime | dayjsFormat}}
|
|
|
+ {{ scope.row.generateTime | dayjsFormat }}
|
|
|
</div>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -148,7 +148,7 @@
|
|
|
<pagination
|
|
|
sync
|
|
|
:total.sync="rules.total"
|
|
|
- :saveKey="`indexErrDataRecord-${searchType}`"
|
|
|
+ :saveKey="`indexErrDataRecord-${searchType}`"
|
|
|
:page.sync="rules.page"
|
|
|
:limit.sync="rules.limit"
|
|
|
:page-sizes="rules.page_size"
|
|
@@ -202,13 +202,6 @@ export default {
|
|
|
};
|
|
|
},
|
|
|
mounted() {
|
|
|
- const { query } = this.$route;
|
|
|
- if (query.organId) {
|
|
|
- this.searchForm.organId = query.organId;
|
|
|
- }
|
|
|
- if (query.start && query.end) {
|
|
|
- this.searchForm.month = [query.start, query.end];
|
|
|
- }
|
|
|
this.$store.dispatch("setBranchs");
|
|
|
this.getList();
|
|
|
},
|
|
@@ -225,6 +218,15 @@ export default {
|
|
|
this.getList();
|
|
|
},
|
|
|
async getList() {
|
|
|
+ const { query } = this.$route;
|
|
|
+ if (query.organId) {
|
|
|
+ this.searchForm.organId = query.organId;
|
|
|
+ }
|
|
|
+ console.log(query.start, query.end)
|
|
|
+ if (query.start && query.end) {
|
|
|
+ this.$set(this.searchForm,'month',[query.start, query.end])
|
|
|
+ }
|
|
|
+
|
|
|
let { month, ...rest } = this.searchForm;
|
|
|
let params = {
|
|
|
...rest,
|