|
|
|
@ -71,6 +71,7 @@ import { DeviceApi } from '@/api/iot/device'
|
|
|
|
import { DeviceAttributeTypeApi, DeviceAttributeTypeVO } from '@/api/iot/deviceattributetype'
|
|
|
|
import { DeviceAttributeTypeApi, DeviceAttributeTypeVO } from '@/api/iot/deviceattributetype'
|
|
|
|
import TableSelectDialog from '@/components/TableSelectDialog/TableSelectDialog.vue'
|
|
|
|
import TableSelectDialog from '@/components/TableSelectDialog/TableSelectDialog.vue'
|
|
|
|
import { ProductUnitApi, ProductUnitVO } from '@/api/erp/product/unit'
|
|
|
|
import { ProductUnitApi, ProductUnitVO } from '@/api/erp/product/unit'
|
|
|
|
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
|
|
|
|
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const { t } = useI18n() // 国际化
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
const message = useMessage() // 消息弹窗
|
|
|
|
@ -242,7 +243,12 @@ const attributeTypeColumns = [
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.name'), prop: 'name', minWidth: 160 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.name'), prop: 'name', minWidth: 160 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.sort'), prop: 'sort', minWidth: 100 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.sort'), prop: 'sort', minWidth: 100 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.remark'), prop: 'remark', minWidth: 160 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.remark'), prop: 'remark', minWidth: 160 },
|
|
|
|
{ label: t('DataCollection.DeviceAttributeType.createTime'), prop: 'createTime', minWidth: 180 }
|
|
|
|
{
|
|
|
|
|
|
|
|
label: t('DataCollection.DeviceAttributeType.createTime'),
|
|
|
|
|
|
|
|
prop: 'createTime',
|
|
|
|
|
|
|
|
minWidth: 180,
|
|
|
|
|
|
|
|
formatter: dateFormatter
|
|
|
|
|
|
|
|
}
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
|
|
const fetchAttributeTypePage = (params: Record<string, any>) => {
|
|
|
|
const fetchAttributeTypePage = (params: Record<string, any>) => {
|
|
|
|
|