This commit is contained in:
hh 2024-03-26 19:45:33 +08:00
parent e1f887e055
commit 2bed8d3933
2 changed files with 17 additions and 4 deletions

View File

@ -1,6 +1,6 @@
<template> <template>
<div style="background: #ececec; padding-top: 0px;padding-left: 20px;padding-right: 20px;padding-bottom: 20px;"> <div style="background: #ececec; padding-top: 0px;padding-left: 20px;padding-right: 20px;padding-bottom: 20px;">
    <a-card title="四六级总通过率查询" :bordered="false">     <a-card title="考场座位查询" :bordered="false">
<a-row> <a-row>
<a-col :span="5"> <a-col :span="5">
<locationaTree ref="locationaTrees" :height="700" @onSelect="onSelect"></locationaTree> <locationaTree ref="locationaTrees" :height="700" @onSelect="onSelect"></locationaTree>

View File

@ -3,10 +3,10 @@
<a-card title="四六级总通过率查询" :bordered="false"> <a-card title="四六级总通过率查询" :bordered="false">
<template #extra> <template #extra>
<a-select v-model:value="college" style="width: 300px" :options="collegeOptions"></a-select> <a-select v-model:value="college" style="width: 300px" :options="collegeOptions"></a-select>
<a-select v-model:value="entrydate" style="margin-left: 15px;width: 100px" <a-select v-model:value="entrydate" style="margin-left: 10px;width: 100px"
:options="entrydateOptions"></a-select> :options="entrydateOptions"></a-select>
<a-button style="margin-left: 10px;" type="primary" @click="query">查询</a-button>
</template> </template>
<a-row :gutter="24"> <a-row :gutter="24">
<a-col :xl="12" :style="{ marginBottom: '24px' }"> <a-col :xl="12" :style="{ marginBottom: '24px' }">
<div class="container"> <div class="container">
@ -33,6 +33,7 @@ export default {
return { return {
Url: { Url: {
getGradeAndCollegeData: '/cet/getGradeAndCollege', getGradeAndCollegeData: '/cet/getGradeAndCollege',
getData: '/cet/getData'
}, },
collegeOptions: [], collegeOptions: [],
entrydateOptions: [], entrydateOptions: [],
@ -143,9 +144,21 @@ export default {
async getGradeAndCollegeData() { async getGradeAndCollegeData() {
const data = await defHttp.get({ url: this.Url.getGradeAndCollegeData }); const data = await defHttp.get({ url: this.Url.getGradeAndCollegeData });
this.collegeOptions = data.colleges; this.collegeOptions = data.colleges;
this.college= this.collegeOptions[0].value; //
this.collegeOptions.unshift({ value: '全校', label: '全校' });
this.college = this.collegeOptions[0].value;
this.entrydateOptions = data.entrydates; this.entrydateOptions = data.entrydates;
this.entrydate = this.entrydateOptions[0].value; this.entrydate = this.entrydateOptions[0].value;
this.query();
},
//
async query() {
let params = {
college: this.college,
entrydate: this.entrydate
}
const data = await defHttp.get({ url: this.Url.getData, params });
this.$message.info(`查询结果:${JSON.stringify(data)}`);
} }
}, },
mounted() { mounted() {