diff --git a/src/api/xj/scope.js b/src/api/xj/scope.js new file mode 100644 index 0000000..2b05165 --- /dev/null +++ b/src/api/xj/scope.js @@ -0,0 +1,45 @@ +import request from "@/utils/request"; + +// 查询作业范围列表 +export function getScopeList(query) { + return request({ + url: "/api/v2/segment/list", + method: "post", + data: query, + }); +} + +// 删除作业范围 +export function deleteScope(query) { + return request({ + url: "/api/v2/segment/delete", + method: "delete", + data: query, + }); +} + +// 新增作业范围 +export function addScope(query) { + return request({ + url: "/api/v2/segment/add", + method: "post", + data: query, + }); +} + +// 修改作业范围 +export function updateScope(query) { + return request({ + url: "/api/v2/segment/update", + method: "put", + data: query, + }); +} + +// 绑定车辆下拉 +export function getCarList() { + return request({ + url: "/api/aiot/aiotDropDown", + method: "get", + }); +} diff --git a/src/components/map/fssm-map.vue b/src/components/map/fssm-map.vue index 0d8e1c8..674052b 100644 --- a/src/components/map/fssm-map.vue +++ b/src/components/map/fssm-map.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-14 10:46:23 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-10-15 09:41:43 + * @LastEditTime: 2024-10-17 10:33:59 * @FilePath: \znxjxt-ui\src\views\xj\inspection\task-management\components\fssm-map.vue * @Description: 公共地图 --> @@ -10,11 +10,30 @@ @@ -199,6 +468,7 @@ export default { .map-container { width: 100%; height: 100%; + position: relative; #map-0 { width: 100%; @@ -209,7 +479,7 @@ export default { width: 100%; height: 100%; } - + // 放大缩小控件 .control-container { display: flex; flex-direction: column; @@ -219,9 +489,60 @@ export default { left: 1rem; top: 1rem; - i { - padding: 0.1rem 0; - font-size: 1.2rem; + .draw-map { + width: 1.5rem; + height: 3rem; + background-color: rgb(198, 216, 216); + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + + i { + cursor: pointer; + padding: 0.1rem 0; + font-size: 1.2rem; + } + + .change-map-click { + background-color: rgb(240, 240, 240); + } + } + + .change-map { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; + width: 1.5rem; + height: 3rem; + background-color: rgb(198, 216, 216); + + i { + cursor: pointer; + padding: 0.1rem 0; + font-size: 1.2rem; + } + + .change-map-click { + background-color: rgb(240, 240, 240); + } + } + + .map-btn { + width: 1.5rem; + background-color: rgb(198, 216, 216); + height: 1.5rem; + display: flex; + margin: 0.1rem 0; + align-items: center; + justify-content: center; + + i { + cursor: pointer; + padding: 0.1rem 0; + font-size: 1.2rem; + } } } } diff --git a/src/views/xj/route/route-scope/components/scope-add.vue b/src/views/xj/route/route-scope/components/scope-add.vue new file mode 100644 index 0000000..8f4f8b0 --- /dev/null +++ b/src/views/xj/route/route-scope/components/scope-add.vue @@ -0,0 +1,192 @@ + + + + + + + \ No newline at end of file diff --git a/src/views/xj/route/route-scope/index.vue b/src/views/xj/route/route-scope/index.vue new file mode 100644 index 0000000..5bb6535 --- /dev/null +++ b/src/views/xj/route/route-scope/index.vue @@ -0,0 +1,296 @@ + + + + + + + + \ No newline at end of file diff --git a/src/views/xj/route/route-section/components/section-add.vue b/src/views/xj/route/route-section/components/section-add.vue index 650a852..28c2eff 100644 --- a/src/views/xj/route/route-section/components/section-add.vue +++ b/src/views/xj/route/route-section/components/section-add.vue @@ -2,7 +2,7 @@ * @Author: SunTao 328867980@qq.com * @Date: 2024-10-15 14:27:36 * @LastEditors: SunTao 328867980@qq.com - * @LastEditTime: 2024-10-16 09:36:51 + * @LastEditTime: 2024-10-16 10:28:42 * @FilePath: \znxjxt-ui\src\views\xj\route\route-section\components\section-add.vue * @Description: 道路段-新增/编辑弹窗 --> @@ -172,6 +172,7 @@ :disabled="true" v-model="dialogForm.coordinates" rows="4" + resize="none" >