fix: add black

This commit is contained in:
zzc
2026-04-21 22:46:53 +08:00
parent 1121a6fa64
commit b52d832986
12 changed files with 29 additions and 13 deletions

View File

@@ -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 存入

View File

@@ -122,7 +122,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
async fetchData() {
this.listLoading = true

View File

@@ -186,7 +186,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToTemplate(templateId) {
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })

View File

@@ -136,7 +136,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToCard(cardId) {
// Assuming there is a card detail or list page, but for now just placeholder or link to card list

View File

@@ -139,7 +139,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
async fetchData() {
this.listLoading = true

View File

@@ -199,7 +199,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToContent(row) {
if (row.scene === 'card_generate') {

View File

@@ -202,7 +202,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToContent(row) {
if (row.type === 1) {

View File

@@ -165,7 +165,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToShareRecord(userId) {
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })

View File

@@ -200,7 +200,7 @@
this.$router.push({ path: '/spring/user/shareRecord', query: { keyword: shareToken } })
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToTemplate(templateId) {
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })

View File

@@ -214,7 +214,7 @@
this.fetchData()
},
goToDevice(deviceId) {
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
},
goToShareRecord(userId) {
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })

View File

@@ -69,6 +69,10 @@
}
},
created() {
const { permission } = this.$route.query
if (permission) {
this.queryForm.permission = permission
}
this.fetchData()
},