Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
P
pudong-elevator-map
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
郭铭瑶
pudong-elevator-map
Commits
ec56dfe7
Commit
ec56dfe7
authored
Mar 19, 2021
by
郭铭瑶
🤘
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改政务外网api
parent
ddc1d334
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
api.js
src/util/api.js
+1
-1
main.vue
src/views/main.vue
+1
-1
No files found.
src/util/api.js
View file @
ec56dfe7
...
@@ -3,7 +3,7 @@ let STATIC_URL = ''
...
@@ -3,7 +3,7 @@ let STATIC_URL = ''
switch
(
process
.
env
.
NODE_ENV
)
{
switch
(
process
.
env
.
NODE_ENV
)
{
case
'production'
:
case
'production'
:
BASE_URL
=
''
BASE_URL
=
''
STATIC_URL
=
'http://
211.136.105.193
/elev/static'
STATIC_URL
=
'http://
10.220.105.137:81
/elev/static'
break
break
default
:
default
:
BASE_URL
=
''
BASE_URL
=
''
...
...
src/views/main.vue
View file @
ec56dfe7
...
@@ -299,7 +299,7 @@ export default {
...
@@ -299,7 +299,7 @@ export default {
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
name
)
{
// 判断路由有街镇则显示该街镇列表
if
(
this
.
$route
.
query
&&
this
.
$route
.
query
.
name
)
{
// 判断路由有街镇则显示该街镇列表
const
streetName
=
this
.
$route
.
query
.
name
const
streetName
=
this
.
$route
.
query
.
name
/** ----请求电梯加装数据----- */
/** ----请求电梯加装数据----- */
const
{
data
}
=
await
axios
.
get
(
`http://
211.136.105.193/apiv2
/service-report/public/elv/consentRate?strName=
${
streetName
}
`
)
const
{
data
}
=
await
axios
.
get
(
`http://
10.220.105.137:81/api
/service-report/public/elv/consentRate?strName=
${
streetName
}
`
)
this
.
eleDataSource
=
data
&&
data
.
data
&&
data
.
data
.
content
// 请求
this
.
eleDataSource
=
data
&&
data
.
data
&&
data
.
data
.
content
// 请求
/** ---------------------- */
/** ---------------------- */
const
result
=
streets
.
find
(
key
=>
streetName
.
indexOf
(
this
.
streetDic
[
key
])
>=
0
)
// 取得相符的街镇数据
const
result
=
streets
.
find
(
key
=>
streetName
.
indexOf
(
this
.
streetDic
[
key
])
>=
0
)
// 取得相符的街镇数据
...
...
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