diff --git a/src/api/device/faultType.js b/src/api/device/faultType.js new file mode 100644 index 00000000..007c1b7b --- /dev/null +++ b/src/api/device/faultType.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询故障类型维护列表 +export function listFaultType(query) { + return request({ + url: '/device/faultType/list', + method: 'get', + params: query + }); +} + +// 查询故障类型维护详细 +export function getFaultType(faultId) { + return request({ + url: '/device/faultType/' + faultId, + method: 'get' + }); +} + +// 新增故障类型维护 +export function addFaultType(data) { + return request({ + url: '/device/faultType', + method: 'post', + data: data + }); +} + +// 修改故障类型维护 +export function updateFaultType(data) { + return request({ + url: '/device/faultType', + method: 'put', + data: data + }); +} + +// 删除故障类型维护 +export function delFaultType(faultId) { + return request({ + url: '/device/faultType/' + faultId, + method: 'delete' + }); +} diff --git a/src/api/device/item.js b/src/api/device/item.js index 44f1d1bc..9e977fcd 100644 --- a/src/api/device/item.js +++ b/src/api/device/item.js @@ -1,5 +1,21 @@ import request from '@/utils/request' +// 查询检查项维护详细 +export function getEquipmentCodeList(itemCode) { + return request({ + url: '/device/item/getEquipmentCodeList/' + itemCode, + method: 'get' + }); +} + +// 查询检查项维护详细 +export function getEquipmentList() { + return request({ + url: '/device/item/getEquipmentList', + method: 'get' + }); +} + // 查询检查项维护列表 export function listItem(query) { return request({ diff --git a/src/views/device/faultType/index.vue b/src/views/device/faultType/index.vue new file mode 100644 index 00000000..570ab2e1 --- /dev/null +++ b/src/views/device/faultType/index.vue @@ -0,0 +1,407 @@ + + + diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue index a7ce3363..56316fad 100644 --- a/src/views/device/item/index.vue +++ b/src/views/device/item/index.vue @@ -178,17 +178,17 @@ >删除 - - - - - - - - - - - + + + + + + + + + + + @@ -201,7 +201,7 @@ - + @@ -251,96 +251,116 @@ - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + 定性 + 定量 + + + + + + + + + + + + + 删除 + + + 添加 + + + + + + + + + + + + + + + + + + + + + + + + + + + 删除 + + + 添加 + + + +
+ + + -
- - - - - - - - - - - - - - -
- -
- + + + - - - 定性 - 定量 - - - - - - - - - - - - - 删除 - - 添加 - - - - - - - - - - - - - - - - - - - - - - - - - - - 删除 - - 添加 - + + + -
- - - - -
+ +