<template>
  <div class="flex-row" v-if="!showdetail">
    <div id='app1' class="basic-main" v-show="(!echarts)&&(!isActiveTotalForm)">
      <criteria-paged :model="model" :pager='true' v-ref:paged>
        <criteria partial='criteria' @condition-changed='$parent.search' v-ref:cri>
        </criteria>
        <data-grid id="lostuserlist" :model="model" class="list_area table_sy" partial='list' v-ref:grid>
          <template partial='head'>
            <tr>
              <th style="text-align:center">
                <nobr>序号</nobr>
              </th>
            </tr>

          </template>
          <template partial='body'>
            <td style="text-align:center">
              <nobr>{{$index+1}}</nobr>
            </td>
          </template>
        </data-grid>
      </criteria-paged>
    </div>
  </div>
</template>

<script>
  import PagedList from 'vue-client'
  export default {
    props: ['f_meternumber'],
    title: '异常日志查看',
    data () {
      return {
        model: new PagedList('rs/sql/paramExceptionList', 20),
        getfield: {
          'f_error_type': '异常类型', 'f_error_level': '异常级别', 'f_hand_date': '抄表日期'
        }
      }
    },
    ready () {
      this.$refs.paged.$refs.cri.search()
    },
    methods: {
      search (args) {
        args.condition = ` f_meternumber = '${this.f_meternumber}'`
        this.model.search(args.condition, args.model)
      }
    },
    watch: {
    },
    computed: {
    }
  }
</script>
<style>
</style>
