Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
house-type
Project
Project
Details
Activity
Releases
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
xingyuji
house-type
Commits
caf9e637
Commit
caf9e637
authored
Sep 02, 2020
by
xingyuji
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into 'master'
Develop See merge request
!55
parents
948c4d83
ea96c9db
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
215 additions
and
174 deletions
+215
-174
user.js
src/assets/js/api/user.js
+3
-9
index.vue
src/components/Layout/index.vue
+128
-90
index.vue
src/views/ProductAnalysis/index.vue
+3
-2
index.vue
src/views/RegionalPlate/index.vue
+2
-2
index.vue
src/views/plateSupplyData/index.vue
+13
-12
index.vue
src/views/propertiesDetail/index.vue
+65
-58
tableColum.js
src/views/propertiesDetail/tableColum.js
+1
-1
No files found.
src/assets/js/api/user.js
View file @
caf9e637
...
...
@@ -17,15 +17,6 @@ export function getUserInfo() {
}
export
function
modifyPwd
(
userId
,
oldPwd
,
newPwd
,
confirmPwd
)
{
return
xhr
.
put
(
'/sys/sys-user/modifyPwd'
,
{
userId
,
oldPwd
,
newPwd
,
confirmPwd
})
}
export
function
getUsersByPage
(
page
,
size
,
keyword
,
roleId
,
groupId
)
{
return
xhr
.
get
(
'/sys/sys-user/withRoleAndGroup/page'
,
{
...
...
@@ -48,7 +39,10 @@ export function addUser(username, password, roleList, groupList, detailInfo) {
detailInfo
})
}
export
function
modifyPwd
(
data
)
{
return
xhr
.
put
(
'/sys/sys-user/modifyPwd'
,
data
)
}
export
function
editUser
(
id
,
username
,
password
,
roleList
,
groupList
)
{
return
xhr
.
put
(
'/sys/sys-user/withRoleAndGroup/'
+
id
,
{
username
,
...
...
src/components/Layout/index.vue
View file @
caf9e637
This diff is collapsed.
Click to expand it.
src/views/ProductAnalysis/index.vue
View file @
caf9e637
...
...
@@ -629,6 +629,7 @@
computed
:
{
haveAuth
()
{
return
(
accessName
)
=>
{
if
(
accessName
)
{
return
true
}
const
auth
=
sessionStorage
.
getItem
(
'access'
)
if
(
auth
===
'master'
)
{
return
true
...
...
@@ -639,7 +640,8 @@
return
auth
.
split
(
','
).
includes
(
accessName
)
}
}
},
}
},
created
()
{
window
.
eventBus
.
$on
(
'searchParamChange'
,
(
searchResult
)
=>
{
this
.
$router
.
push
({
...
...
@@ -686,7 +688,6 @@
}))
}
}
}
}
</
script
>
...
...
src/views/RegionalPlate/index.vue
View file @
caf9e637
...
...
@@ -153,12 +153,12 @@
<p><b>
行政分区:
</b>
{{dataType.plateRegion.plateInfo.adminRegionName || '--'}}
</p>
<p><b>
板块:
</b>
{{dataType.plateRegion.plateInfo.name || '--'}}
</p>
<p><b>
土地面积:
</b>
{{item.landArea || '--'}}m
<sup>
2
</sup></p>
<p><b>
容积率:
</b>
{{item.plotRatio || '--'}}
%
</p>
<p><b>
容积率:
</b>
{{item.plotRatio || '--'}}
</p>
<p><b>
建筑面积:
</b>
{{item.builtArea || '--'}}m
<sup>
2
</sup></p>
<p><b>
建筑密度:
</b>
{{item.builtDensity || '--'}}%
</p>
<p><b>
楼面价:
</b>
{{item.floorPrice || '--'}}元/m
<sup>
2
</sup></p>
<p><b>
成交日期:
</b>
{{item.dealDate || '--'}}
</p>
<p><b>
成交价:
</b>
{{item.dealPrice || '--'}}元
</p>
<p><b>
成交价:
</b>
{{item.dealPrice || '--'}}
万
元
</p>
<p><b>
溢价率:
</b>
{{item.premium || '--'}}%
</p>
<p><b>
受让方:
</b>
{{item.assignee || '--'}}
</p>
</el-collapse-item>
...
...
src/views/plateSupplyData/index.vue
View file @
caf9e637
...
...
@@ -67,7 +67,7 @@
<td
v-for=
"(item,index) in value.data"
:key=
"index"
>
{{
item
}}
</td>
</tr>
</table>
<div
class=
"tips red"
>
注:供
求比=供应数量/销售数量,供应
比越小,销售越好
</div>
<div
class=
"tips red"
>
注:供
销比=供应数量/销售数量,供销
比越小,销售越好
</div>
</div>
</div
>
<div
v-else
style=
"height: 500px;display: flex;align-items: center"
>
...
...
@@ -111,7 +111,7 @@
chartSettings2
:
{
labelMap
:
{
areaRange
:
'面积区间'
,
rate
:
'供
求
比'
rate
:
'供
销
比'
}
},
regionVal
:
''
,
// 区域选择
...
...
@@ -133,17 +133,17 @@
name
:
'成交数量'
,
data
:
[]
}
},
// 表格供
求
数量的数据
},
// 表格供
销比
数量的数据
supplyRateData
:{
areaRange
:
{
name
:
'面积区间'
,
data
:
[]
},
Rate
:
{
name
:
'供
求
比'
,
name
:
'供
销
比'
,
data
:
[]
},
},
// 表格供
求
比的数据
},
// 表格供
销
比的数据
colorArr
:
colors
,
// 区域名称对应
plateMap
:
{
...
...
@@ -184,7 +184,7 @@
formatter
:
(
params
)
=>
{
if
(
params
.
data
==
0
)
{
return
''
}
return
`<div>
${
params
.
name
}
区间</br>
供
求
比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
供
销
比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
</div>`
}
},
...
...
@@ -198,11 +198,11 @@
exportSupplyDataForeExcel
()
{
this
.
exportLoading
=
true
exportSupplyData
({
title
:
`
${
this
.
regionVal
}
区
${
this
.
plateVal
}
板块
${
this
.
timeVal
}
年份供
求
信息`
,
title
:
`
${
this
.
regionVal
}
区
${
this
.
plateVal
}
板块
${
this
.
timeVal
}
年份供
销
信息`
,
dataJson
:
this
.
exportSaveStatus
}).
then
(
res
=>
{
if
(
res
)
{
const
title
=
`
${
this
.
regionVal
}
-
${
this
.
plateVal
}
-
${
this
.
timeVal
}
年份供
求
信息`
const
title
=
`
${
this
.
regionVal
}
-
${
this
.
plateVal
}
-
${
this
.
timeVal
}
年份供
销
信息`
downloadFile
(
res
,
title
,
'application/vnd.ms-excel;charset=utf-8'
).
then
(()
=>
{
this
.
$message
({
type
:
'success'
,
...
...
@@ -221,14 +221,14 @@
this
.
exportLoading
=
false
})
},
// 根据区域-板块名-年份获取供
求
信息
// 根据区域-板块名-年份获取供
销比
信息
getSupplyData
()
{
getSupplyNumData
(
this
.
regionVal
,
this
.
plateVal
,
this
.
timeVal
).
then
(
res
=>
{
if
(
res
.
data
)
{
let
exportList
=
[]
let
supplyChartsData
=
[]
// 供
求
百分比 图表数据
let
supplyDealRate
=
[]
//供
求
比图表数据
let
rate
=
[]
// 供
求
比
let
supplyChartsData
=
[]
// 供
销比
百分比 图表数据
let
supplyDealRate
=
[]
//供
销比
比图表数据
let
rate
=
[]
// 供
销
比
let
supplyNumber
=
[]
// 供应套数
let
dealNumber
=
[]
// 成交套数
let
areaRange
=
[]
// 面积区间
...
...
@@ -288,6 +288,7 @@
computed
:
{
haveAuth
()
{
return
(
accessName
)
=>
{
if
(
accessName
)
{
return
true
}
const
auth
=
sessionStorage
.
getItem
(
'access'
)
if
(
auth
===
'master'
)
{
return
true
...
...
src/views/propertiesDetail/index.vue
View file @
caf9e637
...
...
@@ -155,7 +155,7 @@
</table>
</el-col>
<el-col
:span=
"24"
>
<!-- 供
求
比数据分析-->
<!-- 供
销
比数据分析-->
<ve-histogram
:data=
"supplyRateCharts"
:tooltip=
"rateTooltipResize"
...
...
@@ -164,15 +164,15 @@
:extend=
"rateExtend"
:colors=
"colorArr"
:settings=
"supplyDemandRatioSettings"
></ve-histogram>
<!-- 供
求
比表格信息-->
<!-- 供
销
比表格信息-->
<table
cellspacing=
"0"
cellpadding=
"0"
class=
"table"
>
<tr
v-for=
"(value, key) in supplyRateTable"
:key=
"key"
>
<th>
{{value.name}}
</th>
<td
v-for=
"(item,index) in value.data"
:key=
"index"
>
{{item}}
</td>
</tr>
</table>
<!-- 供
求
比提示信息-->
<div
class=
"tips"
style=
"color: red;text-align: end"
>
注:供
求比=供应数量/销售数量,供应
比越小,销售越好
</div>
<!-- 供
销
比提示信息-->
<div
class=
"tips"
style=
"color: red;text-align: end"
>
注:供
销比=供应数量/销售数量,供销
比越小,销售越好
</div>
</el-col>
</div>
</el-row>
...
...
@@ -252,18 +252,21 @@
</div>
</div>
</main>
<el-dialog
:close-on-click-modal=
"false"
title=
"下载技术资料"
:visible
.
sync=
"downloadDataFlag"
custom-class=
"customDialogStyle"
>
<div
>
<file-list
v-for=
"(item,index) in propertyData.fileList"
:file-name=
"item.fileName"
:key=
"index"
:process=
"downloadDataProcessArray[index]"
:type-src=
"item.fileName.split('.')[item.fileName.split('.').length -1]"
@
downLoadSingleFile=
"downloadsingleFile(item, index)"
>
</file-list>
</div>
<div
slot=
"footer"
>
<el-button
@
click=
"downloadDataFlag = false"
>
关闭
</el-button>
</div>
</el-dialog>
</section>
<el-dialog
:close-on-click-modal=
"false"
title=
"下载技术资料"
:visible
.
sync=
"downloadDataFlag"
custom-class=
"customDialogStyle"
>
<div
>
<file-list
v-for=
"(item,index) in propertyData.fileList"
:file-name=
"item.fileName"
:key=
"index"
:process=
"downloadDataProcessArray[index]"
:type-src=
"item.fileName.split('.')[item.fileName.split('.').length -1]"
@
downLoadSingleFile=
"downloadsingleFile(item, index)"
>
</file-list>
</div>
</el-dialog>
</el-card>
</template>
...
...
@@ -315,26 +318,26 @@
data
:
[]
}
},
// 供应比例、套数 表格数据
// 供
求
比 图表设置
// 供
销
比 图表设置
supplyDemandRatioSettings
:
{
labelMap
:
{
areaRange
:
'面积区间'
,
rate
:
'供
求
比'
rate
:
'供
销
比'
}
},
// 供
求
比 图表数据
// 供
销
比 图表数据
supplyRateCharts
:
{
columns
:
[
'areaRange'
,
'rate'
],
rows
:
[]
},
// 供
求
比 表格数据
// 供
销
比 表格数据
supplyRateTable
:{
areaRange
:
{
name
:
'面积区间'
,
data
:
[]
},
rate
:
{
name
:
'供
求
比'
,
name
:
'供
销
比'
,
data
:
[]
},
},
...
...
@@ -447,7 +450,7 @@
formatter
:
(
params
)
=>
{
if
(
params
.
data
==
0
)
{
return
''
}
return
`<div>
${
params
.
name
}
区间</br>
供
求
比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
供
销
比:
${
params
.
data
?
(
1
/
params
.
data
).
toFixed
(
1
)
:
''
}
</div>`
}
},
...
...
@@ -697,13 +700,13 @@
this
.
propertyLoading
=
false
})
},
// 供
求
数据 图表加表格数据
// 供
销比
数据 图表加表格数据
getPropertySupplyData
()
{
queryPropertySupplyData
(
this
.
propertyId
).
then
(
res
=>
{
if
(
res
.
data
)
{
let
supplyChartsData
=
[]
// 供
求
百分比 图表数据
let
supplyDealRate
=
[]
//供
求
比图表数据
let
rate
=
[]
// 供
求
比
let
supplyChartsData
=
[]
// 供
销比
百分比 图表数据
let
supplyDealRate
=
[]
//供
销
比图表数据
let
rate
=
[]
// 供
销
比
let
supplyNumber
=
[]
// 供应套数
let
dealNumber
=
[]
// 成交套数
let
areaRange
=
[]
// 面积区间
...
...
@@ -750,7 +753,7 @@
}).
catch
(
e
=>
{
this
.
$message
({
type
:
'error'
,
message
:
'查询供
求
比数据失败'
message
:
'查询供
销
比数据失败'
})
this
.
supplyNoDataFlag
=
true
return
e
...
...
@@ -846,12 +849,16 @@
computed
:
{
haveAuth
()
{
return
(
accessName
)
=>
{
const
auth
=
sessionStorage
.
getItem
(
'access'
)
if
(
auth
===
'master'
)
{
return
true
}
if
(
!
auth
)
{
return
false
if
(
accessName
===
'downloadFile'
)
{
const
auth
=
sessionStorage
.
getItem
(
'access'
)
if
(
auth
===
'master'
)
{
return
true
}
if
(
!
auth
)
{
return
false
}
else
{
return
auth
.
split
(
','
).
includes
(
accessName
)
}
}
else
{
return
auth
.
split
(
','
).
includes
(
accessName
)
return
true
}
}
},
...
...
@@ -1143,34 +1150,34 @@
}
}
}
}
.customDialogStyle {
width 40%
border-radius: 8px;
.el-dialog__header {
display: flex;
align-items: center;
justify-content: center;
width:100%;
height:50px;
padding: 0;
background:rgba(237,240,245,1);
border-radius:10px 10px 0px 0px;
}
.el-dialog {
border-radius: 10px 10px 10px 10px;
}
.el-dialog__body {
min-height: 120px;
max-height: 60vh;
position: relative;
padding: 35px 35px 30px 25px;
.fileList {
margin 0 auto
.customDialogStyle {
width 40%
border-radius: 8px;
.el-dialog__header {
display: flex;
align-items: center;
justify-content: center;
width:100%;
height:50px;
padding: 0;
background:rgba(237,240,245,1);
border-radius:10px 10px 0px 0px;
}
.el-dialog {
border-radius: 10px 10px 10px 10px;
}
.fileList:nth-child(2n) {
margin 8px auto
.el-dialog__body {
min-height: 120px;
max-height: 60vh;
position: relative;
padding: 35px 35px 30px 25px;
.fileList {
margin 0 auto
}
.fileList:nth-child(2n) {
margin 8px auto
}
}
}
}
...
...
src/views/propertiesDetail/tableColum.js
View file @
caf9e637
...
...
@@ -32,7 +32,7 @@ export const columData = [
label
:
'成交日期'
},{
prop
:
'dealPrice'
,
label
:
'成交总价(元)'
label
:
'成交总价(
万
元)'
},{
prop
:
'premium'
,
label
:
'溢价'
...
...
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