| | |
| | | <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"> |
| | |
| | | }; |
| | | const handleSelectionChange = (val:any) => { |
| | | dynamicTags.value=val |
| | | } |
| | | } |
| | | const types=ref() |
| | | // 开启弹窗 |
| | | const dialogVisible = ref(false); |
| | |
| | | } |
| | | |
| | | dialogVisible.value = false; |
| | | clear() |
| | | }; |
| | | const clearAll=ref() |
| | | const clear=()=>{ |
| | | dynamicTags.value=[] |
| | | radio1.value="" |
| | | clearAll.value.clearSelection() |
| | | } |
| | | return { |
| | | clear, |
| | | clearAll, |
| | | total, |
| | | types, |
| | | filterText, |