2022-10-17 10:13:22 +08:00
|
|
|
|
<template>
|
|
|
|
|
|
<Card title="基本信息">
|
|
|
|
|
|
<div class="contentBox">
|
2022-11-08 15:11:01 +08:00
|
|
|
|
<div class="list">
|
|
|
|
|
|
<div class="list-item" v-for="(item, key) in list" :key="key">
|
|
|
|
|
|
<span class="label">{{ item.label +' : '}} </span>
|
|
|
|
|
|
<span class="value">{{ item.value }}</span>
|
|
|
|
|
|
</div>
|
|
|
|
|
|
</div>
|
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: {
|
2022-12-19 19:01:41 +08:00
|
|
|
|
projectName: { label: '项目名称', value: '' },
|
|
|
|
|
|
projectAddress: { label: '项目地点', value: '' },
|
|
|
|
|
|
projectAcreage: { label: '建筑面积', value: '' },
|
2022-11-08 15:11:01 +08:00
|
|
|
|
constructionUnit: { label: '建设单位', value: '' },
|
|
|
|
|
|
supervisorUnit: { label: '监理单位', value: '' },
|
2022-12-19 19:01:41 +08:00
|
|
|
|
designUnit: { label: '设计单位', value: '' },
|
|
|
|
|
|
exploreUnit: { label: '总包单位', value: '' },
|
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-10-17 10:13:22 +08:00
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
|
.contentBox {
|
2022-11-08 15:11:01 +08:00
|
|
|
|
margin-top: 3%;
|
2022-10-17 10:13:22 +08:00
|
|
|
|
width: 100%;
|
|
|
|
|
|
height: 90%;
|
|
|
|
|
|
overflow: auto;
|
2022-11-08 15:11:01 +08:00
|
|
|
|
.list-item {
|
|
|
|
|
|
flex: 1;
|
|
|
|
|
|
position: relative;
|
|
|
|
|
|
display: flex;
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
padding: 8px 0;
|
|
|
|
|
|
width: 100%;
|
2022-10-21 14:21:27 +08:00
|
|
|
|
font-size: 16px;
|
|
|
|
|
|
font-weight: 500;
|
2022-11-08 15:11:01 +08:00
|
|
|
|
cursor: pointer;
|
|
|
|
|
|
transition: all 0.3s;
|
|
|
|
|
|
white-space: nowrap;
|
2022-10-17 10:13:22 +08:00
|
|
|
|
}
|
2022-11-08 15:11:01 +08:00
|
|
|
|
.label {
|
|
|
|
|
|
box-sizing: border-box;
|
|
|
|
|
|
width: 22%;
|
|
|
|
|
|
padding-left: 20px;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
.value {
|
|
|
|
|
|
width: 75%;
|
|
|
|
|
|
}
|
2022-10-17 10:13:22 +08:00
|
|
|
|
}
|
|
|
|
|
|
::-webkit-scrollbar {
|
|
|
|
|
|
width: 3px;
|
|
|
|
|
|
color: #182337;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|