|
|
@ -15,6 +15,9 @@ |
|
|
|
<script> |
|
|
|
import util from '../../../../utils/util'; |
|
|
|
import store_name from '../../components/store_name/store_name'; |
|
|
|
import deviceServer from '../../js/device_server'; |
|
|
|
import deviceApi from '../../js/device_api'; |
|
|
|
|
|
|
|
const rootPage = '/subpackage/device' |
|
|
|
const tabArr = [ |
|
|
|
{id: 1, name: '照明', path: `/pages/switch_manage/switch_manage`}, |
|
|
@ -42,6 +45,17 @@ export default { |
|
|
|
tabArr, |
|
|
|
} |
|
|
|
}, |
|
|
|
onLoad(){ |
|
|
|
deviceServer.get({ |
|
|
|
url: deviceApi.hardwareList, |
|
|
|
data: { |
|
|
|
'filter[hardware_type]': 'GateControl', |
|
|
|
'filter[stadium_id]': 151, |
|
|
|
}, |
|
|
|
failMsg: '加载失败!', |
|
|
|
}) |
|
|
|
.then(console.log) |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
getImgPath(id){ |
|
|
|
if(!id)return ''; |
|
|
|