Loading src/api/risk/plan.js +14 −7 Original line number Diff line number Diff line Loading @@ -25,7 +25,14 @@ export function addPlan(data) { data: data }) } // 下载风险计划模板添加意见 export function addAdvise(data) { return request({ url: '/app-api/risk/advise', method: 'post', data: data }) } // 修改风险计划 export function updatePlan(data) { return request({ Loading src/assets/map/low.jpg 0 → 100644 +5.19 KiB Loading image diff... src/assets/map/low.png +3 B (5.61 KiB) Loading image diff... src/views/map/components/map-table.vue +17 −8 Original line number Diff line number Diff line Loading @@ -10,6 +10,16 @@ export default { default: () => [] } }, watch: { tableList(newVal) { if (newVal.length > 0) { setTimeout(() => { this.getHeight(); this.compareH(); }, 500); } } }, data() { return { mapTableListHeight: 0, Loading @@ -17,12 +27,7 @@ export default { h: 0, }; }, mounted() { setTimeout(() => { this.getHeight(); this.compareH(); }, 700); }, methods: { // 获取map-table-list的高度 getHeight() { Loading @@ -36,6 +41,7 @@ export default { }, // 比较map-table-list高度 compareH() { console.log(this.mapTableContainerHeight, this.mapTableListHeight); if (this.mapTableContainerHeight < this.mapTableListHeight) { // 添加定时器滚动map-table-list-item setInterval(() => { Loading Loading @@ -70,7 +76,7 @@ export default { }}> {key.props == 'index' && <div class="serial">{index + 1}</div>} {key.render && key.render()} {<span>{item[key.props]}</span>} {<span title={item[key.props]}>{item[key.props]}</span>} </div> }) } Loading Loading @@ -102,6 +108,7 @@ export default { padding: 0; &-item { cursor: pointer; display: flex; height: 30px; margin-bottom: 5px; Loading Loading @@ -137,12 +144,14 @@ export default { } } .map-table-list-item-value { width: 30%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-right: 18px; margin-right: 12px; font-weight: bold; } Loading src/views/map/map-detail.vue +4 −3 Original line number Diff line number Diff line Loading @@ -126,7 +126,6 @@ export default { components: { mapItemContainer, mapDetailTab, mapTable, drawCanvas }, data() { return { formInline: { position: '地上', buildingId: '', Loading Loading @@ -186,11 +185,12 @@ export default { { props: 'riskName', color: "#fff", width: '40%' }, { props: 'typeName', color: "rgb(0, 255, 186)", width: "30%", width: "20%", }, { props: 'levelName', Loading Loading @@ -568,13 +568,14 @@ li { } .map-detail-draw { transform: scale(0.55); transform: scale(0.8); transform-origin: 0 0; } ::v-deep .vue-grid-layout { min-height: auto !important; padding: 0 !important; border: none; } .map-detail-info-img { Loading Loading
src/api/risk/plan.js +14 −7 Original line number Diff line number Diff line Loading @@ -25,7 +25,14 @@ export function addPlan(data) { data: data }) } // 下载风险计划模板添加意见 export function addAdvise(data) { return request({ url: '/app-api/risk/advise', method: 'post', data: data }) } // 修改风险计划 export function updatePlan(data) { return request({ Loading
src/views/map/components/map-table.vue +17 −8 Original line number Diff line number Diff line Loading @@ -10,6 +10,16 @@ export default { default: () => [] } }, watch: { tableList(newVal) { if (newVal.length > 0) { setTimeout(() => { this.getHeight(); this.compareH(); }, 500); } } }, data() { return { mapTableListHeight: 0, Loading @@ -17,12 +27,7 @@ export default { h: 0, }; }, mounted() { setTimeout(() => { this.getHeight(); this.compareH(); }, 700); }, methods: { // 获取map-table-list的高度 getHeight() { Loading @@ -36,6 +41,7 @@ export default { }, // 比较map-table-list高度 compareH() { console.log(this.mapTableContainerHeight, this.mapTableListHeight); if (this.mapTableContainerHeight < this.mapTableListHeight) { // 添加定时器滚动map-table-list-item setInterval(() => { Loading Loading @@ -70,7 +76,7 @@ export default { }}> {key.props == 'index' && <div class="serial">{index + 1}</div>} {key.render && key.render()} {<span>{item[key.props]}</span>} {<span title={item[key.props]}>{item[key.props]}</span>} </div> }) } Loading Loading @@ -102,6 +108,7 @@ export default { padding: 0; &-item { cursor: pointer; display: flex; height: 30px; margin-bottom: 5px; Loading Loading @@ -137,12 +144,14 @@ export default { } } .map-table-list-item-value { width: 30%; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; margin-right: 18px; margin-right: 12px; font-weight: bold; } Loading
src/views/map/map-detail.vue +4 −3 Original line number Diff line number Diff line Loading @@ -126,7 +126,6 @@ export default { components: { mapItemContainer, mapDetailTab, mapTable, drawCanvas }, data() { return { formInline: { position: '地上', buildingId: '', Loading Loading @@ -186,11 +185,12 @@ export default { { props: 'riskName', color: "#fff", width: '40%' }, { props: 'typeName', color: "rgb(0, 255, 186)", width: "30%", width: "20%", }, { props: 'levelName', Loading Loading @@ -568,13 +568,14 @@ li { } .map-detail-draw { transform: scale(0.55); transform: scale(0.8); transform-origin: 0 0; } ::v-deep .vue-grid-layout { min-height: auto !important; padding: 0 !important; border: none; } .map-detail-info-img { Loading