|
@@ -82,10 +82,7 @@
|
|
</el-button>
|
|
</el-button>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
<el-form-item v-if="isShowOperate">
|
|
<el-form-item v-if="isShowOperate">
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="checkTrans()"
|
|
|
|
- v-if="!notRoutList.includes('checkTrans')"
|
|
|
|
|
|
+ <el-button type="primary" @click="checkTrans()"
|
|
><i class="el-icon-truck"></i>轨迹</el-button
|
|
><i class="el-icon-truck"></i>轨迹</el-button
|
|
>
|
|
>
|
|
<el-button type="primary" @click="operation()"
|
|
<el-button type="primary" @click="operation()"
|
|
@@ -94,10 +91,7 @@
|
|
<!-- <el-button type="primary" @click="batchoperation()"
|
|
<!-- <el-button type="primary" @click="batchoperation()"
|
|
><i class="el-icon-edit"></i>批量更改</el-button
|
|
><i class="el-icon-edit"></i>批量更改</el-button
|
|
> -->
|
|
> -->
|
|
- <el-button
|
|
|
|
- type="primary"
|
|
|
|
- @click="checkPoint()"
|
|
|
|
- v-if="!notRoutList.includes('checkPoint')"
|
|
|
|
|
|
+ <el-button type="primary" @click="checkPoint()"
|
|
><i class="el-icon-map-location"></i>实时路径</el-button
|
|
><i class="el-icon-map-location"></i>实时路径</el-button
|
|
>
|
|
>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
@@ -1250,15 +1244,12 @@ export default {
|
|
immediate: true,
|
|
immediate: true,
|
|
handler(val) {
|
|
handler(val) {
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
- console.log(val)
|
|
|
|
const start = Math.floor(val / this.itemHeight)
|
|
const start = Math.floor(val / this.itemHeight)
|
|
- console.log(start)
|
|
|
|
this.visibleList = []
|
|
this.visibleList = []
|
|
this.visibleList = this.tableData.slice(
|
|
this.visibleList = this.tableData.slice(
|
|
start,
|
|
start,
|
|
start + Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
start + Math.floor(this.maxHeight / this.itemHeight) + 1
|
|
)
|
|
)
|
|
- console.log(this.visibleList)
|
|
|
|
this.getSpanArr(this.visibleList)
|
|
this.getSpanArr(this.visibleList)
|
|
this.top = start * this.itemHeight
|
|
this.top = start * this.itemHeight
|
|
this.$nextTick(() => {
|
|
this.$nextTick(() => {
|
|
@@ -1277,12 +1268,19 @@ export default {
|
|
},
|
|
},
|
|
computed: {},
|
|
computed: {},
|
|
mounted() {
|
|
mounted() {
|
|
- this.$nextTick(() => {
|
|
|
|
- window.onresize = () => {
|
|
|
|
- return (() => {
|
|
|
|
- this.maxHeight = window.innerHeight - 150
|
|
|
|
- })()
|
|
|
|
- }
|
|
|
|
|
|
+ // window.onresize = () => {
|
|
|
|
+ // return (() => {
|
|
|
|
+ // console.log('wjll')
|
|
|
|
+ // this.maxHeight = window.innerHeight - 150
|
|
|
|
+ // })()
|
|
|
|
+ // }
|
|
|
|
+ let that = this
|
|
|
|
+ window.addEventListener('resize', function() {
|
|
|
|
+ console.log('wjll')
|
|
|
|
+ console.log(window)
|
|
|
|
+
|
|
|
|
+ that.maxHeight =
|
|
|
|
+ window.innerHeight - that.$refs.tableRef.$el.offsetTop - 150
|
|
})
|
|
})
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
this.$refs.tableRef.bodyWrapper.addEventListener('scroll', e => {
|
|
if (this.debounceS) return
|
|
if (this.debounceS) return
|
|
@@ -1678,7 +1676,6 @@ export default {
|
|
}
|
|
}
|
|
},
|
|
},
|
|
cellMouse(row, column, cell, event) {
|
|
cellMouse(row, column, cell, event) {
|
|
- console.log(row)
|
|
|
|
if (this.isRowClick == 0) {
|
|
if (this.isRowClick == 0) {
|
|
this.tableRowIndex = row.group
|
|
this.tableRowIndex = row.group
|
|
}
|
|
}
|