Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mobi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wbx-PCAndMobi
mobi
Commits
7d447673
Commit
7d447673
authored
May 11, 2021
by
程卓
Browse files
Options
Browse Files
Download
Plain Diff
解决mounted执行一次,优化子项目的注册,优化api前缀根据地址栏
parents
b2667ea6
03eca4ba
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
361 additions
and
219 deletions
+361
-219
webpack.prod.conf.js
build/webpack.prod.conf.js
+2
-4
devOnline.env.js
config/devOnline.env.js
+0
-4
index.js
config/index.js
+1
-1
package.json
package.json
+2
-1
index.vue
src/components/Layout/index.vue
+1
-1
main.js
src/main.js
+4
-44
defaultRoutes.json
src/router/defaultRoutes.json
+5
-0
documentsRoutes.json
src/router/documentsRoutes.json
+0
-1
getMicRouters.js
src/router/getMicRouters.js
+40
-54
huangpuRoutes.json
src/router/huangpuRoutes.json
+1
-56
index.js
src/router/index.js
+0
-1
micSystemsList.js
src/router/micSystemsList.js
+30
-0
micSystemsList.json
src/router/micSystemsList.json
+9
-3
routeByFilter.json
src/router/routeByFilter.json
+247
-0
api.js
src/server/api.js
+19
-49
No files found.
build/webpack.prod.conf.js
View file @
7d447673
...
...
@@ -15,10 +15,8 @@ console.log(process.env.NODE_ENV)
let
env
if
(
process
.
env
.
NODE_ENV
===
'sit'
)
{
env
=
require
(
'../config/sit.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'uat'
)
{
env
=
require
(
'../config/uat.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'devol'
)
{
env
=
require
(
'../config/devOnline.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'production'
)
{
env
=
require
(
'../config/prod.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'pudong-sit'
)
{
env
=
require
(
'../config/pudong/sit.env'
)
}
else
if
(
process
.
env
.
NODE_ENV
===
'pudong-prod'
)
{
...
...
config/devOnline.env.js
deleted
100755 → 0
View file @
b2667ea6
'use strict'
module
.
exports
=
{
NODE_ENV
:
'"devol"'
}
config/index.js
View file @
7d447673
...
...
@@ -28,7 +28,7 @@ module.exports = {
},
// Various Dev Server settings
host
:
'
0.0.0.0
'
,
// can be overwritten by process.env.HOST
host
:
'
localhost
'
,
// can be overwritten by process.env.HOST
port
:
8080
,
// can be overwritten by process.env.PORT, if port is in use, a free one will be determined
autoOpenBrowser
:
false
,
errorOverlay
:
true
,
...
...
package.json
View file @
7d447673
...
...
@@ -9,7 +9,8 @@
"start"
:
"npm run dev"
,
"lint"
:
"eslint --fix --ext .js,.vue src"
,
"build"
:
"cross-env NODE_ENV='production' node build/build.js"
,
"build:devol"
:
"cross-env NODE_ENV='devol' node build/build.js"
,
"build:sit"
:
"cross-env NODE_ENV='sit' node build/build.js"
,
"build:prod"
:
"cross-env NODE_ENV='production' node build/build.js"
,
"build:pudong-sit"
:
"cross-env NODE_ENV='pudong-sit' node build/build.js"
,
"build:pudong-prod"
:
"cross-env NODE_ENV='pudong-prod' node build/build.js"
,
"build:xuhui-sit"
:
"cross-env NODE_ENV='xuhui-sit' node build/build.js"
,
...
...
src/components/Layout/index.vue
View file @
7d447673
...
...
@@ -39,7 +39,7 @@
<!-- 传统子项目在iframe中渲染 -->
<iframe
v-if=
"webviewSrc"
:src=
"webviewSrc"
frameborder=
"0"
style=
"width:100%;height:96%;overflow:hidden;"
/>
<!-- 本项目的子页面在此渲染 -->
<router-view
v-else
/>
<router-view
v-else
:key=
"$route.path"
/>
</
template
>
<ChangePassword
@
on-close=
'closeChangePwdModal'
:resetPwdShow=
'isShowChangePwd'
></ChangePassword>
...
...
src/main.js
View file @
7d447673
...
...
@@ -76,7 +76,7 @@ import MutSelect from '@/views/components/mutSelect' // 多选框(控制表格
import
tableAndMut
from
'@/views/components/tableAndMut'
// 多选框(控制表格展示列)
import
BatchOperation
from
'@/views/components/BatchOperation'
// 多选框(控制表格展示列)
import
micSystemsList
from
'@/router/micSystemsList.js
on
'
import
micSystemsList
from
'@/router/micSystemsList.js'
// 由于日期组件默认是英文的,需要本地化
import
moment
from
'moment'
...
...
@@ -192,49 +192,9 @@ const render = ({appContent, loading} = {}) => { // 渲染方法
}
// 动态加载子项目的url
let
system
//= micSystemsList
let
env
=
process
.
env
.
NODE_ENV
// console.log(process.env.NODE_ENV, 'NODE_ENV')
switch
(
env
)
{
// case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
case
'pudong-sit'
:
system
=
micSystemsList
.
sit
break
case
'pudong-prod'
:
system
=
micSystemsList
.
prod
break
// case env.indexOf('xuhui') > -1:
case
'xuhui-sit'
:
system
=
micSystemsList
.
sit
break
case
'xuhui-prod'
:
system
=
micSystemsList
.
prod
break
case
'huangpu-sit'
:
system
=
micSystemsList
.
sit
break
case
'huangpu-prod'
:
system
=
micSystemsList
.
prod
break
case
'yangpu-sit'
:
system
=
micSystemsList
.
sit
break
case
'yangpu-prod'
:
system
=
micSystemsList
.
prod
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
system
=
micSystemsList
.
sit
break
}
let
system
system
=
micSystemsList
console
.
log
(
system
,
'注册的子项目列表'
)
let
projects
=
[]
for
(
let
i
=
0
;
i
<
system
.
length
;
i
++
)
{
...
...
src/router/defaultRoutes.json
0 → 100644
View file @
7d447673
{
"Layout"
:
[
]
}
\ No newline at end of file
src/router/documentsRoutes.json
View file @
7d447673
...
...
@@ -149,5 +149,4 @@
]
}
]}
\ No newline at end of file
src/router/getMicRouters.js
View file @
7d447673
...
...
@@ -6,80 +6,82 @@ import yangpu from '@/router/yangpuRoutes.json'
import
ajax
from
'@/server/ajax'
import
api
from
'@/server/api'
import
documents
from
'@/router/documentsRoutes.json'
import
defaultRoutes
from
'@/router/defaultRoutes.json'
// import removeRoutes from '@/router/getRoutesChoose.js'
import
routeByFilter
from
'@/router/routeByFilter.json'
import
Store
from
'@/store/index'
async
function
GetRoutes
(
router
)
{
/**
*
* @param { defaultRoutes , documentsRoutes} 私有菜单(子项目) , 公共菜单(子项目)
* 1. 当打包命令没有指定对应的区局,选用默认私有菜单文件 defaultRoutes(空的菜单) , 在下方会耦合 documentsRoutes(公共菜单) 内的全部菜单做展示
* 2. 打包命令包含区局的情况下, 选用对应区局的私有菜单文件, 并在getRoutesChoose文件中过滤需要展示的documentsRoutes内的菜单,在下方耦合
*
*/
console
.
log
(
routeByFilter
)
function
GetRoutes
(
router
)
{
let
env
=
process
.
env
.
NODE_ENV
// console.log(env)
let
MicRouters
switch
(
env
)
{
// case env.indexOf('pudong') > -1: // 根据当前打包的项目调用该项目对应的路由
case
'pudong-sit'
:
pudong
.
Layout
=
pudong
.
Layout
.
concat
(
'pudong'
in
routeByFilter
?
routeByFilter
.
pudong
:
documents
.
Layout
)
MicRouters
=
pudong
break
case
'pudong-prod'
:
pudong
.
Layout
=
pudong
.
Layout
.
concat
(
'pudong'
in
routeByFilter
?
routeByFilter
.
pudong
:
documents
.
Layout
)
MicRouters
=
pudong
break
// case env.indexOf('xuhui') > -1:
case
'xuhui-sit'
:
xuhui
.
Layout
=
xuhui
.
Layout
.
concat
(
'xuhui'
in
routeByFilter
?
routeByFilter
.
xuhui
:
documents
.
Layout
)
MicRouters
=
xuhui
break
case
'xuhui-prod'
:
xuhui
.
Layout
=
xuhui
.
Layout
.
concat
(
'xuhui'
in
routeByFilter
?
routeByFilter
.
xuhui
:
documents
.
Layout
)
MicRouters
=
xuhui
break
case
'huangpu-sit'
:
huangpu
.
Layout
=
huangpu
.
Layout
.
concat
(
'huangpu'
in
routeByFilter
?
routeByFilter
.
huangpu
:
documents
.
Layout
)
MicRouters
=
huangpu
break
case
'huangpu-prod'
:
huangpu
.
Layout
=
huangpu
.
Layout
.
concat
(
'huangpu'
in
routeByFilter
?
routeByFilter
.
huangpu
:
documents
.
Layout
)
MicRouters
=
huangpu
break
case
'yangpu-sit'
:
yangpu
.
Layout
=
yangpu
.
Layout
.
concat
(
'yangpu'
in
routeByFilter
?
routeByFilter
.
yangpu
:
documents
.
Layout
)
MicRouters
=
yangpu
break
case
'yangpu-prod'
:
yangpu
.
Layout
=
yangpu
.
Layout
.
concat
(
'yangpu'
in
routeByFilter
?
routeByFilter
.
yangpu
:
documents
.
Layout
)
MicRouters
=
yangpu
break
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
case
'development'
:
// 本地开发展示对应的子项目路由 -- 本地调试子项目展示的对应菜单在此切换
xuhui
.
Layout
=
xuhui
.
Layout
.
concat
(
'xuhui'
in
routeByFilter
?
routeByFilter
.
xuhui
:
documents
.
Layout
)
MicRouters
=
xuhui
break
default
:
// 当命令没有指定的情况下会选用空的私有菜单
MicRouters
=
documents
break
}
await
function
()
{
ajax
.
get
({
url
:
api
.
GET_USER_INFO
,
}).
then
(
res
=>
{
// 本地存储用户基本信息
if
(
env
.
indexOf
(
'xuhui'
)
!=
-
1
&&
res
.
data
.
content
.
isAllPerm
)
{
let
newArr
=
[]
MicRouters
.
Layout
.
forEach
((
item
)
=>
{
if
(
item
.
name
!=
'tousu'
&&
item
.
name
!=
'Disposal'
)
{
newArr
.
push
(
item
)
}
})
MicRouters
.
Layout
=
newArr
}
})
}()
// 徐汇区的子项目要看当前用户是否是超管,否则不展示 处置单和投诉
// console.log(Store.state.userInfos)
// if (env.indexOf('xuhui') != -1 ) {
// let newArr= []
// MicRouters.Layout.forEach((item) => {
// if (item.name != 'tousu' && item.name != 'Disposal' ) {
// newArr.push(item)
// await function() {
// ajax.get({
// url: api.GET_USER_INFO,
// }).then(res => {
// // 本地存储用户基本信息
// if (env.indexOf('xuhui') != -1 && res.data.content.isAllPerm) {
// let newArr= []
// MicRouters.Layout.forEach((item) => {
// if (item.name != 'tousu' && item.name != 'Disposal' ) {
// newArr.push(item)
// }
// })
// MicRouters.Layout = newArr
// }
// })
// MicRouters.Layout = newArr
// }
// }()
const
micSystemRoutersConfigs
=
Object
.
assign
({},
MicRouters
)
const
{
routes
}
=
router
.
options
...
...
@@ -99,22 +101,6 @@ async function GetRoutes(router) {
}
}
for
(
let
key
in
documents
)
{
for
(
let
i
=
0
;
i
<
documents
[
key
].
length
;
i
++
)
{
let
firstRouter
=
Object
.
assign
({},
documents
[
key
][
i
])
if
(
!!
firstRouter
.
meta
.
openMode
&&
firstRouter
.
meta
.
openMode
==
'outsite'
)
{
firstRouter
.
component
=
TipsOutsite
}
parent
.
children
.
push
(
Object
.
assign
({},
firstRouter
))
router
.
addRoutes
([
parent
])
}
}
// console.log(router)
}
export
default
GetRoutes
src/router/huangpuRoutes.json
View file @
7d447673
{
"Layout"
:
[
{
"path"
:
"/hp_order/month"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"检查单"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/hp_order/month/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/hp_order/month/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/hp_question/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/hp_question/repair/repairList"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
false
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/hp_question/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/hp_question/tousu"
,
"name"
:
"tousu"
,
"meta"
:
{
"title"
:
"投诉信息"
,
"menuPath"
:
true
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/hp_question/tousu/tousuQuestion"
,
"name"
:
"tousuQuestion"
,
"meta"
:
{
"title"
:
"投诉问题排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:[
{
"path"
:
"/hp_question/tousu/tousuQuestion/questionInfo"
,
"name"
:
"questionInfo"
,
"meta"
:
{
"title"
:
"投诉问题列表"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/hp_question/tousu/tousuQuestion/tousuDetails"
,
"name"
:
"tousuDetails"
,
"meta"
:
{
"title"
:
"投诉问题详情"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/hp_question/tousu/tousuDensity"
,
"name"
:
"tousuDensity"
,
"meta"
:
{
"title"
:
"投诉密度排行"
,
"menuPath"
:
true
,
"hideInBread"
:
false
}
}
]
}
]
}
\ No newline at end of file
src/router/index.js
View file @
7d447673
...
...
@@ -14,7 +14,6 @@ const router = new Router({
router
.
beforeEach
((
to
,
from
,
next
)
=>
{
// TODO
// console.log(to.path)
store
.
commit
(
'setWebviewSrc'
,
to
.
meta
&&
to
.
meta
.
src
)
// 判断有src的话为需要嵌入iframe的子项目
const
token
=
Cookie
.
get
(
'token'
)
...
...
src/router/micSystemsList.js
0 → 100644
View file @
7d447673
import
micSystemsList
from
'@/router/micSystemsList.json'
function
GetSystemList
()
{
let
system
=
[]
//子项目列表
let
prodSystemList
=
micSystemsList
.
prod
// 生产环境的子项目
let
districtName
//区局名称
let
env
=
process
.
env
.
NODE_ENV
//打包命令
let
url
=
window
.
location
.
origin
//当前访问的浏览器地址
// 1. 当打生产包的时候,
if
(
env
.
indexOf
(
'-prod'
)
!=
-
1
)
{
// 2. 获取区局名称
districtName
=
env
.
split
(
'-'
)[
0
]
// 3. 在生产环境的子项目list
prodSystemList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
districtName
==
districtName
||
item
.
districtName
==
'common'
)
{
prodSystemList
[
index
].
entry
=
url
+
item
.
entry
system
.
push
(
item
)
}
})
return
system
}
else
{
system
=
micSystemsList
.
sit
}
return
system
}
export
default
GetSystemList
()
src/router/micSystemsList.json
View file @
7d447673
{
"prod"
:[
{
"districtName"
:
"pudong"
,
"name"
:
"pudong"
,
"entry"
:
"http://10.220.105.137:81/elvweb"
,
"activeRule"
:
"/pudong"
},
{
"districtName"
:
"pudong"
,
"name"
:
"danger"
,
"entry"
:
"http://10.220.105.137:81/dangerweb"
,
"activeRule"
:
"/danger"
},
{
"districtName"
:
"xuhui"
,
"name"
:
"order"
,
"entry"
:
"http://31.0.161.39/order"
,
"activeRule"
:
"/order"
},
{
"districtName"
:
"common"
,
"name"
:
"documents"
,
"entry"
:
"http://10.216.118.142/documents"
,
"activeRule"
:
"/documents"
}
],
"sit"
:[
{
"districtName"
:
"pudong"
,
"name"
:
"pudong"
,
"entry"
:
"http://pudong.hm.omniview.pro/elvweb"
,
"activeRule"
:
"/pudong"
},
{
"districtName"
:
"pudong"
,
"name"
:
"danger"
,
"entry"
:
"http://pudong.hm.omniview.pro/dangerweb"
,
"activeRule"
:
"/danger"
},
{
"districtName"
:
"xuhui"
,
"name"
:
"order"
,
"entry"
:
"http://xuhui.hm.omniview.pro/order"
,
"activeRule"
:
"/order"
},
{
"districtName"
:
"common"
,
"name"
:
"documents"
,
"entry"
:
"http://yangpu-hm.omniview.pro/documents"
,
"activeRule"
:
"/documents"
}
]
}
\ No newline at end of file
}
src/router/routeByFilter.json
0 → 100644
View file @
7d447673
{
"pudong"
:
[
{
"path"
:
"/documents/fiveSearch"
,
"name"
:
"fiveSearch"
,
"meta"
:
{
"title"
:
"物业三查"
,
"menuPath"
:
true
,
"authCode"
:
"0007"
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList"
,
"name"
:
"managerSelfCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查"
,
"menuPath"
:
true
,
"authCode"
:
"000701"
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckList"
,
"name"
:
"managerCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查检查单列表"
,
"authCode"
:
"000701"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckInfo"
,
"name"
:
"managerCheckInfo"
,
"meta"
:
{
"title"
:
"小区经理自查检查单详情"
,
"authCode"
:
"00070101"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070102"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList"
,
"name"
:
"doubleWeekCheckList"
,
"meta"
:
{
"title"
:
"物企双周查"
,
"authCode"
:
"000702"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckList"
,
"name"
:
"doubleCheckList"
,
"meta"
:
{
"title"
:
"物企双周查列表"
,
"authCode"
:
"000702"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckInfo"
,
"name"
:
"doubleCheckInfo"
,
"meta"
:
{
"title"
:
"物企双周查详情"
,
"authCode"
:
"00070201"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070202"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"authCode"
:
"000704"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"authCode"
:
"000704"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"authCode"
:
"00070401"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/fiveSearch/mutableList"
,
"name"
:
"mutableList"
,
"meta"
:
{
"title"
:
"整改单列表"
,
"authCode"
:
"000703"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/mutableList/info"
,
"name"
:
"mutableInfo"
,
"meta"
:
{
"title"
:
"整改单详情"
,
"authCode"
:
"00070301"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"authCode"
:
"0005"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/repair/repairList"
,
"name"
:
"repairInnerList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"authCode"
:
"000501"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"authCode"
:
"000501"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
],
"yangpu"
:
[
{
"path"
:
"/documents/fiveSearch"
,
"name"
:
"fiveSearch"
,
"meta"
:
{
"title"
:
"物业三查"
,
"menuPath"
:
true
,
"authCode"
:
"0007"
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList"
,
"name"
:
"managerSelfCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查"
,
"menuPath"
:
true
,
"authCode"
:
"000701"
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckList"
,
"name"
:
"managerCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查检查单列表"
,
"authCode"
:
"000701"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckInfo"
,
"name"
:
"managerCheckInfo"
,
"meta"
:
{
"title"
:
"小区经理自查检查单详情"
,
"authCode"
:
"00070101"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070102"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList"
,
"name"
:
"doubleWeekCheckList"
,
"meta"
:
{
"title"
:
"物企双周查"
,
"authCode"
:
"000702"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckList"
,
"name"
:
"doubleCheckList"
,
"meta"
:
{
"title"
:
"物企双周查列表"
,
"authCode"
:
"000702"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckInfo"
,
"name"
:
"doubleCheckInfo"
,
"meta"
:
{
"title"
:
"物企双周查详情"
,
"authCode"
:
"00070201"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070202"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"authCode"
:
"000704"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"authCode"
:
"000704"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"authCode"
:
"00070401"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/fiveSearch/mutableList"
,
"name"
:
"mutableList"
,
"meta"
:
{
"title"
:
"整改单列表"
,
"authCode"
:
"000703"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/mutableList/info"
,
"name"
:
"mutableInfo"
,
"meta"
:
{
"title"
:
"整改单详情"
,
"authCode"
:
"00070301"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
],
"huangpu"
:
[
{
"path"
:
"/documents/fiveSearch"
,
"name"
:
"fiveSearch"
,
"meta"
:
{
"title"
:
"物业三查"
,
"menuPath"
:
true
,
"authCode"
:
"0007"
,
"menuIcon"
:
"profile"
,
"hideInBread"
:
true
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList"
,
"name"
:
"managerSelfCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查"
,
"menuPath"
:
true
,
"authCode"
:
"000701"
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckList"
,
"name"
:
"managerCheckList"
,
"meta"
:
{
"title"
:
"小区经理自查检查单列表"
,
"authCode"
:
"000701"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerCheckInfo"
,
"name"
:
"managerCheckInfo"
,
"meta"
:
{
"title"
:
"小区经理自查检查单详情"
,
"authCode"
:
"00070101"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/managerSelfCheckList/managerAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070102"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList"
,
"name"
:
"doubleWeekCheckList"
,
"meta"
:
{
"title"
:
"物企双周查"
,
"authCode"
:
"000702"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckList"
,
"name"
:
"doubleCheckList"
,
"meta"
:
{
"title"
:
"物企双周查列表"
,
"authCode"
:
"000702"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleCheckInfo"
,
"name"
:
"doubleCheckInfo"
,
"meta"
:
{
"title"
:
"物企双周查详情"
,
"authCode"
:
"00070201"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
},
{
"path"
:
"/documents/fiveSearch/doubleWeekCheckList/doubleAllIn"
,
"name"
:
"allIn"
,
"meta"
:
{
"title"
:
"街道检查情况汇总"
,
"authCode"
:
"00070202"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
},
{
"path"
:
"/documents/fiveSearch/monthList"
,
"name"
:
"month"
,
"meta"
:
{
"title"
:
"房办月查"
,
"authCode"
:
"000704"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect"
,
"name"
:
"monthListSect"
,
"meta"
:
{
"title"
:
"房办月查小区列表"
,
"authCode"
:
"000704"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/monthList/monthListSect/monthInfo"
,
"name"
:
"monthInfo"
,
"meta"
:
{
"title"
:
"检查详情"
,
"authCode"
:
"00070401"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/fiveSearch/mutableList"
,
"name"
:
"mutableList"
,
"meta"
:
{
"title"
:
"整改单列表"
,
"authCode"
:
"000703"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/fiveSearch/mutableList/info"
,
"name"
:
"mutableInfo"
,
"meta"
:
{
"title"
:
"整改单详情"
,
"authCode"
:
"00070301"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
},
{
"path"
:
"/documents/repair"
,
"name"
:
"repairList"
,
"meta"
:
{
"title"
:
"应急报修"
,
"authCode"
:
"0005"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/repair/repairList"
,
"name"
:
"repairInnerList"
,
"meta"
:
{
"title"
:
"应急报修列表"
,
"authCode"
:
"000501"
,
"menuIcon"
:
"profile"
,
"menuPath"
:
true
,
"hideInBread"
:
false
},
"children"
:
[
{
"path"
:
"/documents/repair/repairInfo"
,
"name"
:
"repairInfo"
,
"meta"
:
{
"title"
:
"报修详情"
,
"authCode"
:
"000501"
,
"menuPath"
:
false
,
"hideInBread"
:
false
}
}
]
}
]
}
]
}
\ No newline at end of file
src/server/api.js
View file @
7d447673
let
BASE_URL
=
''
,
MOCK_URL
=
''
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
/**
* todo
* 1、此处配置当前项目在不同环境下的API请求前缀
* 2、前端服务间、后端服务间需做跨域处理
*/
// console.log(window.location)
console
.
log
(
window
.
location
)
switch
(
process
.
env
.
NODE_ENV
)
{
case
'devol'
:
// 本地线上部署环境下
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2'
break
switch
(
process
.
env
.
NODE_ENV
)
{
case
'pudong-sit'
:
BASE_URL
=
'http://pudong.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api/v2'
break
case
'pudong-prod'
:
// BASE_URL = 'http://211.136.105.193/apiv2',
BASE_URL
=
'http://10.220.105.137:81/api'
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api'
break
case
'xuhui-sit'
:
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api/v2'
break
case
'xuhui-prod'
:
BASE_URL
=
'http://31.0.161.39/apiv2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/apiv2'
break
case
'yangpu-sit'
:
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api/v2'
break
case
'yangpu-prod'
:
BASE_URL
=
'http://10.216.118.142/api'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api'
break
case
'huangpu-sit'
:
BASE_URL
=
'http://huangpu.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api/v2'
break
case
'huangpu-prod'
:
BASE_URL
=
'http://172.82.26.1/api'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
BASE_URL
=
'/api'
break
default
:
// 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// BASE_URL = 'http://yangpu-hm.omniview.pro/api/v2'
// BASE_URL = 'http://yangpu.hm.omniview.pro/api/v2'
// BASE_URL = 'http://huangpu-hm.omniview.pro/api/v2'
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2'
// BASE_URL = 'http://pudong.hm.omniview.pro/api/v2'
// BASE_URL = 'http://211.136.105.193/apiv2'
MOCK_URL
=
'https://yapi.omniview.pro/mock/283'
break
}
/**
...
...
@@ -205,8 +177,6 @@ export default {
get_specialInspection
:
'/service-documents-ddd/statistical/specialInspection'
,
//行业督查数字
get_month_check
:
'service-documents-ddd/dashboard/house/month'
,
GET_LABEL_LIST
:
MOCK_URL
+
'/service-customkey-ddd/labels'
,
// 获取标签列表
GET_FB_WY_MANAGE_CHECK
:
'/service-documents-ddd/checkOrder/dahboard/countDatas'
,
//首页-房办月查-物业双周查-经理自查
//角色管理
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment