47 2 months ago
parent
commit
5bf0f2bf82

+ 39 - 10
src/views/system/graduateStudent/index.vue

@@ -54,22 +54,38 @@
             />
           </el-form-item>
           <el-form-item label="专业" prop="major">
-            <el-input
-              v-model="queryParams.major"
-              placeholder="请输入专业"
+            <el-select 
+              v-model="queryParams.major" 
+              placeholder="请选择专业"
+              @change="handleSupervisorChange"
               clearable
-              @keyup.enter="handleQuery"
+              filterable
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in majorOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="专硕" prop="masterType"> 
-            <el-input
-              v-model="queryParams.masterType"
-              placeholder="请输入学位类型"
+            <el-select 
+              v-model="queryParams.masterType" 
+              placeholder="请选择学位类型"
+              @change="handleSupervisorChange"
               clearable
-              @keyup.enter="handleQuery"
+              filterable
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in masterTypeOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="手机号码" prop="mobile">
             <el-input
@@ -413,6 +429,19 @@ const handleSupervisorChange = (value: number) => {
   }
 }
 
+// 获取所有专业
+const majorOptions = [
+  { value: '测绘工程' },
+  { value: '地理信息系统' },
+  { value: '遥感科学' },
+]
+
+// 获取所有学位类型
+const masterTypeOptions = [
+  { value: '硕士' },
+  { value: '博士' },
+]
+
 // const NewList = (inputList) => {
 //   if (userInfo.value.userType === '4') {
 //     return inputList; // 直接返回所有项目

+ 38 - 10
src/views/system/workroomCollege/user/student.vue

@@ -45,22 +45,38 @@
             />
           </el-form-item>
           <el-form-item label="专业" prop="major">
-            <el-input
-              v-model="queryParams.major"
-              placeholder="请输入专业"
+            <el-select 
+              v-model="queryParams.major" 
+              placeholder="请选择专业"
+              @change="handleSupervisorChange"
               clearable
-              @keyup.enter="handleQuery"
+              filterable
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in majorOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="专硕" prop="masterType"> 
-            <el-input
-              v-model="queryParams.masterType"
-              placeholder="请输入学位类型"
+            <el-select 
+              v-model="queryParams.masterType" 
+              placeholder="请选择学位类型"
+              @change="handleSupervisorChange"
               clearable
-              @keyup.enter="handleQuery"
+              filterable
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in masterTypeOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item> 
           <el-form-item label="手机号码" prop="mobile">
             <el-input
@@ -413,6 +429,18 @@ const handleSupervisorChange = (value: number) => {
   }
 }
 
+// 获取所有专业
+const majorOptions = [
+  { value: '测绘工程' },
+  { value: '地理信息系统' },
+  { value: '遥感科学' },
+]
+
+// 获取所有学位类型
+const masterTypeOptions = [
+  { value: '硕士' },
+  { value: '博士' },
+]
 
 /** 搜索按钮操作 */
 const handleQuery = () => {

+ 34 - 10
src/views/system/workroomTeacher/user/student.vue

@@ -40,22 +40,34 @@
             />
           </el-form-item>
           <el-form-item label="专业" prop="major">
-            <el-input
-              v-model="queryParams.major"
-              placeholder="请输入专业"
-              clearable
+            <el-select 
+              v-model="queryParams.major" 
+              placeholder="请选择专业"
               @keyup.enter="handleQuery"
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in majorOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item>
           <el-form-item label="专硕" prop="masterType"> 
-            <el-input
-              v-model="queryParams.masterType"
-              placeholder="请输入学位类型"
-              clearable
+            <el-select 
+              v-model="queryParams.masterType" 
+              placeholder="请选择学位类型"
               @keyup.enter="handleQuery"
               class="!w-240px"
-            />
+            >
+              <el-option
+                v-for="option in masterTypeOptions"
+                :key="option.value"
+                :label="option.value"
+                :value="option.value"
+              />
+            </el-select>
           </el-form-item>
           <!-- <el-form-item label="工作间" prop="deptName">
             <el-input v-model="queryParams.deptName" placeholder="请输入工作间" clearable @keyup.enter="handleQuery" class="!w-240px" />
@@ -350,6 +362,18 @@ const openUserAchievement = (id) => {
   router.push({ name: 'UserAchievement', query: { id: id} });
 }
 
+// 获取所有专业
+const majorOptions = [
+  { value: '测绘工程' },
+  { value: '地理信息系统' },
+  { value: '遥感科学' },
+]
+
+// 获取所有学位类型
+const masterTypeOptions = [
+  { value: '硕士' },
+  { value: '博士' },
+]
 
 /** 搜索按钮操作 */
 const handleQuery = () => {