Przeglądaj źródła

fix: 企业分组管理样式调整

Signed-off-by: tangshizhe <48740614+tangshizhe@users.noreply.github.com>
tangshizhe 6 miesięcy temu
rodzic
commit
6a187ca622

+ 7 - 8
apps/mobile/src/views/entgroup/detail.vue

@@ -81,15 +81,13 @@ export default {
       if (code === 0) {
         if (type === 'del') {
           this.$toast.success('删除成功')
-        }
-        else {
+        } else {
           this.$toast.success('保存成功')
         }
         setTimeout(() => {
           this.$router.back()
         }, 1000)
-      }
-      else {
+      } else {
         this.$toast.fail(msg)
       }
     },
@@ -106,10 +104,9 @@ export default {
       if (this.groupNameValue === '') {
         this.errorMessageText = '分组名称不能为空'
         this.isConfirmButtonDisabled = true
-      }
-      else {
+      } else {
         const exists = this.entGroupList.some(
-          item => item.name === this.groupNameValue
+          (item) => item.name === this.groupNameValue
         )
         if (exists) {
           this.errorMessageText = '分组名称已存在'
@@ -124,11 +121,12 @@ export default {
 <style lang="scss" scoped>
 .ent-group-detail {
   .van-cell {
+    margin-top: 8px;
     flex-direction: column;
     ::v-deep {
       .van-cell__title {
         font-size: 12px;
-        color: #171826;
+        color: #5f5e64;
         line-height: 16px;
       }
       .van-field__body {
@@ -147,6 +145,7 @@ export default {
         position: absolute;
         right: 0;
         top: 8px;
+        font-size: 14px;
       }
       .van-field__word-num {
         color: #2abed1;

+ 8 - 9
apps/mobile/src/views/entgroup/index.vue

@@ -91,15 +91,13 @@ export default {
       if (code === 0) {
         loading.clear()
         this.groupList = data?.groupUserArr || []
-      }
-      else {
+      } else {
         loading.clear()
         this.$toast('获取分组列表失败')
       }
     },
     setGroupEvent(data) {
-      if (data.name === '默认分组')
-        return
+      if (data.name === '默认分组') return
       this.$router.push({
         path: '/entgroup/detail',
         query: {
@@ -116,10 +114,9 @@ export default {
       if (this.groupingName === '') {
         this.errorMessageText = '分组名称不能为空'
         this.isConfirmButtonDisabled = true
-      }
-      else {
+      } else {
         const exists = this.groupList.some(
-          item => item.name === this.groupingName
+          (item) => item.name === this.groupingName
         )
         if (exists) {
           this.errorMessageText = '分组名称已存在'
@@ -137,8 +134,7 @@ export default {
         this.groupingName = ''
         this.showAddGroupingDialog = false
         this.getMyFollowList()
-      }
-      else {
+      } else {
         this.$toast('新增分组失败')
       }
     },
@@ -152,6 +148,9 @@ export default {
 
 <style lang="scss" scoped>
 .ent-group-index {
+  .van-cell-group {
+    margin-top: 8px;
+  }
   .van-cell {
     padding: 15px 16px;
     &::after {