Ver Fonte

Merge remote-tracking branch 'origin/master'

mao há 1 ano atrás
pai
commit
4cfda23d79

+ 9 - 0
components/dialog-selectInviteUser/dialog-selectInviteUser.vue

@@ -120,6 +120,15 @@
 
 	function handleClickUserName(item) {
 		selectedUserList.value.push(item);
+		for(let i =0;i<selectedUserList.value.length;i++) {
+			if(userId.value == selectedUserList.value[i].userId) {	
+				handleRemoveUserName(item)
+				uni.showToast({
+					icon: "none",
+					title: "邀请报工不能选择自己"
+				})
+			}
+		}
 		userList.value = [];
 	}