Browse Source

设备型号管理列表展示传感器类型

like 7 months ago
parent
commit
095545ee07
1 changed files with 11 additions and 1 deletions
  1. 11 1
      snowy-admin-web/src/views/biz/monitor/devicetype/index.vue

+ 11 - 1
snowy-admin-web/src/views/biz/monitor/devicetype/index.vue

@@ -46,6 +46,9 @@
 			<template #bodyCell="{ column, record, index }">
 			<template #bodyCell="{ column, record, index }">
 				<!-- 序号 -->
 				<!-- 序号 -->
 				<template v-if="column.dataIndex === 'index'">{{ index + 1 }} </template>
 				<template v-if="column.dataIndex === 'index'">{{ index + 1 }} </template>
+				<template v-if="column.dataIndex === 'sensorType'">
+					{{ $TOOL.dictTypeData('SENSORTYPE', record.sensorType) }}
+				</template>
 				<template v-if="column.dataIndex === 'action'">
 				<template v-if="column.dataIndex === 'action'">
 					<a-popconfirm title="确定要删除吗?" @confirm="deleteData(record)">
 					<a-popconfirm title="确定要删除吗?" @confirm="deleteData(record)">
 						<a-button type="link" danger size="small">删除</a-button>
 						<a-button type="link" danger size="small">删除</a-button>
@@ -80,6 +83,13 @@
 			ellipsis: true,
 			ellipsis: true,
 			resizable: true
 			resizable: true
 		},
 		},
+		{
+			title: '传感器类型',
+			dataIndex: 'sensorType',
+			align: 'center',
+			ellipsis: true,
+			resizable: true
+		},
 		{
 		{
 			title: '型号编号',
 			title: '型号编号',
 			dataIndex: 'code',
 			dataIndex: 'code',
@@ -151,7 +161,7 @@
 			title: '操作',
 			title: '操作',
 			dataIndex: 'action',
 			dataIndex: 'action',
 			align: 'center',
 			align: 'center',
-			width: 150
+			width: 80
 		}
 		}
 	]
 	]
 	// 可伸缩列
 	// 可伸缩列