|
@@ -92,7 +92,7 @@
|
|
|
<div class="mr-2.5 flex items-center">
|
|
|
<img src="@/assets/svgs/iot/card-fill.svg" class="w-[18px] h-[18px]" />
|
|
|
</div>
|
|
|
- <div class="text-[16px] font-600 flex-1">{{ item.deviceName }}</div>
|
|
|
+ <div class="text-[16px] font-600 flex-1">{{ item.deviceCode+item.deviceName }}</div>
|
|
|
<!-- 添加设备状态标签 -->
|
|
|
<div class="inline-flex items-center">
|
|
|
<div
|
|
@@ -145,7 +145,7 @@
|
|
|
class="flex-1 !px-2 !h-[32px] text-[13px]"
|
|
|
type="warning"
|
|
|
plain
|
|
|
- @click="openDetail(item.id, item.ifInline, item.lastInlineTime,item.deviceName,item.deviceCode)"
|
|
|
+ @click="openDetail(item.id, item.ifInline, item.lastInlineTime,item.deviceName,item.deviceCode,item.deptName)"
|
|
|
>
|
|
|
<Icon icon="ep:view" class="mr-1" />
|
|
|
详情
|
|
@@ -322,13 +322,13 @@ const resetQuery = () => {
|
|
|
|
|
|
/** 打开详情 */
|
|
|
const { push } = useRouter()
|
|
|
-const openDetail = (id: number,ifInline: string, time:string, name:string,code:string) => {
|
|
|
+const openDetail = (id: number,ifInline: string, time:string, name:string,code:string, dept:string) => {
|
|
|
debugger
|
|
|
if (time === null||time === undefined) {
|
|
|
message.warning("没有数采数据")
|
|
|
return
|
|
|
}
|
|
|
- push({ name: 'TdDeviceDetail', params: { id,ifInline, time,name,code } })
|
|
|
+ push({ name: 'TdDeviceDetail', params: { id,ifInline, time,name,code,dept } })
|
|
|
}
|
|
|
|
|
|
|