| | |
| | | :size="size" clearable style="width:300px;margin-left: 10px;" |
| | | @clear="handleClear" @keyup.enter.native="handleEnter"></el-input> |
| | | </template> |
| | | <template #menu="{row,index,size}"> |
| | | <el-button type="text" icon="el-icon-menu" size="small" @click="classifyHandler">分类授权</el-button> |
| | | |
| | | </template> |
| | | </avue-crud> |
| | | <el-dialog :visible.sync="dialogVisible" append-to-body title="分类授权"> |
| | | </el-dialog> |
| | | </basic-container> |
| | | </template> |
| | | <script> |
| | |
| | | data() { |
| | | return { |
| | | loading: false, |
| | | dialogVisible:false, |
| | | page: { |
| | | currentPage: 1, |
| | | pageSize: 10, |
| | |
| | | } |
| | | }, |
| | | methods: { |
| | | // 获取列表 |
| | | // async getDataList() { |
| | | // this.loading = true |
| | | // console.log(this.search) |
| | | // const { pageSize, currentPage } = this.page |
| | | // let param = { size: pageSize, current: currentPage } |
| | | // this.search = Object.keys(this.search) |
| | | // .filter((key) => this.search[key] !== null && this.search[key] !== undefined && this.search[key] !== "") |
| | | // .reduce((acc, key) => ({ ...acc, [key]: this.search[key] }), {}); |
| | | // const response = await getSysInfoList(pageSize,currentPage,{...param}) |
| | | // if (response.status === 200) { |
| | | // console.log(response) |
| | | // this.loading = false |
| | | // const data = response.data.data |
| | | // this.data = data.records |
| | | // this.page.total = data.total |
| | | // } else this.loading = false |
| | | // }, |
| | | //分类授权 |
| | | classifyHandler(){ |
| | | this.dialogVisible=true; |
| | | }, |
| | | async getDataList() { |
| | | this.loading = true; |
| | | console.log(this.search); |