吉安感知网项目-前端
张含笑
2026-01-12 b1631e475314229d3365ad7aa6397c7b70b1a8fd
applications/drone-command/src/views/aICrudTemplate/index.vue
@@ -88,7 +88,7 @@
         />
      </div>
      <FormDiaLog ref="dialogRef" @success="getList" />
      <FormDiaLog v-if="dialogVisible" v-model="dialogVisible" ref="dialogRef" @success="getList" />
   </basic-container>
</template>
@@ -115,6 +115,7 @@
const selectedIds = ref([]) // 勾选的设备ID列表
const queryParamsRef = ref(null) // 查询表单实例
const dialogRef = ref(null) // 弹框实例
const dialogVisible = ref(null) // 弹框实例
const dictObj = ref({
   deviceType: [], //设备类型
   deviceAtt: [], //设备属性
@@ -160,11 +161,13 @@
// 查看
function handleView(row) {
   dialogVisible.value = true
   dialogRef.value?.open({ mode: 'view', row: { ...row } })
}
// 编辑
function handleEdit(row) {
   dialogVisible.value = true
   dialogRef.value?.open({ mode: 'edit', row: { ...row } })
}
@@ -212,6 +215,7 @@
// 新增
function handleAdd() {
   dialogVisible.value = true
   dialogRef.value?.open({ mode: 'add' })
}