修改電站

This commit is contained in:
b110212000 2021-09-01 17:16:13 +08:00
parent 73fb4da5fa
commit 363ac02106

View File

@ -1225,6 +1225,7 @@
case "station_info": //【電站基本資料】 case "station_info": //【電站基本資料】
if (mode === "view") { if (mode === "view") {
//觀看 //觀看
$('#power_station_operation_personnel-error').hide();
//#region 電站基本資料 文字 //#region 電站基本資料 文字
$("#address_detail_text").show(); $("#address_detail_text").show();
@ -1262,21 +1263,32 @@
$("#select_city").attr("disabled", true); $("#select_city").attr("disabled", true);
$("#select_area").attr("disabled", true); $("#select_area").attr("disabled", true);
$("#address_detail").hide(); $("#address_detail").hide();
$("#address_detail").val(powerStationData.address);
$("#select_solar_tpye").attr("disabled", true); $("#select_solar_tpye").attr("disabled", true);
$("#power_station_name").hide(); $("#power_station_name").hide();
$("#power_station_name").val(powerStationData.name);
$("#check_escrow").attr("disabled", true); $("#check_escrow").attr("disabled", true);
$("#escrow_name").hide(); $("#escrow_name").hide();
$("#generating_capacity").hide(); $("#generating_capacity").hide();
$("#generating_capacity").val(powerStationData.generatingCapacity);
$("#estimate_kwh").hide(); $("#estimate_kwh").hide();
$("#estimate_kwh").val(powerStationData.estimate_kwh);
$("#estimate_efficacy").hide(); $("#estimate_efficacy").hide();
$("#estimate_efficacy").val(powerStationData.estimateEfficacy);
$("#estimated_recovery_time").hide(); $("#estimated_recovery_time").hide();
$("#estimated_recovery_time").val(powerStationData.estimatedRecoveryTime);
$("#power_station_operation_personnel").attr("disabled", true); $("#power_station_operation_personnel").attr("disabled", true);
$("#power_station_operation_personnel").val(powerStationData.operationPersonnelIds).trigger("change");
$("#coordinate").hide(); $("#coordinate").hide();
$("#coordinate").val(powerStationData.coordinate);
$("#line_token").hide(); $("#line_token").hide();
$("#line_token").val(powerStationData.line_token);
@if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformUser) @if (ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformAdmin || ViewBag.myUser.Role.Layer == (int)RoleLayerEnum.PlatformUser)
{ {