diff --git a/.env.development b/.env.development index eb93620..eef8e0f 100644 --- a/.env.development +++ b/.env.development @@ -11,12 +11,11 @@ VITE_OPEN_PROXY = false VITE_PROXY_API = /dev-api -# VITE_PROXY = [ ["/dev-api", "http://192.168.110.186:8040" ],["/dev-img-api", "http://file.sczysoft.com" ]] - # http://42.193.40.239:8017/doc.html//线上 http://192.168.110.186:8017/doc.html//本地 -VITE_PROXY = [ ["/dev-api", "http://192.168.110.186:8017" ],["/dev-img-api", "http://file.sczysoft.com" ]] + +VITE_PROXY = [ ["/dev-api", "http://42.193.40.239:8017" ],["/dev-img-api", "http://file.sczysoft.com" ]] +# VITE_PROXY = [ ["/dev-api", "http://192.168.110.186:8017" ],["/dev-img-api", "http://file.sczysoft.com" ]] # VITE_GLOB_UPLOAD_URL=/dev-api VITE_UPLOAD_IMG_URL=/dev-img-api VITE_UPLOAD_URL = http://192.168.110.186 -VITE_IFRAMEURL=http://192.168.110.39:8010 diff --git a/src/api/Othteam.ts b/src/api/Othteam.ts index 416ed41..6b88e98 100644 --- a/src/api/Othteam.ts +++ b/src/api/Othteam.ts @@ -157,6 +157,16 @@ export function getOtheWareHousePage(data) { params: data }); } +/** +*应急仓库详情 +*/ +export function getHouseDetail(houseId) { + return request({ + url: `admin/OtheWareHouse/getOtheWareHouse`, + method: "GET", + params: { houseId } + }); +} /** *应急仓库管理员列表 @@ -165,15 +175,15 @@ export function getHouseSysUser(userId) { return request({ url: `admin/OtheWareHouse/getHouseSysUser`, method: "GET", - params: {userId} + params: { userId } }); } /** *应急仓库添加-修改 */ -export function delOthpersonHouse(data) { +export function saveOtheWareHouse(data) { return request({ - url: `admin/OtheWareHouse/delOthperson`, + url: `admin/OtheWareHouse/saveOtheWareHouse`, method: "POST", data: data }); @@ -194,7 +204,7 @@ export function delOtheWareHouse(data) { */ export function getOthplanPage(params) { return request({ - url: `admin/Othplan/getOthplanPage`, + url: `admin/Othplan/saveOthplan`, method: "GET", params: params }); diff --git a/src/assets/icons/icon-statistic.svg b/src/assets/icons/icon-statistic.svg new file mode 100644 index 0000000..032d32d --- /dev/null +++ b/src/assets/icons/icon-statistic.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/icon-trends.svg b/src/assets/icons/icon-trends.svg new file mode 100644 index 0000000..bd03194 --- /dev/null +++ b/src/assets/icons/icon-trends.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/icon-work.svg b/src/assets/icons/icon-work.svg new file mode 100644 index 0000000..fee970f --- /dev/null +++ b/src/assets/icons/icon-work.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/layout/components/Tools/index.vue b/src/layout/components/Tools/index.vue index fecffdd..7e067bd 100644 --- a/src/layout/components/Tools/index.vue +++ b/src/layout/components/Tools/index.vue @@ -1,168 +1,188 @@ diff --git a/src/router/modules/emergency.js b/src/router/modules/emergency.js index 98a68b6..a5d479b 100644 --- a/src/router/modules/emergency.js +++ b/src/router/modules/emergency.js @@ -22,9 +22,9 @@ export default { }, children: [ { - path: 'team_detail', - name: 'team_detail', - component: () => import('@/views/emergency/procession/form_details.vue'), + path: 'team-detail', + name: 'team-detail', + component: () => import('@/views/emergency/procession/team-details.vue'), meta: { auth: "emer.team.detail", title: '队伍详情', @@ -36,15 +36,29 @@ export default { ] }, { - path: 'resourse', - name: 'resourse', - component: () => import('@/views/emergency/matter/index.vue'), + path: 'house', + name: 'house', + component: () => import('@/views/emergency/house/index.vue'), meta: { icon: 'point', - auth: "emer.resourse", + auth: "emer.house", title: '物资管理', breadcrumb: true, //是否显示面包屑 - } + }, + children: [ + { + path: 'house-detail', + name: 'house-detail', + component: () => import('@/views/emergency/house/details.vue'), + meta: { + auth: "emer.house.detail", + title: '仓库详情', + sidebar: false, //是否在菜单栏显示 + breadcrumb: true, //是否显示面包屑 + activeMenu: '/emergency/house' + } + } + ] }, { path: 'shelter', @@ -78,6 +92,17 @@ export default { title: '应急预案', breadcrumb: true, //是否显示面包屑 } + }, + { + path: 'point', + name: 'point', + component: () => import('@/views/emergency/danger-points/index.vue'), + meta: { + icon: 'point', + auth: "emer.plan", + title: '隐患点位', + breadcrumb: true, //是否显示面包屑 + } } ] } \ No newline at end of file diff --git a/src/router/modules/statistic.js b/src/router/modules/statistic.js index 6badfbe..47e3de6 100644 --- a/src/router/modules/statistic.js +++ b/src/router/modules/statistic.js @@ -8,7 +8,7 @@ export default { meta: { auth: "statistic", title: '统计分析', - icon: 'point', + icon: 'icon-statistic', }, children: [ { diff --git a/src/router/modules/work-manage.js b/src/router/modules/work-manage.js index e60526d..c74633f 100644 --- a/src/router/modules/work-manage.js +++ b/src/router/modules/work-manage.js @@ -8,7 +8,7 @@ export default { meta: { auth: "daily", title: '工作管理', - icon: 'point', + icon: 'icon-work', }, children: [ { diff --git a/src/router/modules/work-trends.js b/src/router/modules/work-trends.js index bceac7c..977e390 100644 --- a/src/router/modules/work-trends.js +++ b/src/router/modules/work-trends.js @@ -8,7 +8,7 @@ export default { meta: { auth: "trends", title: '工作动态', - icon: 'point', + icon: 'icon-trends', }, children: [ { diff --git a/src/store/modules/user.js b/src/store/modules/user.js index b1cc84d..ed25b99 100644 --- a/src/store/modules/user.js +++ b/src/store/modules/user.js @@ -21,10 +21,7 @@ const useUserStore = defineStore( } return retn }, - companyInfo: state => { - return state.company || '{}' - // return JSON.parse(state.company || '{}') - }, + userInfo: state => { return state.user || '{}' // return JSON.parse(state.user || '{}') @@ -36,10 +33,10 @@ const useUserStore = defineStore( loginIn(data).then(res => { if (res.code == 1) { conpanyInfo(res.data.sysuserid).then(result => { - localStorage.setItem('user', JSON.stringify(res.data)) - localStorage.setItem('account', res.data.postName) - localStorage.setItem('token', res.data.tokenValue) - localStorage.setItem('failure_time', 1664008260) + localStorage.setItem('user-df', JSON.stringify(res.data)) + localStorage.setItem('account-df', res.data.postName) + localStorage.setItem('token-df', res.data.tokenValue) + localStorage.setItem('failure_time-df', 1664008260) resolve() }).catch(error => { reject(error) @@ -56,11 +53,10 @@ const useUserStore = defineStore( return new Promise(resolve => { const routeStore = useRouteStore() const menuStore = useMenuStore() - localStorage.removeItem('account') - localStorage.removeItem('token') - localStorage.removeItem('user') - localStorage.removeItem('company') - localStorage.removeItem('failure_time') + localStorage.removeItem('account-df') + localStorage.removeItem('token-df') + localStorage.removeItem('user-df') + localStorage.removeItem('failure_time-df') this.account = '' this.token = '' this.failure_time = '' diff --git a/src/views/emergency/danger-points/dialog/add-edit.vue b/src/views/emergency/danger-points/dialog/add-edit.vue new file mode 100644 index 0000000..edbb2aa --- /dev/null +++ b/src/views/emergency/danger-points/dialog/add-edit.vue @@ -0,0 +1,133 @@ + + + \ No newline at end of file diff --git a/src/views/emergency/matter/index.vue b/src/views/emergency/danger-points/index.vue similarity index 75% rename from src/views/emergency/matter/index.vue rename to src/views/emergency/danger-points/index.vue index ba8cc05..b95751c 100644 --- a/src/views/emergency/matter/index.vue +++ b/src/views/emergency/danger-points/index.vue @@ -1,9 +1,10 @@ +