【功能新增】IoT:产品接口增加 picUrl 字段;调整相关导入路径

pull/620/head
安浩浩 2024-12-09 21:12:20 +08:00
parent 218f10bcfd
commit 1ce8233159
9 changed files with 9 additions and 8 deletions

View File

@ -17,6 +17,7 @@ export interface ProductVO {
dataFormat: number // 数据格式 dataFormat: number // 数据格式
deviceCount: number // 设备数量 deviceCount: number // 设备数量
createTime: Date // 创建时间 createTime: Date // 创建时间
picUrl: string // 产品图片 URL
} }
// IOT 数据校验级别枚举类 // IOT 数据校验级别枚举类

View File

@ -618,7 +618,7 @@ const remainingRouter: AppRouteRecordRaw[] = [
}, },
children: [ children: [
{ {
path: 'product/detail/:id', path: 'product/product/detail/:id',
name: 'IoTProductDetail', name: 'IoTProductDetail',
meta: { meta: {
title: '产品详情', title: '产品详情',

View File

@ -41,7 +41,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { DeviceApi, DeviceVO } from '@/api/iot/device' import { DeviceApi, DeviceVO } from '@/api/iot/device'
import { ProductApi } from '@/api/iot/product' import { ProductApi } from '@/api/iot/product/product'
/** IoT 设备 表单 */ /** IoT 设备 表单 */
defineOptions({ name: 'IoTDeviceForm' }) defineOptions({ name: 'IoTDeviceForm' })

View File

@ -54,7 +54,7 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { DeviceApi, DeviceHistoryDataVO, DeviceVO } from '@/api/iot/device' import { DeviceApi, DeviceHistoryDataVO, DeviceVO } from '@/api/iot/device'
import { ProductVO } from '@/api/iot/product' import { ProductVO } from '@/api/iot/product/product'
import { beginOfDay, dateFormatter, endOfDay, formatDate } from '@/utils/formatTime' import { beginOfDay, dateFormatter, endOfDay, formatDate } from '@/utils/formatTime'
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict' import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'

View File

@ -37,7 +37,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import DeviceForm from '@/views/iot/device/DeviceForm.vue' import DeviceForm from '@/views/iot/device/DeviceForm.vue'
import { ProductVO } from '@/api/iot/product' import { ProductVO } from '@/api/iot/product/product'
import { DeviceVO } from '@/api/iot/device' import { DeviceVO } from '@/api/iot/device'
import { useRouter } from 'vue-router' import { useRouter } from 'vue-router'

View File

@ -81,7 +81,7 @@
<script setup lang="ts"> <script setup lang="ts">
import { ref } from 'vue' import { ref } from 'vue'
import { DICT_TYPE } from '@/utils/dict' import { DICT_TYPE } from '@/utils/dict'
import { ProductVO } from '@/api/iot/product' import { ProductVO } from '@/api/iot/product/product'
import { formatDate } from '@/utils/formatTime' import { formatDate } from '@/utils/formatTime'
import { DeviceVO } from '@/api/iot/device' import { DeviceVO } from '@/api/iot/device'

View File

@ -78,7 +78,7 @@
</ContentWrap> </ContentWrap>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ProductVO } from '@/api/iot/product' import { ProductVO } from '@/api/iot/product/product'
import { DeviceApi, DeviceDataVO, DeviceVO } from '@/api/iot/device' import { DeviceApi, DeviceDataVO, DeviceVO } from '@/api/iot/device'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import DeviceDataDetail from './DeviceDataDetail.vue' import DeviceDataDetail from './DeviceDataDetail.vue'

View File

@ -22,7 +22,7 @@
<script lang="ts" setup> <script lang="ts" setup>
import { useTagsViewStore } from '@/store/modules/tagsView' import { useTagsViewStore } from '@/store/modules/tagsView'
import { DeviceApi, DeviceVO } from '@/api/iot/device' import { DeviceApi, DeviceVO } from '@/api/iot/device'
import { DeviceTypeEnum, ProductApi, ProductVO } from '@/api/iot/product' import { DeviceTypeEnum, ProductApi, ProductVO } from '@/api/iot/product/product'
import DeviceDetailsHeader from '@/views/iot/device/detail/DeviceDetailsHeader.vue' import DeviceDetailsHeader from '@/views/iot/device/detail/DeviceDetailsHeader.vue'
import DeviceDetailsInfo from '@/views/iot/device/detail/DeviceDetailsInfo.vue' import DeviceDetailsInfo from '@/views/iot/device/detail/DeviceDetailsInfo.vue'
import DeviceDetailsModel from '@/views/iot/device/detail/DeviceDetailsModel.vue' import DeviceDetailsModel from '@/views/iot/device/detail/DeviceDetailsModel.vue'

View File

@ -171,7 +171,7 @@ import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime' import { dateFormatter } from '@/utils/formatTime'
import { DeviceApi, DeviceVO } from '@/api/iot/device' import { DeviceApi, DeviceVO } from '@/api/iot/device'
import DeviceForm from './DeviceForm.vue' import DeviceForm from './DeviceForm.vue'
import { ProductApi } from '@/api/iot/product' import { ProductApi } from '@/api/iot/product/product'
/** IoT 设备 列表 */ /** IoT 设备 列表 */
defineOptions({ name: 'IoTDevice' }) defineOptions({ name: 'IoTDevice' })