暂时提交

This commit is contained in:
zhangsir
2024-10-26 18:35:31 +08:00
parent 80342c0862
commit 4f3816493a
6 changed files with 332 additions and 28 deletions

View File

@@ -0,0 +1,307 @@
<template>
<a-drawer
:visible="visible"
class="drawerStyle RouterFaceStu"
placement="right"
width="1200"
>
<div class="drawerMain">
<div class="header">
<div class="headerTitle">{{ name }}</div>
<img
style="width: 29px; height: 29px; cursor: pointer"
src="@/assets/images/basicinfo/close.png"
@click="closeDrawer"
/>
</div>
<div class="content">
<div class="head">
<div class="list" :class="item.id==indexList?'active':''" @click="clickItem(item,index)" v-for="(item,index) in forData">
<div class="left">
<div>培训发生组织</div>
<div class="text">汇总金额</div>
</div>
<div class="right">
<div>{{item.name}}</div>
<div class="text">{{item.name}}</div>
</div>
</div>
</div>
<div class="box">
<div class="top">
<div class="item">
<a-input style="border-radius: 8px;width:240px;" v-model:value="search" placeholder="请输入工号/讲师名称进行搜索" allowClear />
</div>
<div class="item">
<a-range-picker style="border-radius: 8px;width:360px;" v-model:value="value1" />
</div>
<div class="item">
<a-button type="primary" style="margin-right:20px;border-radius:8px">搜索</a-button>
<a-button type="primary" style="border-radius:8px">重置</a-button>
</div>
</div>
<div class="table">
<a-table
:columns="columns"
:data-source="tableData"
:pagination="false"
:scroll="{ x: 'max-content' }"
>
<template #action="{ text, record }">
<div class="action">
<div class="btn">移除</div>
</div>
</template>
</a-table>
</div>
</div>
</div>
<div class="btnn">
<button class="btn1" @click="closeDrawer">取消</button>
<button class="btn2" @click="closeDrawer">确定</button>
</div>
</div>
</a-drawer>
</template>
<script setup lang="jsx">
import {computed, defineEmits,defineProps, ref, watch} from "vue";
const props = defineProps({
visible: {
type: Boolean,
default: false,
},
name:{
type: String,
default: ""
}
});
const forData = ref([
{name:'a',id:1},
{name:'b',id:2},
{name:'c',id:3},
{name:'c',id:3},
{name:'c',id:3},
{name:'c',id:3},
])
const indexList = ref(1)
const clickItem = (item,i) => {
console.log(item,i,'iiiii')
indexList.value = i+1
}
const emit = defineEmits({})
const columns = [
{
title: '讲师名称',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '讲师工号',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '所属组织',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '讲师体系',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '讲师等级',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '发薪地',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '课程类型',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '课程名称',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '授课/开发课程日期',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '授课/开发课程时长',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '参训人数',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '评分',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '课酬基准',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '计划费用',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '应发费用',
dataIndex: 'name',
key: 'name',
align: 'center',
},
{
title: '操作',
align: 'center',
fixed: 'right',
scopedSlots: { customRender: "action" },
},
]
const closeDrawer = () => emit("update:visible", false);
</script>
<style lang="scss">
.RouterFaceStu {
.drawerMain {
min-width: 600px;
margin: 0px 32px 0px 32px;
overflow-x: auto;
display: flex;
flex-direction: column;
.header {
height: 73px;
border-bottom: 1px solid #e8e8e8;
display: flex;
justify-content: space-between;
align-items: center;
// background-color: red;
margin-bottom: 20px;
.headerTitle {
font-size: 18px;
font-weight: 600;
color: #333333;
line-height: 25px;
// margin-left: 24px;
}
}
.content{
margin: 0 20px;
.head{
display: flex;
align-items: center;
overflow-x: auto;
.list{
display: flex;
align-items: center;
background-color: #666;
min-width: 260px;
padding: 20px 10px;
color: #ffffff;
border-radius:6px;
margin-right: 20px;
margin-bottom: 20px;
.left{
width: 35%;
text-align:right;
margin-right:30px;
.text{
margin-top:20px;
}
}
.right{
.text{
margin-top:20px;
}
}
}
.active{
background-color: #f5f5f5;
color: #000000;
}
}
.box{
.top{
display: flex;
align-items: center;
margin-bottom: 20px;
margin-top: 10px;
.item{
margin-right: 20px;
}
}
}
}
.btnn {
height: 72px;
width: 100%;
position: absolute;
bottom: 0;
left: 0;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0px 1px 35px 0px rgba(118, 136, 166, 0.16);
background-color: #fff;
.btn1 {
width: 100px;
height: 40px;
border: 1px solid #4ea6ff;
border-radius: 8px;
color: #4ea6ff;
background-color: #fff;
cursor: pointer;
}
.btn2 {
cursor: pointer;
width: 100px;
height: 40px;
background: #4ea6ff;
border-radius: 8px;
border: 0;
margin-left: 15px;
color: #fff;
}
}
}
}
</style>