| | |
| | | pushType: [ |
| | | { label: t("weight"), value: "weight" }, |
| | | { label: t("health_gps"), value: "health_gps" }, |
| | | { label: t("vehicle_gps"), value: "vehicle_gps" }, |
| | | { label: t("camera_gps"), value: "camera_gps" }, |
| | | { label: t("driver_anomaly"), value: "driver_anomaly" }, |
| | | { label: t("others"), value: "others" }, |
| | | ], |
| | |
| | | label: t("推送类型"), |
| | | prop: "pushType", |
| | | component: { name: "el-radio-group", options: options.pushType }, |
| | | value: 0, |
| | | value: "weight", |
| | | required: true, |
| | | }, |
| | | { |
| | |
| | | }); |
| | | |
| | | // cl-search |
| | | const Search = useSearch(); |
| | | const Search = useSearch({ |
| | | items: [ |
| | | { |
| | | label: t("客户端ID"), |
| | | prop: "deviceNo", |
| | | component: { name: "el-input", props: { clearable: true } }, |
| | | span: 12, |
| | | }, |
| | | { |
| | | label: t("推送类型"), |
| | | prop: "pushType", |
| | | component: { |
| | | name: "el-select", // 使用下拉框搜索 |
| | | options: options.pushType, |
| | | props: { |
| | | clearable: true, // 允许清空搜索条件 |
| | | placeholder: t("请选择推送类型") |
| | | } |
| | | } |
| | | } |
| | | |
| | | ] |
| | | }); |
| | | // cl-crud |
| | | const Crud = useCrud( |
| | | { |