|
@@ -29,6 +29,7 @@ export default {
|
|
|
value: { type: [Number, String], default: "" },
|
|
|
clearable: { type: Boolean, default: true },
|
|
|
printPlanId: { type: [String, Array], default: "" },
|
|
|
+ examId: { type: String, default: "" },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
@@ -50,6 +51,13 @@ export default {
|
|
|
this.$emit("change", {});
|
|
|
}
|
|
|
},
|
|
|
+ examId(val, oldval) {
|
|
|
+ if (val !== oldval) {
|
|
|
+ this.search("");
|
|
|
+ this.$emit("input", "");
|
|
|
+ this.$emit("change", {});
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
async created() {
|
|
|
this.search();
|
|
@@ -59,6 +67,7 @@ export default {
|
|
|
const res = await placeQuery({
|
|
|
param: query,
|
|
|
printPlanId: this.printPlanId,
|
|
|
+ examId: this.examId,
|
|
|
});
|
|
|
this.optionList = res;
|
|
|
},
|