diff --git a/frontend/src/api/device/interface/monitor.ts b/frontend/src/api/device/interface/monitor.ts
index 31e826c..2523db1 100644
--- a/frontend/src/api/device/interface/monitor.ts
+++ b/frontend/src/api/device/interface/monitor.ts
@@ -27,6 +27,7 @@ export namespace Monitor {
statInterval: number; //统计间隔
harmSysId: string; //默认与谐波系统监测点ID相同
checkFlag: number;//是否参与检测0否1是
+ resultType:string|null; //检测结果类型
}
/**
diff --git a/frontend/src/views/machine/device/components/monitorPopup.vue b/frontend/src/views/machine/device/components/monitorPopup.vue
index 7b8c9b2..85fd0c7 100644
--- a/frontend/src/views/machine/device/components/monitorPopup.vue
+++ b/frontend/src/views/machine/device/components/monitorPopup.vue
@@ -11,15 +11,15 @@
-
+
-
+
-
+
-
+
@@ -75,17 +75,17 @@
-
+
-
+
-
+
@@ -140,6 +140,11 @@ const ptSecondary = ref('')
const ctPrimary = ref('')
const ctSecondary = ref('')
+// 定义 props
+const props = defineProps<{
+ DevFormContent: Device.ResPqDev
+}>()
+
// 定义弹出组件元信息
const dialogFormRef = ref()
function useMetaInfo() {
@@ -177,7 +182,8 @@ const resetFormContent = () => {
connection: '',
statInterval: 1,
harmSysId: '',
- checkFlag: 1
+ checkFlag: 1,
+ resultType: null
}
}
diff --git a/frontend/src/views/machine/device/components/monitorTab.vue b/frontend/src/views/machine/device/components/monitorTab.vue
index 46c48e6..19be8b2 100644
--- a/frontend/src/views/machine/device/components/monitorTab.vue
+++ b/frontend/src/views/machine/device/components/monitorTab.vue
@@ -15,7 +15,6 @@
type="primary"
:icon="CirclePlus"
@click="openDialog('add')"
- :disabled="props.DevFormContent.importFlag == 1"
>
新增
@@ -38,7 +37,6 @@
link
:icon="EditPen"
:model-value="false"
- :disabled="props.DevFormContent.importFlag == 1"
@click="openDialog('edit', scope.row)"
>
编辑
@@ -49,13 +47,14 @@
link
:icon="Delete"
@click="handleDelete(scope.row.id)"
+ :disabled="scope.row.resultType!=null"
>
- 删除
+ 删除
-
+