部分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; this.collegeMajor = ['东语学院', '日语'];
console.log(this.collegeMajorOptions);
}, },
// //
async query() { async query() {
@ -162,7 +161,7 @@ export default {
//this.collegeMajornull //this.collegeMajornull
if (!this.collegeMajor) { if (!this.collegeMajor) {
this.collegeMajor = ['东语学院']; this.collegeMajor = ['东语学院', '日语'];
} }
let major = null; let major = null;
let college = null; let college = null;

View File

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