feat:增加调整关卡弹窗

This commit is contained in:
lixg
2022-12-22 11:18:45 +08:00
parent 841d16f33e
commit 859126dc06
2 changed files with 85 additions and 18 deletions

View File

@@ -63,12 +63,12 @@
批量删除
</a-button>
</a-col>
<!-- <a-col :span="1.5" v-if="type == 2">
<a-col :span="1.5" v-if="type == 2">
<a-button class="cus-btn white" @click="showChangeModal">
<template #icon></template>
批量调整关卡
</a-button>
</a-col> -->
</a-col>
</a-row>
<div style="margin-top: 20px">
<a-table
@@ -80,11 +80,43 @@
:row-selection="stuRowSelection"
>
<template #action="{ record }">
<div
@click="del(record.id)"
style="color: #4ea6ff; font-size: 14px; text-align: center"
>
删除
<div style="display: flex; justify-content: center">
<div
@click="del(record.id)"
style="
color: #4ea6ff;
font-size: 14px;
text-align: center;
margin-left: 20px;
cursor: pointer;
"
>
查看
</div>
<div
@click="showChangeModal"
style="
color: #4ea6ff;
font-size: 14px;
text-align: center;
margin-left: 20px;
cursor: pointer;
"
>
调整
</div>
<div
@click="del(record.id)"
style="
color: #4ea6ff;
font-size: 14px;
text-align: center;
margin-left: 20px;
cursor: pointer;
"
>
删除
</div>
</div>
<!-- <a-row gutter="12">
<a-col>
@@ -109,7 +141,7 @@
</div>
</div>
<!-- 批量调整关卡弹窗 -->
<ChangeLevelModal v-model:visiblene="visiblene" />
<ChangeLevelModal v-model:visiblene="visiblene" :id="id" />
<!-- 批量调整关卡弹窗 -->
</template>
<script setup>
@@ -258,11 +290,11 @@ function submitCall(flag) {
flag && getStuList();
}
//调整关卡
// const visiblene = ref(false);
// const showChangeModal = () => {
// visiblene.value = true;
// };
// 调整关卡;
const visiblene = ref(false);
const showChangeModal = () => {
visiblene.value = true;
};
</script>
<style>
.studentopea1 {