1. bug fix
2. 土地房屋卡片,資料重整
This commit is contained in:
parent
c10e7f94c7
commit
ed4733bbde
@ -304,7 +304,6 @@ namespace SolarPower.Controllers
|
|||||||
{
|
{
|
||||||
"Address",
|
"Address",
|
||||||
"PowerStationId",
|
"PowerStationId",
|
||||||
"CreatedBy",
|
|
||||||
"CreatedBy"
|
"CreatedBy"
|
||||||
};
|
};
|
||||||
await powerStationRepository.AddOneLandBuildingInfo(landBuilding, landBuildingProperties);
|
await powerStationRepository.AddOneLandBuildingInfo(landBuilding, landBuildingProperties);
|
||||||
|
|||||||
@ -1028,6 +1028,16 @@
|
|||||||
|
|
||||||
//#region 創建每份土地房屋資訊卡片
|
//#region 創建每份土地房屋資訊卡片
|
||||||
function CreateLandBuildingCard(dom, value) {
|
function CreateLandBuildingCard(dom, value) {
|
||||||
|
|
||||||
|
//資料重整
|
||||||
|
value.address = value.address ? value.address : '';
|
||||||
|
value.coordinate = value.coordinate ? value.coordinate : '';
|
||||||
|
value.leaseNotarizationAt = value.leaseNotarizationAt ? value.leaseNotarizationAt : '';
|
||||||
|
value.leaseRate = value.leaseRate ? value.leaseRate : 0;
|
||||||
|
value.landowner = value.landowner ? value.landowner : '';
|
||||||
|
value.phone = value.phone ? value.phone : '';
|
||||||
|
value.purpose = value.purpose ? value.purpose : '';
|
||||||
|
|
||||||
var appendStr = "";
|
var appendStr = "";
|
||||||
appendStr += '<div class="card border mb-g w-100" data-land-building-id="' + value.id + '">' +
|
appendStr += '<div class="card border mb-g w-100" data-land-building-id="' + value.id + '">' +
|
||||||
'<div class="card-header bg-fusion-50 pr-3 d-flex align-items-center flex-wrap justify-content-between">' +
|
'<div class="card-header bg-fusion-50 pr-3 d-flex align-items-center flex-wrap justify-content-between">' +
|
||||||
@ -1078,7 +1088,7 @@
|
|||||||
'<label class="col-xl-4 form-label">租金比例 (%)</label>' +
|
'<label class="col-xl-4 form-label">租金比例 (%)</label>' +
|
||||||
'<div class="col-xl-8">' +
|
'<div class="col-xl-8">' +
|
||||||
'<label id="land_building_lease_Rate_text_' + value.id + '" class="color-info-600">' + value.leaseRate + '</label>' +
|
'<label id="land_building_lease_Rate_text_' + value.id + '" class="color-info-600">' + value.leaseRate + '</label>' +
|
||||||
'<input type="text" style="display:none" id="land_building_lease_Rate_' + value.id + '" name="land_building_lease_Rate_' + value.id + '" class="form-control" value="' + value.leaseRate + '">' +
|
'<input type="number" style="display:none" id="land_building_lease_Rate_' + value.id + '" name="land_building_lease_Rate_' + value.id + '" class="form-control" value="' + value.leaseRate + '">' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
'</div>' +
|
'</div>' +
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user