| | |
| | | clearable |
| | | size="small" |
| | | style="width: 240px" |
| | | maxlength="50" |
| | | @keyup.enter.native="reGetList" |
| | | /> |
| | | </el-form-item> |
| | |
| | | |
| | | <script> |
| | | |
| | | import mixin_keepAlive from '@/mixins/keepAlive.js' // 页面缓存 |
| | | export default { |
| | | name: 'Role', |
| | | mixins: [mixin_keepAlive], |
| | | data() { |
| | | return { |
| | | showSearch: true, // 是否显示搜索区 |
| | |
| | | } |
| | | }, |
| | | mounted() { |
| | | this.init() |
| | | // 在mixin_keepAlive => activated初始化 |
| | | }, |
| | | methods: { |
| | | // 初始化 |
| | | init() { |
| | | // keepalive重置初始值 |
| | | this.resetHandle() |
| | | }, |
| | | |
| | | // 返回刷新 |
| | | regInit() { |
| | | this.getList() |
| | | }, |
| | | |
| | |
| | | url: 'admin/role/list', |
| | | params: { |
| | | pageNum: pageNum, |
| | | rowCount: pageSize, |
| | | pageSize: pageSize, |
| | | keyWord: keyWord |
| | | }, |
| | | mockData: { |