Commit caf9e637 authored by xingyuji's avatar xingyuji

Merge branch 'develop' into 'master'

Develop

See merge request !55
parents 948c4d83 ea96c9db
......@@ -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,
......
This diff is collapsed.
......@@ -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>
......
......@@ -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>
......
......@@ -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
......
......@@ -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
}
}
}
}
......
......@@ -32,7 +32,7 @@ export const columData = [
label: '成交日期'
},{
prop: 'dealPrice',
label: '成交总价(元)'
label: '成交总价(元)'
},{
prop: 'premium',
label: '溢价'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment