| | |
| | | <template> |
| | | <el-dialog v-model="params.visible" :title="params.data?.categoryName || '添加类别候选人'" width="50%"> |
| | | <el-dialog v-model="params.visible" :title="params.data?.categoryName || '添加类别候选人'" width="50%" @open="openDialog"> |
| | | <avue-crud :option="option" v-model:search="search" v-model:page="page" v-model="form" :table-loading="loading" |
| | | :data="data" :before-open="beforeOpen" ref="crud" @row-update="rowUpdate" |
| | | @row-del="rowDel" @search-change="searchChange" @search-reset="searchReset" |
| | |
| | | this.selectionClear(); |
| | | }); |
| | | }, |
| | | openDialog() { |
| | | this.page.currentPage = 1 |
| | | this.onLoad(this.page); |
| | | } |
| | | } |
| | | }; |
| | | </script> |