无人机管理后台前端(已迁走)
罗广辉
2025-10-11 02409bfbe15f22fc3b5dccadabfd860a660a49d9
src/views/airspace/airspaceType.vue
@@ -11,7 +11,7 @@
         <div>
          <el-form-item>
            <el-button type="primary" @click="getList">搜索</el-button>
            <el-button @click="cancelSearch">取消</el-button>
            <el-button @click="cancelSearch">清空</el-button>
          </el-form-item>
         </div>
        </div>
@@ -73,7 +73,7 @@
</template>
<script setup>
import { getAirSpaceTypeList, airSpaceTypeEdit, airSpaceTypeAdd, airSpaceTypeDelete } from '@/api/airspace/airspace';
import { ElMessage } from 'element-plus'
import { ElMessage, ElMessageBox } from 'element-plus'
const total = ref(0)
const params = ref({
@@ -126,9 +126,20 @@
  rowView.value = row
}
function handleDelete (row) {
  airSpaceTypeDelete(row.id).then(res => {
    ElMessage.success('删除成功')
    getList()
  ElMessageBox.confirm('确定将选择数据删除?', '提示', {
    confirmButtonText: '确定',
    cancelButtonText: '取消',
    type: 'warning',
  }).then(() => {
    airSpaceTypeDelete(row.id).then(res => {
      ElMessage.success('删除成功')
      getList()
    })
  }).catch(() => {
    ElMessage({
      type: 'info',
      message: '已取消删除'
    })
  })
}
function handleAdd() {