diff --git a/src/api/disasterInfo/index.js b/src/api/disasterInfo/index.js index 03c4b13..30b2450 100644 --- a/src/api/disasterInfo/index.js +++ b/src/api/disasterInfo/index.js @@ -1,19 +1,19 @@ import request from '/@/utils/request'; -import {moduleName} from '/@/utils/request'; +import { moduleName } from '/@/utils/request'; export function getList(params) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/list', + url: '/api/' + moduleName + '/ui/disasterInfo/list', method: 'get', params, }); } -export function getPage(current,size,params) { +export function getPage(current, size, params) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/list', + url: '/api/' + moduleName + '/ui/disasterInfo/list', method: 'get', - params:{ + params: { current, size, ...params @@ -21,17 +21,17 @@ export function getPage(current,size,params) { }); } -export function updateDisasterManage(data){ +export function updateDisasterManage(data) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/updateBatch', + url: '/api/' + moduleName + '/ui/disasterInfo/updateBatch', method: 'put', data: data, }); } -export function removeManage(data){ +export function removeManage(data) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/removeManage', + url: '/api/' + moduleName + '/ui/disasterInfo/removeManage', method: 'put', data: data, }); @@ -41,7 +41,7 @@ export function removeManage(data){ //review export function review(data) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/review', + url: '/api/' + moduleName + '/ui/disasterInfo/review', method: 'post', data: data, }); @@ -50,6 +50,7 @@ export function review(data) { /** * 首页 dashborad */ + export function statistics(param){ return request({ url: '/api/'+moduleName+'/ui/disasterInfo/statistics', @@ -57,9 +58,9 @@ export function statistics(param){ params:{ year:param } - }); + }) } -export const getUserList = (name,current,size) => { +export const getUserList = (name, current, size) => { return request({ url: '/api/system-manager/user/list', method: 'get', @@ -70,11 +71,20 @@ export const getUserList = (name,current,size) => { } }); } - export function submit(data) { return request({ - url: '/api/'+moduleName+'/ui/disasterInfo/submit', + url: '/api/' + moduleName + '/ui/disasterInfo/submit', method: 'post', data, }); -} \ No newline at end of file +} + +export function responseEndedDisasterInfo(id) { + return request({ + url: '/api/' + moduleName + '/ui/disasterInfo/responseEndedDisasterInfo', + method: 'get', + params: { + id + } + }); +} diff --git a/src/components/Map.vue b/src/components/Map.vue index b22f2fd..6c4740c 100644 --- a/src/components/Map.vue +++ b/src/components/Map.vue @@ -2,27 +2,25 @@
- - - \ No newline at end of file + diff --git a/src/layout/navBars/breadcrumb/user.vue b/src/layout/navBars/breadcrumb/user.vue index bedef9a..d50fa35 100644 --- a/src/layout/navBars/breadcrumb/user.vue +++ b/src/layout/navBars/breadcrumb/user.vue @@ -53,19 +53,19 @@ :hide-timeout="50" trigger="click" @command="onLanguageChange"> - +