无人机管理后台前端(已迁走)
shuishen
2024-09-10 1dd7827ff9c42a016a1e45913ce2fd78a79f4983
src/views/device/airport.vue
@@ -106,12 +106,22 @@
          type="primary"
          text
          icon="el-icon-share"
          v-if="permission.per_share && scope.row.domain==3"
          v-if="permission.per_share && scope.row.domain == 3"
          @click.stop="handleOpenDevicePerShare(scope.row, scope.index)"
          >机场授权
        </el-button>
        <!-- <el-button
          type="primary"
          text
          icon="el-icon-share"
          v-if="permission.per_share && scope.row.domain == 3"
          @click.stop="handleOpenRemoteDebugging(scope.row, scope.index)"
          >远程调试
        </el-button> -->
      </template>
    </avue-crud>
    <el-dialog title="固件升级" append-to-body v-model="firmwareBox" width="455px">
      <div>升级固件版本:{{ firmwareVersion }}</div>
      <template #footer>
@@ -121,6 +131,7 @@
        </span>
      </template>
    </el-dialog>
    <el-drawer
      title="机场授权管理"
      size="60%"
@@ -129,6 +140,15 @@
      :direction="'rtl'"
    >
      <DevicePerShare ref="devicePerShare" />
    </el-drawer>
    <el-drawer title="远程调试" append-to-body v-model="remoteDebuggingShow" size="40%">
      <DockControlPanel
        v-if="remoteDebuggingShow"
        :sn="curDeviceInfo.device_sn"
        :deviceInfo="curDeviceInfo"
      >
      </DockControlPanel>
    </el-drawer>
  </basic-container>
</template>
@@ -149,15 +169,21 @@
import { mapGetters } from 'vuex';
import FirmwareManage from './components/firmwareManage.vue';
import DevicePerShare from './components/devicePerShare.vue';
import DockControlPanel from './components/DockControlPanel.vue';
export default {
  components: {
    FirmwareManage,
    DevicePerShare
    DevicePerShare,
    DockControlPanel,
  },
  data() {
    return {
      devicePerShareVisible: false,
      firmwareManageVisible:false,
      remoteDebuggingShow: false,
      curDeviceInfo: {},
      firmwareManageVisible: false,
      percentageNum: 0,
      firmwareBox: false,
      firmwareInfo: {},
@@ -533,6 +559,12 @@
        that.$refs.devicePerShare.init(row);
      });
    },
    handleOpenRemoteDebugging(row) {
      this.curDeviceInfo = row;
      this.remoteDebuggingShow = true;
    },
    // 打开固件管理页面
    handleOpenFirmwarm(row) {
      var that = this;