mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-16 06:16:46 +08:00
feat:增加小组添加学员
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
<div class="text3">列表选项总计:</div>
|
||||
<div class="text4">{{ total }}条</div>
|
||||
</div>
|
||||
<div class="right">清空</div>
|
||||
<div class="right" @click="clearChooseStu">清空</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableBox" style="margin-top: 20px; margin-bottom: 100px">
|
||||
@@ -146,20 +146,30 @@
|
||||
<button class="btn btn2" @click="yesdele">确定</button>
|
||||
</div>
|
||||
</a-modal>
|
||||
<stu-add v-model:Stuvisible="Stuvisible" />
|
||||
<!-- <stu-add v-model:Stuvisible="Stuvisible" /> -->
|
||||
<add-group-members
|
||||
v-model:AGMembers="Stuvisible"
|
||||
:chooseGroupId="chooseGroupId"
|
||||
:projectId="projectId"
|
||||
@getStuPro="getStu"
|
||||
/>
|
||||
</div>
|
||||
</a-drawer>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { toRefs, reactive } from "vue";
|
||||
import StuAdd from "./StuAdd.vue";
|
||||
// import StuAdd from "./StuAdd.vue";
|
||||
import { getProjStu, deleteStu } from "../../api/indexProjStu";
|
||||
import { toDate } from "../../api/method";
|
||||
import { message } from "ant-design-vue";
|
||||
import AddGroupMembers from "./AddGroupMembers.vue";
|
||||
export default {
|
||||
name: "MemberList",
|
||||
components: { StuAdd },
|
||||
components: {
|
||||
// StuAdd,
|
||||
AddGroupMembers,
|
||||
},
|
||||
props: {
|
||||
Lvisible: {
|
||||
type: Boolean,
|
||||
@@ -178,12 +188,15 @@ export default {
|
||||
setup(props, ctx) {
|
||||
const state = reactive({
|
||||
Stuvisible: false,
|
||||
// chooseGroupId: props.chooseGroupId,
|
||||
// projectId: props.projectId,
|
||||
name: null,
|
||||
showmodal: false,
|
||||
closable: false, //modal右上角的关闭按钮
|
||||
pageSize: 10,
|
||||
currentPage: 1,
|
||||
total: null,
|
||||
tableDataTotal: -1,
|
||||
selectedRowKeys: [],
|
||||
choosed: 0, //勾选的学员总数
|
||||
selectedRows: [], //选择的学员的id值
|
||||
@@ -290,6 +303,7 @@ export default {
|
||||
};
|
||||
const showStuAdd = () => {
|
||||
state.Stuvisible = true;
|
||||
// console.log("单击");
|
||||
};
|
||||
//把数据放到state里
|
||||
const getTableDataList = (tableData) => {
|
||||
@@ -326,12 +340,14 @@ export default {
|
||||
pageSize: 10,
|
||||
projectId: props.projectId,
|
||||
topFlag: "",
|
||||
groupId: 10, //暂时写死
|
||||
groupId: props.chooseGroupId, //暂时写死
|
||||
};
|
||||
state.tableDataTotal = -1;
|
||||
getProjStu(objf).then((res) => {
|
||||
console.log(res.data.data, "获取学员列表");
|
||||
let leng = res.data.data.rows.length;
|
||||
state.total = res.data.data.total;
|
||||
state.tableDataTotal = res.data.data.total;
|
||||
if (leng > 0) {
|
||||
let arr = res.data.data.rows;
|
||||
getTableDataList(arr);
|
||||
|
||||
Reference in New Issue
Block a user