|
@@ -29,7 +29,6 @@
|
|
|
<span class="result1">处置状态</span>
|
|
|
<span class="result2">报警时间</span>
|
|
|
</div>
|
|
|
- <!-- <VueSeamlessScroll :data="list" :class-option="classOption" class="warp" hoverStop> -->
|
|
|
<div class="" style="height: 100vh;overflow: auto;">
|
|
|
<ul class="item">
|
|
|
<div v-for="(item, index) in czztList" :key="index">
|
|
@@ -52,7 +51,6 @@
|
|
|
</div>
|
|
|
</ul>
|
|
|
</div>
|
|
|
- <!-- </VueSeamlessScroll> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -105,7 +103,6 @@
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
|
- // VueSeamlessScroll,
|
|
|
},
|
|
|
computed: {
|
|
|
classOption() {
|
|
@@ -114,7 +111,24 @@
|
|
|
};
|
|
|
},
|
|
|
},
|
|
|
- props: ['list', 'pId'],
|
|
|
+ props: ['list', 'pId', 'selectTimes'],
|
|
|
+ watch: {
|
|
|
+ list: {
|
|
|
+ handler(data) {
|
|
|
+ this.czztList = data
|
|
|
+ },
|
|
|
+ deep: true
|
|
|
+ },
|
|
|
+ selectTimes: {
|
|
|
+ handler(data) {
|
|
|
+ if (data.length === 1) {
|
|
|
+ this.times = [new Date(data[0]), new Date(data[0])]
|
|
|
+ } else if (data.length === 2) {
|
|
|
+ this.times = [new Date(data[0]), new Date(data[1])]
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
methods: {
|
|
|
searchTab() {
|
|
|
let tempTimes = []
|
|
@@ -123,7 +137,7 @@
|
|
|
} else {
|
|
|
tempTimes = this.times.map(item => moment(item).format('YYYY-MM-DD'))
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
const params = {
|
|
|
pageSize: 100,
|
|
|
pageNum: 1,
|
|
@@ -136,6 +150,11 @@
|
|
|
this.czztList = res.data.rows
|
|
|
})
|
|
|
},
|
|
|
+ resetData() {
|
|
|
+ this.times = []
|
|
|
+ this.value = ""
|
|
|
+ this.search = ""
|
|
|
+ },
|
|
|
tab(id) {
|
|
|
this.id = id;
|
|
|
this.$emit('callback', id);
|
|
@@ -155,12 +174,19 @@
|
|
|
this.type = Number(this.$route.query.type)
|
|
|
}
|
|
|
|
|
|
+ if (this.selectTimes.length === 1) {
|
|
|
+ this.times = [new Date(this.selectTimes[0]), new Date(this.selectTimes[0])]
|
|
|
+ } else if (this.selectTimes.length === 2) {
|
|
|
+ this.times = [new Date(this.selectTimes[0]), new Date(this.selectTimes[1])]
|
|
|
+ }
|
|
|
+
|
|
|
this.searchTab()
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|
|
|
+
|
|
|
::-webkit-scrollbar {
|
|
|
border-radius: 3px;
|
|
|
width: 8px;
|
|
@@ -191,9 +217,6 @@
|
|
|
color: #fff;
|
|
|
}
|
|
|
|
|
|
- ::v-deep(.el-range-input) {
|
|
|
- color: '#fff';
|
|
|
- }
|
|
|
|
|
|
::v-deep(.el-button) {
|
|
|
border: none;
|