标签管理静态页面

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() {
console.log('Fetching data for xmId:', this.xmId);
// console.log('Fetching data for xmId:', this.xmId);
getjzxxinformationByxmId({ xmId: this.xmId })
.then(response => {
console.log('API response:', response);
// console.log('API response:', response);
if (response.code === 200 && 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) {
this.selectedBuilding = this.buildings[0];
}
} else {
console.error('数据格式不正确:', response);
}
} else {}
})
},

@ -232,16 +232,14 @@ export default {
size: this.pagination.pageSize
};
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 => ({
...item,
isEditing: false
}));
console.log('Table Data:', this.tableData);
// console.log('Table Data:', this.tableData);
this.pagination.total = response.data.total;
}).catch(error => {
console.error('获取数据失败:', error);
});
}).catch();
},
// /

@ -48,7 +48,7 @@
</div>
<div class="tablebody">
<div>
<spanmanage />
<spanmanage :xmId=this.id></spanmanage>
</div>
</div>
</div>
@ -58,7 +58,7 @@
<script>
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';
@ -88,6 +88,7 @@ export default {
};
},
mounted() {
// console.log("" + this.id);
this.fetchData();
this.fetchDescriptionData();
},
@ -147,7 +148,7 @@ export default {
const data = elementMap[element];
evaluations.push({
element: element,
ranking: data.project
ranking: data.project
});
projectData.push(data.project);
medianData.push(data.median);
@ -296,6 +297,7 @@ export default {
margin-left: 10rem;
height: 25.31rem;
}
.descriptionsdivtwo {
width: 20rem;
margin-left: 3rem;

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

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