无人机管理后台前端(已迁走)
zrj
2024-08-30 de41e845dcaf44b535de787db3eb6a23ee45e920
src/views/device/airport.vue
@@ -102,14 +102,14 @@
          @click.stop="handleOpenFirmwarm(scope.row, scope.index)"
          >固件管理
        </el-button>
        <!-- <el-button
        <el-button
          type="primary"
          text
          icon="el-icon-share"
          v-if="permission.per_share"
          @click.stop="handleOpenFirmwarm(scope.row, scope.index)"
          >权限分享
        </el-button> -->
          v-if="permission.per_share && scope.row.domain==3"
          @click.stop="handleOpenDevicePerShare(scope.row, scope.index)"
          >机场授权
        </el-button>
      </template>
    </avue-crud>
    <el-dialog title="固件升级" append-to-body v-model="firmwareBox" width="455px">
@@ -122,13 +122,13 @@
      </template>
    </el-dialog>
    <el-drawer
      title="固件管理"
      title="机场授权管理"
      size="60%"
      append-to-body
      v-model="firmwareManageVisible"
      v-model="devicePerShareVisible"
      :direction="'rtl'"
    >
      <FirmwareManage ref="firmwareManage" />
      <DevicePerShare ref="devicePerShare" />
    </el-drawer>
  </basic-container>
</template>
@@ -148,13 +148,16 @@
import { mapGetters } from 'vuex';
import FirmwareManage from './components/firmwareManage.vue';
import DevicePerShare from './components/devicePerShare.vue';
export default {
  components: {
    FirmwareManage,
    DevicePerShare
  },
  data() {
    return {
      firmwareManageVisible: false,
      devicePerShareVisible: false,
      firmwareManageVisible:false,
      percentageNum: 0,
      firmwareBox: false,
      firmwareInfo: {},
@@ -522,6 +525,14 @@
    init() {
      this.onLoad(this.page);
    },
    // 打开权限分享页面
    handleOpenDevicePerShare(row) {
      var that = this;
      this.devicePerShareVisible = true;
      this.$nextTick(() => {
        that.$refs.devicePerShare.init(row);
      });
    },
    // 打开固件管理页面
    handleOpenFirmwarm(row) {
      var that = this;