|
|
@@ -259,6 +259,7 @@ let currentFeature = null
|
|
|
let overlay = null
|
|
|
const tableDataShanghaifeng = ref([])
|
|
|
onMounted(async () => {
|
|
|
+ console.log(route.params.id)
|
|
|
initMap();
|
|
|
// 初始化完成后执行配置渲染
|
|
|
if (route.params.id === '30') {
|
|
|
@@ -391,71 +392,15 @@ onMounted(async () => {
|
|
|
console.log('未点击到任何要素');
|
|
|
}
|
|
|
})
|
|
|
- if (route.params.id === '28') {
|
|
|
- getFanganList().then(res => {
|
|
|
- tableDataFangan.value = res.data.records
|
|
|
- fanganId.value = tableDataFangan.value[0].id
|
|
|
- getFanganDataList(fanganId.value).then(res => {
|
|
|
- const outPutQUZ = res.data.outPutQUZ
|
|
|
- const keys = Object.keys(outPutQUZ)
|
|
|
- dateLength.value = keys.length - 1
|
|
|
- keys.forEach(item => {
|
|
|
- let par = {
|
|
|
- content: '',
|
|
|
- timestamp: item,
|
|
|
- size: 'large',
|
|
|
- type: 'primary',
|
|
|
- }
|
|
|
- activities.value.push(par)
|
|
|
- })
|
|
|
- var parTime = uniformSample(activities.value)
|
|
|
- console.log(activities.value)
|
|
|
- var a = Math.round((dateLength.value - 1) * 1 / 3)
|
|
|
- var b = Math.round((dateLength.value - 1) * 2 / 3)
|
|
|
- var c = dateLength.value
|
|
|
- marks.value = {
|
|
|
- 0: {
|
|
|
- style: {
|
|
|
- color: '#1989FA',
|
|
|
- },
|
|
|
- label: parTime[0].timestamp.slice(5),
|
|
|
- },
|
|
|
- }
|
|
|
- marks.value[a] = {
|
|
|
- style: {
|
|
|
- color: '#1989FA',
|
|
|
- },
|
|
|
- label: parTime[1].timestamp.slice(5),
|
|
|
- }
|
|
|
- marks.value[b] = {
|
|
|
- style: {
|
|
|
- color: '#1989FA',
|
|
|
- },
|
|
|
- label: parTime[2].timestamp.slice(5),
|
|
|
- }
|
|
|
- marks.value[c] = {
|
|
|
- style: {
|
|
|
- color: '#1989FA',
|
|
|
- },
|
|
|
- label: parTime[3].timestamp.slice(5),
|
|
|
- }
|
|
|
- suzhouJson.data.inputParam = JSON.parse(suzhouJson.data.inputParam)
|
|
|
- console.log(suzhouJson.data)
|
|
|
- timerId = setInterval(changeMap, 1000)
|
|
|
- pointLayer.value = createPointlayer(suzhouPoint)
|
|
|
- mapChart.value.addLayer(pointLayer.value);
|
|
|
- })
|
|
|
- })
|
|
|
- }
|
|
|
- if (route.params.id === '20') {
|
|
|
- tableDataFangan.value = fangan.data.records
|
|
|
- wendai()
|
|
|
- }
|
|
|
if (props.config) {
|
|
|
// toCenter(props.config.center, props.config.zoom);
|
|
|
await loadLayers(props.config.layers);
|
|
|
}
|
|
|
}
|
|
|
+ if (route.params.id === '20') {
|
|
|
+ tableDataFangan.value = fangan.data.records
|
|
|
+ wendai()
|
|
|
+ }
|
|
|
});
|
|
|
const titleSuzhou = ref('')
|
|
|
const count = ref(0)
|