|
|
@@ -23,12 +23,12 @@
|
|
|
<div class="value">{{ info.levelname }}</div>
|
|
|
</div>
|
|
|
<div class="content-item">
|
|
|
- <div class="name">设计合同:</div>
|
|
|
- <div class="value">{{ info.desContract }}</div>
|
|
|
+ <div class="name">设计单位:</div>
|
|
|
+ <div class="value">{{ designUnit }}</div>
|
|
|
</div>
|
|
|
<div class="content-item">
|
|
|
- <div class="name">施工合同:</div>
|
|
|
- <div class="value">{{ info.conContract }}</div>
|
|
|
+ <div class="name">施工单位:</div>
|
|
|
+ <div class="value">{{ buildUnit }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -37,6 +37,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
+import { mapSearch_api } from '@/api/APIs'
|
|
|
import ComMapBox from '@/views/groupPage/components/ComMapBox.vue'
|
|
|
import ComCardBox from '@/views/groupPage/components/ComCardBox.vue'
|
|
|
import { Vue, Component, Prop, Watch } from 'vue-property-decorator'
|
|
|
@@ -48,16 +49,35 @@ export default class projectInfo extends Vue {
|
|
|
info: any = {}
|
|
|
position: Array<any> = []
|
|
|
viewer
|
|
|
+ designUnit: string = ''
|
|
|
+ buildUnit: string = ''
|
|
|
cardStyle: object = {
|
|
|
- '--height': '1.354167rem' /* 260/192 */, //高度
|
|
|
- '--width': '2.083333rem' /* 400/192 */, //宽度
|
|
|
+ '--height': '1.25rem ' /* 240/192 */, //高度
|
|
|
+ '--width': '1.666667rem ' /* 320/192 */, //宽度
|
|
|
'--borderColor': 'rgba(25, 137, 252, 1)', //边框线颜色
|
|
|
'--backgroundColor': 'rgba(2, 20, 37, 0.45)' //背景颜色
|
|
|
}
|
|
|
mounted() {
|
|
|
this.viewer = (window as any).viewer
|
|
|
+ this.close() //初始不显示
|
|
|
this.addEntity()
|
|
|
this.addMapEvent()
|
|
|
+ this.searchInfo()
|
|
|
+ }
|
|
|
+ searchInfo() {
|
|
|
+ const data = { queryText: this.info.originname } //查询条件
|
|
|
+ mapSearch_api(data).then((res) => {
|
|
|
+ let dArray = [],
|
|
|
+ bArray = []
|
|
|
+ res.result.forEach((item) => {
|
|
|
+ let buildUnit = item.tjData && item.tjData[0] && item.tjData[0].buildUnit ? item.tjData[0].buildUnit : '无'
|
|
|
+ let designUnit = item.tjData && item.tjData[1] && item.tjData[1].designUnit ? item.tjData[1].designUnit : '无'
|
|
|
+ if (!dArray.includes(designUnit)) dArray.push(designUnit)
|
|
|
+ if (!bArray.includes(buildUnit)) bArray.push(buildUnit)
|
|
|
+ })
|
|
|
+ this.designUnit = dArray.join(',')
|
|
|
+ this.buildUnit = bArray.join(',')
|
|
|
+ })
|
|
|
}
|
|
|
initInfoPop() {
|
|
|
;(this.$refs['ComMapBox'] as any).initBox()
|