diff --git a/src/api/iot/recipeConfig/index.ts b/src/api/iot/recipeConfig/index.ts index 92189422..f043c3e9 100644 --- a/src/api/iot/recipeConfig/index.ts +++ b/src/api/iot/recipeConfig/index.ts @@ -2,7 +2,7 @@ export interface RecipeConfigVO { id: number recipeCode: string recipeName: string - recipeType?: string + recipeType?: string | number productId?: number productName?: string deviceId?: number diff --git a/src/api/mes/devicetype/index.ts b/src/api/mes/devicetype/index.ts new file mode 100644 index 00000000..0fe53b72 --- /dev/null +++ b/src/api/mes/devicetype/index.ts @@ -0,0 +1,58 @@ +import request from '@/config/axios' + +// 设备类型 VO +export interface DeviceTypeVO { + id: number // id + code: string // 编码 + name: string // 名称 + remark: string // 备注 + sort: number // 排序 + parentId?: number + parentChain?: string + createTime?: string +} + +export interface DeviceTypeTreeVO extends DeviceTypeVO { + parentId?: number + parentChain?: string + createTime?: string + children?: DeviceTypeTreeVO[] + leaf?: boolean +} + +// 设备类型 API +export const DeviceTypeApi = { + // 查询设备类型分页 + getDeviceTypePage: async (params: any) => { + return await request.get({ url: `/mes/device-type/page`, params }) + }, + + getDeviceTypeTree: async (params: any) => { + return await request.get({ url: `/mes/device-type/tree`, params }) + }, + + // 查询设备类型详情 + getDeviceType: async (id: number) => { + return await request.get({ url: `/mes/device-type/get?id=` + id }) + }, + + // 新增设备类型 + createDeviceType: async (data: DeviceTypeVO) => { + return await request.post({ url: `/mes/device-type/create`, data }) + }, + + // 修改设备类型 + updateDeviceType: async (data: DeviceTypeVO) => { + return await request.put({ url: `/mes/device-type/update`, data }) + }, + + // 删除设备类型 + deleteDeviceType: async (id: number) => { + return await request.delete({ url: `/mes/device-type/delete?id=` + id }) + }, + + // 导出设备类型 Excel + exportDeviceType: async (params) => { + return await request.download({ url: `/mes/device-type/export-excel`, params }) + } +} diff --git a/src/components/DiyEditor/components/ComponentContainer.vue b/src/components/DiyEditor/components/ComponentContainer.vue index 48567224..6f2d87c3 100644 --- a/src/components/DiyEditor/components/ComponentContainer.vue +++ b/src/components/DiyEditor/components/ComponentContainer.vue @@ -165,8 +165,8 @@ $toolbar-position: -55px; width: 80px; height: 25px; font-size: 12px; - color: #6a6a6a; line-height: 25px; + color: #6a6a6a; text-align: center; background: #fff; box-shadow: diff --git a/src/components/DiyEditor/components/ComponentLibrary.vue b/src/components/DiyEditor/components/ComponentLibrary.vue index fdb0b1de..fd457e0c 100644 --- a/src/components/DiyEditor/components/ComponentLibrary.vue +++ b/src/components/DiyEditor/components/ComponentLibrary.vue @@ -94,9 +94,9 @@ const handleCloneComponent = (component: DiyComponent) => { diff --git a/src/components/DiyEditor/components/mobile/HotZone/property.vue b/src/components/DiyEditor/components/mobile/HotZone/property.vue index 495cbdce..4f6c3b64 100644 --- a/src/components/DiyEditor/components/mobile/HotZone/property.vue +++ b/src/components/DiyEditor/components/mobile/HotZone/property.vue @@ -42,22 +42,22 @@ const handleOpenEditDialog = () => { diff --git a/src/components/DiyEditor/components/mobile/MenuSwiper/index.vue b/src/components/DiyEditor/components/mobile/MenuSwiper/index.vue index f8e2bbc6..c2319daf 100644 --- a/src/components/DiyEditor/components/mobile/MenuSwiper/index.vue +++ b/src/components/DiyEditor/components/mobile/MenuSwiper/index.vue @@ -103,13 +103,16 @@ watch( .el-carousel__indicator { padding-top: 0; padding-bottom: 0; + .el-carousel__button { --el-carousel-indicator-height: 6px; --el-carousel-indicator-width: 6px; --el-carousel-indicator-out-color: #ff6000; + border-radius: 6px; } } + .el-carousel__indicator.is-active { .el-carousel__button { --el-carousel-indicator-width: 12px; diff --git a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue index c684aee7..ab179cd7 100644 --- a/src/components/DiyEditor/components/mobile/NavigationBar/index.vue +++ b/src/components/DiyEditor/components/mobile/NavigationBar/index.vue @@ -64,10 +64,10 @@ const getSearchProp = (cell: NavigationBarCellProperty) => { .navigation-bar { display: flex; height: 50px; + padding: 0 6px; background: #fff; justify-content: space-between; align-items: center; - padding: 0 6px; /* 左边 */ .left { diff --git a/src/components/DiyEditor/index.vue b/src/components/DiyEditor/index.vue index 700d32bd..355ff156 100644 --- a/src/components/DiyEditor/index.vue +++ b/src/components/DiyEditor/index.vue @@ -545,11 +545,12 @@ $toolbar-height: 42px; gap: 8px; :deep(.el-tag) { - box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1); border: none; + box-shadow: 0 2px 8px 0 rgb(0 0 0 / 10%); + .el-tag__content { - width: 100%; display: flex; + width: 100%; align-items: center; justify-content: flex-start; diff --git a/src/components/InputWithColor/index.vue b/src/components/InputWithColor/index.vue index 2bc53172..e494bcb3 100644 --- a/src/components/InputWithColor/index.vue +++ b/src/components/InputWithColor/index.vue @@ -50,6 +50,7 @@ watch( diff --git a/src/layout/components/UserInfo/src/components/LockDialog.vue b/src/layout/components/UserInfo/src/components/LockDialog.vue index 7257be16..c719c2a9 100644 --- a/src/layout/components/UserInfo/src/components/LockDialog.vue +++ b/src/layout/components/UserInfo/src/components/LockDialog.vue @@ -91,7 +91,7 @@ const handleLock = async () => { + diff --git a/src/views/iot/historyData/HistorySingleDeviceDialog.vue b/src/views/iot/historyData/HistorySingleDeviceDialog.vue index d2d668e3..7e0e7e3e 100644 --- a/src/views/iot/historyData/HistorySingleDeviceDialog.vue +++ b/src/views/iot/historyData/HistorySingleDeviceDialog.vue @@ -3,7 +3,8 @@
- @@ -19,15 +20,18 @@ 采集时间:{{ group.collectTime || '-' }}
-
{{ section.title }}
- -