From 8edf0fc193df875b6e05d77be428e9134438857b Mon Sep 17 00:00:00 2001
From: Admin <978517621@qq.com>
Date: Tue, 16 Aug 2022 19:32:54 +0800
Subject: [PATCH] Default Changelist
---
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