12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <template>
- <div>
- <el-button size="small" type="primary" icon="el-icon-plus" @click="drawer = true">{{$t('新 建')}}</el-button>
- <el-drawer
- :title="$t(`创建角色`)"
- :visible.sync="drawer"
- :wrapperClosable="false"
- append-to-body
- size="80%"
- direction="rtl">
- <div class="drawer__panel">
- <roleContentTemp :data="{roleid:'0'}" @onSuccess="onSuccess">
- <el-button slot="cancel" size="small" @click="drawer = false" class="normal-btn-width">{{$t('取 消')}}</el-button>
- </roleContentTemp>
- </div>
- </el-drawer>
- </div>
- </template>
- <script>
- import roleContentTemp from './roleContent.vue'
- export default {
- data () {
- return{
- dialogFormVisible:false,
- drawer:false,
- form:{
- "roleid":0,
- "rolename":"",
- "remarks":""
- }
- }
- },
- components:{
- roleContentTemp
- },
- methods:{
- onSuccess () {
- this.$emit('onSuccess')
- }
- }
- }
- </script>
- <style>
- </style>
|