|
|
|
@ -33,7 +33,7 @@
|
|
|
|
:placeholder="t('DataCollection.Device.placeholderAttributeType')"
|
|
|
|
:placeholder="t('DataCollection.Device.placeholderAttributeType')"
|
|
|
|
class="!w-240px"
|
|
|
|
class="!w-240px"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<el-option v-for="item in typeList" :key="item.id" :label="item.name" :value="item.name" />
|
|
|
|
<el-option v-for="item in typeList" :key="item.id" :label="item.code + '-' + item.name" :value="item.id" />
|
|
|
|
</el-select>
|
|
|
|
</el-select>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
<el-form-item>
|
|
|
|
@ -184,7 +184,6 @@ import { DICT_TYPE } from '@/utils/dict'
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import { dateFormatter } from '@/utils/formatTime'
|
|
|
|
import download from '@/utils/download'
|
|
|
|
import download from '@/utils/download'
|
|
|
|
import { DeviceApi } from '@/api/iot/device'
|
|
|
|
import { DeviceApi } from '@/api/iot/device'
|
|
|
|
import { DeviceModelAttributeApi } from '@/api/iot/devicemodelattribute'
|
|
|
|
|
|
|
|
import DeviceAttributeForm from './DeviceAttributeForm.vue'
|
|
|
|
import DeviceAttributeForm from './DeviceAttributeForm.vue'
|
|
|
|
import { DeviceAttributeTypeApi, DeviceAttributeTypeVO } from '@/api/iot/deviceattributetype'
|
|
|
|
import { DeviceAttributeTypeApi, DeviceAttributeTypeVO } from '@/api/iot/deviceattributetype'
|
|
|
|
|
|
|
|
|
|
|
|
@ -332,7 +331,7 @@ const handleExport = async () => {
|
|
|
|
if (selectedIds.value.length) {
|
|
|
|
if (selectedIds.value.length) {
|
|
|
|
params.ids = selectedIds.value.join(',')
|
|
|
|
params.ids = selectedIds.value.join(',')
|
|
|
|
}
|
|
|
|
}
|
|
|
|
const data = await DeviceModelAttributeApi.exportDeviceModelAttribute(params)
|
|
|
|
const data = await DeviceApi.exportDeviceContactModel(params)
|
|
|
|
download.excel(data, t('DataCollection.Device.attributeExportFilename'))
|
|
|
|
download.excel(data, t('DataCollection.Device.attributeExportFilename'))
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
|
} finally {
|
|
|
|
} finally {
|
|
|
|
@ -342,8 +341,8 @@ const handleExport = async () => {
|
|
|
|
|
|
|
|
|
|
|
|
onMounted(async () => {
|
|
|
|
onMounted(async () => {
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
const data = await DeviceAttributeTypeApi.getDeviceAttributeTypePage({ pageNo: 1, pageSize: 10 })
|
|
|
|
const data = await DeviceAttributeTypeApi.getDeviceAttributeTypeList()
|
|
|
|
typeList.value = data?.list ?? []
|
|
|
|
typeList.value = data ?? []
|
|
|
|
} catch {
|
|
|
|
} catch {
|
|
|
|
typeList.value = []
|
|
|
|
typeList.value = []
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|