|
|
@@ -73,57 +73,7 @@
|
|
|
:destroy-on-close="true"
|
|
|
class="groupInfo"
|
|
|
>
|
|
|
- <div class="group" v-for="group in userGroupInfo" :key="group.userGroupId">
|
|
|
- <div class="group-name">
|
|
|
- <span
|
|
|
- style="font-weight: 400; font-size: 16px; color: rgba(0, 0, 0, 0.88); line-height: 22px"
|
|
|
- >
|
|
|
- {{ group.name }}
|
|
|
- </span>
|
|
|
- <span
|
|
|
- style="
|
|
|
- margin-left: 4px;
|
|
|
- font-weight: 400;
|
|
|
- font-size: 12px;
|
|
|
- color: rgba(0, 0, 0, 0.88);
|
|
|
- line-height: 17px;
|
|
|
- "
|
|
|
- >
|
|
|
- 共
|
|
|
- <span style="color: #1777ff">{{ group.total }}</span>
|
|
|
- 人
|
|
|
- </span>
|
|
|
- <div
|
|
|
- class="user-info"
|
|
|
- :class="{ expanded: group.isExpand }"
|
|
|
- :style="
|
|
|
- !group.isExpand
|
|
|
- ? 'max-height:86px;overflow-y:hidden;'
|
|
|
- : 'max-height:100%;overflow-y:auto'
|
|
|
- "
|
|
|
- style="display: flex"
|
|
|
- >
|
|
|
- <div
|
|
|
- class="left"
|
|
|
- style="display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; flex: 1"
|
|
|
- >
|
|
|
- <el-tag type="primary" v-for="user in group.userList" :key="user.userId">
|
|
|
- {{ user.loginName }}-{{ user.nickname }}
|
|
|
- </el-tag>
|
|
|
- </div>
|
|
|
- <div class="right" style="width: 50px; margin-top: 20px">
|
|
|
- <span
|
|
|
- @click="toggleExpand(group)"
|
|
|
- style="display: flex; cursor: pointer; align-items: center"
|
|
|
- >
|
|
|
- {{ group.isExpand ? '收起' : '展开' }}
|
|
|
- <img v-if="group.isExpand" src="@/assets/icons/arrow_top.png" />
|
|
|
- <img v-else src="@/assets/icons/arrow_bottom.png" />
|
|
|
- </span>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
+ <Group :userGroupInfo="userGroupInfo" />
|
|
|
</el-dialog>
|
|
|
<el-dialog
|
|
|
v-model="userInfo"
|
|
|
@@ -142,6 +92,7 @@
|
|
|
<script setup lang="ts">
|
|
|
import { onMounted, ref, reactive, watch, watchEffect } from 'vue';
|
|
|
import SelectTree from '../persongroup/components/SelectTree.vue';
|
|
|
+import Group from './Group.vue';
|
|
|
import { recipientTypeName } from '../constant';
|
|
|
import { ToPushObjectqueryUserGroupList, queryUserGroupDetail } from '../api/index';
|
|
|
import type { FormInstance } from 'element-plus';
|
|
|
@@ -201,6 +152,7 @@ const queryGroupInfo = (groupList) => {
|
|
|
userGroupInfo.value = res.map((group) => ({
|
|
|
...group,
|
|
|
isExpand: false,
|
|
|
+ isHidden: false,
|
|
|
}));
|
|
|
});
|
|
|
};
|
|
|
@@ -224,9 +176,6 @@ const getChildValue = () => {
|
|
|
: ruleForm.customUserList.map((item) => item.userId),
|
|
|
};
|
|
|
};
|
|
|
-const toggleExpand = (group) => {
|
|
|
- group.isExpand = !group.isExpand;
|
|
|
-};
|
|
|
const handleCancle = () => {
|
|
|
userInfo.value = false;
|
|
|
};
|