烟花爆竹批发企业仓库安全风险监测前端
zhouwx
2025-04-16 489ba60990eeb2b11ff2522678630d8bc3764e71
src/utils/index.js
@@ -20,6 +20,7 @@
 * @param {string} option
 * @returns {string}
 */
export function formatTime(time, option) {
  if (('' + time).length === 10) {
    time = parseInt(time) * 1000
@@ -93,6 +94,15 @@
  return s
}
export function computePageCount(totalCount, pageSize) {
  if (pageSize == 0) {
    return 0
  }
  return totalCount % pageSize == 0
      ? totalCount / pageSize
      : totalCount / pageSize + 1
}
/**
 * @param {Array} actual
 * @returns {Array}