index.vue 2.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. <template>
  2. <div class="page_editStaff">
  3. <div class="editStaffTitle">
  4. <i class="iconfont icon-zuojiantou jiantou"></i>
  5. <span class="titleName">编辑员工</span>
  6. <p>保存</p>
  7. </div>
  8. <div class="editStaffTip">必填</div>
  9. <div class="staffBox">
  10. <van-field v-model="text" label="姓名" clearable placeholder="请填写姓名" />
  11. <van-field v-model="tel" type="tel" label="手机号" clearable placeholder="请填写手机号" />
  12. <van-cell class="newCell">
  13. <!-- 使用 title 插槽来自定义标题 -->
  14. <template slot="title">
  15. <span class="custom-title">角色</span>
  16. <div style="width:76%;margin-left:3.3rem">
  17. <van-checkbox-group v-model="result">
  18. <van-checkbox style="width: 30%;" name="a" shape="square">医生</van-checkbox>
  19. <van-checkbox style="width: 30%;" name="b" shape="square">护士</van-checkbox>
  20. <van-checkbox style="width: 30%;" name="c" shape="square">运营</van-checkbox>
  21. <van-checkbox style="width: 30%;" name="d" shape="square">库存</van-checkbox>
  22. <van-checkbox style="width: 30%;" name="e" shape="square">院长</van-checkbox>
  23. <van-checkbox style="width: 40%;" name="f" shape="square">子管理员</van-checkbox>
  24. </van-checkbox-group>
  25. </div>
  26. </template>
  27. </van-cell>
  28. </div>
  29. <div class="editStaffTip">选填</div>
  30. <div class="staffBox">
  31. <van-field v-model="text" label="职位" placeholder="请填写" />
  32. </div>
  33. <div class="stop">禁用该员工账号</div>
  34. </div>
  35. </template>
  36. <script>
  37. export default {
  38. data() {
  39. return {
  40. result: []
  41. };
  42. }
  43. };
  44. </script>
  45. <style lang="scss" scoped>
  46. .page_editStaff {
  47. height: 100%;
  48. overflow: hidden;
  49. background: #fafafa;
  50. .editStaffTitle {
  51. height: 3.125rem;
  52. display: flex;
  53. align-items: center;
  54. justify-content: space-between;
  55. width: 100%;
  56. padding: 0 1.125rem;
  57. background: #fff;
  58. }
  59. .jiantou {
  60. font-size: 1.5rem;
  61. font-weight: 600;
  62. margin-right: 1.25rem;
  63. }
  64. .titleName {
  65. font-size: 1.125rem;
  66. font-weight: 600;
  67. }
  68. .editStaffTip {
  69. height: 1.875rem;
  70. line-height: 1.875rem;
  71. font-size: 0.75rem;
  72. padding-left: 0.875rem;
  73. color: #989898;
  74. }
  75. .staffBox {
  76. .van-cell {
  77. font-size: 1rem;
  78. }
  79. .newCell {
  80. padding-right: 0;
  81. }
  82. }
  83. .van-cell__title {
  84. display: flex;
  85. }
  86. .van-checkbox-group {
  87. display: flex;
  88. flex-wrap: wrap;
  89. }
  90. .van-checkbox {
  91. margin-bottom: 0.625rem;
  92. }
  93. .stop {
  94. height: 2.8125rem;
  95. line-height: 2.8125rem;
  96. text-align: center;
  97. background: #fff;
  98. width: 100%;
  99. margin-top: 0.875rem;
  100. }
  101. }
  102. </style>
  103. <style lang="scss">
  104. .page_editStaff {
  105. .van-cell__value {
  106. display: flex;
  107. align-items: center;
  108. }
  109. }
  110. </style>