无人机管理后台前端(已迁走)
zhongrj
2024-11-12 5db7a713152052fb70fb1cd7271367e28a74adc0
机场授权首次查询数据异常修复
2 files modified
23 ■■■■ changed files
src/views/device/components/devicePerShare.vue 19 ●●●● patch | view | raw | blame | history
vite.config.mjs 4 ●●●● patch | view | raw | blame | history
src/views/device/components/devicePerShare.vue
@@ -18,7 +18,6 @@
      @current-change="currentChange"
      @size-change="sizeChange"
      @refresh-change="refreshChange"
       @on-load="onLoad"
    >
    </avue-crud>
  </basic-container>
@@ -165,7 +164,7 @@
      this.deptId = data.dept_id;
      this.deviceSn = data.device_sn;
      this.getDeptTreeInfo();
      this.onLoad(this.page);
      this.getLoadPage(this.page);
    },
    getDeptTreeInfo(){
      getDeptTreeByNotItself(this.deptId,this.deviceSn).then(res => {
@@ -178,7 +177,7 @@
      add(row).then(
        () => {
          this.initFlag = false;
          this.onLoad(this.page);
          this.getLoadPage(this.page);
          // 刷新机构树
          this.getDeptTreeInfo();
          this.$message({
@@ -197,7 +196,7 @@
      row['device_sn'] = this.deviceSn;
        update(row).then(
        () => {
          this.onLoad(this.page);
          this.getLoadPage(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
@@ -222,7 +221,7 @@
        .then(() => {
          // 刷新机构树
          this.getDeptTreeInfo();
          this.onLoad(this.page);
          this.getLoadPage(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
@@ -231,12 +230,12 @@
    },
    searchReset() {
      this.query = {};
      this.onLoad(this.page);
      this.getLoadPage(this.page);
    },
    searchChange(params, done) {
      this.query = params;
      this.page.currentPage = 1;
      this.onLoad(this.page, params);
      this.getLoadPage(this.page, params);
      done();
    },
    selectionChange(list) {
@@ -260,7 +259,7 @@
          return remove(this.ids);
        })
        .then(() => {
          this.onLoad(this.page);
          this.getLoadPage(this.page);
          this.$message({
            type: 'success',
            message: '操作成功!',
@@ -278,9 +277,9 @@
      this.page.pageSize = pageSize;
    },
    refreshChange() {
      this.onLoad(this.page, this.query);
      this.getLoadPage(this.page, this.query);
    },
    onLoad(page, params = {}) {
    getLoadPage(page, params = {}) {
      params['device_sn'] = this.deviceSn;
      this.loading = true;
      getList(page.currentPage, page.pageSize, params).then(res => {
vite.config.mjs
@@ -38,8 +38,8 @@
      port: 2888,
      proxy: {
        '/api': {
          target: 'http://localhost',
          // target: 'https://wrj.shuixiongit.com/api',
          // target: 'http://localhost',
          target: 'https://wrj.shuixiongit.com/api',
          changeOrigin: true,
          rewrite: path => path.replace(/^\/api/, ''),
        },