|
@@ -61,6 +61,7 @@
|
|
|
@change="clearCourseProperty"
|
|
|
placeholder="课程名称"
|
|
|
size="small"
|
|
|
+ @focus="e => getCourses(e.target.value)"
|
|
|
>
|
|
|
<el-option
|
|
|
v-for="item in courseInfoSelect"
|
|
@@ -595,24 +596,16 @@ export default {
|
|
|
//查询所有课程
|
|
|
getCourses(query) {
|
|
|
query = query.trim();
|
|
|
- if (query) {
|
|
|
- if (!(query.indexOf("(") > -1 && query.indexOf(")") > -1)) {
|
|
|
- this.courseLoading = true;
|
|
|
- this.$http
|
|
|
- .get(CORE_API + "/course/query?name=" + query + "&enable=true")
|
|
|
- .then(response => {
|
|
|
- this.courseList = response.data;
|
|
|
- this.courseLoading = false;
|
|
|
- if (this.blueStruct.courseNo) {
|
|
|
- this.getCoursePropertyList();
|
|
|
- }
|
|
|
- });
|
|
|
- } else {
|
|
|
- this.getCoursePropertyList();
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.courseList = [];
|
|
|
- }
|
|
|
+ this.courseLoading = true;
|
|
|
+ this.$http
|
|
|
+ .get(CORE_API + "/course/query?name=" + query + "&enable=true")
|
|
|
+ .then(response => {
|
|
|
+ this.courseList = response.data;
|
|
|
+ this.courseLoading = false;
|
|
|
+ if (this.blueStruct.courseNo) {
|
|
|
+ this.getCoursePropertyList();
|
|
|
+ }
|
|
|
+ });
|
|
|
},
|
|
|
clearCourseProperty() {
|
|
|
this.blueStruct.coursePropertyId = "";
|