116 lines
3.3 KiB
Vue
Raw Normal View History

2022-10-17 10:13:22 +08:00
<template>
<Card title="基本信息">
<div class="container">
<vue-scroll style="height: 95%;">
<div class="list">
<!-- <div class="list-item" v-for="(item, key) in list" :key="key">
2022-11-08 15:11:01 +08:00
<span class="label">{{ item.label +' '}} </span>
<span class="value">{{ item.value }}</span>
</div> -->
<div class="list-item">
2023-01-04 14:27:14 +08:00
<div >项目名称中建四局金融城东区ATO91429地块项目</div>
2023-01-11 01:11:49 +08:00
<div >项目地址广州市金融城东区</div>
2023-01-04 14:27:14 +08:00
<div>占地面积6745</div>
2023-01-11 01:11:49 +08:00
<div>建筑面积104402</div>
2023-01-04 14:27:14 +08:00
<div>建设单位中建四局发展(广州天河)有限公司</div>
<div>监理单位广州宏元建设工程咨询有限公司</div>
2023-01-11 01:11:49 +08:00
<div>设计单位德国gmp建筑师事务所方案设计</div>
<div style="margin:2px 0 0 80px">中国建筑第四工程局有限公司施工图设计</div>
2023-01-04 14:27:14 +08:00
<div>总包单位中国建筑第四工程局有限公司</div>
2023-01-11 01:11:49 +08:00
<!-- <div>业主单位中国建筑第四工程局有限公司</div> -->
2023-01-11 01:59:57 +08:00
<!-- <div>合同工期2022-04-18/2024-10-08</div> -->
2022-11-08 15:11:01 +08:00
</div>
</div>
</vue-scroll>
2022-10-17 10:13:22 +08:00
</div>
</Card>
</template>
<script>
2022-11-08 15:11:01 +08:00
import Card from '../components/Card'
import { listProjectInfo } from '@/assets/js/api/zhongjianFourth'
2022-10-17 10:13:22 +08:00
export default {
components: { Card },
2022-11-08 15:11:01 +08:00
data: () => ({
// list: {
// projectAddress: { label: '项目地址', value: '' },
// projectAcreage: { label: '项目面积', value: '' },
// constructionUnit: { label: '建设单位', value: '' },
// designUnit: { label: '设计单位', value: '' },
// name: { label: '总包单位', value: '中国建筑第四工程局有限公司' },
// supervisorUnit: { label: '监理单位', value: '' },
// },
list:{},
2022-11-08 15:11:01 +08:00
}),
created() {
this.projectSn = this.$store.state.projectSn
// this.projectSn=localStorage.getItem('sn')
2022-10-17 10:13:22 +08:00
},
2022-11-08 15:11:01 +08:00
mounted(){
this.getList()
2022-10-17 10:13:22 +08:00
},
2022-11-08 15:11:01 +08:00
methods: {
/** 查询列表 */
getList() {
// listProjectInfo({ projectSn: this.projectSn }).then(res => {
// console.log('项目信息11111: ', res);
// const list = this.list;
// Object.keys(list).forEach(key => {
// list[key].value = res.result[key];
// })
// })
2022-11-08 15:11:01 +08:00
listProjectInfo({ projectSn: this.projectSn }).then(res => {
this.list = res.result;
console.log('项目信息11111: ', this.list);
2022-11-08 15:11:01 +08:00
})
},
},
}
2022-10-17 10:13:22 +08:00
</script>
<style lang="less" scoped>
.container {
box-sizing: border-box;
padding-top: 16px;
padding-left: 16px;
2022-10-17 10:13:22 +08:00
width: 100%;
height: 100%;
.list {
width: 100%;
height: 100%;
color: #fff;
overflow-y: scroll;
.list-item {
2022-11-08 15:11:01 +08:00
flex: 1;
position: relative;
// display: flex;
2022-11-08 15:11:01 +08:00
box-sizing: border-box;
padding: 8px 0;
width: 100%;
font-size: 16px;
font-weight: 500;
2022-11-08 15:11:01 +08:00
cursor: pointer;
transition: all 0.3s;
white-space: nowrap;
.label {
2022-11-08 15:11:01 +08:00
box-sizing: border-box;
width: 22%;
padding-left: 20px;
}
.value {
width: 75%;
}
div{
2023-01-04 14:27:14 +08:00
margin: 25px 10px 0 0;
}
}
}
2022-10-17 10:13:22 +08:00
}
</style>