1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- <template>
- <div style="position: relative; height: 100%;">
- <div class="header">
- <Tags :tags.sync="tags" />
- </div>
- <rolemembers-list :item="item" v-if="tags[1].show"></rolemembers-list>
- <permission-detail :item="item" v-if="tags[0].show"></permission-detail>
- </div>
- </template>
- <script>
- import Tags from "@/components/tags/index.vue";
- import PermissionDetail from './permissionDetail';
- import RolemembersList from './rolemembersList';
- export default {
- props: {
- item: Object,
- },
- components: { Tags, RolemembersList, PermissionDetail },
- data() {
- return {
- tags: [
- {
- label: '权限详情',
- value: '0',
- show: true,
- },
- {
- label: '成员列表',
- value: '1',
- show: false,
- }
- ],
- }
- },
- mounted(){
- },
- methods:{
- Show1(){
- this.detailShow = true;
- this.memberShow = false;
- },
- Show2(){
- this.detailShow = false;
- this.memberShow = true;
- },
- }
- }
- </script>
- <style lang="less" scoped>
- .header {
- text-align: left;
- padding: 15px;
- font-size: 25px;
-
- .roleDetail{
- width: 100px;
- height: 35px;
- line-height: 20px;
- border-radius: 20px;
- background-color: #FFFFFF;
- color: #C8C8C8;
- font-size: 14px;
- text-align: center;
- padding: 5px;
- }
- .roleDetail:focus {
- background-color: #2EA8E6;
- color: #FFFFFF;
- }
- .roleMember {
- width: 100px;
- height: 35px;
- line-height: 20px;
- border-radius: 20px;
- background-color: #FFFFFF;
- color: #C8C8C8;
- font-size: 14px;
- text-align: center;
- padding: 5px;
- }
- .roleMember:focus {
- background-color: #2EA8E6;
- color: #FFFFFF;
- }
- }
- </style>
|