Commit c25faab0 by liangjianmin

fix(approve): correct approval status filtering and timestamp field mapping

- Update approval status values to use correct API parameter ('0,1' for pending, '2' for completed)
- Rename status parameter to approve_status to match API specification
- Fix timestamp field reference from create_time_cn to create_time for proper data binding
- Ensures approval list correctly filters and displays applications based on status
parent 0e6dfc5f
Showing with 3 additions and 3 deletions
......@@ -36,7 +36,7 @@
<view class="card-row row verCenter bothSide">
<view class="row verCenter">
<u-icon name="clock-fill" color="#c0c4cc"></u-icon>
<text class="card-time">{{ item.create_time_cn }}</text>
<text class="card-time">{{ item.create_time }}</text>
</view>
<text class="card-tag">{{ item.relief_detail }}</text>
</view>
......@@ -125,9 +125,9 @@
*/
getData() {
var page = this.currentTab === 0 ? this.pendingPage : this.donePage;
var statusVal = this.currentTab === 0 ? '0' : '1';
var statusVal = this.currentTab === 0 ? '0,1' : '2';
var params = {
status: statusVal,
approve_status: statusVal,
page,
limit: this.limit
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment