92 lines
2.2 KiB
Vue
92 lines
2.2 KiB
Vue
<template>
|
||
<view class="danger-project">
|
||
<view class="" v-if="finallyCheckList.length > 0">
|
||
<view class="finally" v-for="item in finallyCheckList" :key="item.id">
|
||
<view style="padding:20rpx;">
|
||
<text style="font-weight: bold;">危大工程名称:</text>{{item.engineeringName}}
|
||
</view>
|
||
<view style="padding:20rpx;">
|
||
<text style="font-weight: bold;">验收时间:</text>{{item.planTime}}
|
||
</view>
|
||
<view style="padding:20rpx;">
|
||
<text style="font-weight: bold;">验收人:</text>{{item.acceptanceUserName}}
|
||
</view>
|
||
<view style="padding:20rpx;">
|
||
<text style="font-weight: bold;" v-if="item.acceptanceResult === null || item.acceptanceResult === undefined">验收结果:待确认</text>
|
||
<text style="font-weight: bold;" v-if="item.acceptanceResult === 1">验收结果:合格</text>
|
||
<text style="font-weight: bold;" v-if="item.acceptanceResult === 2">验收结果:不合格</text>
|
||
</view>
|
||
</view>
|
||
</view>
|
||
<view class="no-data" v-else>
|
||
<image class="img" src="/static/noData.png"></image>
|
||
<text class="txt">暂无数据</text>
|
||
</view>
|
||
</view>
|
||
</template>
|
||
|
||
<script>
|
||
export default {
|
||
props:['detailId','detailData'],
|
||
data() {
|
||
return {
|
||
finallyCheckList: [],
|
||
};
|
||
},
|
||
created() {
|
||
this.initData()
|
||
},
|
||
onLoad(val) {
|
||
},
|
||
onShow() {
|
||
|
||
},
|
||
methods:{
|
||
initData(){
|
||
let engineeringId = this.detailId
|
||
this.sendRequest({
|
||
url:'xmgl/xzDangerousEngineeringAcceptance/list',
|
||
method:'get',
|
||
data:{
|
||
engineeringId: this.detailId,
|
||
projectSn: JSON.parse(uni.getStorageSync('projectDetail')).projectSn,
|
||
type: 1
|
||
},
|
||
success:res=>{
|
||
uni.hideLoading()
|
||
console.log("xmgl/xzDangerousEngineeringAcceptance/list",res);
|
||
this.finallyCheckList = res.result;
|
||
}
|
||
})
|
||
},
|
||
sendMessage(val){
|
||
this.$emit('message', val);
|
||
}
|
||
}
|
||
}
|
||
</script>
|
||
|
||
<style lang="scss">
|
||
.danger-project{
|
||
.finally{
|
||
background-color: #fff;
|
||
height: 300rpx;
|
||
margin: 20rpx;
|
||
}
|
||
.no-data{
|
||
text-align: center;
|
||
.img{
|
||
display: block;
|
||
height: 200rpx;
|
||
width: 200rpx;
|
||
margin: 0 auto;
|
||
margin-top: 60rpx;
|
||
margin-bottom: 60rpx;
|
||
}
|
||
.txt{
|
||
color: #C0C4CC;
|
||
}
|
||
}
|
||
}
|
||
</style>
|