<template>
  <div class="manage-container">
    <vab-query-form>
      <el-input v-model="input" placeholder="传感器名称"></el-input>
      <el-button type="primary" icon="el-icon-search"></el-button>
      <el-button type="primary">创建组态</el-button>
    </vab-query-form>
    <el-row :gutter="20">
      <el-col :span="6">
        <div class="list">
          <div class="id">
            <el-checkbox v-model="checked"></el-checkbox>
            <el-col>
              <span class="id-list">组态</span>
              <span class="id-list">ID:218621000</span>
            </el-col>
          </div>
          <div class="button-list">
            <el-button type="text">发布</el-button>
            <el-button type="text">运行</el-button>
            <el-button type="text">{{ $t('defalult.bj') }}</el-button>
            <el-button type="text">分享</el-button>
            <el-button type="text">下架</el-button>
            <el-button type="text">设置</el-button>
            <el-button type="text">{{ $t('device.fz') }}</el-button>
            <el-button type="text">{{ $t('defalult.sc') }}</el-button>
          </div>
        </div>
      </el-col>
      <el-col :span="6"></el-col>
      <el-col :span="6"></el-col>
      <el-col :span="6"></el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: 'Group',
  data() {
    return {
      input: '',
      checked: true,
    };
  },
};
</script>

<style lang="scss" scoped>
.manage-container {
  width: 100%;

  .el-col-6 {
    padding: 30px;

    .list {
      padding: 20px;
      border: 1px solid #e3e3e3;
      border-radius: 4px;

      .id {
        display: flex;
        justify-content: space-between;
        align-items: center;

        .id-list {
          display: block;
          margin: 10px 0;
          font-size: 16px;
        }
      }
    }
    .button-list {
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      text-align: center;

      .el-button {
        width: 25%;
        margin: 0;
      }
    }
  }
}
</style>
