| | |
| | | </div> |
| | | </div> |
| | | <div class="dict-table"> |
| | | <el-table ref="multipleTableRef" :data="tableData" border style="width: 100%" class="multipleTableRef" @selection-change="handleSelectionChange"> |
| | | <el-table ref="multipleTableRef" :data="tableData" border style="width: 100%" class="multipleTableRef" @selection-change="handleSelectionChange" row-key="id" lazy :load="tableLoad" :tree-props="{ children: 'children', hasChildren: 'hasChildren' }"> |
| | | <el-table-column type="selection" width="55" /> |
| | | <el-table-column prop="name" label="菜单名称"></el-table-column> |
| | | <el-table-column prop="path" label="路由地址"></el-table-column> |
| | |
| | | </template> |
| | | </el-table-column> |
| | | </el-table> |
| | | <el-pagination |
| | | @size-change="handleSizeChange" |
| | | @current-change="handleCurrentChange" |
| | | :current-page="currentPage4" |
| | | :page-sizes="[100, 200, 300, 400]" |
| | | :page-size="100" |
| | | layout="total, sizes, prev, pager, next, jumper" |
| | | :total="400"> |
| | | </el-pagination> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | |
| | | <save-dialog v-if="dialog.save" ref="saveDialog" @success="handleSuccess" @closed="dialog.save=false"></save-dialog> |
| | | <save-dialog v-if="dialog.save" ref="saveDialog" :applicationList="applicationList" @success="handleSuccess" @closed="dialog.save=false"></save-dialog> |
| | | </template> |
| | | <script> |
| | | import saveDialog from './addMenu' |
| | |
| | | saveDialog |
| | | }, |
| | | methods: { |
| | | handleSuccess() { |
| | | |
| | | }, |
| | | tableLoad(row,treeNode,resolve) { |
| | | this.searchData.parentId= row.id; |
| | | this.$HTTP.get("/api/blade-system/menu/lazy-list",this.searchData).then(res=> { |
| | | if(res.code == 200) { |
| | | resolve(res.data); |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | clearSearch() { |
| | | this.searchData= { |
| | | name: "", |
| | |
| | | } |
| | | }) |
| | | }, |
| | | searchBtn() { |
| | | this.searchData.parentId=""; |
| | | searchBtn(parentId="0") { |
| | | this.searchData.parentId= parentId; |
| | | this.$HTTP.get("/api/blade-system/menu/lazy-list",this.searchData).then(res=> { |
| | | if(res.code == 200) { |
| | | console.log(res.data,111) |
| | | this.tableData = res.data; |
| | | } |
| | | }) |
| | |
| | | }, |
| | | table_edit(row){ |
| | | this.dialog.save = true |
| | | this.$nextTick(() => { |
| | | this.$refs.saveDialog.open('edit').setData(row) |
| | | this.$HTTP.get("/api/blade-system/menu/detail?id="+row.id).then(res=> { |
| | | if(res.code == 200) { |
| | | this.dialog.save = true; |
| | | this.$nextTick(() => { |
| | | this.$refs.saveDialog.open('edit').setData(res.data); |
| | | }) |
| | | } |
| | | }) |
| | | }, |
| | | //查看 |