|
@@ -1,7 +1,5 @@
|
|
|
<template>
|
|
|
<div class="realtime-table">
|
|
|
- <!--element-loading-text="拼命加载中"
|
|
|
- element-loading-spinner="el-icon-loading"-->
|
|
|
<el-table
|
|
|
v-loading="tableData.length <= 0"
|
|
|
element-loading-background="inherit"
|
|
@@ -74,7 +72,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { findCollectEntityInfo } from '@/api/CollectEntity'
|
|
|
+import { findEntityByAcqId } from '@/api/CollectEntity'
|
|
|
import { findTableColumnsNotStatus } from '@/api/TableConfig'
|
|
|
import { mapState } from 'vuex'
|
|
|
|
|
@@ -91,6 +89,7 @@ export default {
|
|
|
computed: {
|
|
|
...mapState({
|
|
|
realtimeData: (state, getter) => state.queue.realtimeData,
|
|
|
+ acquisitionStationId: state => state.company.acquisitionStationId,
|
|
|
}),
|
|
|
},
|
|
|
watch: {
|
|
@@ -129,12 +128,14 @@ export default {
|
|
|
this.tableColumns = res.data
|
|
|
}
|
|
|
})
|
|
|
- await findCollectEntityInfo().then(res => {
|
|
|
+ const params = {
|
|
|
+ acquisitionStationId: this.acquisitionStationId,
|
|
|
+ }
|
|
|
+ await findEntityByAcqId(params).then(res => {
|
|
|
// 按照实体分类, 对应第二列
|
|
|
const tableDataWrapper = []
|
|
|
handleData(tableDataWrapper, res.data)
|
|
|
this.tableDataWrapper = tableDataWrapper
|
|
|
- console.log('tableDataWrapper =>', tableDataWrapper)
|
|
|
})
|
|
|
},
|
|
|
getCellStyle({ row, column, rowIndex, columnIndex }) {
|