<el-main>
  <!--面包屑-->
  <breadcrumb-component ></breadcrumb-component>
  <el-container class="detail-container">

    <el-container>

    <el-main class="inner-main"><div class="access-select-result">
      <div>
        已选报表：
        <el-tag >{{id?name:''}}</el-tag>
      </div>
      <div>
        已选用户：
        <el-tag
          v-for="(tag, index) in kpiRelUsers"
          :key="tag.userId"
          @close="removeUser(userIds,index)"
          closable>
          {{tag.nickname}}
        </el-tag>
      </div>
    </div>
      <!--下面是新建-->
      <div class="multiple-select-container" :class="id?'signal-select-container':''">
        <div>
          <div class="multiple-select-title">
            <span>用户名称</span>
            <el-input
              placeholder="输入关键字进行过滤"
              v-model="filterUserText">
            </el-input></div>
          <div class="multiple-select-button"><span @click="selectUserAll(true)" class="multiple-select-all">全选</span><span @click="selectUserAll(false)" class="multiple-select-all">全不选</span></div>
          <div class="multiple-select-item">
            <el-checkbox-group v-model="userIds">
              <el-checkbox :key="index" v-for="(report, index) in userOptionsFiltered" :label="report.id">{{report.name}}</el-checkbox>
            </el-checkbox-group>
          </div>
        </div>
      </div>


      <div class="multiple-select-container">
          <span>KPI设置</span>
      </div>
      <div class="tabs-container">
        <el-tabs v-model="currentUser" type="card" >
          <el-tab-pane
            v-for="(item, index) in kpiRelUsers"
            :key="item.userId"
            :label="item.nickname"
            :name="item.userId"
          >
            <div class="select-button">
              <span class="select-all" @click="selectKpiAll(item,true)">全选</span>
              <span class="select-all" @click="selectKpiAll(item,false)">全不选</span>
            </div>

            <div class="">
              <el-checkbox-group v-model="item.kpiIds">
                <el-checkbox :key="index" v-for="(kpi, index) in kpis" :label="kpi.kpiId">{{kpi.rname}}</el-checkbox>
              </el-checkbox-group>
            </div>
          </el-tab-pane>
        </el-tabs>

      </div>

      <div class="button-container-left">
        <el-button type="primary" @click="reportRelUsers">保存</el-button>
        <el-button   @click="goBack">取消并返回</el-button>
      </div>
      <!--弹框-->
    </el-main>
    </el-container>
  </el-container>
</el-main>








