Newer
Older
smartKitchenFront / src / views / move / attestation.vue
liyaguang on 28 Nov 2022 6 KB fix: 修改商机管理订单管理
<!--日志管理列表,已取消-->
<template>
  <div class="product_container">
    <div class="productFun">
      <div class="productInput">
        日志名称
        <div class="inputBox" style="width: 120px">
          <el-input
            v-model="input"
            placeholder="请输入网点名称"
            clearable
            class="product-input"
          />
        </div>
        时间区域
        <div class="inputBox" style="width: 140px">
          <div class="block">
            <el-date-picker
              v-model="value1"
              type="daterange"
              range-separator="至"
              start-placeholder="开始日期"
              end-placeholder="结束日期"
            />
          </div>
        </div>
      </div>
      <div class="productBtn">
        <el-button
          type="primary"
          icon="el-icon-search"
          class="btnItem"
        >
          查询
        </el-button>
        <el-button
          type="primary"
          icon="el-icon-refresh-right"
          class="btnItem"
        >
          重置
        </el-button>
      </div>
    </div>
    <el-table
      :data="tableData"
      :row-class-name="tableRowClassName"
      :header-cell-style="{
        'text-align': 'center',
        background: '  #2483b3',
        color: 'white',
      }"
      :row-style="{ 'text-align': 'center' }"
      style="width: 100%"
    >
      <!-- <el-table-column type="selection" width="55"> </el-table-column> -->
      <el-table-column prop="date" label="序号" />
      <!-- <el-table-column type="index" label="序号" > -->
      <!-- <template slot-scope="scope">
          {{ (offset - 1) * limit + scope.$index + 1 }}
        </template>
      </el-table-column> -->
      <el-table-column prop="name" label="账号" />
      <el-table-column prop="address" label="用户名" />
      <el-table-column prop="address1" label="姓名" />
      <el-table-column prop="address2" label="手机号" />
      <el-table-column prop="address3" label="性别" />
      <el-table-column prop="address4" label="头像" />
      <el-table-column prop="address5" label="出生日期" />
      <el-table-column prop="address6" label="证件类型" />
      <el-table-column prop="address7" label="证件号" />

      <el-table-column label="操作">
        <template slot-scope="scope">
          <!-- <el-button type="text" size="small">编辑</el-button> -->
          <el-button
            type="text"
            size="small"
            @click="handleClick(scope.row)"
          >
            详情
          </el-button>
        </template>
      </el-table-column>
    </el-table>
    <div class="footer">
      <div>共6条记录 第1/6页</div>
      <div>
        <el-pagination
          background
          layout="  prev, pager, next,sizes, jumper"
          :page-size="10"
          :total="100"
        />
      </div>
      <!-- <div>页码</div> -->
    </div>
    <!-- 新增弹框 -->

    <hotand-news-dialog
      :is-show-info="isShowAdd"
      @close="closeAdd"
    />
  </div>
</template>

<script>
// 组件
import categoryAddDialog from '../../components/mycomponent/dialog/categoryAddDialog.vue'
import BannerAddDialog from '../../components/mycomponent/dialog/move/bannerAddDialog.vue'
import HotandNewsDialog from '../../components/mycomponent/dialog/move/hotandNewsDialog.vue'
// 逻辑
import { tableRowClassName } from '../../utils/myUtils/changeTableTr'

export default {
  components: {
    categoryAddDialog,
    BannerAddDialog,
    HotandNewsDialog
  },
  data() {
    return {
      isShowAdd: false, // 显示新增功能
      tableData: [
        {
          date: '1',
          name: 'reguser0001',
          address: '测试用户1',
          address1: '注册用户',
          address2: '13906291201',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        },
        {
          date: '2',
          name: 'reguser0002',
          address: '测试用户2',
          address1: '注册用户2',
          address2: '13906291202',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        },
        {
          date: '3',
          name: 'reguser0003',
          address: '测试用户3',
          address1: '注册用户3',
          address2: '13906291203',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        },
        {
          date: '4',
          name: 'reguser0004',
          address: '测试用户4',
          address1: '注册用户4',
          address2: '13906291204',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        },
        {
          date: '5',
          name: 'reguser0005',
          address: '测试用户5',
          address1: '注册用户5',
          address2: '13954321204',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        },
        {
          date: '6',
          name: 'reguser0006',
          address: '测试用户6',
          address1: '注册用户6',
          address2: '15423213451',
          address3: '男',
          address4: '',
          address5: '*************',
          address6: '身份证',
          address7: '*************'
        }
      ],
      options: [],
      value: ''
    }
  },
  methods: {
    tableRowClassName: tableRowClassName,
    closeAdd() {
      this.isShowAdd = false
    },
    addCategory() {
      this.isShowAdd = true
    }
  }
}
</script>

<style lang="scss" scoped>
.product_container {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: auto;

  .productData {
    width: 100%;
    display: flex;
    justify-content: center;

    .middle {
      margin: 0 30px;
    }
  }

  .productFun {
    margin: 0px 0px 30px;
    display: flex;
    justify-content: space-between;

    .productInput {
      display: flex;
      align-items: center;

      .inputBox {
        margin: 0 50px 0 10px;
      }
    }

    .productBtn {
      .btnItem {
        margin-right: 10px;
        border-radius: 5px;
        // height: 32px;
        // width: 84px;
        font-size: 16px;
      }

    }
  }

  .footer {
    display: flex;
    justify-content: space-between;
    color: #6666;
    margin: 30px 10px;
  }
}
</style>