mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-13 04:46:46 +08:00
feat:学习路径图添加学员的添加学员和导入学员功能 导入学员的弹窗样式
This commit is contained in:
@@ -143,6 +143,7 @@ export default {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
flex-shrink: 0;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
.headerTitle {
|
.headerTitle {
|
||||||
|
|||||||
@@ -145,6 +145,7 @@ export default {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
// background-color: red;
|
// background-color: red;
|
||||||
margin-bottom: 20px;
|
margin-bottom: 20px;
|
||||||
|
flex-shrink: 0;
|
||||||
.headerTitle {
|
.headerTitle {
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|||||||
@@ -371,9 +371,9 @@
|
|||||||
<div class="xwid">
|
<div class="xwid">
|
||||||
<div class="xin">
|
<div class="xin">
|
||||||
<div class="xheadb">
|
<div class="xheadb">
|
||||||
<button class="addx">添加学员</button>
|
<button class="addx" @click="showAddStu">添加学员</button>
|
||||||
<!-- 点击抽屉组件在LevelAdd,此处没添加showAddStu、showImpStu -->
|
<!-- 点击抽屉组件在LevelAdd,此处没添加showAddStu、showImpStu -->
|
||||||
<button class="addd">导入学员</button>
|
<button class="addd" @click="showImpStu">导入学员</button>
|
||||||
<button class="addd">批量删除</button>
|
<button class="addd">批量删除</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="talk">
|
<div class="talk">
|
||||||
@@ -455,11 +455,17 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 添加学员抽屉 -->
|
||||||
|
<add-stu v-model:AddSvisible="AddSvisible" />
|
||||||
|
<!-- 导入学员抽屉 -->
|
||||||
|
<imp-stu v-model:AddImpStuvisible="AddImpStuvisible" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
|
import { reactive, toRefs, onMounted, onUnmounted } from "vue";
|
||||||
|
import AddStu from "../../components/drawers/AddLevelAddStu";
|
||||||
|
import ImpStu from "../../components/drawers/AddLevelImportStu";
|
||||||
const drawercolumns = [
|
const drawercolumns = [
|
||||||
{
|
{
|
||||||
title: "项目名称",
|
title: "项目名称",
|
||||||
@@ -500,6 +506,10 @@ const drawercolumns = [
|
|||||||
];
|
];
|
||||||
export default {
|
export default {
|
||||||
name: "LevelAddDetail",
|
name: "LevelAddDetail",
|
||||||
|
components: {
|
||||||
|
AddStu,
|
||||||
|
ImpStu,
|
||||||
|
},
|
||||||
setup() {
|
setup() {
|
||||||
const state = reactive({
|
const state = reactive({
|
||||||
level: [
|
level: [
|
||||||
@@ -784,6 +794,8 @@ export default {
|
|||||||
tableDataTotal: 100,
|
tableDataTotal: 100,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
visible: false,
|
visible: false,
|
||||||
|
AddSvisible: false, //添加学员抽屉
|
||||||
|
AddImpStuvisible: false, //导入学员抽屉
|
||||||
modal: false,
|
modal: false,
|
||||||
clos: false,
|
clos: false,
|
||||||
stm_hs: false,
|
stm_hs: false,
|
||||||
@@ -808,6 +820,12 @@ export default {
|
|||||||
const afterVisibleChange = (bool) => {
|
const afterVisibleChange = (bool) => {
|
||||||
console.log("visible", bool);
|
console.log("visible", bool);
|
||||||
};
|
};
|
||||||
|
const showAddStu = () => {
|
||||||
|
state.AddSvisible = true;
|
||||||
|
};
|
||||||
|
const showImpStu = () => {
|
||||||
|
state.AddImpStuvisible = true;
|
||||||
|
};
|
||||||
const tableDataFunc = () => {
|
const tableDataFunc = () => {
|
||||||
const columns = [
|
const columns = [
|
||||||
{
|
{
|
||||||
@@ -1051,6 +1069,8 @@ export default {
|
|||||||
showModal,
|
showModal,
|
||||||
closeModal,
|
closeModal,
|
||||||
afterVisibleChange,
|
afterVisibleChange,
|
||||||
|
showAddStu,
|
||||||
|
showImpStu,
|
||||||
drawercolumns,
|
drawercolumns,
|
||||||
onSelectChange,
|
onSelectChange,
|
||||||
changebgc,
|
changebgc,
|
||||||
|
|||||||
Reference in New Issue
Block a user