无人机管理后台前端(已迁走)
chenyao
2025-09-11 5b73519a2c26fea97b4dfd7f56ee6c4e5ea27dde
Merge branch 'feature/v5.0/5.0.5' into feature/v6.0/6.0.1
2 files modified
15 ■■■■ changed files
src/api/device/device.js 8 ●●●●● patch | view | raw | blame | history
src/views/device/airport.vue 7 ●●●●● patch | view | raw | blame | history
src/api/device/device.js
@@ -159,4 +159,12 @@
    method: 'post',
    data: param
  })
}
export const devicesUpAndDown = (param) => {
  return request({
    url: `/drone-device-core/manage/api/v1/devices/upAndDown`,
    method: 'post',
    data: param
  })
}
src/views/device/airport.vue
@@ -212,7 +212,8 @@
  getDeviceFirmwareList,
  getDevices,
  deviceOffline,
  devicesUpdate
  devicesUpdate,
  devicesUpAndDown
} from '@/api/device/device'
import { deleteByOssId, addOrUpdate as addOrUpdateOssBind } from '@/api/device/ossBind'
import { getListPage as getOssList } from '@/api/resource/oss'
@@ -968,7 +969,7 @@
    cancenOperateDo () {
      this.cancenOperate = false
      this.deleteFlag = false
      deviceOffline(this.cancenOperateRow.device_sn, this.deleteFlag).then(res => {
      deviceOffline(this.cancenOperateRow.device_sn, true).then(res => {
        ElMessage.success('注销成功')
        
        this.init()
@@ -1011,7 +1012,7 @@
      })
        .then(() => {
          let hidden_flag = row.hidden_flag === 1?0:1
          devicesUpdate({id:row.id, hiddenFlag:hidden_flag})
          devicesUpAndDown({id:row.id, hiddenFlag:hidden_flag})
            .then(res => {
              ElMessage.success(`${txt}成功`)
              this.init()