|
|
@@ -525,3 +525,24 @@ async function main() {
|
|
|
// 执行主函数
|
|
|
main();
|
|
|
```
|
|
|
+
|
|
|
+### 模型预览图配置
|
|
|
+
|
|
|
+1、上传预览图至服务器 `/data/file/modelThumbnail/{devicekind}`
|
|
|
+
|
|
|
+2、设备字段管理处修改对应设备的模型类型字段,将输入类型修改为 `selectmodel`
|
|
|
+
|
|
|
+3、删除字典中对应的模型类型字典,否则系统将默认使用字典驱动
|
|
|
+
|
|
|
+支持的设备有:`windows`、`gate`、`fanlocal`、`fanmain`、`windrect`、`door`
|
|
|
+
|
|
|
+各设备类型对应的 dictCode 及 store key 对照:
|
|
|
+
|
|
|
+| 设备 (devicekind) | dictCode |
|
|
|
+| ----------------- | ----------------------- |
|
|
|
+| `windows` | `windowModalType` |
|
|
|
+| `gate` | `gateStyle` |
|
|
|
+| `fanlocal` | `fanlocal_install_kind` |
|
|
|
+| `fanmain` | `mainFanType` |
|
|
|
+| `windrect` | `windrecModel` |
|
|
|
+| `door` | `fireDoorStyle` |
|