From eef1ef0be935d4a3d8fc691b2666f41796b2d4a5 Mon Sep 17 00:00:00 2001 From: gaoshp <291585735@qq.com> Date: 星期一, 04 十一月 2024 19:57:08 +0800 Subject: [PATCH] 增加列表显示 --- src/views/console/system/menu.vue | 24 +++++++----------------- 1 files changed, 7 insertions(+), 17 deletions(-) diff --git a/src/views/console/system/menu.vue b/src/views/console/system/menu.vue index ea69a17..038c984 100644 --- a/src/views/console/system/menu.vue +++ b/src/views/console/system/menu.vue @@ -2,13 +2,13 @@ * @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-10-24 17:49:25 * @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="鑿滃崟鍚嶇О"> @@ -26,13 +26,6 @@ </el-form-item> </el-col> <el-col :span="6"> - <el-form-item label="鎵�灞炲簲鐢�"> - <el-select v-model="searchData.belongApplication" style="width: 100%"> - <el-option v-for="item in applicationList" :key="item.code" :label="item.name" :value="item.code"/> - </el-select> - </el-form-item> - </el-col> - <el-col :span="6"> <el-form-item> <el-button type="primary" @click="searchclick">鎼滅储</el-button> <el-button @click="clearSearch">娓呯┖</el-button> @@ -43,8 +36,8 @@ <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"> @@ -65,7 +58,6 @@ <div>{{scope.row.keepAlive == 1?"鏄�":"鍚�"}}</div> </template> </el-table-column> - <el-table-column prop="belongApplication" label="鎵�灞炲簲鐢�"></el-table-column> <el-table-column prop="sort" label="鑿滃崟鎺掑簭"></el-table-column> <el-table-column fixed="right" label="鎿嶄綔" width="200"> <template #default="scope"> @@ -124,7 +116,7 @@ methods: { handleSuccess(formAddMenu) { this.searchData.parentId = formAddMenu.parentId; - this.searchClearBtn(); + this.clearSearch(); }, tableLoad(row,treeNode,resolve) { this.searchData.parentId= row.id; @@ -133,7 +125,6 @@ resolve(res.data); } }) - }, clearSearch() { this.searchData= { @@ -186,14 +177,13 @@ }) }, //娣诲姞 - 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; @@ -216,7 +206,7 @@ handleSelectionChange(selection) { this.selection = selection; }, - delPerson() { + delData() { if(this.selection.length == 0) { this.$message({ message: '璇烽�夋嫨鑷冲皯涓�鏉℃暟鎹�', -- Gitblit v1.9.3