Browse Source

refactor(views): streamline input and drawer components in lss/index.vue

- Consolidated attributes in input components for improved readability and consistency.
- Enhanced layout of table and pagination components for better user experience.
- Simplified drawer component structures to maintain visual consistency across the application.
yb 3 days ago
parent
commit
b2e24ed96b
1 changed files with 8 additions and 3 deletions
  1. 8 3
      src/views/lss/index.vue

+ 8 - 3
src/views/lss/index.vue

@@ -1333,9 +1333,14 @@ async function handleSubmitCamera() {
 
 async function handleDeleteCamera(row: CameraInfoDTO) {
   try {
-    await ElMessageBox.confirm(`确定要删除摄像头 "${row.cameraName}" 吗?`, '提示', {
-      type: 'warning'
-    })
+    await ElMessageBox.confirm(
+      `你确定要删除这个设备吗?<br/>设备ID:${row.cameraId}<br/>设备名称:${row.cameraName}`,
+      '提示',
+      {
+        type: 'warning',
+        dangerouslyUseHTMLString: true
+      }
+    )
     const res = await adminDeleteCamera(row.id)
     if (res.success) {
       ElMessage.success('删除成功')