|
@@ -85,13 +85,33 @@
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
- <el-table-column prop="deviceCategoryName" :label="t('info.deviceClass')" />
|
|
|
|
|
|
+ <!-- <el-table-column prop="deviceCategoryName" :label="t('info.deviceClass')" /> -->
|
|
<el-table-column prop="sort" :label="t('common.sort')" />
|
|
<el-table-column prop="sort" :label="t('common.sort')" />
|
|
- <el-table-column prop="status" :label="t('common.status')">
|
|
|
|
|
|
+ <el-table-column label="维修" width="100">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
- <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
|
|
|
|
|
+ <el-switch
|
|
|
|
+ :model-value="scope.row.type?.includes(1)"
|
|
|
|
+ active-value
|
|
|
|
+ inactive-value
|
|
|
|
+ disabled
|
|
|
|
+ />
|
|
</template>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
|
+ <el-table-column label="保养" width="100">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <el-switch
|
|
|
|
+ :model-value="scope.row.type?.includes(2)"
|
|
|
|
+ active-value
|
|
|
|
+ inactive-value
|
|
|
|
+ disabled
|
|
|
|
+ />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column>
|
|
|
|
+ <!-- <el-table-column prop="status" :label="t('common.status')">
|
|
|
|
+ <template #default="scope">
|
|
|
|
+ <dict-tag :type="DICT_TYPE.COMMON_STATUS" :value="scope.row.status" />
|
|
|
|
+ </template>
|
|
|
|
+ </el-table-column> -->
|
|
<el-table-column prop="materials" :label="t('iotMaintain.numberOfMaterials')" />
|
|
<el-table-column prop="materials" :label="t('iotMaintain.numberOfMaterials')" />
|
|
<el-table-column :label="t('iotMaintain.operation')" align="center">
|
|
<el-table-column :label="t('iotMaintain.operation')" align="center">
|
|
<template #default="scope">
|
|
<template #default="scope">
|
|
@@ -197,9 +217,9 @@ const getList = async () => {
|
|
loading.value = true
|
|
loading.value = true
|
|
queryParams.deviceId = props.deviceId
|
|
queryParams.deviceId = props.deviceId
|
|
try {
|
|
try {
|
|
- const data = await BomApi.IotDeviceBomApi.getIotDeviceBomPage(queryParams)
|
|
|
|
- if (data&&data.list) {
|
|
|
|
- list.value = handleTree(data.list)
|
|
|
|
|
|
+ const data = await BomApi.IotDeviceBomApi.getIotDeviceBomList(queryParams)
|
|
|
|
+ if (data) {
|
|
|
|
+ list.value = handleTree(data)
|
|
}
|
|
}
|
|
} finally {
|
|
} finally {
|
|
loading.value = false
|
|
loading.value = false
|