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
827e18d6
Commit
827e18d6
authored
Feb 09, 2021
by
程卓
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
小区列表导出二维码暂时写死条件
parent
112b1b9a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
34 deletions
+36
-34
api.js
src/server/api.js
+25
-25
basicInfo.vue
src/views/houseData/basicInfo.vue
+11
-9
No files found.
src/server/api.js
View file @
827e18d6
...
...
@@ -11,61 +11,61 @@ case 'devol': // 本地线上部署环境下
break
case
'pudong-sit'
:
case
'pudong-sit'
:
BASE_URL
=
'http://pudong.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'pudong-prod'
:
case
'pudong-prod'
:
BASE_URL
=
'http://211.136.105.193/apiv2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'xuhui-sit'
:
case
'xuhui-sit'
:
BASE_URL
=
'http://xuhui.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'xuhui-prod'
:
BASE_URL
=
'http://31.0.161.39/apiv2'
,
case
'xuhui-prod'
:
BASE_URL
=
'http://31.0.161.39/apiv2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'yangpu-sit'
:
case
'yangpu-sit'
:
BASE_URL
=
'http://yangpu-hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'yangpu-prod'
:
case
'yangpu-prod'
:
BASE_URL
=
'http://10.216.118.142/api'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'huangpu-sit'
:
BASE_URL
=
'http://huangpu.hm.omniview.pro/api/v2'
,
case
'huangpu-sit'
:
BASE_URL
=
'http://huangpu.hm.omniview.pro/api/v2'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
case
'huangpu-prod'
:
case
'huangpu-prod'
:
BASE_URL
=
'http://172.82.26.1/api'
,
FANGDI_URL
=
'http://962121.fgj.sh.gov.cn/wyweb/shanghaiwuye'
break
default
:
// 默认环境下(开发环境)
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://31.0.161.39/apiv2'
// BASE_URL = 'http://211.136.105.193/apiv2'
// 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/278'
break
}
...
...
@@ -88,8 +88,8 @@ export default {
PUT_PERSONAL_RESET_PWD
:
'/pwd'
,
// 修改密码
GET_HOME_DISPOSAL
:
'/service-special-xh-ddd/dashboard/disposal'
,
//处置单统计
GET_HOUSE_MONTH
:
'/service-documents-ddd/dashboard/house/month'
,
//房办月查统计
GET_ALREADY_OR_EXPIRE
:
'/service-basicdatasync-ddd/indCou/statistics/alreadyOrWillExpire'
,
GET_ALREADY_OR_EXPIRE
:
'/service-basicdatasync-ddd/indCou/statistics/alreadyOrWillExpire'
,
GET_KEYS
:
'service-customkey-ddd/show/{table}/keys'
,
// 某表下所有可显示的字段
POST_KEYS
:
'service-customkey-ddd/show/keys'
,
// 保存已选字段
GET_CAN_TBLS
:
'service-customkey-ddd/tbls'
,
// 可进行数据拓展的表
...
...
@@ -109,7 +109,7 @@ export default {
POST_EXT
:
'/service-basicdatasync-ddd/entity/ext'
,
// 保存某数据的自定义信息
GET_SAFE_EXT
:
'/service-basicdatasync-ddd/{table}/entity/{id}/ext'
,
// 维护自定义信息的借口
POST_EXT_BATCH
:
'/service-basicdatasync-ddd/entity/ext/batch'
,
// 批量操作
GET_EXPORT
:
'/service-basicdatasync-ddd/export/{table}'
,
//数据导出
GET_EXPORT_EWM
:
BASE_URL
+
'/service-basicdatasync-ddd/public/qrCodeGenerate'
,
//导出二维码
...
...
@@ -182,8 +182,8 @@ export default {
GET_CHWECK_DATA
:
FANGDI_URL
+
'/propertyinspector/api/v1/sharingplatform/themeListForOneDay'
,
//专项检查数据
GET_JIANCHADIZHI
:
'/service-documents-ddd/generateUrl'
,
//获取专项检查页面地址
GET_WYGENERATE
:
'/service-documents-ddd/wywebgenerateUrl'
,
//获取物业风险发现/处置地址
GET_TOUSUQUESTION_INFO
:
'/service-documents-ddd/tsDetial'
,
//投诉问题列表
GET_TOUSUDENSITY_LIST
:
'/service-documents-ddd/tsDensityRank'
,
//投诉密度排行
GET_TOUSUQUESTION_INFO
:
'/service-documents-ddd/tsDetial'
,
//投诉问题列表
GET_TOUSUDENSITY_LIST
:
'/service-documents-ddd/tsDensityRank'
,
//投诉密度排行
GET_TOUSUQUESTION_DETAILS
:
'/service-documents-ddd/tsDetial/{id}'
,
//投诉问题详情
GET_TOUSUQUESTION_LIST
:
'/service-documents-ddd/tsRank'
,
//投诉问题排行
...
...
src/views/houseData/basicInfo.vue
View file @
827e18d6
...
...
@@ -125,7 +125,7 @@
<!-- 功能按钮区 -->
<a-col
span=
"24"
class=
"algin-right"
>
<a-button
v-if=
"!$store.state.isXuhui"
@
click=
"exportEWM"
>
导出二维码
</a-button>
<a-button
v-if=
"!$store.state.isXuhui
&& $api.BASE_URL.indexOf('211.136.105')!=-1
"
@
click=
"exportEWM"
>
导出二维码
</a-button>
<a-button
@
click=
"exportList"
>
导出数据
</a-button>
<a-button
@
click=
"reset"
>
重置
</a-button>
<a-button
type=
"primary"
@
click=
"search"
>
搜索
</a-button>
...
...
@@ -389,6 +389,8 @@ export default {
this
.
getStreet
()
},
mounted
(){
console
.
log
(
this
.
$api
.
BASE_URL
.
indexOf
(
'211.136.105'
)
!=-
1
)
if
(
this
.
$route
.
name
==
'basicInfo'
){
this
.
$nextTick
(
function
()
{
// setTimeout(() => {
...
...
@@ -448,7 +450,7 @@ export default {
changeWy
(
value
){
// 切换物业
let
query
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
$route
.
query
))
query
=
{
id
:
''
,
name
:
''
}
this
.
$router
.
push
({
path
:
'/houseData/basicInfo'
,
query
:
query
})
this
.
$router
.
push
({
path
:
'/houseData/basicInfo'
,
query
:
query
})
this
.
form
.
setFieldsValue
({
'c.cspId'
:
value
})
...
...
@@ -497,7 +499,7 @@ export default {
this
.
keyCodeList
.
forEach
(
item
=>
{
let
value
=
!
this
.
form
.
getFieldValue
(
item
)?
''
:
this
.
form
.
getFieldValue
(
item
)
if
(
Object
.
prototype
.
toString
.
call
(
value
)
==
'[object Array]'
)
{
//如果是数组
value
=
value
.
join
(
','
)
value
=
value
.
join
(
','
)
}
else
if
(
Object
.
prototype
.
toString
.
call
(
value
)
===
'[object Object]'
){
value
=
this
.
$moment
(
value
).
format
(
'YYYY-MM-DD'
)
}
...
...
@@ -762,11 +764,11 @@ export default {
}
}
let
token
=
this
.
$cookie
.
get
(
'token'
)
// 获取token 并拼接到 newUrl
newUrl
+=
'sectType=1&access_token='
+
token
.
split
(
'bearer '
)[
1
]
newUrl
+=
'sectType=1&access_token='
+
token
.
split
(
'bearer '
)[
1
]
window
.
open
(
this
.
$api
.
BASE_URL
+
'/service-basicdatasync-ddd/export/'
+
newUrl
)
},
/**
* 导出二维码
* 导出二维码
*/
exportEWM
(){
const
formValue
=
this
.
form
.
getFieldsValue
()
...
...
@@ -816,14 +818,14 @@ export default {
this
.
tableName
=
'tbl_community'
this
.
formed
=
'10,'
+
(
this
.
$moment
().
format
(
'L'
).
split
(
'/'
)).
join
(
''
)
this
.
type
=
'bet'
break
break
case
'3'
:
this
.
tableName
=
'tbl_community'
this
.
formed
=
'前期筹备中'
this
.
type
=
'l'
break
break
default
:
this
.
type
=
''
this
.
formed
=
''
...
...
@@ -841,7 +843,7 @@ export default {
case
'2'
:
this
.
isBeforeTwoThousand
=
'2'
break
default
:
this
.
isBeforeTwoThousand
=
'none'
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