Commit 88468d8c by 胡悦

fix: 修复工资申诉页面数据展示及环境配置问题

修复工资申诉页面中订单统计项显示条件,避免数值为0时隐藏
为申诉内容为空的情况提供默认显示文本“已处理”
在工资申诉统计查询中添加场景类型参数
调整环境配置文件中的默认环境索引
1 parent dc9d226b
const target = ['ip', 'dev', 'uat', 'prod', 'beta']
const index = 1
const index = 2
/**
*
0本地
......
......@@ -54,7 +54,7 @@
</view>
<view class="order-stats-box">
<template v-for="(item, index) in orderStats">
<view class="stat-item" :key="index" v-if="item.value != null">
<view class="stat-item" :key="index" v-if="item.value">
<view class="stat-label">{{ item.label }}</view>
<view class="stat-value">{{ item.value }}</view>
</view>
......@@ -66,7 +66,7 @@
<view class="reply-container">
<view class="reply-list">
<view class="reply-item" v-for="(item, index) in replyList" :key="index">
<view class="reply-content">{{ item.replyContent }}</view>
<view class="reply-content">{{ !item.replyContent ? '已处理' : item.replyContent }}</view>
<view class="reply-footer">
<text>申诉类型:{{ item.appealType === 1 ? '考勤' : '平板' }}</text>
<text class="time">{{ formatTime(item.replyDate, 'YYYY-MM-DD HH:mm:ss') }}</text>
......@@ -155,10 +155,15 @@ export default {
appealMonth: month,
staffPhone: phone
}
const {sceneType} = uni.$storage.get('userInfo')
const params1 = {
...params,
sceneType
}
const res = await uni.$api.commonApi.getWageAppealOverview(params)
this.appealData = res || {}
// 工资申诉订单统计查询
const res1 = await uni.$api.commonApi.getWageAppealStatistics(params)
const res1 = await uni.$api.commonApi.getWageAppealStatistics(params1)
this.orderStats.forEach(item => {
this.$set(item, 'value', res1[item.prop])
})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!