150 lines
3.5 KiB
Vue
150 lines
3.5 KiB
Vue
<template>
|
|
<view class="addPlanss">
|
|
<view class="fixedheader">
|
|
<headers :themeType="true" :showBack="true">
|
|
<view class="headerName">
|
|
{{title}}
|
|
</view>
|
|
</headers>
|
|
</view>
|
|
<view class="" :style="{ 'padding-top': ((statusBarHeight * 2) + 45) * 1.5 + 'rpx','background-color':'#f6f6f6' }">
|
|
<view class="backlogList-admin" v-for="item in listData" :key="item.id" @click="jobTrial(item)">
|
|
<view class="backlogList backlogMargin">
|
|
<span>
|
|
危大工程名称:{{item.engineeringName}}
|
|
</span>
|
|
<span class="backlogList-span" v-if="!item.acceptanceResult">待确认</span>
|
|
<span class="backlogList-span" v-if="item.acceptanceResult === 1">合格</span>
|
|
<span class="backlogList-span" v-if="item.acceptanceResult === 2">不合格</span>
|
|
</view>
|
|
<view class="backlogMargin">
|
|
计划执行时间:{{item.planTime}}
|
|
</view>
|
|
<view class="backlogMargin">
|
|
申请验收单位:{{item.applyAcceptanceUnitName}}
|
|
</view>
|
|
<view class="backlogMargin">
|
|
申请验收人:{{item.applyAcceptanceUserName}}
|
|
</view>
|
|
</view>
|
|
<view class="no-data" v-if="listData.length === 0">
|
|
<image class="img" src="/static/noData.png"></image>
|
|
<text class="txt">暂无数据</text>
|
|
</view>
|
|
</view>
|
|
|
|
<levitatedsphere :x="100" :y="80"></levitatedsphere>
|
|
</view>
|
|
</template>
|
|
|
|
<script>
|
|
import levitatedsphere from "@/components/levitatedsphere/levitatedsphere.vue"
|
|
export default {
|
|
data() {
|
|
return {
|
|
title: "危大验收",
|
|
listData: [],
|
|
projectSn: '',
|
|
userInfo: {},
|
|
statusBarHeight: {}
|
|
};
|
|
},
|
|
created() {
|
|
|
|
},
|
|
onLoad() {
|
|
this.projectSn = JSON.parse(uni.getStorageSync('projectDetail')).projectSn
|
|
this.userInfo = JSON.parse(uni.getStorageSync('userInfo'))
|
|
this.initData()
|
|
},
|
|
onShow() {
|
|
this.initData()
|
|
this.statusBarHeight = uni.getStorageSync('systemInfo').statusBarHeight;
|
|
},
|
|
methods:{
|
|
initData(){
|
|
this.sendRequest({
|
|
url:'xmgl/xzDangerousEngineeringAcceptance/list',
|
|
method:'get',
|
|
data:{
|
|
projectSn: this.projectSn,
|
|
acceptanceUserId: this.userInfo.userId,
|
|
type:1
|
|
},
|
|
success:res=>{
|
|
uni.hideLoading()
|
|
this.listData = res.result
|
|
}
|
|
})
|
|
},
|
|
jobTrial(item){
|
|
console.log('sssssss');
|
|
let checkRecord = {
|
|
id: item.id,
|
|
engineeringName: item.engineeringName,
|
|
planTime: item.planTime,
|
|
applyAcceptanceUnitName: item.applyAcceptanceUnitName,
|
|
applyAcceptanceUserName: item.applyAcceptanceUserName
|
|
}
|
|
checkRecord = item
|
|
uni.navigateTo({
|
|
url:'./backlogTrial/backlogTrial?checkRecord='+encodeURIComponent(JSON.stringify(checkRecord))
|
|
})
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.addPlanss {
|
|
height: 100%;
|
|
background-color: #f6f6f6;
|
|
.fixedheader{
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
width: 100%;
|
|
z-index: 2;
|
|
.headerName{
|
|
z-index: 1;
|
|
}
|
|
}
|
|
.backlogList-admin {
|
|
margin: 20rpx;
|
|
background-color: #fff;
|
|
// height: 320rpx;
|
|
height: auto;
|
|
padding: 30rpx 30rpx;
|
|
// padding-top: 30rpx;
|
|
.backlogList {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
.backlogList-span{
|
|
padding: 3px 10rpx;
|
|
border: 1px solid #ccc;
|
|
color: #d17b00;
|
|
border-radius: 6rpx;
|
|
}
|
|
}
|
|
}
|
|
.no-data{
|
|
text-align: center;
|
|
.img{
|
|
display: block;
|
|
height: 200rpx;
|
|
width: 200rpx;
|
|
margin: 0 auto;
|
|
margin-top: 60rpx;
|
|
margin-bottom: 60rpx;
|
|
}
|
|
.txt{
|
|
color: #C0C4CC;
|
|
}
|
|
}
|
|
|
|
.backlogMargin{
|
|
margin-bottom: 30rpx;
|
|
}
|
|
}
|
|
</style> |