Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pc
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
0
Merge Requests
0
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
pc
Commits
71b1e5db
Commit
71b1e5db
authored
Dec 18, 2020
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
xiu'gai
parent
e7b9db3c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
106 additions
and
29 deletions
+106
-29
main.js
src/main.js
+37
-1
micSystemsList.json
src/router/micSystemsList.json
+68
-27
propertyInfoView.vue
src/views/houseData/propertyInfoView.vue
+1
-1
No files found.
src/main.js
View file @
71b1e5db
...
@@ -56,6 +56,7 @@ import {
...
@@ -56,6 +56,7 @@ import {
// BackTop,
// BackTop,
// Carousel,
// Carousel,
Tooltip
,
Tooltip
,
Progress
,
// CollapsePanel
// CollapsePanel
}
from
'ant-design-vue'
}
from
'ant-design-vue'
...
@@ -112,6 +113,7 @@ Vue.use(Table)
...
@@ -112,6 +113,7 @@ Vue.use(Table)
Vue
.
use
(
Divider
)
Vue
.
use
(
Divider
)
Vue
.
use
(
Upload
)
Vue
.
use
(
Upload
)
Vue
.
use
(
Modal
)
Vue
.
use
(
Modal
)
Vue
.
use
(
Progress
)
// Vue.use(badge)
// Vue.use(badge)
// Vue.use(skeleton)
// Vue.use(skeleton)
// Vue.use(Tree)
// Vue.use(Tree)
...
@@ -188,7 +190,41 @@ const render = ({appContent, loading} = {}) => { // 渲染方法
...
@@ -188,7 +190,41 @@ const render = ({appContent, loading} = {}) => { // 渲染方法
}
}
// 动态加载子项目的url
// 动态加载子项目的url
let
system
=
micSystemsList
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
default
:
// 当前仅可使用pudong / xuhui-sit/uat进行打包
system
=
micSystemsList
.
sit
break
}
let
projects
=
[]
let
projects
=
[]
for
(
let
i
=
0
;
i
<
system
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
system
.
length
;
i
++
)
{
...
...
src/router/micSystemsList.json
View file @
71b1e5db
[
{
{
"name"
:
"pudong"
,
"prod"
:[
{
"entry"
:
"http://211.136.105.193/elvweb"
,
"name"
:
"pudong"
,
"activeRule"
:
"/pudong"
"entry"
:
"http://211.136.105.193/elvweb"
,
},
"activeRule"
:
"/pudong"
{
},
"name"
:
"danger"
,
{
"entry"
:
"http://211.136.105.193/dangerweb"
,
"name"
:
"danger"
,
"activeRule"
:
"/danger"
"entry"
:
"http://211.136.105.193/dangerweb"
,
},
"activeRule"
:
"/danger"
{
},
"name"
:
"czd"
,
{
"entry"
:
"http://211.136.105.193/czd"
,
"name"
:
"czd"
,
"activeRule"
:
"/czd"
"entry"
:
"http://211.136.105.193/czd"
,
},
"activeRule"
:
"/czd"
{
},
"name"
:
"order"
,
{
"entry"
:
"http://31.0.161.39/order"
,
"name"
:
"checkorder"
,
"activeRule"
:
"/order"
"entry"
:
"http://211.136.105.193/checkorder"
,
},
"activeRule"
:
"/checkorder"
{
},
"name"
:
"question"
,
{
"entry"
:
"http://31.0.161.39/question"
,
"name"
:
"order"
,
"activeRule"
:
"/question"
"entry"
:
"http://31.0.161.39/order"
,
}
"activeRule"
:
"/order"
]
},
{
"name"
:
"question"
,
"entry"
:
"http://31.0.161.39/question"
,
"activeRule"
:
"/question"
}
],
"sit"
:[
{
"name"
:
"pudong"
,
"entry"
:
"http://pudong.hm.omniview.pro/elvweb"
,
"activeRule"
:
"/pudong"
},
{
"name"
:
"danger"
,
"entry"
:
"http://pudong.hm.omniview.pro/dangerweb"
,
"activeRule"
:
"/danger"
},
{
"name"
:
"czd"
,
"entry"
:
"http://pudong.hm.omniview.pro/czd"
,
"activeRule"
:
"/czd"
},
{
"name"
:
"checkorder"
,
"entry"
:
"http://pudong.hm.omniview.pro/checkorder"
,
"activeRule"
:
"/checkorder"
},
{
"name"
:
"order"
,
"entry"
:
"http://xuhui.hm.omniview.pro/order"
,
"activeRule"
:
"/order"
},
{
"name"
:
"question"
,
"entry"
:
"http://xuhui.hm.omniview.pro/question"
,
"activeRule"
:
"/question"
}
]
}
\ No newline at end of file
src/views/houseData/propertyInfoView.vue
View file @
71b1e5db
...
@@ -904,7 +904,7 @@ export default {
...
@@ -904,7 +904,7 @@ export default {
break
break
case
'neighborhoodCommitteesView'
:
case
'neighborhoodCommitteesView'
:
this
.
newUrl
=
this
.
$api
.
GET_NEI_ID
.
replace
(
'{id}'
,
this
.
$route
.
params
.
id
)
this
.
newUrl
=
this
.
$api
.
GET_NEI_ID
.
replace
(
'{id}'
,
this
.
$route
.
params
.
id
)
this
.
tbl
=
'tbl_
ic_member
'
this
.
tbl
=
'tbl_
residents_committees
'
break
break
default
:
default
:
break
break
...
...
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