fix: add black
This commit is contained in:
@@ -308,8 +308,8 @@ export const asyncRoutes = [
|
|||||||
meta: { title: '用户签到记录' },
|
meta: { title: '用户签到记录' },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
path: 'userChat',
|
path: 'userDevice',
|
||||||
name: 'UserChat',
|
name: 'UserDevice',
|
||||||
component: () => import('@/views/spring/user/device/index'),
|
component: () => import('@/views/spring/user/device/index'),
|
||||||
meta: { title: '设备' },
|
meta: { title: '设备' },
|
||||||
},
|
},
|
||||||
@@ -452,8 +452,8 @@ export const asyncRoutes = [
|
|||||||
// meta: { title: '用户' },
|
// meta: { title: '用户' },
|
||||||
// },
|
// },
|
||||||
// {
|
// {
|
||||||
// path: 'userChat',
|
// path: 'userDevice',
|
||||||
// name: 'UserChat',
|
// name: 'userDevice',
|
||||||
// component: () => import('@/views/maomao/user/chat/index'),
|
// component: () => import('@/views/maomao/user/chat/index'),
|
||||||
// meta: { title: '聊天' },
|
// meta: { title: '聊天' },
|
||||||
// },
|
// },
|
||||||
|
|||||||
@@ -136,6 +136,14 @@
|
|||||||
<el-link type="primary" :underline="false" @click="goToUser(row.userId)">{{ row.userId }}</el-link>
|
<el-link type="primary" :underline="false" @click="goToUser(row.userId)">{{ row.userId }}</el-link>
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</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-table>
|
||||||
<el-pagination
|
<el-pagination
|
||||||
background
|
background
|
||||||
@@ -330,6 +338,10 @@
|
|||||||
query: { userId },
|
query: { userId },
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
goToDevice(deviceId) {
|
||||||
|
if (!deviceId) return
|
||||||
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
|
},
|
||||||
handleEventNameClick(params) {
|
handleEventNameClick(params) {
|
||||||
const name = params.name
|
const name = params.name
|
||||||
// name 可能是中文映射名,需要反向查找 key,或者在 processData 时把 key 存入
|
// name 可能是中文映射名,需要反向查找 key,或者在 processData 时把 key 存入
|
||||||
|
|||||||
@@ -122,7 +122,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
async fetchData() {
|
async fetchData() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
|
|||||||
@@ -186,7 +186,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToTemplate(templateId) {
|
goToTemplate(templateId) {
|
||||||
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })
|
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToCard(cardId) {
|
goToCard(cardId) {
|
||||||
// Assuming there is a card detail or list page, but for now just placeholder or link to card list
|
// Assuming there is a card detail or list page, but for now just placeholder or link to card list
|
||||||
|
|||||||
@@ -139,7 +139,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
async fetchData() {
|
async fetchData() {
|
||||||
this.listLoading = true
|
this.listLoading = true
|
||||||
|
|||||||
@@ -199,7 +199,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToContent(row) {
|
goToContent(row) {
|
||||||
if (row.scene === 'card_generate') {
|
if (row.scene === 'card_generate') {
|
||||||
|
|||||||
@@ -202,7 +202,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToContent(row) {
|
goToContent(row) {
|
||||||
if (row.type === 1) {
|
if (row.type === 1) {
|
||||||
|
|||||||
@@ -165,7 +165,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToShareRecord(userId) {
|
goToShareRecord(userId) {
|
||||||
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
|
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
|
||||||
|
|||||||
@@ -200,7 +200,7 @@
|
|||||||
this.$router.push({ path: '/spring/user/shareRecord', query: { keyword: shareToken } })
|
this.$router.push({ path: '/spring/user/shareRecord', query: { keyword: shareToken } })
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToTemplate(templateId) {
|
goToTemplate(templateId) {
|
||||||
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })
|
this.$router.push({ path: '/spring/blessing/template', query: { templateId } })
|
||||||
|
|||||||
@@ -214,7 +214,7 @@
|
|||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
goToDevice(deviceId) {
|
goToDevice(deviceId) {
|
||||||
this.$router.push({ path: '/spring/user/userChat', query: { deviceId } })
|
this.$router.push({ path: '/spring/user/userDevice', query: { deviceId } })
|
||||||
},
|
},
|
||||||
goToShareRecord(userId) {
|
goToShareRecord(userId) {
|
||||||
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
|
this.$router.push({ path: '/spring/user/shareRecord', query: { userId } })
|
||||||
|
|||||||
@@ -69,6 +69,10 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
const { permission } = this.$route.query
|
||||||
|
if (permission) {
|
||||||
|
this.queryForm.permission = permission
|
||||||
|
}
|
||||||
this.fetchData()
|
this.fetchData()
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user