|
@@ -31,7 +31,8 @@ export default {
|
|
|
value: { type: [Number, String], default: "" },
|
|
|
styles: { type: String, default: "" },
|
|
|
clearable: { type: Boolean, default: true },
|
|
|
- printPlanId: { type: [String, Array], default: "" }
|
|
|
+ printPlanId: { type: [String, Array], default: "" },
|
|
|
+ teachingRoomId: { type: [String, Array], default: "" }
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -52,6 +53,13 @@ export default {
|
|
|
this.$emit("input", "");
|
|
|
this.$emit("change", {});
|
|
|
}
|
|
|
+ },
|
|
|
+ teachingRoomId(val, oldval) {
|
|
|
+ if (val !== oldval) {
|
|
|
+ this.search("");
|
|
|
+ this.$emit("input", "");
|
|
|
+ this.$emit("change", {});
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
async created() {
|
|
@@ -61,7 +69,8 @@ export default {
|
|
|
async search(query) {
|
|
|
const res = await courseQuery({
|
|
|
param: query,
|
|
|
- printPlanId: this.printPlanId
|
|
|
+ printPlanId: this.printPlanId,
|
|
|
+ teachingRoomId: this.teachingRoomId
|
|
|
});
|
|
|
this.optionList = res;
|
|
|
},
|