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:
@@ -994,7 +994,15 @@
|
||||
</div>
|
||||
</a-modal>
|
||||
<!-- 添加学员抽屉 -->
|
||||
<path-add-stu v-model:Stuvisible="Stuvisible" />
|
||||
<!-- <path-add-stu v-model:Stuvisible="Stuvisible" /> -->
|
||||
<!-- 添加学员抽屉 -->
|
||||
<proj-check-ship
|
||||
v-model:ProjCheckvisible="Stuvisible"
|
||||
:selectProjectId="routerId"
|
||||
v-model:addAuthList="addAuthList"
|
||||
:authClassify="authClassify"
|
||||
classify="addstudent"
|
||||
/>
|
||||
<!-- 导入学员抽屉 -->
|
||||
<imp-stu v-model:AddImpStuvisible="AddImpStuvisible" />
|
||||
<!-- 学员管理查看抽屉 -->
|
||||
@@ -1191,10 +1199,11 @@
|
||||
</div>
|
||||
</template>
|
||||
<script>
|
||||
import { ref, reactive, toRefs, onMounted, createVNode } from "vue";
|
||||
import { ref, reactive, toRefs, onMounted, createVNode, watch } from "vue";
|
||||
import { ExclamationCircleOutlined } from "@ant-design/icons-vue";
|
||||
import { message, Modal } from "ant-design-vue";
|
||||
import PathAddStu from "../../components/drawers/pathStuAdd";
|
||||
// import PathAddStu from "../../components/drawers/pathStuAdd";
|
||||
import ProjCheckShip from "../../components/drawers/ProjCheckPower";
|
||||
import ImpStu from "../../components/drawers/AddLevelImportStu";
|
||||
import CheckStu from "../../components/drawers/CheckStu";
|
||||
import FaceStu from "../../components/drawers/FaceStu";
|
||||
@@ -1216,7 +1225,8 @@ import { editRoutered } from "../../api/indexLearningPath";
|
||||
export default {
|
||||
name: "LevelAdd",
|
||||
components: {
|
||||
PathAddStu,
|
||||
// PathAddStu,
|
||||
ProjCheckShip,
|
||||
ImpStu,
|
||||
CheckStu,
|
||||
FaceStu,
|
||||
@@ -1371,6 +1381,9 @@ export default {
|
||||
// },
|
||||
],
|
||||
tableData: [],
|
||||
|
||||
authClassify: 3,
|
||||
addAuthList: [],
|
||||
});
|
||||
|
||||
const levelList = reactive({
|
||||
@@ -2055,6 +2068,30 @@ export default {
|
||||
message.warning("删除失败");
|
||||
});
|
||||
};
|
||||
|
||||
//添加学员
|
||||
watch(
|
||||
() => state.addAuthList,
|
||||
(res) => {
|
||||
console.log("res", res, state.addAuthList);
|
||||
let obj = {
|
||||
deptList: res[1],
|
||||
groupList: res[2],
|
||||
routerId: state.routerId,
|
||||
studentList: res[0],
|
||||
};
|
||||
console.log("obj", obj);
|
||||
api
|
||||
.addStudent(obj)
|
||||
.then((res) => {
|
||||
console.log("添加学员成功", res);
|
||||
message.success("添加学员成功");
|
||||
})
|
||||
.catch((err) => {
|
||||
console.log("添加学员失败", err);
|
||||
});
|
||||
}
|
||||
);
|
||||
return {
|
||||
...toRefs(state),
|
||||
...toRefs(levelList),
|
||||
|
||||
Reference in New Issue
Block a user