<template>
  <div id="unit" class="flex-row">
    <div class="basic-main" @keyup.enter="search">
      <div class="flex" v-if="!show">
        <criteria-paged :model="model" v-ref:paged :pager="false" @sort="sort">
          <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri >
            <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>
              <div class="span" style="float:right;">
                <button class="button_search button_spacing" @click="search()">查询</button>
                <export-excel :data="$parent.$parent.getCondition" :footer="$parent.$parent.footer"
                              :field="$parent.$parent.getExportField" :header="$parent.$parent.other"
                              :defaultselect="$parent.$parent.defaultexport"
                              sqlurl="rs/logic/exportfile" sql-name="getOnTimePressureRegulatorStation" template-name='调压站整点压力查询导出'
                              :choose-col="true">
                </export-excel>
              </div>
            </div>
          </criteria>
          <data-grid  :model="model" partial='list' class="list_area table_sy" >
            <template partial='head'>
              <tr>
                <th rowspan="3">时间</th>
                <th colspan="10">吕小寨</th>
                <th colspan="6">狄寨塬</th>
                <th colspan="6">耿镇</th>
                <th colspan="4">港务区</th>
                <th rowspan="2" colspan="2">高陵门站</th>
                <th rowspan="2" colspan="2">未央湖</th>
                <th rowspan="2" colspan="2">凤十站</th>
                <th rowspan="2" colspan="2">草五站</th>
                <th rowspan="2" colspan="2">建章路</th>
                <th rowspan="2" colspan="2">北石桥</th>
                <th rowspan="2" colspan="2">科七路</th>
                <th rowspan="2" colspan="2">凤八路</th>
                <th rowspan="2" colspan="2">万寿北</th>
                <th rowspan="2" colspan="2">朝阳门</th>
                <th rowspan="2" colspan="2">观音庙</th>
                <th rowspan="2" colspan="2">丈八站</th>
                <th colspan="4">南郊站</th>
                <th rowspan="2" colspan="2">浐灞站</th>
                <th rowspan="2" colspan="2">长鸣路</th>
                <th rowspan="2" colspan="2">曲江站</th>
                <th rowspan="2" colspan="2">西万路</th>
                <th rowspan="2" colspan="2">曲一</th>
                <th rowspan="2" colspan="2">郭杜</th>
              </tr>
              <tr>
                <th colspan="2">一期</th>
                <th colspan="2">一期撬装</th>
                <th colspan="2">二期</th>
                <th colspan="2">二期中压</th>
                <th colspan="2">二期扩容</th>
                <th colspan="2">二期</th>
                <th colspan="2">二期扩容</th>
                <th colspan="2">高中调</th>
                <th colspan="2">高高调</th>
                <th colspan="2">高中调</th>
                <th colspan="2">中压调压</th>
                <th colspan="2">高高调</th>
                <th colspan="2">高中调</th>
                <th colspan="2">南郊一期</th>
                <th colspan="2">南郊二期</th>
              </tr>
              <tr>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
                <th>进站压力</th>
                <th>出站压力</th>
              </tr>
            </template>
            <template partial='body'>
              <td style="text-align: center;">
                <nobr>{{row.time}}</nobr>
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data1_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data1_in',row.data1_in,'吕小寨','一期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data1_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data1_out',row.data1_out,'吕小寨','一期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data2_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data2_in',row.data2_in,'吕小寨','一期撬装','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data2_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data2_out',row.data2_out,'吕小寨','一期撬装','主线')">
              </td>

              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data3_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data3_in',row.data3_in,'吕小寨','二期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data3_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data3_out',row.data3_out,'吕小寨','二期','主线')">
              </td>

              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data6_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data6_in',row.data6_in,'吕小寨','二期中压','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data6_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data6_out',row.data6_out,'吕小寨','二期中压','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data7_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data7_in',row.data7_in,'吕小寨','二期扩容','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data7_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data7_out',row.data7_out,'吕小寨','二期扩容','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data12_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data12_in',row.data12_in,'狄寨塬','二期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data12_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data12_out',row.data12_out,'狄寨塬','二期','主线')">
              </td>

              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data17_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data17_in',row.data17_in,'狄寨塬','二期扩容','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data17_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data17_out',row.data17_out,'狄寨塬','二期扩容','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data20_5_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data20_5_in',row.data20_5_in,'狄寨塬','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data20_5_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data20_5_out',row.data20_5_out,'狄寨塬','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data18_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data18_in',row.data18_in,'耿镇','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data18_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data18_out',row.data18_out,'耿镇','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data19_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data19_in',row.data19_in,'耿镇','高中调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data19_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data19_out',row.data19_out,'耿镇','高中调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data20_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data20_in',row.data20_in,'耿镇','中压调压','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data20_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data20_out',row.data20_out,'耿镇','中压调压','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data21_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data21_in',row.data21_in,'港务区','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data21_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data21_out',row.data21_out,'港务区','高高调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data22_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data22_in',row.data22_in,'港务区','高中调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data22_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data22_out',row.data22_out,'港务区','高中调','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data23_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data23_in',row.data23_in,'高陵门站','高陵门站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data23_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data23_out',row.data23_out,'高陵门站','高陵门站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data24_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data24_in',row.data24_in,'未央湖','未央湖','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data24_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data24_out',row.data24_out,'未央湖','未央湖','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data25_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data25_in',row.data25_in,'凤十站','凤十站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data25_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data25_out',row.data25_out,'凤十站','凤十站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data26_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data26_in',row.data26_in,'草五站','草五站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data26_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data26_out',row.data26_out,'草五站','草五站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data27_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data27_in',row.data27_in,'建章路','建章路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data27_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data27_out',row.data27_out,'建章路','建章路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data28_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data28_in',row.data28_in,'北石桥','北石桥','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data28_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data28_out',row.data28_out,'北石桥','北石桥','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data29_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data29_in',row.data29_in,'科七路','科七路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data29_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data29_out',row.data29_out,'科七路','科七路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data30_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data30_in',row.data30_in,'凤八路','凤八路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data30_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data30_out',row.data30_out,'凤八路','凤八路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data31_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data31_in',row.data31_in,'万寿北','万寿北','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data31_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data31_out',row.data31_out,'万寿北','万寿北','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data32_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data32_in',row.data32_in,'朝阳门','朝阳门','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data32_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data32_out',row.data32_out,'朝阳门','朝阳门','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data33_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data33_in',row.data33_in,'观音庙','观音庙','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data33_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data33_out',row.data33_out,'观音庙','观音庙','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data34_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data34_in',row.data34_in,'丈八站','丈八站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data34_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data34_out',row.data34_out,'丈八站','丈八站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data35_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data35_in',row.data35_in,'南郊站','一期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data35_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data35_out',row.data35_out,'南郊站','一期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data36_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data36_in',row.data36_in,'南郊站','二期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data36_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data36_out',row.data36_out,'南郊站','二期','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data37_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data37_in',row.data37_in,'浐灞站','浐灞站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data37_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data37_out',row.data37_out,'浐灞站','浐灞站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data38_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data38_in',row.data38_in,'长鸣路','长鸣路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data38_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data38_out',row.data38_out,'长鸣路','长鸣路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data39_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data39_in',row.data39_in,'曲江站','曲江站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data39_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data39_out',row.data39_out,'曲江站','曲江站','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data40_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data40_in',row.data40_in,'西万路','西万路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data40_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data40_out',row.data40_out,'西万路','西万路','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data41_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data41_in',row.data41_in,'曲一','曲一','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data41_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data41_out',row.data41_out,'曲一','曲一','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data42_in"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data42_in',row.data42_in,'郭杜','郭杜','主线')">
              </td>
              <td style="text-align: center;">
                <input type="text" style="width:120px" class="input_search" v-model="row.data42_out"
                       @blur="$parent.$parent.$parent.inputDefocus(row,'data42_out',row.data42_out,'郭杜','郭杜','主线')">
              </td>

            </template>
          </data-grid>

        </criteria-paged>
      </div>
    </div>
  </div>
</template>

<script>
  import {PagedList} from "vue-client";
  import exportConfig from "../../sale/config/exportConfig";
  import {toStandardTimeString} from "../../../Util";

  export default {
    name: "OnTimePressureRegulatorStation",
    props:['date'],
    data(){
      return{
        model: new PagedList('rs/sql/getOnTimePressureRegulatorStation',24,{beginDate:'\''+this.date.yesterday+'\'',endDate:'\''+this.date.today+'\''}),
        inputPressure:null,
        outputPressure:null,
        footer:[],
        other:[],
        modelBackup:{}
      }
    },
    ready(){
      this.search();
    },
    methods:{
      hasModelBackupTime(time) {
        //获取Modelbackup中time所在的数组下标
        for(let i in this.modelBackup.rows){
          if(this.modelBackup.rows[i].time === time)
            return i;
        }
        return null;
      },
      inputDefocus(row,column,newData,stationName,childStationName,lineName){
        if(typeof newData=='string')
          newData = parseFloat(newData);
        let index = this.hasModelBackupTime(row.time);        //判断修改了哪个数据
        if(index !== null ){
          let oldData = this.modelBackup.rows[index][column];
          // if(typeof oldData !== 'int')
          //   oldData = parseInt(oldData);
          if(oldData !== newData){
            //如果更改了数据,修改数据,增加log
            let operatorTime = toStandardTimeString();
            let field= '';
            if(column.indexOf('in')>=0)
              field = 'f_input_pressure';
            else if (column.indexOf('out')>=0)
              field = 'f_output_pressure';
            this.$resetpost('rs/logic/modifyData',{stationName:stationName, childStationName:childStationName, lineName:lineName,
              f_create_time:row.time, oldData:oldData,newData:newData,operatorTime:operatorTime,field:field,
              operatorName:this.$login.f.ename, operatorId:this.$login.f.loginid
            });
            //重新查询
            this.search();
          }
        }
        //将rows内数据格式化为number
        for(let i in this.model.rows){
          let rowsData = this.model.rows[i];
          for(let j in rowsData){
            if(j!=='time' && typeof rowsData[j] == 'string')
              rowsData[j] = parseFloat(rowsData[j]);
          }
        }
      },
      getotherfooter () {
        this.other = [];
        this.footer = [];
        let exportdata = this.getCondition;
        let otherInData = [];
        otherInData.push(`调压站整点压力`);
        let footerData = [], exportfield = this.getExportField;
        footerData.push("合计");
        let self = this;
        for (var field in self.sumsmodel) {
          footerData.push(`${exportfield[field                                                                                                                                                                                                                                                                                                                                                                                                                                                                   ]}合计:${self.sumsmodel[field]}`);
        }
        this.footer.push(footerData);
        this.other.push(otherInData);
      },
      async search(){
        await this.model.search();
        this.modelBackup= JSON.parse(JSON.stringify(this.model));
      }
    },
    computed:{
      getCondition(){
        return {
          fieldName:'f_instantaneous_flow',
          beginDate:this.date.yesterday,
          endDate:this.date.today
        }
      },
      defaultexport(){
        return exportConfig.OnTimePressureRegulatorStation
      },
      getExportField() {
        return exportConfig.OnTimePressureRegulatorStation
      }

    },
    watch:{
      sumsmodel:{
        handler: function(val) {
          this.getotherfooter();
        },
        deep: true
      },
    }
  }
</script>

<style scoped>

</style>
