You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
744 B
38 lines
744 B
|
2 years ago
|
<!--
|
||
|
|
@ 作者: 鲁智强
|
||
|
2 years ago
|
@ 时间: 2023-09-19 15:01:23
|
||
|
2 years ago
|
@ 备注:
|
||
|
|
-->
|
||
|
2 years ago
|
<script lang='ts' setup>
|
||
|
2 years ago
|
import cc from './cc.vue'
|
||
|
2 years ago
|
import bb from './bb.vue'
|
||
|
|
import { addPostCont } from '@/api/opk/api'
|
||
|
|
import {ref} from 'vue'
|
||
|
|
const number = ref(0);
|
||
|
2 years ago
|
const chnage = (tab:any) => {
|
||
|
|
console.log(tab.index);
|
||
|
|
number.value = tab.index;
|
||
|
2 years ago
|
};
|
||
|
2 years ago
|
</script>
|
||
|
2 years ago
|
<template>
|
||
|
|
<el-tabs class="asd" @tab-click="chnage">
|
||
|
|
<el-tab-pane label="部门方案" name="bb"></el-tab-pane>
|
||
|
|
<el-tab-pane label="岗位方案" name="cc"></el-tab-pane>
|
||
|
|
<div v-if="number == 0">
|
||
|
2 years ago
|
<bb></bb>
|
||
|
|
</div>
|
||
|
2 years ago
|
<div v-if="number == 1">
|
||
|
2 years ago
|
<cc></cc>
|
||
|
|
</div>
|
||
|
2 years ago
|
</el-tabs>
|
||
|
2 years ago
|
</template>
|
||
|
2 years ago
|
<style lang='scss' scoped>
|
||
|
|
*{
|
||
|
2 years ago
|
background-color: #fff;
|
||
|
|
}
|
||
|
|
.asd{
|
||
|
2 years ago
|
background-color:#fff;
|
||
|
|
margin-left:80px;
|
||
|
2 years ago
|
}
|
||
|
|
</style>
|