wanglizhong
2025-05-03 a296c6bfa83cd0a4bbc92d93c015a010248e8455
ruoyi-ui/src/views/system/gps/index.vue
@@ -101,6 +101,12 @@
            @click="handleDelete(scope.row)"
            v-hasPermi="['system:gps:remove']"
          >删除</el-button>
          <el-button
            size="mini"
            type="text"
            icon="el-icon-map-location"
            @click="handleMap(scope.row)"
          >查看轨迹</el-button>
        </template>
      </el-table-column>
    </el-table>
@@ -323,6 +329,15 @@
      this.download('system/gps/export', {
        ...this.queryParams
      }, `gps_${new Date().getTime()}.xlsx`)
    },
    /** 查看轨迹按钮操作 */
    handleMap(row) {
      this.$router.push({
        path: '/system/gps/map',
        query: {
          vehicleNo: row.vehicleNo
        }
      });
    }
  }
};