|
|
|
@ -125,7 +125,6 @@ export default { |
|
|
|
{ id: 3, name: '覆膜机', working: 1, free: 1 } |
|
|
|
], |
|
|
|
cameraList: [], |
|
|
|
refresh: this.$store.state.userInfo.userId, |
|
|
|
hasCompany: this.$store.state.companyInfo.id |
|
|
|
} |
|
|
|
}, |
|
|
|
@ -151,7 +150,14 @@ export default { |
|
|
|
} |
|
|
|
}, |
|
|
|
refresh(val) { |
|
|
|
console.log('refresh', val) |
|
|
|
if (val) { |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
|
computed: { |
|
|
|
refresh() { |
|
|
|
if (this.$store.state.userInfo.userId) { |
|
|
|
this.getFactoryList() |
|
|
|
} |
|
|
|
} |
|
|
|
@ -219,7 +225,7 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
// 先判断是否时演示工厂 |
|
|
|
go2('add-device', { id: this.factoryId, operation: 'edit' }) |
|
|
|
go2('device-operation', { id: this.factoryId, operation: 'add' }) |
|
|
|
}, |
|
|
|
// 获取摄像头列表 |
|
|
|
getCameraList() { |
|
|
|
|