标签管理静态页面

xuhongjie
严飞永 1 week ago
parent 4277e1483d
commit b08f26dead

@ -0,0 +1,11 @@
// src/api/ManageApi/index.js
import request from '@/utils/request';
//项目详情-标签管理
export function getBasicInformationPage(params) {
return request({
url:'/gysl/basicInformation/page',
method: 'get',
params
})
}

@ -419,21 +419,18 @@ export default {
}; };
}, },
fetchBuildings() { fetchBuildings() {
console.log('Fetching data for xmId:', this.xmId); // console.log('Fetching data for xmId:', this.xmId);
getjzxxinformationByxmId({ xmId: this.xmId }) getjzxxinformationByxmId({ xmId: this.xmId })
.then(response => { .then(response => {
console.log('API response:', response); // console.log('API response:', response);
if (response.code === 200 && response.data) { if (response.code === 200 && response.data) {
this.buildings = Object.values(response.data); // this.buildings = Object.values(response.data); //
console.log('Buildings data after assignment:', this.buildings); // console.log('Buildings data after assignment:', this.buildings);
// //
if (this.buildings.length > 0) { if (this.buildings.length > 0) {
this.selectedBuilding = this.buildings[0]; this.selectedBuilding = this.buildings[0];
} }
} else { } else {}
console.error('数据格式不正确:', response);
}
}) })
}, },

@ -232,16 +232,14 @@ export default {
size: this.pagination.pageSize size: this.pagination.pageSize
}; };
return getqyBasicInformationPage(params).then(response => { return getqyBasicInformationPage(params).then(response => {
console.log('Fetched Data:', response.data.records); // console.log('Fetched Data:', response.data.records);
this.tableData = response.data.records.map(item => ({ this.tableData = response.data.records.map(item => ({
...item, ...item,
isEditing: false isEditing: false
})); }));
console.log('Table Data:', this.tableData); // console.log('Table Data:', this.tableData);
this.pagination.total = response.data.total; this.pagination.total = response.data.total;
}).catch(error => { }).catch();
console.error('获取数据失败:', error);
});
}, },
// / // /

@ -48,7 +48,7 @@
</div> </div>
<div class="tablebody"> <div class="tablebody">
<div> <div>
<spanmanage /> <spanmanage :xmId=this.id></spanmanage>
</div> </div>
</div> </div>
</div> </div>
@ -58,7 +58,7 @@
<script> <script>
import * as echarts from 'echarts'; import * as echarts from 'echarts';
import { getpicture, getpicturelist } from '@/api/ManageApi/index'; import { getpicture, getpicturelist } from '@/api/ManageApi/index';
import spanmanage from '@/views/components/ProjectDetails/spanmanage.vue'; import spanmanage from '@/views/components/ProjectDetails/spanmanage.vue';
@ -88,6 +88,7 @@ export default {
}; };
}, },
mounted() { mounted() {
// console.log("" + this.id);
this.fetchData(); this.fetchData();
this.fetchDescriptionData(); this.fetchDescriptionData();
}, },
@ -147,7 +148,7 @@ export default {
const data = elementMap[element]; const data = elementMap[element];
evaluations.push({ evaluations.push({
element: element, element: element,
ranking: data.project ranking: data.project
}); });
projectData.push(data.project); projectData.push(data.project);
medianData.push(data.median); medianData.push(data.median);
@ -296,6 +297,7 @@ export default {
margin-left: 10rem; margin-left: 10rem;
height: 25.31rem; height: 25.31rem;
} }
.descriptionsdivtwo { .descriptionsdivtwo {
width: 20rem; width: 20rem;
margin-left: 3rem; margin-left: 3rem;

@ -74,7 +74,7 @@ export default {
// //
onload() { onload() {
console.log('地图加载完成'); // console.log('');
}, },
// //

@ -1,5 +1,19 @@
<template> <template>
<div> <div>
12345 1234
</div> </div>
</template> </template>
<script>
export default {
props: {
xmId: {
type: Number,
default: 0
}
},
mounted() {
// console.log("span" + this.xmId);
}
}
</script>
Loading…
Cancel
Save