Merge branch 'main' of http://47.112.118.149:10082/xgxt_sd/zhxg_pc
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="app-container" v-loading.fullscreen.lock="fullLoading">
|
<div class="app-container" v-loading.fullscreen.lock="fullLoading">
|
||||||
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px">
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="120px">
|
||||||
<el-form-item label="学院" prop="deptId">
|
<el-form-item label="学院" prop="deptId">
|
||||||
<el-select v-model="queryParams.deptId" placeholder="请选择学院" clearable @keyup.enter.native="handleQuery">
|
<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-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
@@ -61,7 +61,8 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<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 { listAllYear } from "@/api/stuCQS/basedata/year";
|
||||||
import { fullLoading } from "@/api/helpFunc";
|
import { fullLoading } from "@/api/helpFunc";
|
||||||
|
|
||||||
@@ -95,10 +96,14 @@ export default {
|
|||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.getList();
|
this.getList();
|
||||||
this.getDeptList();
|
|
||||||
this.getYearList();
|
this.getYearList();
|
||||||
|
this.listDept();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
async listDept() {
|
||||||
|
const res = await getDeptName();
|
||||||
|
this.deptList = [...res.data];
|
||||||
|
},
|
||||||
/** 查询辅导员评价状态列表 */
|
/** 查询辅导员评价状态列表 */
|
||||||
async getList() {
|
async getList() {
|
||||||
this.loading = true;
|
this.loading = true;
|
||||||
@@ -112,16 +117,6 @@ export default {
|
|||||||
this.loading = false;
|
this.loading = false;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
/** 获取学院列表 */
|
|
||||||
async getDeptList() {
|
|
||||||
try {
|
|
||||||
const response = await getDeptNameList({});
|
|
||||||
console.log("学院数据响应:", response);
|
|
||||||
this.deptList = response.data;
|
|
||||||
} catch (error) {
|
|
||||||
console.error("获取学院列表失败", error);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
/** 获取学年列表 */
|
/** 获取学年列表 */
|
||||||
async getYearList() {
|
async getYearList() {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user