From 34e6a7385222e3eb17c778ec6aba9ee2cef9f004 Mon Sep 17 00:00:00 2001
From: helloDy <1615073571@qq.com>
Date: Thu, 16 Nov 2023 21:07:21 +0800
Subject: [PATCH] bug
---
src/api/equipment/base/inspection/record.js | 10 ++-
src/api/equipment/base/maintain/record.js | 16 +++++
src/api/equipment/base/repair.js | 12 +++-
src/api/equipment/base/spare-parts/config.js | 21 +++++-
src/views/base/coreEquipment/index.vue | 2 +-
.../base/config/AlarmGroup/index.vue | 2 +-
.../equipment/base/config/BindGroup/index.vue | 2 +-
.../base/inspection/Record/addRecord.vue | 70 +++++++------------
.../base/inspection/Record/index.vue | 6 +-
.../equipment/base/maintain/Record/index.vue | 9 +--
src/views/equipment/base/repair/index.vue | 10 +--
.../base/spareParts/Config/addSparts.vue | 5 +-
.../base/spareParts/Config/attr-add.vue | 10 ++-
.../base/spareParts/Config/index.vue | 7 +-
.../equipment/timing-diagram/output/index.vue | 2 +-
.../equipment/timing-diagram/status/index.vue | 2 +-
16 files changed, 115 insertions(+), 71 deletions(-)
create mode 100644 src/api/equipment/base/maintain/record.js
diff --git a/src/api/equipment/base/inspection/record.js b/src/api/equipment/base/inspection/record.js
index 7cf3941c..31bb481e 100644
--- a/src/api/equipment/base/inspection/record.js
+++ b/src/api/equipment/base/inspection/record.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-08 15:56:52
- * @LastEditTime: 2023-11-13 09:15:17
+ * @LastEditTime: 2023-11-16 20:15:02
* @LastEditors: DY
* @Description:
*/
@@ -60,3 +60,11 @@ export function getcheckConfigByEqList(query) {
params: query
})
}
+
+// 删除设备巡检记录
+export function deleteEqCheckLog(id) {
+ return request({
+ url: '/base/equipment-check-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/maintain/record.js b/src/api/equipment/base/maintain/record.js
new file mode 100644
index 00000000..e4385ea6
--- /dev/null
+++ b/src/api/equipment/base/maintain/record.js
@@ -0,0 +1,16 @@
+/*
+ * @Author: Do not edit
+ * @Date: 2023-11-08 15:56:52
+ * @LastEditTime: 2023-11-16 20:22:12
+ * @LastEditors: DY
+ * @Description:
+ */
+import request from '@/utils/request'
+
+// 删除设备保养记录
+export function deleteEqMaintainLog(id) {
+ return request({
+ url: '/base/equipment-maintain-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/repair.js b/src/api/equipment/base/repair.js
index a93e4a9f..c8b115e2 100644
--- a/src/api/equipment/base/repair.js
+++ b/src/api/equipment/base/repair.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-10 16:09:33
- * @LastEditTime: 2023-11-10 16:50:08
+ * @LastEditTime: 2023-11-16 18:57:08
* @LastEditors: DY
* @Description:
*/
@@ -22,4 +22,12 @@ export function updateEqRepair(data) {
method: 'put',
data: data
})
-}
\ No newline at end of file
+}
+
+// 删除维修记录
+export function deleteRepair(id) {
+ return request({
+ url: '/base/equipment-repair-log/delete?id=' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/api/equipment/base/spare-parts/config.js b/src/api/equipment/base/spare-parts/config.js
index b2201cad..0abc7f56 100644
--- a/src/api/equipment/base/spare-parts/config.js
+++ b/src/api/equipment/base/spare-parts/config.js
@@ -1,7 +1,7 @@
/*
* @Author: Do not edit
* @Date: 2023-11-11 16:18:57
- * @LastEditTime: 2023-11-11 17:28:54
+ * @LastEditTime: 2023-11-16 20:52:06
* @LastEditors: DY
* @Description:
*/
@@ -48,4 +48,21 @@ export function getSparePartList(query) {
method: 'get',
params: query
})
-}
\ No newline at end of file
+}
+
+// 删除设备备品备件配置
+export function deleteConfig(id) {
+ return request({
+ url: '/base/equipment-spare-part-config/delete?id=' + id,
+ method: 'delete'
+ })
+}
+
+// 获得备品备件分页
+export function getSparePartPage(query) {
+ return request({
+ url: '/base/equipment-spare-part/page',
+ method: 'get',
+ params: query
+ })
+}
diff --git a/src/views/base/coreEquipment/index.vue b/src/views/base/coreEquipment/index.vue
index 2c51a435..1e421925 100644
--- a/src/views/base/coreEquipment/index.vue
+++ b/src/views/base/coreEquipment/index.vue
@@ -17,7 +17,7 @@
-
diff --git a/src/views/equipment/base/config/AlarmGroup/index.vue b/src/views/equipment/base/config/AlarmGroup/index.vue
index e03c4e79..68d314ee 100644
--- a/src/views/equipment/base/config/AlarmGroup/index.vue
+++ b/src/views/equipment/base/config/AlarmGroup/index.vue
@@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
diff --git a/src/views/equipment/base/config/BindGroup/index.vue b/src/views/equipment/base/config/BindGroup/index.vue
index 0e13b9aa..f46c177b 100644
--- a/src/views/equipment/base/config/BindGroup/index.vue
+++ b/src/views/equipment/base/config/BindGroup/index.vue
@@ -38,7 +38,7 @@
@close="cancel"
@cancel="cancel"
@confirm="submitForm">
-
+
diff --git a/src/views/equipment/base/inspection/Record/addRecord.vue b/src/views/equipment/base/inspection/Record/addRecord.vue
index 6960f96b..b3c87a72 100644
--- a/src/views/equipment/base/inspection/Record/addRecord.vue
+++ b/src/views/equipment/base/inspection/Record/addRecord.vue
@@ -49,7 +49,8 @@
filterable
:disabled="isdetail"
style="width: 100%"
- placeholder="请选择巡检配置">
+ placeholder="请选择巡检配置"
+ @change="setInspectionContet">
确定
-
-