123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- <template>
- <view class="task-page">
- <div class="title">{{item.hdangerTitle}}</div>
- <div class="info">
- <div class="item">
- <view class="name">执行人</view>
- <view class="cont">执行人</view>
- </div>
- <div class="item">
- <view class="name">执行部门</view>
- <view class="cont">执行部门</view>
- </div>
- <div class="item">
- <view class="name">上报时间</view>
- <view class="cont">{{parseTime(new Date())}}</view>
- </div>
- </div>
- <view class="footer" @click="onSubmit">评审</view>
- </view>
- </template>
- <script>
- import {parseTime} from '@/libs/index.js'
- export default {
- data() {
- return {
- item:{
- },
- flow:{
- status:"",
- time:"",
- desc:"",
- attachList:[]
- },
- items:[],
- checkState:[{"value": 1,"text": "是" },{"value": 0,"text": "否"}]
- }
- },
- onLoad() {
- this.getTask()
- },
- methods: {
- parseTime,
- init(){
- let items=[]
- for(let i=0;i<10;i++){
- items.push({
- id:i,
- title:'检查防水是否完好',
- state:1
- })
- }
- this.items=items
- },
- getTask(){
- this.item=uni.getStorageSync('danger-info')
- },
- changeCheck(item){
- if(!item.state){
- uni.showModal({
- title: '提示',
- content: `请确认${item.title}状态为否`,
- success: function (res) {
- if (res.confirm) {
- console.log('用户点击确定');
- } else if (res.cancel) {
- console.log('用户点击取消');
- }
- }
- });
- }
- },
- onSubmit(){
- uni.navigateTo({
- url:'/pages/risk/review/form/form'
- })
- }
- }
- }
- </script>
- <style lang="scss" scoped>
- .task-page{
- background-color: #F3F5FB;
- height: 100vh;
- .title{
- font-family: 'Source Han Sans CN';
- font-style: normal;
- font-weight: 700;
- font-size: 36rpx;
- line-height: 54rpx;
- color: #212121;
- padding:0 32rpx;
- }
- .info{
- padding: 0 32rpx;
- margin: 40rpx 0;
- background: #FFFFFF;
- border-radius: 32rpx 32rpx 0px 0px;
- .item{
- border-bottom: 1rpx solid #EFF1F3;
- padding: 40rpx 32rpx;
- .name{
- font-size: 28rpx;
- color: #999999;
- line-height: 1;
- }
- .cont{
- font-size: 30rpx;
- color: #212121;
- line-height: 1.5;
- padding-top: 12rpx;
- }
- &:last-child{
- border-bottom:none;
- }
- }
- }
- .footer{
- width: 100%;
- height: 136upx;
- background: #FFFFFF;
- border-radius: 16upx 16upx 0px 0px;
- position: fixed;
- left: 0;
- bottom: 0;
- text-align: center;
- color: #168DEC;
- font-size: 32upx;
- padding-top: 20upx;
- letter-spacing: 2px;
- }
- }
- .item-checklist{
- display: flex;
- justify-content: space-between;
- padding: 15rpx 32rpx;
- border-bottom: 1rpx solid #EFF1F3;
- .name{
- flex: 1;
- }
- }
- </style>
|