jhprjv2/ruoyi-ui/src/views/project/attendance/attendanceDrawer.vue

58 lines
1.2 KiB
Vue
Raw Normal View History

2023-09-29 00:24:15 +08:00
<template>
<div class="project-attendance-data-drawer" v-if="isOpen">
<el-drawer v-if="isOpen" :visible.sync="isOpen" direction="rtl" size="70%" style="padding-left: 20px">
<template slot="title">
<div>{{ title + " 【劳务实名管理-考勤记录】" }}</div>
</template>
<div>
<main-index ref="main"></main-index>
</div>
</el-drawer>
</div>
</template>
<script>
import mainIndex from './index.vue'
export default {
components:{
mainIndex
},
data() {
return {
isOpen: false,
title: '',
};
},
mounted() {
},
methods: {
show(prj) {
this.prj=prj;
this.title = prj.projectName||""
this.isOpen = true;
setTimeout(()=>{
this.$refs.main.init(prj);
},400);
},
},
};
</script>
<style lang="scss" scoped>
.project-attendance-data-drawer {
::v-deep .el-drawer__header {
margin-bottom: 0px;
}
::v-deep .el-drawer__body {
padding: 12px 24px;
}
::v-deep .el-drawer{
min-width: 1200px;
}
}
</style>