系统角色维护

This commit is contained in:
Vergil
2020-03-25 11:18:14 +08:00
parent 5f05d7e727
commit 58da90ee19

View File

@@ -1,47 +1,31 @@
<template> <template>
<div class="app-container"> <div class="app-container">
<el-card> <el-card>
<!-- <span>角色功能:</span>--> <!--<el-input v-model="RoleFunctioning" size="small" clearable placeholder="请输入角色功能" style="width:200px"/>-->
<el-input v-model="RoleFunctioning" size="small" clearable placeholder="请输入角色功能" style="width:200px"/> <!--<el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 15px" plain @click="searchData()">查询</el-button>-->
<el-button type="primary" icon="el-icon-search" size="small" style="margin-left: 15px" plain @click="searchData()">查询</el-button>
<el-button type="distribution" icon="el-icon-circle-plus-outline" size="small" @click="handleAdd()">增加</el-button> <el-button type="distribution" icon="el-icon-circle-plus-outline" size="small" @click="handleAdd()">增加</el-button>
</el-card> </el-card>
<el-card style="margin-top: 0px"> <el-card style="margin-top: 0px">
<el-table <el-table v-loading="loading" :data="tableData" height="700" highlight-current-row border style="width: 550px;">
v-loading="loading"
:data="tableData"
height="830"
highlight-current-row
border>
<el-table-column align="center" label="角色编号" width="100"> <el-table-column align="center" label="角色编号" width="100">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.角色编号 }} {{ scope.row.角色编号 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="角色功能"> <el-table-column align="center" label="角色功能" width="300">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.角色功能 }} {{ scope.row.角色功能 }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column align="center" label="操作日期"> <!--<el-table-column align="center" label="操作日期">-->
<!--<template slot-scope="scope">-->
<!--{{ scope.row.操作日期 }}-->
<!--</template>-->
<!--</el-table-column>-->
<el-table-column label="操作" fixed="right" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.操作日期 }} <el-button size="mini" type="text" plain icon="el-icon-edit" @click="handleEdit(scope.row)"/>
</template> <el-button size="mini" type="text" plain icon="el-icon-delete" @click="handleDelete(scope.row)"/>
</el-table-column>
<el-table-column label="操作" fixed="right" align="center" width="200">
<template slot-scope="scope">
<el-button
size="mini"
type="primary"
plain
icon="el-icon-edit"
@click="handleEdit(scope.row)">编辑</el-button>
<el-button
size="mini"
type="danger"
plain
icon="el-icon-delete"
@click="handleDelete(scope.row)">删除</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>