Files

52 lines
792 B
JavaScript
Raw Normal View History

2023-03-15 16:25:25 +08:00
export const statusMap = new Map([
["0", "正常"],
2023-03-18 13:31:32 +08:00
["1", "禁用"],
2023-03-15 16:25:25 +08:00
]);
2023-03-17 17:36:17 +08:00
export const deviceTypeMap = new Map([
[1, "直连设备"],
[2, "网关子设备"],
2023-03-18 13:31:32 +08:00
[3, "网关子设备"],
2023-03-17 17:36:17 +08:00
]);
2023-03-20 10:40:18 +08:00
export const vertificateMethodOptions = new Map([
[1, "简单认证"],
[2, "加密认证"],
[3, "简单+加密"],
]);
2023-03-17 17:36:17 +08:00
export const isTopMap = new Map([
[0, "是"],
2023-03-18 13:31:32 +08:00
[1, "否"],
2023-03-17 17:36:17 +08:00
]);
export const isMonitor = new Map([
[0, "是"],
2023-03-18 13:31:32 +08:00
[1, "否"],
2023-03-17 17:36:17 +08:00
]);
2023-03-18 14:53:54 +08:00
2023-03-20 10:40:18 +08:00
export const productStatusMap = [
{
label: "未发布",
value: 1,
tag: "info",
},
{
label: "已发布",
value: 2,
tag: "success",
},
];
2023-03-18 14:53:54 +08:00
export const firmwareLatestTypeOptions = [
{
label: "否",
value: 0,
tag: "danger",
},
{
label: "是",
value: 1,
tag: "success",
},
];