mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-21 00:36:46 +08:00
案例推荐选人数
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
import http from "./configSys";
|
import http from "./configSys";
|
||||||
|
import httpUserbase from './confign'
|
||||||
|
|
||||||
// 案例列表
|
// 案例列表
|
||||||
export const RECOMMEND_PAGE = "/systemapi/xboe/m/boe/cases/recommend/page post";
|
export const RECOMMEND_PAGE = "/systemapi/xboe/m/boe/cases/recommend/page post";
|
||||||
@@ -28,3 +29,6 @@ export const caseInfoDownload = (data) => http.post('xboe/m/boe/cases/recommend/
|
|||||||
export const rePushOrWithdraw = (data) => http.post('xboe/m/boe/cases/recommend/rePushOrWithdraw', data)
|
export const rePushOrWithdraw = (data) => http.post('xboe/m/boe/cases/recommend/rePushOrWithdraw', data)
|
||||||
// 案例推荐
|
// 案例推荐
|
||||||
export const caseRecommend = (data) => http.post('/xboe/m/boe/cases/recommend/launch', data)
|
export const caseRecommend = (data) => http.post('/xboe/m/boe/cases/recommend/launch', data)
|
||||||
|
|
||||||
|
//案例推荐选人的查询列表
|
||||||
|
export const userList = (data) => httpUserbase.post('/user/list', data)
|
||||||
@@ -261,7 +261,7 @@
|
|||||||
<div class="wordsColor" @click="edit('article')">去修改>></div>
|
<div class="wordsColor" @click="edit('article')">去修改>></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="remModal-words" style="margin-bottom: 30px;">
|
<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 class="wordsColor" @click="edit()">去修改>></div>
|
||||||
</div>
|
</div>
|
||||||
<a-form ref="formRef" :model="formState" :rules="rules" :label-col="{ span: 5 }">
|
<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 BaseTable from "@/components/common/BaseTable";
|
||||||
import { STUDENT_LIST } from "@/api/apis";
|
import { STUDENT_LIST } from "@/api/apis";
|
||||||
// 推荐接口
|
// 推荐接口
|
||||||
import { caseRecommend } from '@/api/case'
|
import { caseRecommend, userList } from '@/api/case'
|
||||||
|
|
||||||
const emit = defineEmits({});
|
const emit = defineEmits({});
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
@@ -648,9 +648,21 @@ function orgDel(i) {
|
|||||||
deptList.value.splice(i, 1);
|
deptList.value.splice(i, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 传递的参数
|
||||||
|
const listData = reactive({
|
||||||
|
departId: '',
|
||||||
|
keyword: "",
|
||||||
|
page: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
})
|
||||||
function onOrgSelectChange(e, l) {
|
function onOrgSelectChange(e, l) {
|
||||||
|
console.log(e, l);
|
||||||
orgRowSelection.value = e;
|
orgRowSelection.value = e;
|
||||||
deptList.value = l.selectedNodes;
|
deptList.value = l.selectedNodes;
|
||||||
|
// listData.departId = e[0]
|
||||||
|
// userList(listData).then((res) => {
|
||||||
|
// console.log(res);
|
||||||
|
// })
|
||||||
}
|
}
|
||||||
|
|
||||||
const resetStu = () => {
|
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() {
|
function handleDialogOk() {
|
||||||
// if (auditSelectRowKeys.value.length || deptList.value.length) {
|
// if (auditSelectRowKeys.value.length || deptList.value.length) {
|
||||||
// dialog({ content: "您选择了组织或受众,此添加为异步添加,请稍后手动刷新学员!", ok: handleStageOk });
|
// dialog({ content: "您选择了组织或受众,此添加为异步添加,请稍后手动刷新学员!", ok: handleStageOk });
|
||||||
// return;
|
// return;
|
||||||
// }
|
// }
|
||||||
console.log(props.id);
|
console.log(props.id, '选择案例的id');
|
||||||
console.log(stuSelectRows.value);
|
console.log(stuSelectRows.value, '快速选人的id');
|
||||||
|
console.log(count.value);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
handleStageOk();
|
handleStageOk();
|
||||||
@@ -713,7 +732,9 @@ function handleStageOk() {
|
|||||||
launchType: 1,
|
launchType: 1,
|
||||||
casesIdList: props.id,
|
casesIdList: props.id,
|
||||||
recommendOrgName: formState.name,
|
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(() => {
|
}).then(() => {
|
||||||
message.success("推荐成功");
|
message.success("推荐成功");
|
||||||
deleteDepSelect();
|
deleteDepSelect();
|
||||||
|
|||||||
Reference in New Issue
Block a user