From ca932a21ebd3419523a6c8743ac6d4f10e7a21c0 Mon Sep 17 00:00:00 2001
From: wws <18630710203@163.com>
Date: Mon, 16 Oct 2023 13:56:40 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A1=E6=A3=80=E8=AE=A1=E5=88=92=E5=88=9D?=
=?UTF-8?q?=E5=A7=8B=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/device/plan.js | 44 ++
src/views/device/inspectionPlan/index.vue | 608 ++++++++++++++++++++++
2 files changed, 652 insertions(+)
create mode 100644 src/api/device/plan.js
create mode 100644 src/views/device/inspectionPlan/index.vue
diff --git a/src/api/device/plan.js b/src/api/device/plan.js
new file mode 100644
index 0000000..59382c7
--- /dev/null
+++ b/src/api/device/plan.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询计划列表
+export function listPlan(query) {
+ return request({
+ url: '/device/plan/list',
+ method: 'get',
+ params: query
+ });
+}
+
+// 查询计划详细
+export function getPlan(planId) {
+ return request({
+ url: '/device/plan/' + planId,
+ method: 'get'
+ });
+}
+
+// 新增计划
+export function addPlan(data) {
+ return request({
+ url: '/device/plan',
+ method: 'post',
+ data: data
+ });
+}
+
+// 修改计划
+export function updatePlan(data) {
+ return request({
+ url: '/device/plan',
+ method: 'put',
+ data: data
+ });
+}
+
+// 删除计划
+export function delPlan(planId) {
+ return request({
+ url: '/device/plan/' + planId,
+ method: 'delete'
+ });
+}
diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue
new file mode 100644
index 0000000..78637b4
--- /dev/null
+++ b/src/views/device/inspectionPlan/index.vue
@@ -0,0 +1,608 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.planLoopStart, '{y}-{m}-{d}') }}
+
+
+
+
+ {{ parseTime(scope.row.planLoopEnd, '{y}-{m}-{d}') }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{ parseTime(scope.row.createTime, '{y}-{m}-{d}') }}
+
+
+
+
+
+ {{ parseTime(scope.row.updateTime, '{y}-{m}-{d}') }}
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+