From 6666ce5526b1ed17f5c3906c94620cad586745a5 Mon Sep 17 00:00:00 2001 From: RuoYi <yzz_ivy@163.com> Date: 星期五, 28 六月 2024 17:01:39 +0800 Subject: [PATCH] 优化代码 --- src/views/monitor/online/index.vue | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/views/monitor/online/index.vue b/src/views/monitor/online/index.vue index 4e34135..5f4b268 100644 --- a/src/views/monitor/online/index.vue +++ b/src/views/monitor/online/index.vue @@ -48,12 +48,7 @@ </el-table-column> <el-table-column label="鎿嶄綔" align="center" class-name="small-padding fixed-width"> <template #default="scope"> - <el-button - type="text" - icon="Delete" - @click="handleForceLogout(scope.row)" - v-hasPermi="['monitor:online:forceLogout']" - >寮洪��</el-button> + <el-button link type="primary" icon="Delete" @click="handleForceLogout(scope.row)" v-hasPermi="['monitor:online:forceLogout']">寮洪��</el-button> </template> </el-table-column> </el-table> @@ -87,16 +82,19 @@ loading.value = false; }); } + /** 鎼滅储鎸夐挳鎿嶄綔 */ function handleQuery() { pageNum.value = 1; getList(); } + /** 閲嶇疆鎸夐挳鎿嶄綔 */ function resetQuery() { proxy.resetForm("queryRef"); handleQuery(); } + /** 寮洪��鎸夐挳鎿嶄綔 */ function handleForceLogout(row) { proxy.$modal.confirm('鏄惁纭寮洪��鍚嶇О涓�"' + row.userName + '"鐨勭敤鎴�?').then(function () { -- Gitblit v1.9.3