Commit cfd038c4 authored by sxl's avatar sxl 💬

task:设备管理新增逻辑更换

parent 59860bde
...@@ -42,3 +42,10 @@ export function delDevice(id) { ...@@ -42,3 +42,10 @@ export function delDevice(id) {
method: 'delete' method: 'delete'
}) })
} }
//
export function deviceTypeList(id){
return request({
url: '/gemho/app/deviceTypeList?deviceType='+ id,
method: 'get'
})
}
This diff is collapsed.
...@@ -41,7 +41,7 @@ ...@@ -41,7 +41,7 @@
<el-table-column label="设备名称" align="center" prop="deviceName" /> <el-table-column label="设备名称" align="center" prop="deviceName" />
<el-table-column label="设备状态" align="center" prop="deviceState"> <el-table-column label="设备状态" align="center" prop="deviceState">
<template slot-scope="scope"> <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> <el-tag v-else type="danger">异常</el-tag>
</template> </template>
</el-table-column> </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