| | |
| | | <template> |
| | | <basic-container> |
| | | <avue-crud ref="crud" :data="data" :option="option" :page.sync="page" :permission="permissionList" :search.sync="search" |
| | | <avue-crud ref="crud" :data="data" :option="option" :page.sync="page" :permission="permissionList" |
| | | :search.sync="search" |
| | | :table-loading="loading" |
| | | @on-load="getDataList" @row-save="handleSave" @row-del="handleDelete" @row-update="handleEdit" |
| | | @refresh-change="handleRefresh" @size-change="handleSizePage" @current-change="handleCurrentPage" |
| | |
| | | return { |
| | | addBtn: this.vaildData(this.permission.systemInfo.systemInfo_add, false), |
| | | editBtn: this.vaildData(this.permission.systemInfo.systemInfo_edit, false), |
| | | delBtn: this.vaildData(this.permission.systemInfo.systemInfo_remove, false), |
| | | delBtn: this.vaildData(this.permission.systemInfo.systemInfo_delete, false), |
| | | empower: this.vaildData(this.permission.systemInfo.systemInfo_empower, false), |
| | | } |
| | | }, |
| | |
| | | // this.ModifyProperties(this.TreeData, 'text', 'label'); |
| | | // 根据this.TreeData的长度计算延迟时间 |
| | | const delayTime = this.TreeData.length * 1; |
| | | console.log(delayTime) |
| | | setTimeout(() => { |
| | | this.loading = false; |
| | | this.reload = Math.random(); |
| | |
| | | message: '新增数据成功!' |
| | | }) |
| | | done(row) |
| | | await this.getDataList(); |
| | | // this.$refs.crud.refreshTable() |
| | | // this.getDataList() |
| | | } |
| | |
| | | }) |
| | | done(row) |
| | | } |
| | | await this.getDataList(); |
| | | } catch { |
| | | loading() |
| | | } |