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 @@ +