mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-19 07:46:46 +08:00
案例推荐选人数
This commit is contained in:
@@ -261,7 +261,7 @@
|
||||
<div class="wordsColor" @click="edit('article')">去修改>></div>
|
||||
</div>
|
||||
<div class="remModal-words" style="margin-bottom: 30px;">
|
||||
<div>您已选择学员:<span class="wordsColor">1111</span> 人</div>
|
||||
<div>您已选择学员:<span class="wordsColor">{{ count }}</span> 人</div>
|
||||
<div class="wordsColor" @click="edit()">去修改>></div>
|
||||
</div>
|
||||
<a-form ref="formRef" :model="formState" :rules="rules" :label-col="{ span: 5 }">
|
||||
@@ -322,7 +322,7 @@ import dialog from "@/utils/dialog";
|
||||
import BaseTable from "@/components/common/BaseTable";
|
||||
import { STUDENT_LIST } from "@/api/apis";
|
||||
// 推荐接口
|
||||
import { caseRecommend } from '@/api/case'
|
||||
import { caseRecommend, userList } from '@/api/case'
|
||||
|
||||
const emit = defineEmits({});
|
||||
const props = defineProps({
|
||||
@@ -648,9 +648,21 @@ function orgDel(i) {
|
||||
deptList.value.splice(i, 1);
|
||||
}
|
||||
|
||||
// 传递的参数
|
||||
const listData = reactive({
|
||||
departId: '',
|
||||
keyword: "",
|
||||
page: 1,
|
||||
pageSize: 10,
|
||||
})
|
||||
function onOrgSelectChange(e, l) {
|
||||
console.log(e, l);
|
||||
orgRowSelection.value = e;
|
||||
deptList.value = l.selectedNodes;
|
||||
// listData.departId = e[0]
|
||||
// userList(listData).then((res) => {
|
||||
// console.log(res);
|
||||
// })
|
||||
}
|
||||
|
||||
const resetStu = () => {
|
||||
@@ -689,13 +701,20 @@ const handleOk = () => {
|
||||
})
|
||||
}
|
||||
|
||||
// 总人数
|
||||
const count = computed(() => {
|
||||
return (auditSelectRows.value?.reduce((acc, item) => acc + item.totalMember, 0) || 0) + stuSelectRows.value.length;
|
||||
})
|
||||
function handleDialogOk() {
|
||||
// if (auditSelectRowKeys.value.length || deptList.value.length) {
|
||||
// dialog({ content: "您选择了组织或受众,此添加为异步添加,请稍后手动刷新学员!", ok: handleStageOk });
|
||||
// return;
|
||||
// }
|
||||
console.log(props.id);
|
||||
console.log(stuSelectRows.value);
|
||||
console.log(props.id, '选择案例的id');
|
||||
console.log(stuSelectRows.value, '快速选人的id');
|
||||
console.log(count.value);
|
||||
|
||||
|
||||
|
||||
|
||||
handleStageOk();
|
||||
@@ -713,7 +732,9 @@ function handleStageOk() {
|
||||
launchType: 1,
|
||||
casesIdList: props.id,
|
||||
recommendOrgName: formState.name,
|
||||
pushUserIdList: stuSelectRows.value.map((stu) => stu.id)
|
||||
pushUserIdList: stuSelectRows.value.map((stu) => stu.id),
|
||||
groupIds: auditSelectRows.value?.map((e) => e.id),
|
||||
deptIds: deptList.value?.map((e) => e.id),
|
||||
}).then(() => {
|
||||
message.success("推荐成功");
|
||||
deleteDepSelect();
|
||||
|
||||
Reference in New Issue
Block a user