updateGroup.vue 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <template>
  2. <view class="page">
  3. <uni-nav-bar :fixed="true" background-color="#FFE05C" :border="false" :statusBar="true" left-icon="left"
  4. title="修改分组" @clickLeft="back" />
  5. <view>
  6. <u--form labelPosition="left" :model="form" :rules="rules" ref="uForm">
  7. <u-form-item prop="groupName" borderBottom>
  8. <view class="item">
  9. <text class="key">分组名称</text>
  10. <view class="flex-row input">
  11. <u--input v-model="form.groupName" placeholder="请输入分组名称" border="none"></u--input>
  12. </view>
  13. </view>
  14. </u-form-item>
  15. <u-form-item prop="userInfo.sex" borderBottom>
  16. <view class="item">
  17. <text class="key">负责人</text>
  18. <view class="flex-row input" @click="openSelectPerson">
  19. <u--input disabled placeholder="请选择负责人" border="none"></u--input>
  20. <u-icon name="arrow-right"></u-icon>
  21. </view>
  22. </view>
  23. </u-form-item>
  24. </u--form>
  25. </view>
  26. <view class="addGroup">
  27. <text>修改</text>
  28. </view>
  29. <uni-popup ref="selectPersonPopup" type="bottom">
  30. <view class="selectMemberPopup">
  31. <view class="flex-row justify-around popupTitle">
  32. <text @click="closePopup('selectPersonPopup')">取消</text>
  33. <text>选择分组负责人</text>
  34. <text>确定</text>
  35. </view>
  36. <view class="scroll-y-view">
  37. <scroll-view scroll-y class="scroll-y1" >
  38. <view class="flex-row justify-between member" v-for="item in 10">
  39. <view class="flex-row">
  40. <text class="name">张三</text>
  41. <text class="name">1736500000</text>
  42. </view>
  43. <u-icon name="checkbox-mark" color="#FFE05C" size="24"></u-icon>
  44. </view>
  45. </scroll-view>
  46. </view>
  47. </view>
  48. </uni-popup>
  49. </view>
  50. </template>
  51. <script>
  52. export default {
  53. components: {
  54. },
  55. data() {
  56. return {
  57. height: '',
  58. form:{
  59. groupName:''
  60. },
  61. rules: {
  62. 'groupName': {
  63. type: 'string',
  64. required: true,
  65. min:1,
  66. message: '请输入分组名称',
  67. trigger: ['blur', 'change']
  68. }
  69. },
  70. }
  71. },
  72. onLoad(e) {
  73. let sysInfo = uni.getSystemInfoSync()
  74. this.height = sysInfo.windowHeight - 120 + 'px' //除标题栏栏外的屏幕可用高度
  75. },
  76. methods: {
  77. back() {
  78. uni.navigateBack({
  79. delta: 1
  80. })
  81. },
  82. openSelectPerson(){
  83. this.$refs.selectPersonPopup.open()
  84. },
  85. closePopup(name){
  86. this.$refs[name].close()
  87. }
  88. }
  89. }
  90. </script>
  91. <style lang="scss" scoped>
  92. @import './index.rpx.css';
  93. </style>