已检测过的监测点不可编辑、删除

This commit is contained in:
caozehui
2025-11-04 08:54:40 +08:00
parent e12a1baf99
commit d329b68592
3 changed files with 23 additions and 16 deletions

View File

@@ -15,7 +15,6 @@
type="primary"
:icon="CirclePlus"
@click="openDialog('add')"
:disabled="props.DevFormContent.importFlag == 1"
>
新增
</el-button>
@@ -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"
>
删除
删除
</el-button>
</template>
</ProTable>
</div>
<MonitorPopup @getParameter="getParameter" ref="monitorPopup" />
<MonitorPopup @getParameter="getParameter" ref="monitorPopup" :DevFormContent="props.DevFormContent"/>
</template>
<script setup lang="ts">
@@ -216,6 +215,7 @@ watch(
() => props.DevFormContent.monitorList,
newVal => {
tableData.value = newVal || []
console.log(newVal)
},
{ immediate: true }
)