部分bug修改

This commit is contained in:
xbx 2024-05-20 12:22:00 +08:00
parent b9d306edc5
commit d81438ddba
2 changed files with 11 additions and 4 deletions

View File

@ -151,8 +151,7 @@ export default {
}),
};
});
this.collegeMajor = this.collegeMajorOptions[0].value;
console.log(this.collegeMajorOptions);
this.collegeMajor = ['东语学院', '日语'];
},
//
async query() {
@ -162,7 +161,7 @@ export default {
//this.collegeMajornull
if (!this.collegeMajor) {
this.collegeMajor = ['东语学院'];
this.collegeMajor = ['东语学院', '日语'];
}
let major = null;
let college = null;

View File

@ -4,7 +4,7 @@
<template #extra>
<a-select v-model:value="collegeMajor" style="width: 300px" :options="collegeMajorOptions"></a-select>
<a-select v-model:value="batch" :options="batchOptions" change-on-select
style="margin-left: 10px;width: 100px" />
style="margin-left: 10px;width: 120px" />
<a-button style="margin-left: 10px;" type="primary" @click="query">查询</a-button>
</template>
<div>
@ -88,6 +88,14 @@ export default {
+ '</table>';
}
},
toolbox: {
show: true,
feature: {
magicType: { show: true, type: ['line', 'bar'] },
restore: { show: true },
saveAsImage: { show: true },
},
},
//
grid: {
left: '3%',