| | |
| | | <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome.min.css">
|
| | | <link rel="stylesheet" type="text/css" href="font-awesome-4.7.0/css/font-awesome-animation.min.css">
|
| | | <link rel="stylesheet" type="text/css" href="css/whyc-ui.css">
|
| | | <link href="src/css/layui.css" type="text/css" rel="stylesheet">
|
| | | <style>
|
| | | .confirm {
|
| | | z-index: 999;
|
| | |
| | | </tr>
|
| | | <tr>
|
| | | <th><s:text name="Booster"/><s:text name="Upper_limit"/><!-- 升压上限 -->(V)</th>
|
| | | <th><s:text name="Charging_current"/><!-- 充电电流 -->(A)</th>
|
| | | <th id="ChargeCurrSetLabel"><s:text name="Charging_current"/><!-- 充电电流 -->(A)</th>
|
| | | </tr>
|
| | | <tr>
|
| | | <td><input id="DCVolHighLimit" type="text" value="0"><i class="fa fa-frown-o error-img" title="数据格式错误"></i></td>
|
| | |
| | | <script type="text/javascript" src="js/elecircle.content.js"></script>
|
| | | <script type="text/javascript" src="js/mypattern.js"></script>
|
| | | <script type="text/javascript" src="js/whyc-jqueryui.js"></script>
|
| | | <script type="text/javascript" src="src/layui.all.js"></script>
|
| | | <script type="text/javascript">
|
| | | var arrTh = new Array();
|
| | | var arrTd = new Array();
|
| | |
| | | }; // 充电电流
|
| | |
|
| | | $('.popup.fbs9100 .popup-tbl td i').removeClass('error-data');
|
| | | $('.popup.fbs9100 .popup-tbl input[type=text]').removeClass('error-data');
|
| | | }
|
| | | });
|
| | | })(jQuery);
|
| | |
|
| | | // 更改放电面板的值后
|
| | | $(function() {
|
| | | $('.popup.fbs9100 .popup-tbl td i').tooltip();
|
| | | // 监测面板中的input改变触发$.checkTestInfor()事件
|
| | | $('.popup.fbs9100 .popup-tbl').on('input propertychange', 'input', function() {
|
| | | // 放电电流
|
| | | $('#discurr').testVal({
|
| | | pattern: /^[0-9]+(\.[0-9]*)?$/,
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: 1000,
|
| | | msg: '取值范围0~1000A'
|
| | | });
|
| | | |
| | | // 放电小时率
|
| | | $('#hourrate').testVal({
|
| | | pattern: /^[0-9]+$/,
|
| | | regVal: false,
|
| | | msg: '输入的数据格式不正确'
|
| | | });
|
| | | |
| | | // 放电电容
|
| | | $('#discap').testVal({
|
| | | pattern: /^[0-9]+$/,
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: 90000,
|
| | | msg: '取值范围0~90000AH'
|
| | | });
|
| | | |
| | | // 放电时长
|
| | | $('#distime').testVal({
|
| | | pattern: /^[0-9]+$/,
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: 5940,
|
| | | msg: '取值范围0~5940分钟'
|
| | | });
|
| | | |
| | | // 单体下限阀值
|
| | | $('#MonomerVol_low').testVal({
|
| | | pattern: /^[0-9]+(\.[0-9]*)?$/,
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: 20,
|
| | | msg: '取值范围0~20V'
|
| | | });
|
| | | |
| | | // 组端下限阀值GroupVol_low
|
| | | $('#GroupVol_low').testVal({
|
| | | pattern: /^[0-9]+(\.[0-9]*)?$/,
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: 60,
|
| | | msg: '取值范围0~60V'
|
| | | });
|
| | | |
| | | // 单体下限数量
|
| | | $('#MonomerlowCount').testVal({
|
| | | pattern: /^[0-9]+$/,
|
| | | regVal: false,
|
| | | msg: '输入的数据格式不正确'
|
| | | });
|
| | | |
| | | // 升压上限
|
| | | $('#MonomerlowCount').testVal({
|
| | | pattern: /^[0-9]+(\.[0-9]*)?$/,
|
| | | regVal: false,
|
| | | msg: '输入的数据格式不正确'
|
| | | });
|
| | | |
| | | // 充电电流
|
| | | $('#ChargeCurrSet').testVal({
|
| | | pattern: /^[0-9]+(\.[0-9]*)?$/,
|
| | | regVal: false,
|
| | | msg: '输入的数据格式不正确'
|
| | | });
|
| | | |
| | | // 温度上限
|
| | | $('#TempUpHighLimit').testVal({
|
| | | pattern: /^[0-9]+$/,
|
| | | regVal: false,
|
| | | msg: '输入的数据格式不正确'
|
| | | });
|
| | | |
| | | $('.popup.fbs9100').on('input propertychange', 'input[type=text]', function() {
|
| | | $.checkTestInfor();
|
| | | var bool = $.regPositiveNum($(this).val());
|
| | | if(bool) {
|
| | | // 读取放电参数成功执行
|
| | | if($.disTestInfor.success) {
|
| | | paramsBtn.ensure(true);
|
| | | }
|
| | | $(this).next('i').removeClass('error-data');
|
| | | $(this).myTooltip('hide');
|
| | | }else {
|
| | | paramsBtn.ensure(false);
|
| | | //var errorImg = $('<i class="fa fa-frown-o error-img"></i>');
|
| | | $(this).next('i').addClass('error-data');
|
| | | $(this).myTooltip({
|
| | | position: 'top',
|
| | | thing: 'show',
|
| | | content: '<span style="color:#FF0000">数据格式错误(请输入正数)</span>'
|
| | | });
|
| | | }
|
| | | });
|
| | | |
| | | // 当文本框获取焦点时
|
| | | $('.popup.fbs9100 .popup-tbl').on('focus', 'input', function() {
|
| | | if($(this).next('i').hasClass('error-data')) {
|
| | | $(this).myTooltip('show');
|
| | | }
|
| | | });
|
| | | |
| | | // 文本框失去焦点
|
| | | $('.popup.fbs9100 .popup-tbl').on('blur', 'input', function() {
|
| | | $(this).myTooltip('hide');
|
| | | });
|
| | |
|
| | | $('.popup.fbs9100').on('change', 'select', function() {
|
| | |
| | | $('#DCVolHighLimit').val(list[i].fsparam.DCVolHighLimit);
|
| | | $('#ChargeCurrSet').val(list[i].fsparam.ChargeCurrSet);
|
| | | $('#TempUpHighLimit').val(list[i].fsparam.MonomerTmp_High);
|
| | | |
| | | // 充电电流
|
| | | $('#ChargeCurrSet').testVal('option', 'allOpts', {
|
| | | regVal: true,
|
| | | min: 0,
|
| | | max: list[0].binf.charge_curr_max,
|
| | | msg: '取值范围0~'+list[0].binf.charge_curr_max+'A'
|
| | | });
|
| | | |
| | | // 设置文本值
|
| | | $('#ChargeCurrSetLabel').text('充电电流(0~'+list[0].binf.charge_curr_max+'A)');
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | |
| | | // 省-市-机房-电池组
|
| | | var filterLoad;
|
| | | $(document).ready(function(){
|
| | | filterLoad = layer.load();
|
| | | //页面加载时查询维护区中的枢纽类型
|
| | | $.post("BattInfAction!serchAllStation",null,function(data){
|
| | | data=data.result;
|
| | |
| | | });
|
| | |
|
| | | // 根据维护区的内容查询市
|
| | | function findCity() {
|
| | | function findCity(isLoad) {
|
| | | var data = {
|
| | | StationName1: $("#station_name1").val()
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | |
| | | // 请求获取当前省下的市
|
| | | $.ajax({
|
| | | type: "post",
|
| | |
| | |
|
| | | //当维护区的值变换时更新市
|
| | | $('#station_name1').change(function(){
|
| | | findCity();
|
| | | findCity(true);
|
| | | });
|
| | |
|
| | | //当市的值变换时更新机房站点
|
| | | $('#city').change(function(){
|
| | | findCounty();
|
| | | findCounty(true);
|
| | | });
|
| | |
|
| | | //当区/县的值变换时更新机房站点
|
| | | $('#county').change(function(){
|
| | | findStationNamebyStationname1();
|
| | | findStationNamebyStationname1(true);
|
| | | });
|
| | |
|
| | | // 查询区/县
|
| | | function findCounty() {
|
| | | function findCounty(isLoad) {
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | // 查询区县
|
| | | $.ajax({
|
| | | type: 'post',
|
| | |
| | | }
|
| | |
|
| | | //根据维护区查询站点
|
| | | function findStationNamebyStationname1(){
|
| | | function findStationNamebyStationname1(isLoad){
|
| | | var tmp = {
|
| | | StationName1:$("#station_name1").val(),
|
| | | StationName2:$("#city").val(),
|
| | | StationName5: $("#county").val()
|
| | | };
|
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var selectvalue=$("#station_name1 option:selected").val();
|
| | | //alert(selectvalue);
|
| | | $.post("BattInfAction!serchStationName3","json="+JSON.stringify(tmp),function(data){
|
| | |
| | | }
|
| | |
|
| | | $('#station_name').change(function(){
|
| | | findserchByBattGroupNamebystationname();
|
| | | findserchByBattGroupNamebystationname(true);
|
| | | });
|
| | |
|
| | | //根据维护区和机房查询蓄电池组
|
| | | function findserchByBattGroupNamebystationname(){
|
| | | function findserchByBattGroupNamebystationname(isLoad){
|
| | | var stationid = $("#station_name").find('option:selected').attr('stationid')?$("#station_name").find('option:selected').attr('stationid'):'';
|
| | | // 构造查询条件
|
| | | var tmp = {
|
| | |
| | | StationName: $("#station_name").val(),
|
| | | StationId: stationid
|
| | | };
|
| | | |
| | | // 是否添加等待
|
| | | if(isLoad) {
|
| | | filterLoad = layer.load();
|
| | | }
|
| | | //var station_name1=$("#station_name1 option:selected").val();
|
| | | //var station_name=$("#station_name option:selected").val();
|
| | |
|
| | |
| | | }else{
|
| | | $("#battgroup_name").text('').html('<option>暂无可测蓄电池组</option>');
|
| | | }
|
| | | |
| | | layer.close(filterLoad);
|
| | | });
|
| | | }
|
| | | // 隐藏表格功能按钮列表
|