| | |
| | | v-if="permission.fly_device_offline" @click.stop="handleDeviceOffline(scope.row)">注销</el-button> |
| | | </el-dropdown-item> |
| | | <el-dropdown-item command="e"> |
| | | <el-button type="primary" text icon="el-icon-document-delete" |
| | | v-if="permission.fly_device_offline" |
| | | :disabled="scope.row.dem_status === 1" |
| | | @click.stop="handleStatus(scope.row)"> |
| | | <el-button type="primary" text icon="el-icon-document-delete" v-if="permission.fly_device_offline" |
| | | :disabled="scope.row.dem_status === 1" @click.stop="handleStatus(scope.row)"> |
| | | {{ scope.row.dem_status === 0 ? '初始化地形' : (scope.row.dem_status === 1 ? '初始化中' : '更新地形') }} |
| | | </el-button> |
| | | </el-dropdown-item> |
| | |
| | | |
| | | // 设备 |
| | | handleStatus(row) { |
| | | console.log(row, '8888') |
| | | // dem_status |
| | | if (row.dem_status === 2) { |
| | | deleteAirportTerrainHeight({ dockSn: row.device_sn }).then(res => { |
| | | initAirportTerrainHeight({ dockSn: row.device_sn, centerLon: row.longitude, centerLat: row.latitude, }).then(res => { |
| | | ElMessage.success('操作成功') |
| | | this.init() |
| | | }) |
| | | if (row.dem_status != 0){ |
| | | deleteAirportTerrainHeight({ dockSn: row.device_sn }).then(res => { |
| | | }) |
| | | } else { |
| | | initAirportTerrainHeight({ dockSn: row.device_sn, centerLon: row.longitude, centerLat: row.latitude, }).then(res => { |
| | | ElMessage.success('操作成功') |
| | | this.init() |
| | | }) |
| | | } |
| | | |
| | | this.init() |
| | | }, |
| | | |
| | | cancenOperateDo () { |