[update] 角色管理修改-删除‘导出’,新增‘新建角色’

This commit is contained in:
zhaomeijing
2022-05-24 10:54:32 +08:00
parent b5f0318d56
commit ed451cd9ff
2 changed files with 15 additions and 11 deletions
+14 -10
View File
@@ -24,16 +24,16 @@
</a-form>
</div>
<!-- 操作按钮区域 -->
<div class="table-operator">
<!-- <a-button @click="handleAdd" type="primary" icon="plus">{{$t('newRole')}}</a-button>-->
<!-- &lt;!&ndash;<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>&ndash;&gt;-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">{{$t('import')}}</a-button>-->
<!-- </a-upload>-->
<div @click="handleExportXls($t('RoleManagement'))" class="operator-text">
<a-icon type="export" :rotate="-90"/>
{{$t('export')}}
</div>
<div class="table-operator add-flex">
<a-button @click="handleAdd" type="primary" icon="plus">{{$t('newRole')}}</a-button>
<!--<a-button @click="handleEdit(model1)" type="primary" icon="plus">角色编辑</a-button>-->
<!-- <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel">-->
<!-- <a-button type="primary" icon="import">{{$t('import')}}</a-button>-->
<!-- </a-upload>-->
<!-- <div @click="handleExportXls($t('RoleManagement'))" class="operator-text">-->
<!-- <a-icon type="export" :rotate="-90"/>-->
<!-- {{$t('export')}}-->
<!-- </div>-->
</div>
<!-- <div class="ant-alert ant-alert-info" style="margin-bottom: 16px;">-->
@@ -425,4 +425,8 @@
.text {
margin-right: 8px;
}
.add-flex{
display: flex;
justify-content: flex-end;
}
</style>
@@ -31,7 +31,7 @@
:labelCol="labelCol"
:wrapperCol="wrapperCol"
label="描述">
<a-textarea :rows="5" placeholder="..." v-decorator="[ 'description', validatorRules.description ]" />
<a-textarea :rows="5" placeholder="请输入描述" v-decorator="[ 'description', validatorRules.description ]" />
</a-form-item>
</a-form>