|
@@ -15,7 +15,7 @@
|
|
<el-row>
|
|
<el-row>
|
|
<el-col :span="6" v-for="(item, index) in beaconDevices" :key="index">
|
|
<el-col :span="6" v-for="(item, index) in beaconDevices" :key="index">
|
|
<el-card :id="'myFrame'+item.id" shadow="never" class="myClass">
|
|
<el-card :id="'myFrame'+item.id" shadow="never" class="myClass">
|
|
- <div>
|
|
|
|
|
|
+ <div :style="item.device_type === getDeviceList().ELECTRONIC_FENCE ? 'color: red' : ''">
|
|
<svg-icon :id="'myIcon' + item.id" icon-class="footmark" class-name="footmark" style="font-size: 30px;display: none" />
|
|
<svg-icon :id="'myIcon' + item.id" icon-class="footmark" class-name="footmark" style="font-size: 30px;display: none" />
|
|
<svg-icon icon-class="sickroom" style="font-size: 40px;padding-right: 20px" />{{ item.name }}
|
|
<svg-icon icon-class="sickroom" style="font-size: 40px;padding-right: 20px" />{{ item.name }}
|
|
</div>
|
|
</div>
|
|
@@ -57,7 +57,7 @@ import { unixToDate } from '@/utils/Foundation'
|
|
import { getListByDeviceId } from '@/api/ncs_hospitalFrame'
|
|
import { getListByDeviceId } from '@/api/ncs_hospitalFrame'
|
|
// import {DeviceUrl} from "@/utils/domain"
|
|
// import {DeviceUrl} from "@/utils/domain"
|
|
const DeviceUrl = domain.DeviceUrl
|
|
const DeviceUrl = domain.DeviceUrl
|
|
-import { getDeviceByType } from '@/api/ncs_device'
|
|
|
|
|
|
+import { getLocationDeviceList } from '@/api/ncs_device'
|
|
import { DEVICE_TYPE } from '@/utils/enum/DeviceTypeEnum'
|
|
import { DEVICE_TYPE } from '@/utils/enum/DeviceTypeEnum'
|
|
export default {
|
|
export default {
|
|
name: 'Index',
|
|
name: 'Index',
|
|
@@ -118,7 +118,7 @@ export default {
|
|
methods: {
|
|
methods: {
|
|
API_Devices() {
|
|
API_Devices() {
|
|
const _this = this
|
|
const _this = this
|
|
- getDeviceByType(this.$store.getters.partId, DEVICE_TYPE.BEACON).then(res => {
|
|
|
|
|
|
+ getLocationDeviceList(this.$store.getters.partId).then(res => {
|
|
_this.beaconDevices = res
|
|
_this.beaconDevices = res
|
|
_this.API_GetList()
|
|
_this.API_GetList()
|
|
})
|
|
})
|
|
@@ -272,6 +272,9 @@ export default {
|
|
},
|
|
},
|
|
websocketclose: function(e) {
|
|
websocketclose: function(e) {
|
|
console.log('connection closed (' + e + ')')
|
|
console.log('connection closed (' + e + ')')
|
|
|
|
+ },
|
|
|
|
+ getDeviceList() {
|
|
|
|
+ return DEVICE_TYPE;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|