fix: add black
This commit is contained in:
@@ -136,6 +136,14 @@
|
||||
<el-link type="primary" :underline="false" @click="goToUser(row.userId)">{{ row.userId }}</el-link>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column label="Device ID" prop="deviceId" show-overflow-tooltip>
|
||||
<template slot-scope="{ row }">
|
||||
<el-link v-if="row.deviceId" type="primary" :underline="false" @click="goToDevice(row.deviceId)">
|
||||
{{ row.deviceId }}
|
||||
</el-link>
|
||||
<span v-else>-</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
background
|
||||
@@ -330,6 +338,10 @@
|
||||
query: { userId },
|
||||
})
|
||||
},
|
||||
goToDevice(deviceId) {
|
||||
if (!deviceId) return
|
||||
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||
},
|
||||
handleEventNameClick(params) {
|
||||
const name = params.name
|
||||
// name 可能是中文映射名,需要反向查找 key,或者在 processData 时把 key 存入
|
||||
|
||||
Reference in New Issue
Block a user