diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue b/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue index 16d177eb..df76b8c5 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/Descriptions.vue @@ -1,18 +1,11 @@ @@ -79,14 +68,14 @@ export default { label: "道路名称", key: "roadName", }, - { - label: "设备编号", - key: "deviceCode", - }, - { - label: "所属机构", - key: "organizationName", - }, + // { + // label: "设备编号", + // key: "deviceCode", + // }, + // { + // label: "所属机构", + // key: "organizationName", + // }, { label: "设备桩号", key: "stakeMark", @@ -126,6 +115,7 @@ export default { const roadInfo = await getRoadInfoByStakeMark(this.dialogData.stakeMark); if (roadInfo) this.data.roadName = roadInfo.roadName; + console.log(this.data, "this.data"); }, methods: { visibleClose(bool) { @@ -190,7 +180,7 @@ export default { align-items: center; justify-content: end; - > div { + >div { font-size: 16px; padding: 6px 12px; } diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js index 12e76a5b..9f7be8b9 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/Home/components/RoadAndEvents/utils/map.js @@ -102,6 +102,13 @@ export class MarkerCluster { "font-size:15px; background:#6f5757; color:#b39b9b;", this.infoWindow ); + //data.length 大于 5 取前5个数, 否则直接返回data + const pageSize = 6; + let pageNum = 1; + const dataFisrtPage = + data.length > pageSize + ? data.slice((pageNum - 1) * pageSize, pageSize) + : data; this.infoWindow.setContent(`
- ${data + ${dataFisrtPage .map( (item) => `
diff --git a/ruoyi-ui/vue.config.js b/ruoyi-ui/vue.config.js index 70680bb6..e48920d2 100644 --- a/ruoyi-ui/vue.config.js +++ b/ruoyi-ui/vue.config.js @@ -54,6 +54,7 @@ module.exports = { // target: `http://10.168.78.135:8087`, //王钦 // target: `http://10.168.66.196:8087`, //正晨后台 连现场物联 刘文阁2 target: `http://10.168.68.42:8087`, //王思祥 + // target: `http://10.168.65.194:8087`, //赵祥龙 // target: `http://10.168.65.156:8097`, //孟 changeOrigin: true, pathRewrite: {