|
@@ -672,7 +672,8 @@ export default {
|
|
|
id: null,
|
|
|
show: false,
|
|
|
compoundList: [],
|
|
|
- deleteList:[]
|
|
|
+ deleteList:[],
|
|
|
+ searchCount: 0,
|
|
|
};
|
|
|
},
|
|
|
components: {
|
|
@@ -801,6 +802,7 @@ export default {
|
|
|
count++;
|
|
|
}
|
|
|
}
|
|
|
+ this.searchCount = count
|
|
|
if (count <= 0) {
|
|
|
this.$message.error("请至少选择一个搜索条件");
|
|
|
return;
|
|
@@ -819,6 +821,10 @@ export default {
|
|
|
this.locationVisible = true;
|
|
|
},
|
|
|
onCourseExport() {
|
|
|
+ let params = this.getSearchForm()
|
|
|
+ if(this.searchCount <= 0) {
|
|
|
+ return
|
|
|
+ }
|
|
|
// 课表导出
|
|
|
let url = "/api-web/export/superFindCourseSchedules";
|
|
|
const options = {
|
|
@@ -826,7 +832,7 @@ export default {
|
|
|
headers: {
|
|
|
Authorization: getToken(),
|
|
|
},
|
|
|
- params: this.getSearchForm(),
|
|
|
+ params: params,
|
|
|
url,
|
|
|
responseType: "blob",
|
|
|
};
|
|
@@ -870,7 +876,12 @@ export default {
|
|
|
.catch(() => {});
|
|
|
},
|
|
|
getList() {
|
|
|
- superFindCourseSchedules(this.getSearchForm()).then((res) => {
|
|
|
+ let params = this.getSearchForm()
|
|
|
+ console
|
|
|
+ if(this.searchCount <= 0) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ superFindCourseSchedules(params).then((res) => {
|
|
|
if (res.code == 200) {
|
|
|
this.tableList = res.data.rows;
|
|
|
this.rules.total = res.data.total;
|