|
@@ -132,7 +132,7 @@
|
|
|
<div class="title" @click="resetAnswer(index)">
|
|
|
{{ item.name }}
|
|
|
</div>
|
|
|
- <div class="jsz" v-if="item.loading && !showResult">
|
|
|
+ <div class="jsz" v-if="item.loading && !showResult">
|
|
|
<Spin />
|
|
|
{{ hintText }}
|
|
|
</div>
|
|
@@ -192,39 +192,6 @@
|
|
|
</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <!-- <div
|
|
|
- class="tr"
|
|
|
- @mouseover="mouseover(i)"
|
|
|
- @mouseout="mouseout(i)"
|
|
|
- v-for="(citem, i) in xgdk"
|
|
|
- :key="i"
|
|
|
- :class="[{ checked: i == dkIndex || i == hoverDkIndex }]"
|
|
|
- >
|
|
|
- <div class="it xh">{{ i + 1 }}</div>
|
|
|
- <div class="it c" @click="showDetailModal(citem, i)">
|
|
|
- {{ citem.name }}
|
|
|
- </div>
|
|
|
- <div class="it">
|
|
|
- {{ citem.area ? (citem.area * 0.0015).toFixed(2) : "-" }}
|
|
|
- </div>
|
|
|
- <div class="it text">
|
|
|
- {{ citem.unit_price ? citem.unit_price : "-" }}
|
|
|
- </div>
|
|
|
- <div class="it blue xh">
|
|
|
- {{
|
|
|
- citem.comprehensive_score
|
|
|
- ? citem.comprehensive_score
|
|
|
- : "-"
|
|
|
- }}
|
|
|
- </div>
|
|
|
- <div class="it xh">
|
|
|
- <img
|
|
|
- class="info"
|
|
|
- @click="goLocation(citem, i)"
|
|
|
- src="~@/assets/image/icon-loc-blue.png"
|
|
|
- />
|
|
|
- </div>
|
|
|
- </div> -->
|
|
|
</template>
|
|
|
<div v-else class="hintText">未查询到相关地块数据!</div>
|
|
|
</div>
|
|
@@ -318,7 +285,6 @@
|
|
|
</div>
|
|
|
</template>
|
|
|
<script>
|
|
|
-import polygons from '../../../static/json/杭州市.json'
|
|
|
import industrialTop from '@/components/IndustrialTop'
|
|
|
import znxzDetail from './ZnxzDetail.vue'
|
|
|
import znxzCompare from './ZnxzCompare.vue'
|
|
@@ -398,8 +364,6 @@ export default {
|
|
|
count: 0,
|
|
|
activeItem: { id: 1 },
|
|
|
id: 'industriaMap' + new Date().getTime(),
|
|
|
- latitude: 31.86119,
|
|
|
- longitude: 117.283042,
|
|
|
layers: [],
|
|
|
showResult: false,
|
|
|
showDetail: false,
|
|
@@ -547,31 +511,7 @@ export default {
|
|
|
//
|
|
|
// },
|
|
|
legend: [
|
|
|
- // {
|
|
|
- // name: "可利用资源",
|
|
|
- // fill: "#e48b8b50",
|
|
|
- // border: "#000000",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "永久基本农田",
|
|
|
- // fill: "#fefe6050",
|
|
|
- // border: "#d7d6d6",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "生态保护红线",
|
|
|
- // fill: "#4d9757",
|
|
|
- // border: "#4d9757",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "控规详细性规划",
|
|
|
- // children: [
|
|
|
- // {
|
|
|
- // name: "工业",
|
|
|
- // fill: "#66290080",
|
|
|
- // border: "#66290080",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // },
|
|
|
+
|
|
|
{
|
|
|
name: '可利用资源',
|
|
|
children: [
|
|
@@ -640,7 +580,6 @@ export default {
|
|
|
this.$nextTick(() => {
|
|
|
this.activeIndex = 0
|
|
|
this.initMap()
|
|
|
- this.calcRadarScan()
|
|
|
// this.checkPermision();
|
|
|
})
|
|
|
},
|
|
@@ -705,113 +644,6 @@ export default {
|
|
|
that.permission = res.data
|
|
|
if (that.permission) {
|
|
|
that.activeIndex = 0
|
|
|
- // if (that.type) {
|
|
|
- // that.tabs.forEach((item, index) => {
|
|
|
- // if (that.type == item) {
|
|
|
- // that.activeIndex = index;
|
|
|
- // }
|
|
|
- // });
|
|
|
- // }
|
|
|
-
|
|
|
- // that.toggleTab(that.activeIndex);
|
|
|
- // that.xgdk = [
|
|
|
- // {
|
|
|
- // id: 7162,
|
|
|
- // name: "桐庐经济开发区85号工业地块",
|
|
|
- // county: "桐庐县",
|
|
|
- // location: "桐庐县中联路和城南路交叉口西北侧",
|
|
|
- // area: 33042,
|
|
|
- // comprehensive_score: 98,
|
|
|
- // center_wkt: "POINT(119.683179367182 29.7668594386792)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 6936,
|
|
|
- // name: "桐庐县江南镇工业园区2023-2号地块",
|
|
|
- // county: "桐庐县",
|
|
|
- // location: "桐庐县窄溪路和金堂路交叉口南侧",
|
|
|
- // area: 32730,
|
|
|
- // comprehensive_score: 96,
|
|
|
- // center_wkt: "POINT(119.776661041068 29.8674845992439)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 6053,
|
|
|
- // name: "青山湖科技城单元 LA011102-02、 LA011102-03 地块",
|
|
|
- // county: null,
|
|
|
- // location:
|
|
|
- // "青山湖科技城单元LA011102-02、LA011102-03地块(东至鹤川路,南至蒋墅街,西至发达路,北至科技大道)",
|
|
|
- // area: 31965,
|
|
|
- // comprehensive_score: 93,
|
|
|
- // center_wkt: "POINT(119.833330942318 30.2587063318842)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 7003,
|
|
|
- // name: "梅城镇五马洲工业园区C-04-1号",
|
|
|
- // county: "建德市",
|
|
|
- // location: "梅城镇五马洲工业园区",
|
|
|
- // area: 33431,
|
|
|
- // comprehensive_score: 69,
|
|
|
- // center_wkt: "POINT(119.455506193026 29.5194122302608)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 5913,
|
|
|
- // name: "青山湖科技城单元LA010206-02地块",
|
|
|
- // county: null,
|
|
|
- // location:
|
|
|
- // "青山湖科技城单元LA010206-02地块(东至泉口服务中心,南至市地街,西至干校路,北至长西线)",
|
|
|
- // area: 32489,
|
|
|
- // comprehensive_score: 65,
|
|
|
- // center_wkt: "POINT(119.792292133488 30.3242359513533)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 6975,
|
|
|
- // name: "塘栖张家墩产业园地块1",
|
|
|
- // county: "临平区",
|
|
|
- // location:
|
|
|
- // "塘栖镇酒店埭社区;东至规划绿地、南至规划绿地、西至规划绿地、北至张家墩路。",
|
|
|
- // area: 32228,
|
|
|
- // comprehensive_score: 60,
|
|
|
- // center_wkt: "POINT(120.16357939569 30.4705788185453)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 5411,
|
|
|
- // name: "富政工出[2024]9号",
|
|
|
- // county: "富阳区",
|
|
|
- // location: "鹿山街道工业功能区",
|
|
|
- // area: 34575,
|
|
|
- // comprehensive_score: 60,
|
|
|
- // center_wkt: "POINT(119.896504461223 29.9860460585603)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 7365,
|
|
|
- // name: "义桥镇建设工矿仓储项目",
|
|
|
- // county: "萧山区",
|
|
|
- // location:
|
|
|
- // "位于萧山区义桥镇田丰村、七里店村、勤里村,东至田丰村、七里店村土地,南至七里店村土地,西至田丰村土地,北至田丰村、勤里村土地。",
|
|
|
- // area: 33797,
|
|
|
- // comprehensive_score: 57,
|
|
|
- // center_wkt: "POINT(120.162338981989 30.0555790489407)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 7223,
|
|
|
- // name: "浦沿单元BJ040501-14地块",
|
|
|
- // county: "滨江区",
|
|
|
- // location:
|
|
|
- // "东至规划量子巷;南至浦炬街绿化;西至紫云路;北至规划回龙庵路。",
|
|
|
- // area: 33867,
|
|
|
- // comprehensive_score: 55,
|
|
|
- // center_wkt: "POINT(120.157534740039 30.1548281617972)",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // id: 7013,
|
|
|
- // name: "杭州钱江经济开发区奉欣路以南工业地块三(C-3)",
|
|
|
- // county: "余杭区",
|
|
|
- // location: "仁和街道奉口村",
|
|
|
- // area: 35231,
|
|
|
- // comprehensive_score: 55,
|
|
|
- // center_wkt: "POINT(120.069254227924 30.4426198260172)",
|
|
|
- // },
|
|
|
- // ];
|
|
|
- // that.showXgdkCenterPoint();
|
|
|
}
|
|
|
}
|
|
|
})
|
|
@@ -997,7 +829,6 @@ export default {
|
|
|
item.checked = false
|
|
|
}
|
|
|
})
|
|
|
- let myCenter = new L.LatLng(this.latitude, this.longitude) // 设置地图中心
|
|
|
this.map = L.map(this.id, {
|
|
|
zoom: window.ApplicationConfig.mapOptions['zoom'],
|
|
|
center: window.ApplicationConfig.mapOptions['center'],
|
|
@@ -1042,35 +873,7 @@ export default {
|
|
|
// }
|
|
|
// );
|
|
|
// this.map.addLayer(cia);
|
|
|
- // let dtLayers = {
|
|
|
- // name: "底图",
|
|
|
- // layers: [
|
|
|
- // {
|
|
|
- // name: "浙江影像",
|
|
|
- // id: "zjyx",
|
|
|
- // checked: true,
|
|
|
- // type: "wmts",
|
|
|
- // url: "https://kjzl.zrzyt.zj.gov.cn/zdzy/gtkj/zjgt48/34048bffdd0d4d148ca4a40da7eade21/services/wmts/imgmap/default/oss",
|
|
|
- // layername: "imgmap",
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: "浙江注记",
|
|
|
- // id: "zjzj",
|
|
|
- // checked: true,
|
|
|
- // type: "wmts",
|
|
|
- // url: "https://zdzy.zrzyt.zj.gov.cn/gtkj/zjgt49/2003392c13044d3ab3097b0a4328ecf2/services/wmts/imgmap_lab/default/oss",
|
|
|
- // layername: "imgmap_lab",
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // };
|
|
|
-
|
|
|
- // var zjyx = dtLayers.layers[0];
|
|
|
- // this.switchMapLayer(zjyx);
|
|
|
- // var zjzj = dtLayers.layers[1];
|
|
|
- // this.switchMapLayer(zjzj);
|
|
|
-
|
|
|
- //定位浙江省
|
|
|
- // this.location(polygons)
|
|
|
+
|
|
|
//默认加载所有选中图层
|
|
|
this.layers.forEach(layerGroup => {
|
|
|
layerGroup.layers.forEach(oneLayer => {
|
|
@@ -1268,10 +1071,6 @@ export default {
|
|
|
},
|
|
|
//地块图斑定位
|
|
|
goLocation(item, index) {
|
|
|
- // if (this.showDetail && this.activeItem.id != item.id) {
|
|
|
- // this.showDetail = false
|
|
|
- // }
|
|
|
- // this.activeItem = item;
|
|
|
if (this.geojsonLayer) {
|
|
|
this.map.removeLayer(this.geojsonLayer)
|
|
|
this.geojsonLayer = null
|
|
@@ -1279,13 +1078,6 @@ export default {
|
|
|
if (this.identifyGeojsonLayer) {
|
|
|
this.map.removeLayer(this.identifyGeojsonLayer)
|
|
|
}
|
|
|
- // if (index != undefined) {
|
|
|
- // if (this.dkIndex != index) {
|
|
|
- // this.dkGeo = null
|
|
|
- // this.dkGeoJson = null
|
|
|
- // }
|
|
|
- // this.dkIndex = index
|
|
|
- // }
|
|
|
|
|
|
let query =
|
|
|
window.ApplicationConfig.geoserverUrl +
|
|
@@ -1765,51 +1557,54 @@ export default {
|
|
|
!executed
|
|
|
) {
|
|
|
T.loading = false
|
|
|
- T.summary = lastChoice.content.replaceAll('\n```json\n', '')
|
|
|
+ T.summary = lastChoice.content.replaceAll('\n```json\n', '').replaceAll('```json\n', '')
|
|
|
.replaceAll('\n```\n', '')
|
|
|
T.hzData.forEach((item, index) => {
|
|
|
if (index == T.hzData.length - 1) {
|
|
|
- T.hzData[index].summary = lastChoice.content.replaceAll('\n```json\n', '')
|
|
|
+ T.hzData[index].summary = lastChoice.content.replaceAll('\n```json\n', '').replaceAll('```json\n', '')
|
|
|
.replaceAll('\n```\n', '')
|
|
|
T.$forceUpdate()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
- if (agentName === 'summary' && executed && execRes) {
|
|
|
+ if(agentName === 'summary') {
|
|
|
+ if (!executed) {
|
|
|
+ T.loading = false
|
|
|
+ this.hintText='结果整理中...';
|
|
|
+ } else if (execRes) {
|
|
|
// T.summary = execRes;
|
|
|
- T.showResult = true
|
|
|
- T.radarShow = false
|
|
|
- T.loading = false
|
|
|
- if (lastUpRes) {
|
|
|
- var exec_res = lastUpRes.exec_res
|
|
|
- .replaceAll('\n```json\n', '')
|
|
|
- .replaceAll('\n```\n', '')
|
|
|
- exec_res = JSON.parse(exec_res)
|
|
|
- var dk = exec_res
|
|
|
- // dk.sort(function (a, b) {
|
|
|
- // return b.comprehensive_score - a.comprehensive_score;
|
|
|
- // });
|
|
|
- console.log('dk: ', dk)
|
|
|
- T.xgdk = dk
|
|
|
- T.clearMark()
|
|
|
- T.showXgdkCenterPoint()
|
|
|
- T.answer = e.data
|
|
|
- T.burialPoint()
|
|
|
- } else {
|
|
|
- T.xgdk = []
|
|
|
- T.clearMark()
|
|
|
- }
|
|
|
- T.activeIndex = T.steps.length - 1
|
|
|
- // T.hintText = "检索完成";
|
|
|
- T.hzData.forEach((item, index) => {
|
|
|
- if (index == T.hzData.length - 1) {
|
|
|
- T.hzData[index].summary = execRes
|
|
|
- T.hzData[index].loading = false
|
|
|
- T.zwinputText = ''
|
|
|
- }
|
|
|
- })
|
|
|
- clearInterval(T.checkInterval)
|
|
|
+ T.showResult = true
|
|
|
+ T.radarShow = false
|
|
|
+ T.loading = false
|
|
|
+ if (lastUpRes) {
|
|
|
+ var exec_res = lastUpRes.exec_res
|
|
|
+ .replaceAll('\n```json\n', '').replaceAll('```json\n', '')
|
|
|
+ .replaceAll('\n```\n', '')
|
|
|
+ exec_res = JSON.parse(exec_res)
|
|
|
+ var dk = exec_res
|
|
|
+ console.log('dk: ', dk)
|
|
|
+ T.xgdk = dk
|
|
|
+ T.clearMark()
|
|
|
+ T.showXgdkCenterPoint()
|
|
|
+ T.answer = e.data
|
|
|
+ T.burialPoint()
|
|
|
+ } else {
|
|
|
+ T.xgdk = []
|
|
|
+ T.clearMark()
|
|
|
+ }
|
|
|
+ T.activeIndex = T.steps.length - 1
|
|
|
+ // T.hintText = "检索完成";
|
|
|
+ T.hzData.forEach((item, index) => {
|
|
|
+ if (index == T.hzData.length - 1) {
|
|
|
+ T.hzData[index].summary = execRes
|
|
|
+ T.hzData[index].loading = false
|
|
|
+ T.zwinputText = ''
|
|
|
+ }
|
|
|
+ })
|
|
|
+ clearInterval(T.checkInterval)
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
} else {
|
|
|
T.messages.push({
|
|
|
id: conversationId,
|
|
@@ -1861,28 +1656,7 @@ export default {
|
|
|
])
|
|
|
},
|
|
|
|
|
|
- calcRadarScan() {
|
|
|
- const { offsetHeight, offsetWidth } = document.body
|
|
|
- let width = offsetWidth - 488
|
|
|
|
|
|
- if (width > offsetHeight) {
|
|
|
- width = offsetHeight
|
|
|
-
|
|
|
- this.radarScanStyle = {
|
|
|
- width: offsetHeight + 'px',
|
|
|
- height: offsetHeight + 'px',
|
|
|
- top: 0,
|
|
|
- left: (offsetWidth - 488 - width) / 2 + 488 + 'px'
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.radarScanStyle = {
|
|
|
- width: width + 'px',
|
|
|
- height: width + 'px',
|
|
|
- left: '488px',
|
|
|
- top: (offsetHeight - width) / 2 + 'px'
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
@@ -2290,7 +2064,6 @@ export default {
|
|
|
line-height: 36px;
|
|
|
margin-bottom: 36px;
|
|
|
}
|
|
|
-
|
|
|
.jsz {
|
|
|
margin: 0 0px 17px 0px;
|
|
|
display: flex;
|