1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283 |
- <template>
- <view>
- <!-- <view style="height:30rpx"></view> -->
- <view class=" bg-white plan-sec">
-
- <view class=" text-center margin-top" v-if="data_res === 0">暂无数据...</view>
-
- <view class="cu-list menu-avatar">
- <view class="cu-item " v-for="(item,index) in getData" :key="index"
- @tap="goInnerList(item)">
- <view class="content" style="left:0!important;width:80%">
- <view class="title">{{item.plan_name}}</view>
- <view class="pro-des ">
- <view class="text-cut">
- 任务完成率:{{item.completion}}
- </view>
- </view>
- </view>
- <view class="nav-right num">
- <view class="text-grey">
- <!-- <span class="online" v-if="item.data3==2">已执行</span>
- <span class="error" v-if="item.data3==1">未执行</span> -->
- <text class="icon iconfont margin-right-xs "></text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import json from '../../../data/json.js';
- export default {
-
- data() {
- return {
- inspectList: json.xunJianPlan,
- getData: {},
- data_res:1
-
- };
- },
- onLoad: function(option) {
- this.getPlanList({
- 'company_code': uni.getStorageSync('selectedCode')
- })
- },
- methods: {
- // 巡检计划列表数据请求
- async getPlanList(params = {}) {
- const res = await this.$myRequest({
- url: 'Maintenance/getMaintenanceList',
- data: params,
- showLoading: true
- })
- this.getData = res.data.data;
- console.log(this.getData)
- setTimeout(()=>{
- this.data_res = res.data.data?1:0
- },100)
- // this.planList = this.getData.point
- },
- goInnerList(item) {
- uni.navigateTo({
- url: "/pages/weiBao/planInnerList/planInnerList?id=" + item.id ,
- })
- }
- }
- }
- </script>
- <style lang="scss">
- // page {
- // background-color: #F4F5F7;
- // }
- </style>
|