a69ef70379c8b8be3f00ebb28fd30e1337e49795..6fede0fb5a8e3eb146c800d9c5d3f3443a437cb8
2026-09-22 zhang_nuo
提交分页调整
6fede0 对比 | 目录
2026-09-22 zhang_nuo
提交分页调整
34d187 对比 | 目录
2026-09-22 zhang_nuo
员工流动200%的问题
86a55c 对比 | 目录
已修改2个文件
26 ■■■■■ 文件已修改
src/views/financialManagement/voucher/index.vue 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/personnelManagement/analytics/index.vue 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/financialManagement/voucher/index.vue
@@ -227,7 +227,7 @@
            <AttachmentUploadFile
              v-model:fileList="form.attachments"
              :disabled="isViewMode"
              :limit="10"
              :limit="500"
              :fileSize="50"
              buttonText="点击上传附件"
              @change="handleAttachmentChange"
@@ -300,7 +300,7 @@
const pagination = reactive({
  currentPage: 1,
  pageSize: 10,
  pageSize: 500,
  total: 0,
});
@@ -518,9 +518,9 @@
  getTableData();
};
const changePage = ({ current, size }) => {
  pagination.currentPage = current;
  pagination.pageSize = size;
const changePage = ({ page, limit }) => {
  pagination.currentPage = page;
  pagination.pageSize = limit;
  getTableData();
};
src/views/personnelManagement/analytics/index.vue
@@ -184,12 +184,18 @@
  }
}
// 限制百分比在 0-100 范围内
const clampPercent = val => {
  const n = Number(val) || 0
  return Math.max(0, Math.min(100, n))
}
const getStaffAnalysisTotalStatistic = async () => {
  try {
    const res = await findStaffAnalysisTotalStatistic()
    if (res && res.data) {
      keyMetrics.value[0].value = res.data.totalFlowRate || 0
      keyMetrics.value[1].value = res.data.totalTurnoverRate || 0
      keyMetrics.value[0].value = clampPercent(res.data.totalFlowRate || 0)
      keyMetrics.value[1].value = clampPercent(res.data.totalTurnoverRate || 0)
      keyMetrics.value[2].value = res.data.currentOnJobCount || 0
    }
  } catch (error) {
@@ -288,8 +294,8 @@
  // 使用API返回的实际数据
  const months = turnoverRateStatistics.value.map(item => item.month)
  const turnoverData = turnoverRateStatistics.value.map(item => item.flowRate || 0)
  const attritionData = turnoverRateStatistics.value.map(item => item.turnoverRate || 0)
  const turnoverData = turnoverRateStatistics.value.map(item => clampPercent(item.flowRate || 0))
  const attritionData = turnoverRateStatistics.value.map(item => clampPercent(item.turnoverRate || 0))
  const option = {
    title: {
@@ -319,6 +325,8 @@
    },
    yAxis: {
      type: 'value',
      min: 0,
      max: 100,
      axisLabel: { formatter: '{value}%' }
    },
    series: [