Explorar el Código

搜索正在建设中

lifanagju_citu hace 4 días
padre
commit
06b32a711b
Se han modificado 1 ficheros con 6 adiciones y 3 borrados
  1. 6 3
      src/views/menduner/system/talentMap/components/card.vue

+ 6 - 3
src/views/menduner/system/talentMap/components/card.vue

@@ -12,7 +12,7 @@
         <el-input v-model="queryParams.name" placeholder="请输入名称" clearable @keyup.enter="handleQuery" class="!w-180px" />
       </el-form-item>
       <el-form-item>
-        <el-button @click="handleQuery"><Icon icon="ep:search" /> 搜索</el-button>
+        <el-button @click="handleQuery('search')"><Icon icon="ep:search" /> 搜索</el-button>
         <el-button @click="resetQuery"><Icon icon="ep:refresh" class="mr-5px" /> 重置</el-button>
         <el-button type="primary" plain @click="handleAdd">
           <Icon icon="ep:plus" class="mr-5px" /> 新增解析
@@ -271,8 +271,11 @@ const getList = async () => {
 }
 
 /** 搜索按钮操作 */
-const handleQuery = () => {
-  message.warning('搜索正在建设中...')
+const handleQuery = (type) => {
+  if (type === 'search') {
+    message.warning('搜索正在建设中...')
+    return
+  }
   queryParams.pageNo = 1
   getList()
 }