Commit 0702252d authored by wangjiankun's avatar wangjiankun

fix:权限 容积率、成交总价 权限

parent 0c46101d
...@@ -48,7 +48,10 @@ export function addUser(username, password, roleList, groupList, detailInfo) { ...@@ -48,7 +48,10 @@ export function addUser(username, password, roleList, groupList, detailInfo) {
detailInfo detailInfo
}) })
} }
export function modifyPwd(data) {
return xhr.put('/sys/sys-user/modifyPwd', data)
}
export function editUser(id, username, password, roleList, groupList) { export function editUser(id, username, password, roleList, groupList) {
return xhr.put('/sys/sys-user/withRoleAndGroup/' + id, { return xhr.put('/sys/sys-user/withRoleAndGroup/' + id, {
username, username,
......
This diff is collapsed.
...@@ -629,6 +629,7 @@ ...@@ -629,6 +629,7 @@
computed: { computed: {
haveAuth() { haveAuth() {
return (accessName) => { return (accessName) => {
if(accessName) { return false }
const auth = sessionStorage.getItem('access') const auth = sessionStorage.getItem('access')
if (auth === 'master') { if (auth === 'master') {
return true return true
......
...@@ -153,12 +153,12 @@ ...@@ -153,12 +153,12 @@
<p><b>行政分区:</b>{{dataType.plateRegion.plateInfo.adminRegionName || '--'}}</p> <p><b>行政分区:</b>{{dataType.plateRegion.plateInfo.adminRegionName || '--'}}</p>
<p><b>板块: </b>{{dataType.plateRegion.plateInfo.name || '--'}}</p> <p><b>板块: </b>{{dataType.plateRegion.plateInfo.name || '--'}}</p>
<p><b>土地面积:</b>{{item.landArea || '--'}}m<sup>2</sup></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.builtArea || '--'}}m<sup>2</sup></p>
<p><b>建筑密度:</b>{{item.builtDensity || '--'}}%</p> <p><b>建筑密度:</b>{{item.builtDensity || '--'}}%</p>
<p><b>楼面价:</b>{{item.floorPrice || '--'}}元/m<sup>2</sup></p> <p><b>楼面价:</b>{{item.floorPrice || '--'}}元/m<sup>2</sup></p>
<p><b>成交日期:</b>{{item.dealDate || '--'}}</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.premium || '--'}}%</p>
<p><b>受让方:</b>{{item.assignee || '--'}}</p> <p><b>受让方:</b>{{item.assignee || '--'}}</p>
</el-collapse-item> </el-collapse-item>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<td v-for="(item,index) in value.data" :key="index">{{item}}</td> <td v-for="(item,index) in value.data" :key="index">{{item}}</td>
</tr> </tr>
</table> </table>
<div class="tips red">注:供求比=供应数量/销售数量,供应比越小,销售越好</div> <div class="tips red">注:供销比=供应数量/销售数量,供销比越小,销售越好</div>
</div> </div>
</div > </div >
<div v-else style="height: 500px;display: flex;align-items: center"> <div v-else style="height: 500px;display: flex;align-items: center">
...@@ -111,7 +111,7 @@ ...@@ -111,7 +111,7 @@
chartSettings2: { chartSettings2: {
labelMap: { labelMap: {
areaRange: '面积区间', areaRange: '面积区间',
rate: '供比' rate: '供比'
} }
}, },
regionVal: '', // 区域选择 regionVal: '', // 区域选择
...@@ -133,17 +133,17 @@ ...@@ -133,17 +133,17 @@
name: '成交数量', name: '成交数量',
data: [] data: []
} }
}, // 表格供数量的数据 }, // 表格供销比数量的数据
supplyRateData:{ supplyRateData:{
areaRange: { areaRange: {
name: '面积区间', name: '面积区间',
data: [] data: []
}, },
Rate: { Rate: {
name: '供比', name: '供比',
data: [] data: []
}, },
}, // 表格供比的数据 }, // 表格供比的数据
colorArr: colors, colorArr: colors,
// 区域名称对应 // 区域名称对应
plateMap: { plateMap: {
...@@ -184,7 +184,7 @@ ...@@ -184,7 +184,7 @@
formatter: (params) => { formatter: (params) => {
if(params.data == 0) { return '' } if(params.data == 0) { return '' }
return `<div>${params.name}区间</br> return `<div>${params.name}区间</br>
比:${params.data ? (1/ params.data).toFixed(1) : ''} 比:${params.data ? (1/ params.data).toFixed(1) : ''}
</div>` </div>`
} }
}, },
...@@ -198,11 +198,11 @@ ...@@ -198,11 +198,11 @@
exportSupplyDataForeExcel () { exportSupplyDataForeExcel () {
this.exportLoading = true this.exportLoading = true
exportSupplyData({ exportSupplyData({
title: `${this.regionVal}${this.plateVal}板块${this.timeVal}年份供信息`, title: `${this.regionVal}${this.plateVal}板块${this.timeVal}年份供信息`,
dataJson: this.exportSaveStatus dataJson: this.exportSaveStatus
}).then(res => { }).then(res => {
if(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(() => { downloadFile(res, title, 'application/vnd.ms-excel;charset=utf-8').then(() => {
this.$message({ this.$message({
type: 'success', type: 'success',
...@@ -221,14 +221,14 @@ ...@@ -221,14 +221,14 @@
this.exportLoading = false this.exportLoading = false
}) })
}, },
// 根据区域-板块名-年份获取供信息 // 根据区域-板块名-年份获取供销比信息
getSupplyData () { getSupplyData () {
getSupplyNumData(this.regionVal,this.plateVal,this.timeVal).then(res => { getSupplyNumData(this.regionVal,this.plateVal,this.timeVal).then(res => {
if(res.data) { if(res.data) {
let exportList = [] let exportList = []
let supplyChartsData = [] // 供百分比 图表数据 let supplyChartsData = [] // 供销比百分比 图表数据
let supplyDealRate = [] //供比图表数据 let supplyDealRate = [] //供销比比图表数据
let rate = [] // 供 let rate = [] // 供
let supplyNumber = [] // 供应套数 let supplyNumber = [] // 供应套数
let dealNumber = [] // 成交套数 let dealNumber = [] // 成交套数
let areaRange = [] // 面积区间 let areaRange = [] // 面积区间
...@@ -288,6 +288,7 @@ ...@@ -288,6 +288,7 @@
computed: { computed: {
haveAuth() { haveAuth() {
return (accessName) => { return (accessName) => {
if(accessName) { return false }
const auth = sessionStorage.getItem('access') const auth = sessionStorage.getItem('access')
if (auth === 'master') { if (auth === 'master') {
return true return true
......
...@@ -155,7 +155,7 @@ ...@@ -155,7 +155,7 @@
</table> </table>
</el-col> </el-col>
<el-col :span="24"> <el-col :span="24">
<!-- 供比数据分析--> <!-- 供比数据分析-->
<ve-histogram <ve-histogram
:data="supplyRateCharts" :data="supplyRateCharts"
:tooltip="rateTooltipResize" :tooltip="rateTooltipResize"
...@@ -164,15 +164,15 @@ ...@@ -164,15 +164,15 @@
:extend="rateExtend" :extend="rateExtend"
:colors="colorArr" :colors="colorArr"
:settings="supplyDemandRatioSettings"></ve-histogram> :settings="supplyDemandRatioSettings"></ve-histogram>
<!-- 供比表格信息--> <!-- 供比表格信息-->
<table cellspacing="0" cellpadding="0" class="table" > <table cellspacing="0" cellpadding="0" class="table" >
<tr v-for="(value, key) in supplyRateTable" :key="key"> <tr v-for="(value, key) in supplyRateTable" :key="key">
<th>{{value.name}}</th> <th>{{value.name}}</th>
<td v-for="(item,index) in value.data" :key="index">{{item}}</td> <td v-for="(item,index) in value.data" :key="index">{{item}}</td>
</tr> </tr>
</table> </table>
<!-- 供比提示信息--> <!-- 供比提示信息-->
<div class="tips" style="color: red;text-align: end">注:供求比=供应数量/销售数量,供应比越小,销售越好</div> <div class="tips" style="color: red;text-align: end">注:供销比=供应数量/销售数量,供销比越小,销售越好</div>
</el-col> </el-col>
</div> </div>
</el-row> </el-row>
...@@ -252,7 +252,6 @@ ...@@ -252,7 +252,6 @@
</div> </div>
</div> </div>
</main> </main>
</section>
<el-dialog :close-on-click-modal="false" title="下载技术资料" :visible.sync="downloadDataFlag" custom-class="customDialogStyle"> <el-dialog :close-on-click-modal="false" title="下载技术资料" :visible.sync="downloadDataFlag" custom-class="customDialogStyle">
<div > <div >
<file-list v-for="(item,index) in propertyData.fileList" <file-list v-for="(item,index) in propertyData.fileList"
...@@ -263,7 +262,11 @@ ...@@ -263,7 +262,11 @@
@downLoadSingleFile="downloadsingleFile(item, index)"> @downLoadSingleFile="downloadsingleFile(item, index)">
</file-list> </file-list>
</div> </div>
<div slot="footer">
<el-button @click="downloadDataFlag = false">关闭</el-button>
</div>
</el-dialog> </el-dialog>
</section>
</el-card> </el-card>
</template> </template>
...@@ -315,26 +318,26 @@ ...@@ -315,26 +318,26 @@
data: [] data: []
} }
}, // 供应比例、套数 表格数据 }, // 供应比例、套数 表格数据
// 供比 图表设置 // 供比 图表设置
supplyDemandRatioSettings: { supplyDemandRatioSettings: {
labelMap: { labelMap: {
areaRange: '面积区间', areaRange: '面积区间',
rate: '供比' rate: '供比'
} }
}, },
// 供比 图表数据 // 供比 图表数据
supplyRateCharts: { supplyRateCharts: {
columns: ['areaRange', 'rate'], columns: ['areaRange', 'rate'],
rows: [] rows: []
}, },
// 供比 表格数据 // 供比 表格数据
supplyRateTable:{ supplyRateTable:{
areaRange: { areaRange: {
name: '面积区间', name: '面积区间',
data: [] data: []
}, },
rate: { rate: {
name: '供比', name: '供比',
data: [] data: []
}, },
}, },
...@@ -447,7 +450,7 @@ ...@@ -447,7 +450,7 @@
formatter: (params) => { formatter: (params) => {
if(params.data == 0) { return '' } if(params.data == 0) { return '' }
return `<div>${params.name}区间</br> return `<div>${params.name}区间</br>
比:${params.data ? (1/ params.data).toFixed(1) : ''} 比:${params.data ? (1/ params.data).toFixed(1) : ''}
</div>` </div>`
} }
}, },
...@@ -697,13 +700,13 @@ ...@@ -697,13 +700,13 @@
this.propertyLoading = false this.propertyLoading = false
}) })
}, },
// 供数据 图表加表格数据 // 供销比数据 图表加表格数据
getPropertySupplyData () { getPropertySupplyData () {
queryPropertySupplyData(this.propertyId).then(res => { queryPropertySupplyData(this.propertyId).then(res => {
if(res.data) { if(res.data) {
let supplyChartsData = [] // 供百分比 图表数据 let supplyChartsData = [] // 供销比百分比 图表数据
let supplyDealRate = [] //供比图表数据 let supplyDealRate = [] //供比图表数据
let rate = [] // 供 let rate = [] // 供
let supplyNumber = [] // 供应套数 let supplyNumber = [] // 供应套数
let dealNumber = [] // 成交套数 let dealNumber = [] // 成交套数
let areaRange = [] // 面积区间 let areaRange = [] // 面积区间
...@@ -750,7 +753,7 @@ ...@@ -750,7 +753,7 @@
}).catch(e => { }).catch(e => {
this.$message({ this.$message({
type: 'error', type: 'error',
message: '查询供比数据失败' message: '查询供比数据失败'
}) })
this.supplyNoDataFlag = true this.supplyNoDataFlag = true
return e return e
...@@ -1143,7 +1146,6 @@ ...@@ -1143,7 +1146,6 @@
} }
} }
} }
}
.customDialogStyle { .customDialogStyle {
width 40% width 40%
border-radius: 8px; border-radius: 8px;
...@@ -1174,6 +1176,7 @@ ...@@ -1174,6 +1176,7 @@
} }
} }
} }
}
.viewer-prev { .viewer-prev {
display: inline-block; display: inline-block;
} }
......
...@@ -32,7 +32,7 @@ export const columData = [ ...@@ -32,7 +32,7 @@ export const columData = [
label: '成交日期' label: '成交日期'
},{ },{
prop: 'dealPrice', prop: 'dealPrice',
label: '成交总价(元)' label: '成交总价(元)'
},{ },{
prop: 'premium', prop: 'premium',
label: '溢价' 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