fix:修改小组

This commit is contained in:
lixg
2022-12-04 23:53:02 +08:00
parent a808aebeac
commit 7260014535
5 changed files with 92 additions and 40 deletions

View File

@@ -97,8 +97,8 @@
</div>
</div>
<div class="btnn">
<button class="btn1">取消</button>
<button class="btn2">确定</button>
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="closeDrawer">确定</button>
</div>
<!-- 批量删除的弹窗 -->
<a-modal
@@ -270,6 +270,8 @@ export default {
});
const closeDrawer = () => {
ctx.emit("update:Lvisible", false);
state.tabledata = [];
console.log("tabledata", state.tabledata);
};
const showModal = () => {
if (state.selectedRows.length == 0) {
@@ -345,18 +347,25 @@ export default {
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) {
if (res.data.code === 200) {
state.total = res.data.data.total;
state.tableDataTotal = res.data.data.total;
let arr = res.data.data.rows;
getTableDataList(arr);
}
// let leng = res.data.data.rows.length;
// state.tableDataTotal = res.data.data.total;
// if (leng > 0) {
// }
});
};
const afterVisibleChange = () => {
getStu();
const afterVisibleChange = (bool) => {
if (bool) {
getStu();
}
};
//分页
const changePaginationStu = (page) => {