| | |
| | | > |
| | | <a-button @click="handleAdd(nodeSelected)" type="primary" icon="plus" :disabled="!nodeSelected.key || nodeSelected.entity.leafFlag === '1'">新增</a-button> |
| | | </Tooltip> |
| | | <a-button type="primary" icon="download" @click="handleExportXls('工具分类信息')">导出</a-button> |
| | | <!-- <a-button type="primary" icon="download" @click="handleExportXls('工具分类信息')">导出</a-button> |
| | | <a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" @change="handleImportExcel"> |
| | | <a-button type="primary" icon="import">导入</a-button> |
| | | </a-upload> |
| | | </a-upload> --> |
| | | </div> |
| | | |
| | | <!-- table区域-begin --> |
| | |
| | | data () { |
| | | return { |
| | | description: '工具分类管理页面', |
| | | /* 分页参数 */ |
| | | ipagination:{ |
| | | current: 1, |
| | | pageSize: 10, |
| | | pageSizeOptions: ['10', '20', '50'], |
| | | showTotal: (total, range) => { |
| | | return range[0] + "-" + range[1] + " 共" + total + "条" |
| | | }, |
| | | showQuickJumper: true, |
| | | showSizeChanger: true, |
| | | total: 0 |
| | | }, |
| | | // 表头 |
| | | columns: [ |
| | | { |
| | |
| | | .then((res) => { |
| | | if (res.success) { |
| | | this.dataSource = res.result.records; // 更新表格数据 |
| | | this.ipagination.total = res.result.total |
| | | } else { |
| | | this.$message.warning(res.message); |
| | | this.ipagination.total = 0 |
| | | } |
| | | }) |
| | | .finally(() => { |