From 76d669a9648e1bc60d39130fa01fa8d801ff23dc Mon Sep 17 00:00:00 2001 From: TiaStars Date: Fri, 8 Mar 2024 10:33:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BD=91=E6=A0=BC=E3=80=81=E5=8C=BA=E5=9F=9F?= =?UTF-8?q?=E3=80=81=E8=B7=AF=E6=AE=B5=E7=BB=9F=E8=AE=A1=EF=BC=8C=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=8C=87=E6=B4=BE=E4=BA=BA=E5=91=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +- src/api/bigScreenApi/eventApi.js | 42 + src/api/bigScreenApi/robot.js | 57 +- src/assets/styles/leaflet.scss | 18 +- src/utils/request1.js | 3 + .../bigScreen/components/mapLeftContent.vue | 28 +- .../bigScreen/components/mapRightContent.vue | 106 +- src/views/bigScreen/map/index.vue | 177 +- src/views/components/crewAssign/index.vue | 110 +- src/views/components/mapLeftNumber/index.vue | 4 + src/views/components/mapRight/index.vue | 9 +- src/views/components/newEvent/index.vue | 1478 +---------------- src/views/components/personageTask/index.vue | 105 +- src/views/components/personagetrack/index.vue | 4 +- src/views/components/shop/components/tab2.vue | 54 +- src/views/components/shop/components/tab3.vue | 49 +- src/views/components/shop/components/tab4.vue | 26 +- 17 files changed, 662 insertions(+), 1614 deletions(-) diff --git a/.env.development b/.env.development index 85c2861..bc58c3c 100644 --- a/.env.development +++ b/.env.development @@ -2,7 +2,7 @@ # @Author: 张涛 # @Date: 2023-11-09 18:29:41 # @LastEditors: JC9527 - # @LastEditTime: 2024-03-01 16:49:05 + # @LastEditTime: 2024-03-07 20:51:13 # @FilePath: \JiangningUrbanManagePc\.env.development ### # 页面标题 @@ -14,10 +14,10 @@ ENV = 'development' # 若依管理系统/开发环境 # /dev-api # VUE_APP_BASE_API = 'http://39.101.188.84:9037' -# VUE_APP_BASE_API = 'https://t-jn-bjh-admin-server.jsszkd.com' +VUE_APP_BASE_API = 'https://t-jn-bjh-admin-server.jsszkd.com' VUE_APP_BASE_API1 = 'https://t-kd-process-server.jsszkd.com' VUE_APP_BASE_API2 = 'https://t-jn-development-manager-server.jsszkd.com/api/webapp' -VUE_APP_BASE_API = 'http://192.168.0.105:9037' +# VUE_APP_BASE_API = 'http://192.168.0.110:9037' # 路由懒加载 VUE_CLI_BABEL_TRANSPILE_MODULES = true diff --git a/src/api/bigScreenApi/eventApi.js b/src/api/bigScreenApi/eventApi.js index 435e998..9d786b3 100644 --- a/src/api/bigScreenApi/eventApi.js +++ b/src/api/bigScreenApi/eventApi.js @@ -1,3 +1,11 @@ +/* + * @Descripttion: + * @version: + * @Author: JC9527 + * @Date: 2024-01-09 23:11:58 + * @LastEditors: JC9527 + * @LastEditTime: 2024-03-06 18:56:29 + */ import request from "@/utils/request2" // 事件来源按日/月纬度统计 @@ -48,4 +56,38 @@ export function getEventGridEnum() { "X-Access-Token": localStorage.getItem('robotToken') } }) +} + +// 网格数据 +export function statgrid(params){ + return request({ + url: "/event/summary/statgrid", + method:'get', + headers:{ + isToken:false, + }, + params + }) +} +// 重点路段 +export function statroad(params){ + return request({ + url: "/event/summary/statroad", + method:'get', + headers:{ + isToken:false, + }, + params + }) +} +// 重点区域 +export function statregion(params){ + return request({ + url: "/event/summary/statregion", + method:'get', + headers:{ + isToken:false, + }, + params + }) } \ No newline at end of file diff --git a/src/api/bigScreenApi/robot.js b/src/api/bigScreenApi/robot.js index 812ef7e..a6a3114 100644 --- a/src/api/bigScreenApi/robot.js +++ b/src/api/bigScreenApi/robot.js @@ -4,19 +4,44 @@ * @Author: JC9527 * @Date: 2024-01-11 23:19:29 * @LastEditors: JC9527 - * @LastEditTime: 2024-01-12 23:59:57 + * @LastEditTime: 2024-03-06 11:39:06 */ import request from "@/utils/request1" -// 自动提交事件流程 +// 自动提交事件流程-1---保存事件数据接口 export function eventSaveData(params,data) { return request({ url: "/api/eform/engine/formEngine/saveData", method:'post', + // headers: { + // isToken: false + // }, params, data }) } +// 自动提交事件流程-2---获取流程权限 +export function getBpmOperateVo(params){ + return request({ + url: "/api/bpm/bpm-front/displayRest/getBpmOperateVo/v1", + method:'get', + // headers: { + // isToken: false + // }, + params + }) +} +// 自动提交事件流程-3---调用自动提交 +export function autoSubmit(params){ + return request({ + url: "/api/bpm/bpm-front/operateRest/autoSubmit/v1", + method:'put', + // headers: { + // isToken: false + // }, + params + }) +} // 模拟登录 export function robotLogin(data){ return request({ @@ -36,30 +61,22 @@ export function ViewListPage(params,data){ } /** * - * 任务派发流程 + * 事件指派-保存业务数据 */ -// 任务派发流程----3调用自动提交 -export function autoSubmit(data){ +// 1.事件指派-保存业务数据 +export function formEngineSaveData(params,data){ return request({ - url: "/api/bpm/bpm-front/operateRest/autoSubmit/v1", - method:'put', + url: "/api/eform/engine/formEngine/saveData", + method:'post', + params, data }) } -// 任务派至城管队长----1获取流程权限 -export function getBpmOperateVo(params){ +// 2.事件指派-流程流转 +export function auditSubmit(params){ return request({ - url: "/api/bpm/bpm-front/displayRest/getBpmOperateVo/v1", + url: "/audit/auditSubmit", method:'get', - params - }) -} -// 任务派至城管队长----2保存业务数据 -export function distributeSaveData(params,data){ - return request({ - url: "/api/eform/engine/formEngine/saveData", - method:'post', params, - data }) -} \ No newline at end of file +} diff --git a/src/assets/styles/leaflet.scss b/src/assets/styles/leaflet.scss index 760b717..b702025 100644 --- a/src/assets/styles/leaflet.scss +++ b/src/assets/styles/leaflet.scss @@ -14,7 +14,7 @@ // 事件分布 .event-popup { width: 252px; - height: 224px; + // height: 244px; background-image: url("../images/popup/popup.png"); background-size: 100% 100%; z-index: 600; @@ -63,6 +63,7 @@ .dot { width: 4px; height: 4px; + line-height: 17px; background: #DAEBFF; box-shadow: 0px 0px 10px 5px rgba(0, 119, 255, 0.25), 0px 0px 5px 0px rgba(229, 241, 255, 0.25); border-radius: 20px 20px 20px 20px; @@ -78,8 +79,15 @@ line-height: 17px; } + .name { + // flex: 1; + flex-wrap: nowrap; + } + .position { width: 120px; + // flex: 1; + // flex-wrap: wrap; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; @@ -104,11 +112,15 @@ } } } +.event-popupTwo { + // height: 190px; +} // 执法人员 .person-popup { // width: 242px; - width: 470px; + // width: 470px; + width: 390px; height: 244px; background-image: url("../images/popup/popup.png"); background-size: 100% 100%; @@ -357,7 +369,7 @@ .info-left { display: flex; // align-items: center; - width: 45%; + width: 35%; .dot { width: 4px; height: 4px; diff --git a/src/utils/request1.js b/src/utils/request1.js index 8e06ef8..d64337a 100644 --- a/src/utils/request1.js +++ b/src/utils/request1.js @@ -36,6 +36,9 @@ service.interceptors.request.use(config => { // config.headers['Authorization'] = 'Bearer ' + getAccessToken() // 让每个请求携带自定义token 请根据实际情况自行修改 config.headers['X-Access-Token'] = localStorage.getItem('robotToken') // 让每个请求携带自定义token 请根据实际情况自行修改 } + // if (localStorage.getItem('accessToken') && isToken) { + // config.headers['X-Access-Token'] = localStorage.getItem('accessToken') + // } // get请求映射params参数 if (config.method === 'get' && config.params) { let url = config.url + '?' + tansParams(config.params); diff --git a/src/views/bigScreen/components/mapLeftContent.vue b/src/views/bigScreen/components/mapLeftContent.vue index b0b2000..5f668fb 100644 --- a/src/views/bigScreen/components/mapLeftContent.vue +++ b/src/views/bigScreen/components/mapLeftContent.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-08-15 09:44:13 * @LastEditors: JC9527 - * @LastEditTime: 2024-03-01 16:48:15 + * @LastEditTime: 2024-03-08 08:56:50 --> @@ -99,29 +99,7 @@ export default { perpsonNum: 0, personOnLine: 0, peopleArray: [], - vehicleArray: [ - { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, { - userName: '苏A123456' - }, - ], + vehicleArray: [], itemOne: { height: '', }, diff --git a/src/views/bigScreen/components/mapRightContent.vue b/src/views/bigScreen/components/mapRightContent.vue index 9e66fca..3086b90 100644 --- a/src/views/bigScreen/components/mapRightContent.vue +++ b/src/views/bigScreen/components/mapRightContent.vue @@ -4,7 +4,7 @@ * @Author: JC9527 * @Date: 2023-08-15 11:09:57 * @LastEditors: JC9527 - * @LastEditTime: 2024-02-02 13:38:08 + * @LastEditTime: 2024-03-08 10:15:01 -->