|
@@ -861,6 +861,7 @@ import resetClass from "./componentCourse/resetClass";
|
|
|
import teacherList from "./componentCourse/teacherList";
|
|
|
import addCompound from "./componentCourse/addCompound";
|
|
|
import infoMsg from "./componentCourse/infoMsg";
|
|
|
+import cleanDeep from 'clean-deep'
|
|
|
let nowTime = new Date();
|
|
|
nowTime =
|
|
|
nowTime.getFullYear() +
|
|
@@ -1144,7 +1145,7 @@ export default {
|
|
|
headers: {
|
|
|
Authorization: getToken(),
|
|
|
},
|
|
|
- params: this.getSearchForm(),
|
|
|
+ params: cleanDeep(this.getSearchForm()),
|
|
|
url,
|
|
|
// responseType: "blob",
|
|
|
};
|
|
@@ -1157,8 +1158,11 @@ export default {
|
|
|
load.startLoading();
|
|
|
axios(options)
|
|
|
.then((res) => {
|
|
|
- console.log(res);
|
|
|
- this.$message.success(res.data.data);
|
|
|
+ if(res.data.code == 200) {
|
|
|
+ this.$message.success(res.data.data);
|
|
|
+ } else {
|
|
|
+ this.$message.error(res.data.msg)
|
|
|
+ }
|
|
|
// let blob = new Blob([res.data], {
|
|
|
// type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=utf-8'
|
|
|
// type: "application/vnd.ms-excel;charset=utf-8",
|