<template>
  <div>
    <template v-for="(row,rowIndex) in oplogDTOs">
      <div class="order-item" :key="rowIndex" v-if="rowIndex<5">
        <div class="t1">
          <i class="icon"></i>
          <span>{{ row.content }}</span>
        </div>
        <div class="t3">
          <span>{{ row.createBy }}</span>　<span>{{ row.createDate }}</span>
        </div>
      </div>
    </template>
    <div class="show-more" v-if="oplogDTOs.length>5" @click="showDialog=true"><i class="iconfont icon-kuaijie"></i>查看更多
    </div>
    <div class="pop-box" v-if="showDialog">
      <div>
        <div class="header-box"><i class="back el-icon-close" @click="showDialog=false"></i>操作日志</div>
        <div class="flex">
          <div class="checkbox-all_list">
            <div v-for="(row,rowIndex) in oplogDTOs" :key="rowIndex" class="order-item">
              <div class="t1">
                <i class="icon"></i>
                <span>{{ row.content }}</span>
              </div>
              <div class="t3">
                <span>{{ row.createBy }}</span>　<span>{{ row.createDate }}</span>
              </div>
            </div>
          </div>
        </div>
        <div class="fixed-bottom-btns">
          <el-button type="primary" plain class="btn" @click="showDialog=false" icon="el-icon-close">取 消</el-button>
          <el-button type="primary" class="btn" @click="showDialog=false" icon="el-icon-check">确 定</el-button>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
import {mixins} from './mixins';

export default {
  name: "h5OplogTable",
  mixins: [mixins]
};
</script>
<style scoped>

</style>
