<template>
  <div class="page_editRole">
    <div class="editRoleTitle">
      <i class="iconfont icon-zuojiantou jiantou"></i>
      <span class="titleName">新增角色</span>
      <span style="color:#F44746">删除角色</span>
    </div>
    <div class="roleDescription">
      <van-field
        v-model="text"
        required
        label="角色名称"
        placeholder="请填写角色名称"
      />
      <van-field
        v-model="text1"
        label="角色描述"
        placeholder="请填写角色描述"
      />
    </div>
    <div class="disposeBox">
      <p class="disposeTitle">应用权限配置</p>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S1.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">患者中心</p>
            <p class="disposeTip">新增患者、患者管理</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S2.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">排班管理</p>
            <p class="disposeTip">排班管理、排班提醒</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S3.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">签到体重</p>
            <p class="disposeTip">签到状态、透前透后数据</p>
          </div>
          <van-switch v-model="checked" size="24" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S4.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">透析管理</p>
            <p class="disposeTip">透析医嘱、透析记录、透析监测</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S12.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">库存管理</p>
            <p class="disposeTip">入库单、出库单、退库单、库存查询...</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S5.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">质控管理</p>
            <p class="disposeTip">患者统计分析、指标统计分析</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S6.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">院感管理</p>
            <p class="disposeTip">感染管理、消毒管理</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S7.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">血管通路</p>
            <p class="disposeTip">内篓管理、数据记录</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S8.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">慢病管理</p>
            <p class="disposeTip">患者院外监测、患者随访</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S9.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">SCRM</p>
            <p class="disposeTip">品牌建设、营销工具</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S10.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">分销商城</p>
            <p class="disposeTip">一键开店、分销商品</p>
          </div>
          <van-switch v-model="checked" size="24" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S11.png" alt="" />
        </div>
        <div class="disposeTxt">
          <div>
            <p class="disposeName">设备管理</p>
            <p class="disposeTip">设备登记、维修记录</p>
          </div>
          <van-icon class="arrow" name="arrow" />
        </div>
      </div>
      <div class="disposeOne">
        <div class="disposeImg">
          <img src="../../assets/images/S13.png" alt="" />
        </div>
        <div class="disposeTxt noTxt">
          <div>
            <p class="disposeName">客服中心</p>
            <p style="visibility: hidden;">1</p>
          </div>
          <van-switch v-model="checked" size="24" />
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      text1: "",
      checked: false
    };
  }
};
</script>

<style lang="scss" scoped>
.page_editRole {
  height: 100%;
  overflow-y: auto;
  background: #fafafa;
  .editRoleTitle {
    background: #fff;
    padding: 0 1.125rem;
    height: 3.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .jiantou {
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 3rem;
  }
  .titleName {
    font-size: 1.125rem;
    font-weight: 600;
  }
  .roleDescription {
    margin: 0.875rem 0;
    .van-cell {
      font-size: 1rem;
    }
  }
  .disposeBox {
    margin-bottom: 1.25rem;
    .disposeTitle {
      height: 2.8125rem;
      line-height: 2.8125rem;
      background: rgba(255, 255, 255, 1);
      box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
      font-weight: bold;
      color: #313234;
      padding-left: 1.125rem;
    }
    .disposeOne {
      display: flex;
      justify-content: space-between;
      height: 4.0625rem;
      background: #fff;
      .disposeImg {
        width: 12%;
        padding-left: 1.125rem;
        padding-top: 1.125rem;
        img {
          width: 1.5rem;
          height: 1.5rem;
        }
      }
      .disposeTxt {
        width: 86%;
        box-shadow: 0px 1px 0px 0px rgba(0, 0, 0, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding-right: 0.875rem;
      }
      .noTxt {
        box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.1);
      }
      .disposeName {
        font-size: 1rem;
        color: #313234;
        margin-top: 0.375rem;
      }
      .disposeTip {
        font-size: 0.8125rem;
        color: #9b9b9b;
        margin-top: 0.375rem;
      }
      .arrow {
        color: #9f9f9f;
      }
    }
  }
}
::-webkit-scrollbar {
  width: 0;
}
</style>
<style lang="scss">
.page_editRole {
  .roleDescription {
    .van-cell__value {
      display: flex;
      align-items: center;
    }
  }
}
</style>
