|
@@ -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 {
|