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