优化后,再次提交

This commit is contained in:
王利强
2026-05-03 09:08:56 +08:00
parent 721ef0ad54
commit 805747d1d9
1243 changed files with 46213 additions and 221 deletions

View File

@@ -0,0 +1 @@
"use strict";const e=require("../../common/vendor.js"),a=require("../../request/api.js"),l={__name:"plandetail",setup(l){const t=e.ref(!0),u=e.ref(null),n=e.computed((()=>u.value&&u.value.totalCount?Math.round(u.value.currentIndex/u.value.totalCount*100):0));return e.onLoad((e=>{e.id&&(async e=>{try{const l=await a.enterCheckPlan(e);if(0===l.code&&l.data){const e=l.data.taskId,n=await a.getCheckTaskDetail(e);0===n.code&&n.data&&(u.value=n.data,t.value=!1)}}catch(l){console.error("获取任务详情失败:",l)}finally{t.value=!1}})(e.id)})),(a,l)=>{var t,o,v,d,r,i,c,s,f,k,p;return e.e({a:e.t((null==(t=u.value)?void 0:t.name)||"加载中..."),b:e.t(null==(o=u.value)?void 0:o.taskId),c:e.t(null==(v=u.value)?void 0:v.checkPointId),d:e.t(1===(null==(d=u.value)?void 0:d.status)?"进行中":"已完成"),e:n.value+"%",f:e.t((null==(r=u.value)?void 0:r.currentIndex)||0),g:e.t((null==(i=u.value)?void 0:i.totalCount)||0),h:(null==(c=u.value)?void 0:c.point)||"",i:e.t((null==(s=u.value)?void 0:s.result)||"暂无结果"),j:e.t((null==(f=u.value)?void 0:f.remark)||"暂无备注"),k:!1===(null==(k=u.value)?void 0:k.isLast)},(null==(p=u.value)||p.isLast,{}),{l:e.gei(a,"")})}}},t=e._export_sfc(l,[["__scopeId","data-v-f0213f6c"]]);wx.createPage(t);

View File

@@ -0,0 +1,4 @@
{
"navigationBarTitleText": "计划详情",
"usingComponents": {}
}

View File

@@ -0,0 +1 @@
<view class="{{['page', 'padding', 'data-v-f0213f6c', virtualHostClass]}}" style="{{virtualHostStyle}}" hidden="{{virtualHostHidden || false}}" id="{{l}}"><view class="padding bg-white radius data-v-f0213f6c"><view class="text-bold data-v-f0213f6c">{{a}}</view><view class="flex margin-top data-v-f0213f6c"><view class="border-border margin-right-xs data-v-f0213f6c">任务ID: {{b}}</view><view class="border-border data-v-f0213f6c">检查点: {{c}}</view></view><view class="flex text-gray margin-top data-v-f0213f6c"><view class="data-v-f0213f6c">状态:</view><view class="data-v-f0213f6c">{{d}}</view></view><view class="flex margin-top align-center data-v-f0213f6c"><view class="data-v-f0213f6c">完成进度:</view><view class="flex align-center margin-left-sm data-v-f0213f6c"><view class="cu-progress round data-v-f0213f6c"><view class="bg-green data-v-f0213f6c" style="{{'width:' + e}}"></view></view><text class="margin-left-sm data-v-f0213f6c">{{f}}/{{g}}</text></view></view></view><view class="padding bg-white radius margin-top data-v-f0213f6c"><view class="text-bold data-v-f0213f6c">检查内容</view><view class="bg-gray padding radius data-v-f0213f6c"><rich-text class="data-v-f0213f6c" nodes="{{h}}"></rich-text></view></view><view class="padding bg-white radius margin-top data-v-f0213f6c"><view class="text-bold data-v-f0213f6c">检查结果</view><view class="bg-gray padding radius data-v-f0213f6c">{{i}}</view></view><view class="padding bg-white radius margin-top data-v-f0213f6c"><view class="text-bold data-v-f0213f6c">备注</view><view class="bg-gray padding radius data-v-f0213f6c">{{j}}</view></view><view wx:if="{{k}}" class="padding bg-white radius margin-top data-v-f0213f6c"><view class="text-gray text-sm text-center data-v-f0213f6c">还有更多检查项</view></view></view>

View File

@@ -0,0 +1 @@
.page.data-v-f0213f6c{min-height:100vh;background:#ebf2fc}.cu-progress.data-v-f0213f6c{width:300rpx;height:20rpx;background:#ebeef5;border-radius:100rpx;overflow:hidden}.cu-progress view.data-v-f0213f6c{height:100%;border-radius:100rpx;transition:width .3s ease}.bg-green.data-v-f0213f6c{background:#2667e9}.border-border.data-v-f0213f6c{padding:10rpx;background:#eef3ff;border-radius:4rpx;border:2rpx solid #AAC5FC;text-align:center;justify-content:center;align-items:center;display:flex;font-size:28rpx;color:#2667e9}