From b87927b75d9c7c962be0a22e94ec7fa0bb046f31 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期三, 07 十二月 2022 20:24:23 +0800 Subject: [PATCH] 修复树形下拉不能默认选中(I64ESN) --- src/views/system/dept/index.vue | 26 ++++++-------------------- 1 files changed, 6 insertions(+), 20 deletions(-) diff --git a/src/views/system/dept/index.vue b/src/views/system/dept/index.vue index 7df4b61..af51c50 100644 --- a/src/views/system/dept/index.vue +++ b/src/views/system/dept/index.vue @@ -6,11 +6,12 @@ v-model="queryParams.deptName" placeholder="璇疯緭鍏ラ儴闂ㄥ悕绉�" clearable + style="width: 200px" @keyup.enter="handleQuery" /> </el-form-item> <el-form-item label="鐘舵��" prop="status"> - <el-select v-model="queryParams.status" placeholder="閮ㄩ棬鐘舵��" clearable> + <el-select v-model="queryParams.status" placeholder="閮ㄩ棬鐘舵��" clearable style="width: 200px"> <el-option v-for="dict in sys_normal_disable" :key="dict.value" @@ -68,25 +69,9 @@ </el-table-column> <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template #default="scope"> - <el-button - type="text" - icon="Edit" - @click="handleUpdate(scope.row)" - v-hasPermi="['system:dept:edit']" - >淇敼</el-button> - <el-button - type="text" - icon="Plus" - @click="handleAdd(scope.row)" - v-hasPermi="['system:dept:add']" - >鏂板</el-button> - <el-button - v-if="scope.row.parentId != 0" - type="text" - icon="Delete" - @click="handleDelete(scope.row)" - v-hasPermi="['system:dept:remove']" - >鍒犻櫎</el-button> + <el-button link type="primary" icon="Edit" @click="handleUpdate(scope.row)" v-hasPermi="['system:dept:edit']">淇敼</el-button> + <el-button link type="primary" icon="Plus" @click="handleAdd(scope.row)" v-hasPermi="['system:dept:add']">鏂板</el-button> + <el-button v-if="scope.row.parentId != 0" link type="primary" icon="Delete" @click="handleDelete(scope.row)" v-hasPermi="['system:dept:remove']">鍒犻櫎</el-button> </template> </el-table-column> </el-table> @@ -104,6 +89,7 @@ value-key="deptId" placeholder="閫夋嫨涓婄骇閮ㄩ棬" check-strictly + :render-after-expand="false" /> </el-form-item> </el-col> -- Gitblit v1.9.3