zhangwencui
9 天以前 dab35bff798cfce2ddf7e8a67e4e1cdb144f5b4c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
export function fmt(value: unknown) {
  if (value === undefined || value === null || value === "") return "--";
  return String(value);
}
 
export function statusText(status?: number) {
  return status === 1 ? "禁用" : "开启";
}
 
export function statusClass(status?: number) {
  return status === 1 ? "tag-off" : "tag-on";
}
 
export function formTypeText(type?: number) {
  if (type === 20) return "业务表单";
  return "流程表单";
}
 
export function toast(title: string) {
  uni.showToast({ title, icon: "none" });
}