mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-12 20:36:45 +08:00
去掉添加学员提交限制
This commit is contained in:
@@ -352,7 +352,12 @@ const props = defineProps({
|
||||
type: Number,
|
||||
default: null,
|
||||
},
|
||||
activeKey1: {
|
||||
type: String,
|
||||
default: null,
|
||||
},
|
||||
});
|
||||
console.log("props.activeKey1" + props.activeKey1)
|
||||
// 获取项目学员;
|
||||
const procurrentPage = ref(1);
|
||||
const projectList = ref([]);
|
||||
@@ -775,8 +780,10 @@ const submitAuth = () => {
|
||||
};
|
||||
|
||||
function handleStageOk() {
|
||||
debugger
|
||||
// 判断添加人数是否已超过限制人数 限制 = 本次添加的人 + 原有的人
|
||||
if (props.type === 1) {
|
||||
if (props.groupMemberCount !== null) { // 只有添加组员的时候判断
|
||||
let selectMember = 0;
|
||||
if (activeKey.value === 4) { // 项目内选人
|
||||
selectMember = selectsData.value.projectMemberList.length
|
||||
@@ -801,6 +808,7 @@ function handleStageOk() {
|
||||
message.warning("部分学员已经有小组,再次添加会被添加到当前小组.");
|
||||
}
|
||||
}
|
||||
}
|
||||
stageVisible.value = false;
|
||||
visiable.value = false;
|
||||
emit("finash", false);
|
||||
|
||||
@@ -256,6 +256,10 @@ const props = defineProps({
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
activeKey:{
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
id: String,
|
||||
columns: {
|
||||
type: Array,
|
||||
@@ -453,6 +457,8 @@ function exportTaskStuRouter() {
|
||||
}
|
||||
|
||||
onMounted(() => {
|
||||
debugger
|
||||
console.log("props.activeKey1" + props.activeKey1)
|
||||
getStuList();
|
||||
});
|
||||
watch(props.isgetStudent, () => {
|
||||
|
||||
@@ -3437,6 +3437,7 @@ export default defineComponent({
|
||||
]);
|
||||
// 删除文件返回参数
|
||||
const changevalue = (e) => {
|
||||
debugger
|
||||
let arr = state.attach.split(",");
|
||||
let newarr = [];
|
||||
for (let i = 0; i < arr.length; i++) {
|
||||
@@ -4430,6 +4431,7 @@ export default defineComponent({
|
||||
state.lookCourseModal = false;
|
||||
};
|
||||
const handleLook = async (itm, type) => {
|
||||
debugger
|
||||
if (type === "1") {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -757,6 +757,7 @@
|
||||
:permissions="permissions"
|
||||
:type="1"
|
||||
:id="projectId"
|
||||
:activeKey1="activeKey1"
|
||||
:columns="stuColumns"
|
||||
:stage="stage"
|
||||
:visable="tabFlag"
|
||||
|
||||
Reference in New Issue
Block a user