diff --git a/src/api/archives/index.js b/src/api/archives/index.js index 29dc5cc..013b5f0 100644 --- a/src/api/archives/index.js +++ b/src/api/archives/index.js @@ -39,7 +39,7 @@ export function warningDisposal(params) { params }) } -//预警处置 +//车辆 export function tbSafeCompanyVehicle(params) { return request({ url: '/safety/enterpriseArchives/tbSafeCompanyVehicle', @@ -47,4 +47,37 @@ export function tbSafeCompanyVehicle(params) { params }) } +//各个物品总数 +export function TbSafeCompanyGoodsCount(params) { + return request({ + url: 'safety/enterpriseArchives/TbSafeCompanyGoods/count', + method: 'get', + params + }) +} +//物品 +export function TbSafeCompanyGoods(params) { + return request({ + url: '/safety/enterpriseArchives/TbSafeCompanyGoods', + method: 'get', + params + }) +} +//物品详情 +export function TbSafeCompanyGoodsDetail(params) { + return request({ + url: '/safety/enterpriseArchives/TbSafeCompanyGoods/detail', + method: 'get', + params + }) +} +//案件列表 +export function TbSafeCompanyCase(params) { + return request({ + url: '/safety/enterpriseArchives/TbSafeCompanyCase', + method: 'get', + params + }) +} + diff --git a/src/components/login.vue b/src/components/login.vue index ef30690..c0fc48e 100644 --- a/src/components/login.vue +++ b/src/components/login.vue @@ -96,7 +96,7 @@ export default { .then((res) => { if (res.code === 200) { this.$router.push({ - path: '/home/enterpriseArchives' + path: '/home/safetyIndex' }) } else { this.$message.error(res.msg) diff --git a/src/router/index.js b/src/router/index.js index 5dfb269..f5eec05 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -28,6 +28,12 @@ const routes = [ name: 'archives', component: () => import('@/views/archives'), }, + { + path: 'safetyIndex', + name: 'safetyIndex', + component: () => import('@/views/safetyIndex'), + }, + // 系统管理 { path: 'systemManagement', @@ -57,24 +63,27 @@ const routes = [ path: 'correlationEquipment', name: 'correlationEquipment', component: () => import('@/views/systemManagement/correlationEquipment'), + }, + // 企业名单 + { + path: 'companyList', + name: 'companyList', + component: () => import('@/views/systemManagement/companyList'), } ] } ] }, - { path: 'login', name: 'login', component: () => import('@/components/login'), - }, ] }] const router = new VueRouter({ - mode: 'history', - base: process.env.BASE_URL, + mode: 'hash', routes }) diff --git a/src/utils/request.js b/src/utils/request.js index 97b51c0..030db14 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -5,7 +5,7 @@ import { getToken } from '@/utils/auth' axios.defaults.headers['Content-Type'] = 'application/json;charset=utf-8' const request = axios.create({ baseURL: 'http://172.18.113.50:8080/zhapi', - // baseURL: `http://${window.location.host}`, + //baseURL: `http://${window.location.host}/zhapi`, timeout: 50000, headers: { 'content-type': 'application/json' }, }) diff --git a/src/views/archives/anjian.vue b/src/views/archives/anjian.vue new file mode 100644 index 0000000..329f8d1 --- /dev/null +++ b/src/views/archives/anjian.vue @@ -0,0 +1,408 @@ + + + + \ No newline at end of file diff --git a/src/views/archives/car.vue b/src/views/archives/car.vue index c017b8f..70f4f19 100644 --- a/src/views/archives/car.vue +++ b/src/views/archives/car.vue @@ -1,5 +1,5 @@