Commit d5bce5ef822e7ec770f444734b28c5f2c895734a

Authored by 刘淇
1 parent 6847fb73

失效 换接口

api/maintain-manage/maintain-manage.js
... ... @@ -112,7 +112,7 @@ export const finishPlan= (params = {}) => {
112 112 */
113 113 export const invalidatePlan= (params) => {
114 114 const commitId = params && params.commitId != null ? params.commitId : '';
115   - return post(`/admin-api/garden/maintain-plan-detail/invalidate?commitId=${encodeURIComponent(commitId)}`,params);
  115 + return post(`/app-api/app/garden/maintain-plan-commit/invalidate?commitId=${encodeURIComponent(commitId)}`,params);
116 116 };
117 117  
118 118  
... ...
pages-sub/daily/maintain-manage/now-list-page.vue
... ... @@ -5,12 +5,12 @@
5 5 一个任务可提交多次上报记录,每一次作业需如实上报。
6 6 </view>
7 7 <!-- 上报记录列表 -->
8   - <view class="list-wrap" v-if="dataList.length > 0">
9   - <view class="report-item" v-for="(item, index) in dataList" :key="index">
  8 + <view class="list-wrap" v-if="reportList.length > 0">
  9 + <view class="report-item" v-for="(item, index) in reportList[0].workRecords" :key="index">
10 10 <view class="item-title">【第{{ item.sortNum || (index + 1) }}次上报】{{ planName }}</view>
11 11 <view class="item-row item-row-bottom">
12 12 <view class="item-time">提交时间:{{ timeFormat(item.createTime,'yyyy-mm-dd hh:MM:ss')}}</view>
13   - <view class="look-btn" @click="handleView(item)">查看</view>
  13 + <view class="look-btn" @click="handleView(item,reportList[0])">查看</view>
14 14 </view>
15 15 </view>
16 16 </view>
... ... @@ -92,11 +92,11 @@ const getReportList = async () =&gt; {
92 92 }
93 93 }
94 94 // 查看上报详情
95   -const handleView = (item) => {
  95 +const handleView = (item,i) => {
96 96 console.log('查看详情', item)
97 97 uni.navigateTo({
98 98 // 后端 page 接口支持 commitId 精确过滤,必须带上,否则会把该计划全部上报都展示出来
99   - url: `/pages-sub/daily/maintain-manage/finish-plan-detail?planNo=${item.planNo}&commitId=${item.commitId}`
  99 + url: `/pages-sub/daily/maintain-manage/finish-plan-detail?planNo=${i.planNo}&commitId=${i.commitId}`
100 100 })
101 101 }
102 102 // 新增上报记录,把planNo + currentCommitId带到新增页面
... ...