Commit e7341cf1 authored by lei's avatar lei
parents 4bce6e1b db043969
......@@ -42,3 +42,10 @@ export function delDevice(id) {
method: 'delete'
})
}
//
export function deviceTypeList(id){
return request({
url: '/gemho/app/deviceTypeList?deviceType='+ id,
method: 'get'
})
}
This diff is collapsed.
......@@ -41,7 +41,7 @@
<el-table-column label="设备名称" align="center" prop="deviceName" />
<el-table-column label="设备状态" align="center" prop="deviceState">
<template slot-scope="scope">
<el-tag v-if="scope.row.deviceState == 1" type="success">正常</el-tag>
<el-tag v-if="scope.row.deviceState == 0" type="success">正常</el-tag>
<el-tag v-else type="danger">异常</el-tag>
</template>
</el-table-column>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment