diff --git a/src/components/drawers/SubsetManage.vue b/src/components/drawers/SubsetManage.vue index 0d63774c..b4f1f14d 100644 --- a/src/components/drawers/SubsetManage.vue +++ b/src/components/drawers/SubsetManage.vue @@ -116,7 +116,12 @@ export default { // const showAddGroup = () => { // state.Avisible = true; // }; - + function uuid() { + const temp_url = URL.createObjectURL(new Blob()); + const uuid = temp_url.toString(); + URL.revokeObjectURL(temp_url); + return uuid.substr(uuid.lastIndexOf("/") + 1); + } //展示要增加的小组 const showAddGroup = () => { if (!state.groupNum) return message.warning("请输入要添加的小组数"); @@ -125,7 +130,7 @@ export default { for (let i = 0; i < state.groupNum; i++) { let obj = { key: i, - groupName: "第" + (i + 1) + "小组", + groupName: uuid(), capacity: state.peopleNum, }; arr.push(obj); diff --git a/src/components/project/OrgClassCheck.vue b/src/components/project/OrgClassCheck.vue index c4e54668..f653c41f 100644 --- a/src/components/project/OrgClassCheck.vue +++ b/src/components/project/OrgClassCheck.vue @@ -36,7 +36,7 @@