-
+
-
+
@@ -135,7 +145,9 @@
- 搜索
+ 搜索
重置
@@ -148,7 +160,7 @@
plain
type="primary"
@click="handleAdd"
- >新增
+ >新增
@@ -159,7 +171,7 @@
plain
type="success"
@click="handleUpdate"
- >修改
+ >修改
@@ -170,7 +182,7 @@
plain
type="danger"
@click="handleDelete"
- >删除
+ >删除
@@ -180,13 +192,20 @@
plain
type="warning"
@click="handleExport"
- >导出
+ >导出
-
+
-
+
@@ -196,24 +215,28 @@
-
-
-
- {{ deviceStatusMap.find(el => el.value === row.status)?.label }}
-
+
+
-
- 禁用
- 启用
- 未知
+
+
-
- {{ locationWayMap.find(el => el.value === row.locationWay)?.label }}
+
+ {{ locationWayMap.find((el) => el.value === row.locationWay)?.label }}
@@ -221,7 +244,12 @@
-
+
{{ parseTime(scope.row.activeTime, "{y}-{m}-{d}") }}
@@ -229,20 +257,35 @@
-
+
-
+
修改
- 删除
+ 删除
-
+
-
+
@@ -310,23 +362,31 @@
-
+
-
+
-
+
@@ -337,15 +397,21 @@
-
+
-
+
@@ -354,7 +420,10 @@
-
+
@@ -373,19 +442,24 @@
-
+
-
-
-
+
@@ -404,12 +478,19 @@
\ No newline at end of file
+
diff --git a/src/views/product/alertRule/index.vue b/src/views/product/alertRule/index.vue
index af91258..3fbe6bf 100644
--- a/src/views/product/alertRule/index.vue
+++ b/src/views/product/alertRule/index.vue
@@ -5,7 +5,7 @@
ref="queryRef"
:inline="true"
:model="queryParams"
- :size="productId?'small':''"
+ :size="productId ? 'small' : ''"
label-width="68px"
>
@@ -40,7 +40,6 @@
-
搜索
-
+ >搜索
+
重置
@@ -72,32 +70,32 @@
新增
+ >新增
刷新
+ >刷新
刷新
+ @click="showSelect = true"
+ >刷新
@@ -138,11 +136,12 @@
>
-
-
-
-
+
-
-
+
+
-
-
- {{ alertStatusDict.find(el => el.value === row.status)?.label }}
-
+
+
@@ -177,7 +177,7 @@
link
type="warning"
@click="handleUpdate(row)"
- >{{ productId ? "修改" : "查看" }}
+ >{{ productId ? "修改" : "查看" }}
删除
+ >删除
@@ -263,7 +263,12 @@
@@ -272,9 +277,11 @@
placeholder="请选择"
size="small"
>
-
+
- 删除
+ 删除
@@ -395,7 +408,7 @@
v-model="item.modelType"
placeholder="请选择"
size="small"
- @change="item.modelId=null"
+ @change="item.modelId = null"
>
-
+
-
+
-
-
+
+
-
+
添加触发器
@@ -468,7 +504,9 @@
-->
-
+
@@ -527,19 +564,36 @@
- 删除
+
+
+
+
+ 删除
+
+
- 添加执行动作
-
+ 添加执行动作
+
@@ -591,7 +645,13 @@
diff --git a/src/views/product/firmware/index.vue b/src/views/product/firmware/index.vue
index 571e8a4..83c30b1 100644
--- a/src/views/product/firmware/index.vue
+++ b/src/views/product/firmware/index.vue
@@ -172,20 +172,10 @@
prop="latestVersionFlag"
>
-
- {{
- firmwareLatestTypeOptions.find(
- (el) => el.value === row.latestVersionFlag
- )?.label ?? "未知"
- }}
-
+
@@ -318,6 +308,7 @@ import { listProduct } from "@/api/product/product";
import { listTenant } from "@/api/system/tenant";
import { firmwareLatestTypeOptions } from "@/constant/dict";
import { getCurrentInstance, reactive, ref, toRefs } from "vue";
+import DictTag from "@/components/DictTag/index.vue";
const props = defineProps(["productId"]);
const { productId } = toRefs(props);
diff --git a/src/views/product/product/edit.vue b/src/views/product/product/edit.vue
index c0d454c..2668cbb 100644
--- a/src/views/product/product/edit.vue
+++ b/src/views/product/product/edit.vue
@@ -85,7 +85,7 @@
v-if="form.status !== 2"
type="primary"
@click="submitForm"
- >提交
+ >提交
@@ -215,7 +215,7 @@
-