|
@@ -1060,7 +1060,7 @@ export default {
|
|
|
} else if ("copyTo" == where) {
|
|
|
this.queryExams4CopyToLoading = true;
|
|
|
}
|
|
|
- this.$http
|
|
|
+ this.$httpWithMsg
|
|
|
.get(EXAM_WORK_API + "/exam/queryByNameLike?name=" + name)
|
|
|
.then(response => {
|
|
|
if ("search" == where) {
|
|
@@ -1114,7 +1114,7 @@ export default {
|
|
|
|
|
|
var url =
|
|
|
CORE_API + "/org/query?" + new URLSearchParams({ name: orgName });
|
|
|
- this.$http
|
|
|
+ this.$httpWithMsg
|
|
|
.get(url)
|
|
|
.then(response => {
|
|
|
if ("search" == where) {
|
|
@@ -1145,7 +1145,7 @@ export default {
|
|
|
row.rootOrgId +
|
|
|
"&studentId=" +
|
|
|
row.studentId;
|
|
|
- this.$http.get(url).then(response => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
if (response.data.photoPath) {
|
|
|
this.photo.url = response.data.photoPath;
|
|
|
this.photoDialog = true;
|
|
@@ -1212,7 +1212,7 @@ export default {
|
|
|
this.pageSize +
|
|
|
"?" +
|
|
|
param;
|
|
|
- this.$http.get(url).then(response => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
this.tableData = response.data.list;
|
|
|
this.total = response.data.total;
|
|
|
this.loading = false;
|
|
@@ -1221,7 +1221,7 @@ export default {
|
|
|
//查询所有课程
|
|
|
getSpecialtys() {
|
|
|
var orgId = this.user.orgId;
|
|
|
- this.$http
|
|
|
+ this.$httpWithMsg
|
|
|
.get(CORE_API + "/specialty/all?orgId=" + orgId)
|
|
|
.then(response => {
|
|
|
console.log(response);
|
|
@@ -1232,7 +1232,7 @@ export default {
|
|
|
query = query.split(" - ")[0];
|
|
|
if (query) {
|
|
|
this.courseLoading4Search = true;
|
|
|
- this.$http
|
|
|
+ this.$httpWithMsg
|
|
|
.get(CORE_API + "/course/query?name=" + query)
|
|
|
.then(response => {
|
|
|
this.courseList4Search = response.data;
|
|
@@ -1246,7 +1246,7 @@ export default {
|
|
|
query = query.split(" - ")[0];
|
|
|
if (query) {
|
|
|
this.courseLoading4InsertOrUpdate = true;
|
|
|
- this.$http
|
|
|
+ this.$httpWithMsg
|
|
|
.get(CORE_API + "/course/query?name=" + query)
|
|
|
.then(response => {
|
|
|
this.courseList4InsertOrUpdate = response.data;
|
|
@@ -1261,7 +1261,7 @@ export default {
|
|
|
var url = EXAM_WORK_API + "/exam_student";
|
|
|
this.$refs.addingStudentForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.$http.put(url, this.examStudentForm).then(response => {
|
|
|
+ this.$httpWithMsg.put(url, this.examStudentForm).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1280,7 +1280,7 @@ export default {
|
|
|
var url = EXAM_WORK_API + "/exam_student";
|
|
|
this.$refs.updateStudentForm.validate(valid => {
|
|
|
if (valid) {
|
|
|
- this.$http.put(url, this.examStudentForm).then(response => {
|
|
|
+ this.$httpWithMsg.put(url, this.examStudentForm).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1302,7 +1302,7 @@ export default {
|
|
|
type: "error"
|
|
|
}).then(() => {
|
|
|
var url = EXAM_WORK_API + "/exam_student/" + row.id;
|
|
|
- this.$http.delete(url).then(response => {
|
|
|
+ this.$httpWithMsg.delete(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1327,7 +1327,7 @@ export default {
|
|
|
type: "error"
|
|
|
}).then(() => {
|
|
|
var url = EXAM_WORK_API + "/exam_student/" + this.examStuIds;
|
|
|
- this.$http.delete(url).then(response => {
|
|
|
+ this.$httpWithMsg.delete(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1361,7 +1361,7 @@ export default {
|
|
|
let delExamStudentDone = done;
|
|
|
let url =
|
|
|
EXAM_WORK_API + "/exam_student/exam/" + this.formSearch.examId;
|
|
|
- this.$http.delete(url).then(response => {
|
|
|
+ this.$httpWithMsg.delete(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1462,7 +1462,7 @@ export default {
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = EXAM_WORK_API + "/exam_student/disable/" + row.id;
|
|
|
- this.$http.put(url).then(response => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1480,7 +1480,7 @@ export default {
|
|
|
type: "warning"
|
|
|
}).then(() => {
|
|
|
var url = EXAM_WORK_API + "/exam_student/enable/" + row.id;
|
|
|
- this.$http.put(url).then(response => {
|
|
|
+ this.$httpWithMsg.put(url).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1535,7 +1535,7 @@ export default {
|
|
|
});
|
|
|
|
|
|
this.fileLoading = true;
|
|
|
- this.$http.post(url, {}).then(response => {
|
|
|
+ this.$httpWithMsg.post(url, {}).then(response => {
|
|
|
console.log(response);
|
|
|
this.$notify({
|
|
|
type: "success",
|
|
@@ -1662,7 +1662,7 @@ export default {
|
|
|
CORE_API +
|
|
|
"/rolePrivilege/checkPrivileges?" +
|
|
|
new URLSearchParams(params);
|
|
|
- this.$http.post(url).then(response => {
|
|
|
+ this.$httpWithMsg.post(url).then(response => {
|
|
|
this.rolePrivileges = response.data;
|
|
|
});
|
|
|
},
|
|
@@ -1684,7 +1684,7 @@ export default {
|
|
|
this.formSearch.rootOrgId = this.user.rootOrgId;
|
|
|
if (this.pureLC) {
|
|
|
var url = CORE_API + "/user/" + this.user.userId;
|
|
|
- this.$http.get(url).then(response => {
|
|
|
+ this.$httpWithMsg.get(url).then(response => {
|
|
|
var userInfo = response.data;
|
|
|
this.lc_id = userInfo.orgId;
|
|
|
this.lc_name = userInfo.orgName;
|