<template>
  <div >
    <criteria-paged :model="model" v-ref:paged>
      <criteria partial='criteria' @condition-changed='$parent.selfSearch' v-ref:cri>
        <div novalidate class="form-horizontal select-overspread container-fluid auto" partial>

        </div>
      </criteria>
      <data-grid :model="model" partial='list' class="list_area table_sy" v-ref:grid v-if="!$parent.row">
        <template partial='head'>
          <tr>
            <th style="white-space: nowrap;" colspan="7">参数维护记录</th>
          </tr>
          <tr>
            <th style="white-space: nowrap;">序号</th>
            <th style="white-space: nowrap;">操作描述</th>
            <th style="white-space: nowrap;">操作时间</th>
            <th style="white-space: nowrap;">参数组别</th>
            <th style="white-space: nowrap;">参数名称</th>
            <th style="white-space: nowrap;">参数旧值</th>
            <th style="white-space: nowrap;">参数新值</th>
          </tr>
        </template>
        <template partial='body'>
          <td style="text-align: center;">{{ $index + 1 }}</td>
          <td style="text-align: center;">{{ row.f_describe }}</td>
          <td style="text-align: center;">{{ row.f_operate_date }}</td>
          <td style="text-align: center;">{{ row.f_group_name }}</td>
          <td style="text-align: center;">{{ row.f_param_name }}</td>
          <td style="text-align: center;">{{ row.f_old_value }}</td>
          <td style="text-align: center;">{{ row.f_new_value }}</td>
        </template>
      </data-grid>
    </criteria-paged>
  </div>
</template>

<script>
/**
 *用户档案查询列表以及添加操作组件
 */
import {PagedList} from 'vue-client'

export default {
  title: 'ParamSetDefaultList',
  data () {
    return {
      model: new PagedList('rs/sql/getAllDefaultRecord', 30, {})
    }
  },
  ready () {
    this.search()
  },
  methods: {
    search () {
      this.$refs.paged.$refs.cri.search()
    },
    selfSearch (args) {
      this.model.search(args.condition, args.model)
    }
  },
  watch: {},
  computed: {}
}
</script>
<style>

</style>
