leaflet 多边形框选组件 leaflet-editable
npm install leaflet-editable@1.2.0 因为新版本的babel不兼容会报错 initMap() { this.map = L.map("leaflet", { center: this.center, //中心坐标 zoom: 17, //缩放级别 minZoom: 13, maxZ...
npm install leaflet-editable@1.2.0 因为新版本的babel不兼容会报错 initMap() { this.map = L.map("leaflet", { center: this.center, //中心坐标 zoom: 17, //缩放级别 minZoom: 13, maxZ...
可能有些事件禁用一下 const _this = this; // 在缩放时设置缩放中心 this.map.on("zoom", function () { const center = _this.center; // 自定义缩放中心点 const zoomLevel = _this.map.getZoom(); // 获取当前缩放级别 _this.map.setView(center,...
<a-table size="middle" :pagination="pagination" :columns="columns" :data-source="data" :rowClassName="rowClassName" :scroll="{ y: `calc(100vh - 1.197917rem)` }" //vh + rem ...
<template slot="run"> <span>船名船号</span> <a-dropdown :trigger="['click']"> <a-icon style="color: #bfbfbf; margin-left: 8px" type="interaction" @click.stop ...
default.conf worker_processes 1; events { worker_connections 1024; } http { include mime.types; default_type application/octet-stream; sendfile on; keepalive_...
npm i patch-package –save-dev package.json "scripts": { "postinstall": "patch-package" } 修改node_modules里面的代码 执行命令:npx patch-package 验证: 新增 patches 目录下有 <pac...
export const exportRecordExcel = (params) => { return axios .get("/boat-record/exportRecordExcel", { params, responseType: "blob" }) .then((res) => res); }; // 设置 responseType: "blo...
Vue.use(Viewer); Viewer.setDefaults({ url: "data-source", // 大图地址参数 Options: { inline: true, // 是否启用inline模式 button: true, // 是否显示右上角关闭按钮 navbar: true, // 是否显示缩略图底部导航栏 title: fa...
valueGetter: (params) => { if (params && params.data && params.data.standardPrice) { return number_format(params.data.standardPrice); } else { return null...
encodeURIComponent 进行编码将 \n 转换为 %0A,确保它在 URL 中被正确处理 const encodedJobContent = encodeURIComponent(jobContent);