mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 22:06:45 +08:00
feat:增加项目内学员
This commit is contained in:
@@ -244,14 +244,14 @@
|
||||
<div v-if="i < 11">
|
||||
<div class="chose">
|
||||
{{ item.realName }}
|
||||
<div class="ch" @click="stuDel(i)"></div>
|
||||
<div class="ch" @click="memberDel(i)"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div v-else>
|
||||
<div v-if="person">
|
||||
<div class="chose">
|
||||
{{ item.realName }}
|
||||
<div class="ch" @click="stuDel(i)"></div>
|
||||
<div class="ch" @click="memberDel(i)"></div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -536,13 +536,23 @@ const getStu = () => {
|
||||
});
|
||||
};
|
||||
getStu();
|
||||
const projectChangePagination = () => {};
|
||||
const projectChangePagination = (page) => {
|
||||
procurrentPage.value = page;
|
||||
getStu();
|
||||
};
|
||||
function onProjectSelectChange(e, l) {
|
||||
console.log("eeeee", e, l);
|
||||
projectSelectKeys.value = e;
|
||||
selectsData.value.projectMemberList = l;
|
||||
}
|
||||
|
||||
function memberDel(i) {
|
||||
projectSelectKeys.value = projectSelectKeys.value.filter(
|
||||
(e) => e !== selectsData.value.projectMemberList[i].id
|
||||
);
|
||||
selectsData.value.projectMemberList.splice(i, 1);
|
||||
}
|
||||
|
||||
const person = ref(false);
|
||||
// const dept =ref(false)
|
||||
const group = ref(false);
|
||||
@@ -889,7 +899,9 @@ function handleStageOk() {
|
||||
deptIds: selectsData.value.deptList?.map((e) => e.id),
|
||||
stageId: selectsData.value.stageId,
|
||||
groupIds: selectsData.value.groupList?.map((e) => e.id),
|
||||
studentList: selectsData.value.studentList,
|
||||
studentList: selectsData.value.studentList.concat(
|
||||
selectsData.value.projectMemberList
|
||||
),
|
||||
groupName: props.groupName,
|
||||
groupId: props.groupId,
|
||||
}).then(() => {
|
||||
@@ -940,6 +952,7 @@ watch(visiable, () => {
|
||||
studentList: [],
|
||||
deptList: [],
|
||||
groupList: [],
|
||||
projectMemberList: [],
|
||||
};
|
||||
stuReset();
|
||||
auditReset();
|
||||
|
||||
@@ -327,7 +327,7 @@
|
||||
<div class="taskmain">任务大纲</div>
|
||||
|
||||
<router-link
|
||||
:to="{ path: '/leveladddetail', query:{ routerId: routerId } }"
|
||||
:to="{ path: '/leveladddetail', query: { routerId: routerId } }"
|
||||
class="editright"
|
||||
v-if="checkPer(permissions)"
|
||||
>
|
||||
@@ -340,7 +340,9 @@
|
||||
</div>
|
||||
<!-- 无数据显示快速创建 -->
|
||||
<div v-show="!taskSyllabus.length">
|
||||
<router-link :to="{ path: '/leveladddetail', query:{ routerId: routerId } }">
|
||||
<router-link
|
||||
:to="{ path: '/leveladddetail', query: { routerId: routerId } }"
|
||||
>
|
||||
<div
|
||||
class="taskbox"
|
||||
style="background: linear-gradient(180deg, #fef3dd, #fffaf0)"
|
||||
@@ -1364,7 +1366,7 @@ import TestManage from "../../components/drawers/TestManage";
|
||||
import FaceManage from "../../components/drawers/FaceManage";
|
||||
import WorkManage from "../../components/drawers/WorkManage";
|
||||
import SeeStu from "../../components/drawers/SeeStu";
|
||||
import { useRouter,useRoute } from "vue-router";
|
||||
import { useRouter, useRoute } from "vue-router";
|
||||
import { getRouterOverview } from "@/api/indexLearningPath";
|
||||
import { handleLearnPath } from "../../api/index1";
|
||||
import { GetRouterDetail } from "@/api/indexTask";
|
||||
@@ -2552,7 +2554,7 @@ export default {
|
||||
// console.log("state.taskSyllabus", state.taskSyllabus);
|
||||
router.push({
|
||||
path: "/leveladddetail",
|
||||
query:{ routerId: state.routerId }
|
||||
query: { routerId: state.routerId },
|
||||
});
|
||||
// if (state.taskSyllabus.length===1) {
|
||||
// if(state.taskSyllabus[0].taskList.length===0){
|
||||
@@ -2597,6 +2599,7 @@ export default {
|
||||
"&id=" +
|
||||
item.projectTaskId;
|
||||
}
|
||||
if (item.type == 3) return message.error("请在pc端完成");
|
||||
|
||||
if (item.type == 4) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
|
||||
@@ -4719,7 +4719,7 @@ export default {
|
||||
"&id=" +
|
||||
item.projectTaskId;
|
||||
}
|
||||
|
||||
if (item.type == 3) return message.error("请在pc端完成");
|
||||
if (item.type == 4) {
|
||||
let date1 = new Date(item.endTime).getTime();
|
||||
let date2 = new Date().getTime();
|
||||
|
||||
Reference in New Issue
Block a user