| | |
| | | * @Author: lzhe lzhe@example.com |
| | | * @Date: 2024-03-26 10:28:33 |
| | | * @LastEditors: lzhe lzhe@example.com |
| | | * @LastEditTime: 2024-04-01 18:24:25 |
| | | * @LastEditTime: 2024-04-07 11:54:15 |
| | | * @FilePath: /smart-web/src/views/master/person/main/index.vue |
| | | * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE |
| | | --> |
| | | <template> |
| | | <div class="dict-main"> |
| | | <el-form :inline="true" :model="searchData" abel-width="80px"> |
| | | <el-form :inline="true" :model="searchData" label-width="80px"> |
| | | <el-row> |
| | | <el-col :span="6"> |
| | | <el-form-item label="菜单名称"> |
| | |
| | | <div> |
| | | <div class="dict-Btn"> |
| | | <div class="dict-btn-bottom"> |
| | | <el-button type="primary" @click="addPerson">+ 新增</el-button> |
| | | <el-button type="danger" plain @click="delPerson">删除</el-button> |
| | | <el-button type="primary" @click="addData">+ 新增</el-button> |
| | | <el-button type="danger" plain @click="delData">删除</el-button> |
| | | </div> |
| | | </div> |
| | | <div class="dict-table"> |
| | |
| | | methods: { |
| | | handleSuccess(formAddMenu) { |
| | | this.searchData.parentId = formAddMenu.parentId; |
| | | this.searchClearBtn(); |
| | | this.clearSearch(); |
| | | }, |
| | | tableLoad(row,treeNode,resolve) { |
| | | this.searchData.parentId= row.id; |
| | |
| | | resolve(res.data); |
| | | } |
| | | }) |
| | | |
| | | }, |
| | | clearSearch() { |
| | | this.searchData= { |
| | |
| | | }) |
| | | }, |
| | | //添加 |
| | | addPerson(){ |
| | | addData(){ |
| | | this.dialog.save = true |
| | | this.$nextTick(() => { |
| | | this.$refs.saveDialog.open() |
| | | }) |
| | | }, |
| | | table_edit(row,index,fixed){ |
| | | this.dialog.save = true |
| | | this.$HTTP.get("/api/blade-system/menu/detail?id="+row.id).then(res=> { |
| | | if(res.code == 200) { |
| | | this.dialog.save = true; |
| | |
| | | handleSelectionChange(selection) { |
| | | this.selection = selection; |
| | | }, |
| | | delPerson() { |
| | | delData() { |
| | | if(this.selection.length == 0) { |
| | | this.$message({ |
| | | message: '请选择至少一条数据', |