无人机管理后台前端(已迁走)
rain
2025-03-28 deb46c0a8109b050f1a697cc9ad4f6a19e5a17c1
机场授权数据显示
1 files modified
25 ■■■■■ changed files
src/views/device/components/devicePerShare.vue 25 ●●●●● patch | view | raw | blame | history
src/views/device/components/devicePerShare.vue
@@ -42,10 +42,11 @@
        total: 0,
      },
      selectionList: [],
      deptTreeData: [],
      option: {
        lazy: true,
        tree: true,
        height: 'atuo',
        height: 'auto',
        calcHeight: 32,
        dialogWidth: 750,
        tip: false,
@@ -62,7 +63,7 @@
        column: [
          {
            label: '授权单位',
            prop: 'dept_id',
            prop: 'deptId',
            labelWidth: 130,
            type: 'tree',
            dicData:[],
@@ -85,7 +86,7 @@
          },
          {
            label: '授权单位',
            prop: 'dept_name',
            prop: 'deptName',
            labelWidth: 130,
            addDisplay:false,
            editDisabled: true,
@@ -103,7 +104,7 @@
          },
          {
            label: '授权功能',
            prop: 'device_per_menu_id',
            prop: 'devicePerMenuId',
            labelWidth: 130,
            type: 'tree',
            dicUrl: '/blade-system/manage/api/v1/devicePerMenu/selectDeviceList',
@@ -125,7 +126,7 @@
          },
          {
            label: '授权时间',
            prop: 'create_time',
            prop: 'createTime',
            type: 'date',
            addDisplay: false,
            editDisplay: false,
@@ -133,7 +134,6 @@
            row: true,
            width: 160,
            format: 'YYYY-MM-DD HH:mm:ss',
            // valueFormat: 'YYYY-MM-DD HH:mm:ss',
          },
        ],
      },
@@ -159,7 +159,6 @@
    },
  },
  methods: {
    // 初始化数据
    init(data) {
      this.deptId = data.dept_id;
      this.deviceSn = data.device_sn;
@@ -168,7 +167,8 @@
    },
    getDeptTreeInfo(){
      getDeptTreeByNotItself(this.deptId,this.deviceSn).then(res => {
        const column = this.findObject(this.option.column, 'dept_id');
        const column = this.findObject(this.option.column, 'deptId');
        this.deptTreeData = res.data.data;
        column.dicData = res.data.data;
      });
    },
@@ -178,7 +178,6 @@
        () => {
          this.initFlag = false;
          this.getLoadPage(this.page);
          // 刷新机构树
          this.getDeptTreeInfo();
          this.$message({
            type: 'success',
@@ -219,7 +218,6 @@
          return remove(row.id);
        })
        .then(() => {
          // 刷新机构树
          this.getDeptTreeInfo();
          this.getLoadPage(this.page);
          this.$message({
@@ -272,9 +270,12 @@
    },
    currentChange(currentPage) {
      this.page.currentPage = currentPage;
      this.getLoadPage(this.page, this.query); // 添加数据刷新
    },
    sizeChange(pageSize) {
      this.page.pageSize = pageSize;
      this.page.currentPage = 1; // 每页条数改变时,重置到第一页
      this.getLoadPage(this.page, this.query); // 添加数据刷新
    },
    refreshChange() {
      this.getLoadPage(this.page, this.query);
@@ -288,6 +289,9 @@
        this.data = data.records;
        this.loading = false;
        this.selectionClear();
      }).catch(err => {
        console.error('加载数据失败:', err);
        this.loading = false;
      });
    },
  },
@@ -301,6 +305,5 @@
}
.firmware_status:hover {
  cursor: pointer;
  /* color: aqua; */
}
</style>