|
@@ -148,7 +148,7 @@ export default {
|
|
|
})
|
|
|
.catch((v) => {
|
|
|
console.log(v)
|
|
|
- if (v == "cancel") {
|
|
|
+ if (v == "cancel" && !this.back) {
|
|
|
this.goTo(
|
|
|
"/test?userid=" +
|
|
|
this.userid +
|
|
@@ -159,6 +159,17 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ }else if(this.back == 'sass'){
|
|
|
+ this.goTo(
|
|
|
+ "/sassPlatform?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
}
|
|
|
});
|
|
|
},
|
|
@@ -198,7 +209,8 @@ export default {
|
|
|
this.cid = res.data.courseId;
|
|
|
if (look == 5) {
|
|
|
this.$message.success("保存成功")
|
|
|
- this.goTo(
|
|
|
+ if(!this.back){
|
|
|
+ this.goTo(
|
|
|
"/test?userid=" +
|
|
|
this.userid +
|
|
|
"&oid=" +
|
|
@@ -208,6 +220,18 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ }else if(back == 'sass'){
|
|
|
+ this.goTo(
|
|
|
+ "/sassPlatform?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
// setTimeout(() => {
|
|
|
// this.getData(2);
|
|
@@ -260,7 +284,8 @@ export default {
|
|
|
.then((res) => {
|
|
|
if (look == 3) {
|
|
|
this.$message.success("发布成功")
|
|
|
- this.goTo(
|
|
|
+ if(!this.back){
|
|
|
+ this.goTo(
|
|
|
"/test?userid=" +
|
|
|
this.userid +
|
|
|
"&oid=" +
|
|
@@ -270,13 +295,26 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ }else if(this.back == 'sass'){
|
|
|
+ this.goTo(
|
|
|
+ "/sassPlatform?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
+ }
|
|
|
} else if (look == 4) {
|
|
|
this.$message.success("保存成功")
|
|
|
} else if (look == 1 || look == 2) {
|
|
|
// this.$message.success("保存成功")
|
|
|
} else if (look == 5) {
|
|
|
this.$message.success("保存成功")
|
|
|
- this.goTo(
|
|
|
+ if(!this.back){
|
|
|
+ this.goTo(
|
|
|
"/test?userid=" +
|
|
|
this.userid +
|
|
|
"&oid=" +
|
|
@@ -286,6 +324,18 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
+ }else if(this.back == 'sass'){
|
|
|
+ this.goTo(
|
|
|
+ "/sassPlatform?userid=" +
|
|
|
+ this.userid +
|
|
|
+ "&oid=" +
|
|
|
+ this.oid +
|
|
|
+ "&org=" +
|
|
|
+ this.org +
|
|
|
+ "&role=" +
|
|
|
+ this.role
|
|
|
+ );
|
|
|
+ }
|
|
|
}
|
|
|
setTimeout(() => {
|
|
|
this.getData(2);
|