From dfaaf51465894bc308af5e36b3a0afef852ab518 Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Fri, 7 Jun 2024 13:19:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=88=91=E7=9A=84=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/task/patrol.js | 10 +- src/components/XyTable/index.vue | 2 + src/views/dashboard/index.vue | 9 +- .../task/list/components/addPatrol copy.vue | 632 ++++++++++++++++++ src/views/task/list/components/addPatrol.vue | 346 ++++++++-- src/views/task/list/components/addUnit.vue | 3 +- src/views/task/list/components/checkUnit.vue | 201 ++++-- .../task/list/components/showPatrol copy.vue | 34 +- src/views/task/list/components/showPatrol.vue | 176 +---- src/views/task/list/patrol.vue | 168 +++-- src/views/task/list/unit.vue | 217 ++++-- 11 files changed, 1432 insertions(+), 366 deletions(-) create mode 100644 src/views/task/list/components/addPatrol copy.vue diff --git a/src/api/task/patrol.js b/src/api/task/patrol.js index 384838a..12dd0e0 100644 --- a/src/api/task/patrol.js +++ b/src/api/task/patrol.js @@ -22,8 +22,16 @@ export function save(data) { method: 'post', data }) +} + +export function batchSave(data) { + return request({ + url: '/api/admin/inspection/batch-save', + method: 'post', + data + }) } - + export function del(id) { return request({ url: '/api/admin/inspection/destroy', diff --git a/src/components/XyTable/index.vue b/src/components/XyTable/index.vue index d78d421..f08ec82 100644 --- a/src/components/XyTable/index.vue +++ b/src/components/XyTable/index.vue @@ -830,6 +830,8 @@ export default { top: 0; left: 0; right: 0; + display: flex; + justify-content: flex-end; ::v-deep .ivu-page-item, .ivu-page-options { diff --git a/src/views/dashboard/index.vue b/src/views/dashboard/index.vue index 6d9e84e..6493d47 100644 --- a/src/views/dashboard/index.vue +++ b/src/views/dashboard/index.vue @@ -58,7 +58,7 @@ -->
+ @click="checkUnits(scope.row.id,'show',5)">查看任务
@@ -1132,10 +1132,13 @@ export default { break; } }, - checkUnits(id, type) { + checkUnits(id, type,url_type) { + if(url_type){ + this.$refs.checkUnit.url_type = url_type + } this.$refs.checkUnit.id = id this.$refs.checkUnit.type = type - this.$refs.checkUnit.url_type = 5 + this.isautoplay = false this.$refs.checkUnit.isShow = true }, diff --git a/src/views/task/list/components/addPatrol copy.vue b/src/views/task/list/components/addPatrol copy.vue new file mode 100644 index 0000000..4765689 --- /dev/null +++ b/src/views/task/list/components/addPatrol copy.vue @@ -0,0 +1,632 @@ + + + + + diff --git a/src/views/task/list/components/addPatrol.vue b/src/views/task/list/components/addPatrol.vue index 8dd1835..41c8cdd 100644 --- a/src/views/task/list/components/addPatrol.vue +++ b/src/views/task/list/components/addPatrol.vue @@ -27,57 +27,83 @@ +