|
@@ -31,6 +31,7 @@ export default {
|
|
|
clearable: { type: Boolean, default: true },
|
|
|
semesterId: { type: String, default: "" },
|
|
|
examTypeId: { type: String, default: "" },
|
|
|
+ collegeId: { type: String, default: "" },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -59,6 +60,13 @@ export default {
|
|
|
this.$emit("change", {});
|
|
|
}
|
|
|
},
|
|
|
+ collegeId(val, oldval) {
|
|
|
+ if (val !== oldval) {
|
|
|
+ this.search();
|
|
|
+ this.$emit("input", "");
|
|
|
+ this.$emit("change", {});
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
async created() {
|
|
|
this.search();
|
|
@@ -70,6 +78,7 @@ export default {
|
|
|
let data = {
|
|
|
semesterId: this.semesterId,
|
|
|
examTypeId: this.examTypeId,
|
|
|
+ collegeId: this.collegeId,
|
|
|
};
|
|
|
|
|
|
const res = await courseQuery(data);
|