项目内选择人员列表

This commit is contained in:
lpq
2023-02-23 21:26:39 +08:00
parent 0ddd27a33a
commit 501a498692
5 changed files with 10 additions and 3 deletions

View File

@@ -374,12 +374,15 @@ const projectRowSelection = computed(() => ({
preserveSelectedRowKeys: true, preserveSelectedRowKeys: true,
})); }));
const getStu = () => { const getStu = () => {
debugger
let obj = { let obj = {
studentName: proStudentName.value, studentName: proStudentName.value,
pageNo: procurrentPage.value, pageNo: procurrentPage.value,
pageSize: 10, pageSize: 10,
projectId: props.id, pid: props.id,
type: props.type
}; };
debugger
projectListTotal.value = -1; projectListTotal.value = -1;
console.log("获取项目学员", obj); console.log("获取项目学员", obj);
getStuPage(obj).then((res) => { getStuPage(obj).then((res) => {

View File

@@ -601,6 +601,7 @@ const stuPagination = computed(() => ({
})); }));
function changePagination(page) { function changePagination(page) {
debugger
tableParam.value.pageNo = page; tableParam.value.pageNo = page;
getStuList(); getStuList();
} }
@@ -608,6 +609,7 @@ function changePagination(page) {
function getStuList() { function getStuList() {
tableData.value.loading = true; tableData.value.loading = true;
console.log("tableParam.value", tableParam.value); console.log("tableParam.value", tableParam.value);
debugger
getStuPage(tableParam.value).then((res) => { getStuPage(tableParam.value).then((res) => {
console.log("学员管理-获取学员", res.data); console.log("学员管理-获取学员", res.data);
tableData.value.total = res.data.data.total; tableData.value.total = res.data.data.total;

View File

@@ -2105,6 +2105,7 @@ export default {
pid: state.routerId, pid: state.routerId,
type: 2, type: 2,
}; };
debugger
getStuPage(stuobj) getStuPage(stuobj)
.then((res) => { .then((res) => {
console.log("获取学员列表", res.data.data.total); console.log("获取学员列表", res.data.data.total);

View File

@@ -3546,7 +3546,7 @@ export default {
//获取学员总数 //获取学员总数
let obj = { let obj = {
pageNo: 0, pageNo: 0,
pageSize: 0, pageSize: 10,
pid: state.projectId, pid: state.projectId,
type: 1, type: 1,
}; };

View File

@@ -15,7 +15,8 @@ module.exports = defineConfig({
port: 8070, port: 8070,
proxy: { proxy: {
"/manageApi": { "/manageApi": {
target: 'http:' + process.env.VUE_APP_PROXY_URL, // target: 'http:' + process.env.VUE_APP_PROXY_URL,
target: 'http://localhost:30001',
changeOrigin: true, //表示是否改变原域名 changeOrigin: true, //表示是否改变原域名
pathRewrite: { pathRewrite: {
"^/manageApi": "", "^/manageApi": "",