估值报告优化
This commit is contained in:
+1
-1
@@ -5047,7 +5047,7 @@ public class PropertyController {
|
|||||||
districtPriceMap.put("name", district.getName());
|
districtPriceMap.put("name", district.getName());
|
||||||
districtPriceMap.put("address", district.getAddress());
|
districtPriceMap.put("address", district.getAddress());
|
||||||
districtPriceMap.put("totalPrice", evaluation.getTotalPrice());
|
districtPriceMap.put("totalPrice", evaluation.getTotalPrice());
|
||||||
districtPriceMap.put("totalPriceUpper", CNNMFilter.convert(String.valueOf(evaluation.getTotalPrice())));
|
districtPriceMap.put("totalPriceUpper", CurrencyConverter.toChinese(String.valueOf(evaluation.getTotalPrice())));
|
||||||
districtPriceMap.put("cal_date", DateUtil.formatByPattern(new Date(), "yyyy/MM/dd"));
|
districtPriceMap.put("cal_date", DateUtil.formatByPattern(new Date(), "yyyy/MM/dd"));
|
||||||
districtPriceMap.put("direction", evaluation.getDirection());
|
districtPriceMap.put("direction", evaluation.getDirection());
|
||||||
districtPriceMap.put("size", evaluation.getArea());
|
districtPriceMap.put("size", evaluation.getArea());
|
||||||
|
|||||||
+1
-1
@@ -179,7 +179,7 @@ public class CcbRentController {
|
|||||||
districtPriceMap.put("name", district.getName());
|
districtPriceMap.put("name", district.getName());
|
||||||
districtPriceMap.put("address", district.getAddress());
|
districtPriceMap.put("address", district.getAddress());
|
||||||
districtPriceMap.put("totalPrice", evaluation.getTotalPrice());
|
districtPriceMap.put("totalPrice", evaluation.getTotalPrice());
|
||||||
districtPriceMap.put("totalPriceUpper", CNNMFilter.convert(String.valueOf(evaluation.getTotalPrice())));
|
districtPriceMap.put("totalPriceUpper", CurrencyConverter.toChinese(String.valueOf(evaluation.getTotalPrice())));
|
||||||
districtPriceMap.put("cal_date", DateUtil.formatByPattern(new Date(), "yyyy/MM/dd"));
|
districtPriceMap.put("cal_date", DateUtil.formatByPattern(new Date(), "yyyy/MM/dd"));
|
||||||
districtPriceMap.put("direction", evaluation.getDirection());
|
districtPriceMap.put("direction", evaluation.getDirection());
|
||||||
districtPriceMap.put("size", evaluation.getArea());
|
districtPriceMap.put("size", evaluation.getArea());
|
||||||
|
|||||||
@@ -198,62 +198,13 @@
|
|||||||
<script type='text/javascript' src='../static/js/wx.js' charset='utf-8'></script>
|
<script type='text/javascript' src='../static/js/wx.js' charset='utf-8'></script>
|
||||||
<script type="text/javascript" src="../static/js/trend-charts.js"></script>
|
<script type="text/javascript" src="../static/js/trend-charts.js"></script>
|
||||||
<script src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script>
|
<script src="https://html2canvas.hertzen.com/dist/html2canvas.js"></script>
|
||||||
<#-- <script src="../static/js/purify.min.js"></script>-->
|
|
||||||
<#-- <script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/2.3.1/jspdf.umd.min.js"></script>-->
|
|
||||||
<#-- <script src="../static/js/jspdf.umd.js"></script>-->
|
|
||||||
<#-- <script src="../static/js/SourceHanSans-normal.js"></script>-->
|
|
||||||
<#-- <script src="../static/js/simsun-normal.js"></script>-->
|
|
||||||
<#-- <script type="text/javascript">-->
|
|
||||||
<#-- $("#download").bind('click', function(){-->
|
|
||||||
<#-- window.location.href = "download"-->
|
|
||||||
<#-- // 打印所有可用的字体-->
|
|
||||||
<#-- // jspdf.html(document.body, {-->
|
|
||||||
<#-- // callback: function (doc) {-->
|
|
||||||
<#-- // doc.save("租金报告.pdf");-->
|
|
||||||
<#-- // },-->
|
|
||||||
<#-- // x: 10,-->
|
|
||||||
<#-- // y: 10-->
|
|
||||||
<#-- // });-->
|
|
||||||
<#-- // jspdf.html("test测试", {-->
|
|
||||||
<#-- // callback: function (doc) {-->
|
|
||||||
<#-- // doc.save("租金报告.pdf");-->
|
|
||||||
<#-- // },-->
|
|
||||||
<#-- // x: 10,-->
|
|
||||||
<#-- // y: 10-->
|
|
||||||
<#-- // });-->
|
|
||||||
<#-- });-->
|
|
||||||
<#-- $(function () {-->
|
|
||||||
<#-- $('span[name="name"]').text('场中小区');-->
|
|
||||||
<#-- });-->
|
|
||||||
<#-- </script>-->
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
// window.jsPDF = window.jspdf.jsPDF
|
let chart;
|
||||||
// var jspdf = new jsPDF();
|
|
||||||
// jspdf.addFileToVFS('SourceHanSans-Normal.ttf',normalChinese);
|
|
||||||
// jspdf.addFont('SourceHanSans-Normal.ttf', 'SourceHanSans-Normal', 'normal');
|
|
||||||
// jspdf.setFont('SourceHanSans-Light');
|
|
||||||
//console.log(jspdf.getFontList());
|
|
||||||
var chart;
|
|
||||||
$("#download").bind('click', function(){
|
$("#download").bind('click', function(){
|
||||||
var chartImgUrl = $('#chartImgUrl').val();
|
$("#download").css('color', 'blue')
|
||||||
|
let chartImgUrl = $('#chartImgUrl').val();
|
||||||
window.location.href = "download?city="+params.city+"&district="+params.district+"&name="+params.name+"&address="+params.address+"&size="+params.size+"&floor="+params.floor
|
window.location.href = "download?city="+params.city+"&district="+params.district+"&name="+params.name+"&address="+params.address+"&size="+params.size+"&floor="+params.floor
|
||||||
+"&height="+params.height+"&room="+params.room+"&hall="+params.hall+"&toilet="+params.toilet+"&direction="+params.direction+"&fitment="+params.fitment+"&chartImgUrl=" + chartImgUrl;
|
+"&height="+params.height+"&room="+params.room+"&hall="+params.hall+"&toilet="+params.toilet+"&direction="+params.direction+"&fitment="+params.fitment+"&chartImgUrl=" + chartImgUrl;
|
||||||
// jspdf.html(document.body, {
|
|
||||||
// callback: function (doc) {
|
|
||||||
// doc.save("租金报告.pdf");
|
|
||||||
// },
|
|
||||||
// x: 0,
|
|
||||||
// y: 0,
|
|
||||||
// fontFaces: [{
|
|
||||||
// family: 'SimSun',
|
|
||||||
// weight: 'bold',
|
|
||||||
// //style: style,
|
|
||||||
// src: [{
|
|
||||||
// format: "truetype",
|
|
||||||
// url: "../static/fonts/SimSun.ttf"
|
|
||||||
// }]
|
|
||||||
// }]
|
|
||||||
// });
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// 后台传参过来用
|
// 后台传参过来用
|
||||||
|
|||||||
Reference in New Issue
Block a user