From 988558aaa309068fd393cc654be537434b0a15ea Mon Sep 17 00:00:00 2001 From: Your Name <123456> Date: 星期四, 11 八月 2022 19:11:18 +0800 Subject: [PATCH] 修改 --- src/components/DailogSearchUser/index.vue | 21 +++++++++++++++------ 1 files changed, 15 insertions(+), 6 deletions(-) diff --git a/src/components/DailogSearchUser/index.vue b/src/components/DailogSearchUser/index.vue index e7f8eb1..7345d2e 100644 --- a/src/components/DailogSearchUser/index.vue +++ b/src/components/DailogSearchUser/index.vue @@ -13,20 +13,20 @@ <el-col :span="14" style="padding: 20px"> <el-form ref="ruleFormRef" :model="ruleForm" status-icon> <el-row> - <el-col :span="10" :offset="1"> + <!-- <el-col :span="10" :offset="1"> <el-form-item size="default"> <el-input v-model="ruleForm.pass" placeholder="登录名" /> </el-form-item> - </el-col> + </el-col> --> <el-col :span="8" :offset="1"> <el-form-item> - <el-button size="default" type="primary" >查询</el-button> - <el-button size="default">重置</el-button> + <!-- <el-button size="default" type="primary" >查询</el-button> --> + <el-button size="default" @click="clear">清除选择</el-button> </el-form-item> </el-col> </el-row> </el-form> - <el-table :data="tableData" style="width: 100%; margin-top: 20px" @selection-change="handleSelectionChange"> + <el-table :data="tableData" style="width: 100%; margin-top: 20px" ref="clearAll" @selection-change="handleSelectionChange"> <el-table-column type="selection" width="55" v-if="types==0"/> <el-table-column align="center" v-if="types!=0"> <template #default="scope"> @@ -164,7 +164,7 @@ }; const handleSelectionChange = (val:any) => { dynamicTags.value=val -} + } const types=ref() // 开启弹窗 const dialogVisible = ref(false); @@ -189,8 +189,17 @@ } dialogVisible.value = false; + clear() }; + const clearAll=ref() + const clear=()=>{ + dynamicTags.value=[] + radio1.value="" + clearAll.value.clearSelection() + } return { + clear, + clearAll, total, types, filterText, -- Gitblit v1.9.2