Browse Source

报警记录

master
z_yu 3 years ago
parent
commit
d27ddde222
  1. 5
      src/views/components/WarehouseWarning.vue
  2. 10
      src/views/storeManage/warehouse3D/archivesStorage/index.vue
  3. 3
      src/views/storeManage/warehouse3D/collateRoom/index.vue
  4. 11
      src/views/storeManage/warehouse3D/readRoom/index.vue

5
src/views/components/WarehouseWarning.vue

@ -70,8 +70,11 @@ export default {
// this.tableData.push(...data)
// })
// this.openSocket()
console.log(111111)
alarmApi.info({ storeroomId: this.storeroomId }).then((data) => {
this.tableData.push(...data)
if (data && data.length > 0) {
this.tableData.push(...data)
}
})
},
destroyed() {

10
src/views/storeManage/warehouse3D/archivesStorage/index.vue

@ -61,7 +61,7 @@
</div>
<div class="warehouse-right">
<!-- 报警记录 -->
<warehouse-warning :height="'calc(100% - 40px)'" />
<warehouse-warning :height="'calc(100% - 40px)'" :storeroom-id="roomId" />
<!-- <div class="container-wrap" style="margin-bottom:20px">
<span class="right-top-line" />
<span class="left-bottom-line" />
@ -107,7 +107,6 @@
</template>
<script>
import data1 from '../data1.json'
import WarehouseWarning from '@/views/components/WarehouseWarning'
import SecurityDoor from '@/views/components/SecurityDoor'
export default {
@ -115,13 +114,13 @@ export default {
components: { WarehouseWarning, SecurityDoor },
data() {
return {
tableData: [],
roomId: 'D6490DA3D4261E8C26D0E3',
iframeWin: null,
timer: null, // id
isScroll: false //
}
},
created() {
async created() {
window.getIframeLoading = this.getIframeLoading // vuewindow
},
mounted() {
@ -199,9 +198,6 @@ export default {
// true false
window.frames['iframeMap'].setYangGanCanshow(deviceId, false)
},
getData() {
this.tableData = data1.rows
},
//
rowBgColor({ row, rowIndex }) {
if (rowIndex % 2 === 1) {

3
src/views/storeManage/warehouse3D/collateRoom/index.vue

@ -13,7 +13,7 @@
/>
</div>
</div>
<warehouse-warning :height="'calc(100vh - 235px)'" />
<warehouse-warning :height="'calc(100vh - 235px)'" :storeroom-id="roomId" />
</div>
</template>
@ -24,6 +24,7 @@ export default {
components: { WarehouseWarning },
data() {
return {
roomId: 'D5C48B49DF66183CF24974'
}
},
created() {

11
src/views/storeManage/warehouse3D/readRoom/index.vue

@ -6,13 +6,12 @@
<iframe id="myIframe" ref="myIframe" name="iframeMap" class="iframe_box" src="/webC/index.html" frameborder="0" scrolling="no" />
</div>
</div>
<warehouse-warning :height="'calc(100vh - 235px)'" />
<warehouse-warning :height="'calc(100vh - 235px)'" :storeroom-id="roomId" />
</div>
</template>
<script>
import WarehouseWarning from '@/views/components/WarehouseWarning'
import storeroomApi from '@/api/storeManage/deviceManage/storeroom'
import displayConfigApi from '@/api/storeManage/displayConfig'
export default {
name: 'ReadRoom',
@ -20,16 +19,14 @@ export default {
data() {
return {
tableData: [],
roomId: '',
roomId: '9E0A527462BB8A060EB165',
displayConfigData: []
}
},
async created() {
created() {
window.getIframeLoading = this.getIframeLoading // vuewindow
const roomsData = await storeroomApi.getRooms()
this.roomId = roomsData[0].children.find((x) => { return x.name === '阅览室' }).id
if (this.roomId) {
this.displayConfigData = await displayConfigApi.list({ storeroomId: this.roomId })
this.displayConfigData = displayConfigApi.list({ storeroomId: this.roomId })
}
},
mounted() {

Loading…
Cancel
Save