• This project
    • Loading...
  • Sign in

Fedex / iClear-Connect-Pre-Clearance

Go to a project
Toggle navigation Toggle navigation pinning
  • Projects
  • Groups
  • Snippets
  • Help
  • Project
  • Activity
  • Repository
  • Pipelines
  • Graphs
  • Issues 0
  • Merge Requests 0
  • Wiki
  • Snippets
  • Network
  • Create a new issue
  • Builds
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Network
  • Compare
  • Branches
  • Tags
Switch branch/tag
  • iClear-Connect-Pre-Clearance
  • web
  • src
  • utils
  • filters.js
  • jinhui.wang's avatar
    前端项目代码增加 · 90e29239
    90e29239
    jinhui.wang authored 2024-10-18 11:27:24 +0800
filters.js 423 Bytes
Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
// 是否
export function isSure(type) {
  if (type === 0 || type === "0" || type === false) {
    return "否";
  } else if (type === 1 || type === "1" || type === true) {
    return "是";
  }
}

// 布尔值转换
export function returnBoolean(type) {
  if (type === 0 || type === "0") {
    return false;
  } else if (type === 1 || type === "1") {
    return true;
  }
}

export default {
  isSure,
  returnBoolean,
};