diff --git a/src/views/iot/device/index.vue b/src/views/iot/device/index.vue
index 783fb4e..ec19e55 100644
--- a/src/views/iot/device/index.vue
+++ b/src/views/iot/device/index.vue
@@ -30,6 +30,16 @@
+
+
+
+
+
{
+ return [
+ {
+ label: '全部',
+ value: '',
+ },
+ ];
+ });
// 获取设备列表
const fetchData = async (params = { size: 10, current: 1 }) => {
diff --git a/src/views/iot/deviceCard/components/card-wrap.vue b/src/views/iot/deviceCard/components/card-wrap.vue
index af5310c..2f99997 100644
--- a/src/views/iot/deviceCard/components/card-wrap.vue
+++ b/src/views/iot/deviceCard/components/card-wrap.vue
@@ -14,8 +14,8 @@
-
- {{ createBy }}
+
+ {{ productName }}
{{ dayjs(createTime).format('YYYY-MM-DD HH:mm:ss') }}
@@ -68,7 +68,7 @@
type: Number,
default: -1,
},
- createBy: {
+ productName: {
type: String,
default: '',
},
diff --git a/src/views/iot/deviceCard/index.vue b/src/views/iot/deviceCard/index.vue
index 5db8ee9..cd41a18 100644
--- a/src/views/iot/deviceCard/index.vue
+++ b/src/views/iot/deviceCard/index.vue
@@ -30,6 +30,16 @@
+
+
+
+
+
@@ -94,25 +104,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{
+ return [
+ {
+ label: '全部',
+ value: '',
+ },
+ ];
+ });
+
// 获取设备列表
const fetchData = async (params = { size: 10, current: 1 }) => {
@@ -207,26 +207,6 @@
formModel.value = generateFormModel();
};
- // // 打开详情
- // function openDetail(id:number): void{
- // const url = router.resolve({
- // name: 'deviceDetail',
- // params: {id}
- // }).href;
- // router.push(url);
- // }
-
- // // 删除
- // const handleDelete = async (id: number) => {
- // const res = await deleteDevice(id);
- // if (res.status === 200) {
- // Message.success({
- // content: '删除成功',
- // duration: 5 * 1000,
- // });
- // search();
- // }
- // };
onMounted(() => {
search();
});