This commit is contained in:
2025-09-17 17:44:18 +08:00

View File

@@ -3,7 +3,7 @@
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px">
<el-form-item label="学院" prop="deptId">
<el-select v-model="queryParams.deptId" placeholder="请选择学院" clearable @keyup.enter.native="handleQuery">
<el-option v-for="(dept, index) in deptList" :key="index" :label="dept.label" :value="dept.value">
<el-option v-for="item in deptList" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</el-select>
</el-form-item>
@@ -61,7 +61,8 @@
</template>
<script>
import { getTeacherEvaluationStatus, exportTeacherEvaluationStatus, getDeptNameList } from "@/api/stuCQS/teacher-evaluation-status";
import { getTeacherEvaluationStatus, exportTeacherEvaluationStatus } from "@/api/stuCQS/teacher-evaluation-status";
import { getDeptName } from "@/api/system/dept";
import { listAllYear } from "@/api/stuCQS/basedata/year";
import { fullLoading } from "@/api/helpFunc";
@@ -95,10 +96,14 @@ export default {
},
created() {
this.getList();
this.getDeptList();
this.getYearList();
this.listDept();
},
methods: {
async listDept() {
const res = await getDeptName();
this.deptList = [...res.data];
},
/** 查询辅导员评价状态列表 */
async getList() {
this.loading = true;
@@ -112,16 +117,6 @@ export default {
this.loading = false;
}
},
/** 获取学院列表 */
async getDeptList() {
try {
const response = await getDeptNameList({});
console.log("学院数据响应:", response);
this.deptList = response.data;
} catch (error) {
console.error("获取学院列表失败", error);
}
},
/** 获取学年列表 */
async getYearList() {
try {