wzp
2025-05-08 435f6e023163ccee35dda99e9c07c187c8f0b9c6
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/mapNeed',
        query: {
          vehicleNo: row.vehicleNo
        }
      });
    }
  }
};