|
@@ -115,41 +115,15 @@ export default {
|
|
|
methods: {
|
|
|
retrunCourse() {
|
|
|
this
|
|
|
- .$confirm("是否保存已编辑内容?", "提示", {
|
|
|
- confirmButtonText: "保存",
|
|
|
- cancelButtonText: "不保存",
|
|
|
+ .$confirm("退出当前页面将不保存已编辑内容,是否确定返回", "提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
distinguishCancelAndClose: true,
|
|
|
type: "warning",
|
|
|
})
|
|
|
.then(() => {
|
|
|
- if (this.cid == "" || this.cid == undefined) {
|
|
|
- if (this.title == "") {
|
|
|
- this.$message.error("请补充填写课程名称");
|
|
|
- return;
|
|
|
- } else {
|
|
|
- this.addWork(5);
|
|
|
- }
|
|
|
- // else if(!this.juriList.length){
|
|
|
- // this.$message.error("请选择权限")
|
|
|
- // return
|
|
|
- // }
|
|
|
- } else {
|
|
|
- if (this.title == "") {
|
|
|
- this.$message.error("请补充填写课程名称");
|
|
|
- return;
|
|
|
- } else {
|
|
|
- this.updateWork(5);
|
|
|
- }
|
|
|
- // else if(!this.juriList.length){
|
|
|
- // this.$message.error("请选择权限")
|
|
|
- // return
|
|
|
- // }
|
|
|
- }
|
|
|
- })
|
|
|
- .catch((v) => {
|
|
|
- console.log(v)
|
|
|
- if (v == "cancel" && !this.back) {
|
|
|
- this.goTo(
|
|
|
+ if(!this.back){
|
|
|
+ this.goTo(
|
|
|
"/test?userid=" +
|
|
|
this.userid +
|
|
|
"&oid=" +
|
|
@@ -159,8 +133,8 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
- }else if(this.back == 'sass'){
|
|
|
- this.goTo(
|
|
|
+ }else if(back == 'sass'){
|
|
|
+ this.goTo(
|
|
|
"/sassPlatform?userid=" +
|
|
|
this.userid +
|
|
|
"&oid=" +
|
|
@@ -170,7 +144,56 @@ export default {
|
|
|
"&role=" +
|
|
|
this.role
|
|
|
);
|
|
|
- }
|
|
|
+ }
|
|
|
+ // if (this.cid == "" || this.cid == undefined) {
|
|
|
+ // if (this.title == "") {
|
|
|
+ // this.$message.error("请补充填写课程名称");
|
|
|
+ // return;
|
|
|
+ // } else {
|
|
|
+ // this.addWork(5);
|
|
|
+ // }
|
|
|
+ // // else if(!this.juriList.length){
|
|
|
+ // // this.$message.error("请选择权限")
|
|
|
+ // // return
|
|
|
+ // // }
|
|
|
+ // } else {
|
|
|
+ // if (this.title == "") {
|
|
|
+ // this.$message.error("请补充填写课程名称");
|
|
|
+ // return;
|
|
|
+ // } else {
|
|
|
+ // this.updateWork(5);
|
|
|
+ // }
|
|
|
+ // // else if(!this.juriList.length){
|
|
|
+ // // this.$message.error("请选择权限")
|
|
|
+ // // return
|
|
|
+ // // }
|
|
|
+ // }
|
|
|
+ })
|
|
|
+ .catch((v) => {
|
|
|
+ console.log(v)
|
|
|
+ // if (v == "cancel" && !this.back) {
|
|
|
+ // this.goTo(
|
|
|
+ // "/test?userid=" +
|
|
|
+ // this.userid +
|
|
|
+ // "&oid=" +
|
|
|
+ // this.oid +
|
|
|
+ // "&org=" +
|
|
|
+ // this.org +
|
|
|
+ // "&role=" +
|
|
|
+ // this.role
|
|
|
+ // );
|
|
|
+ // }else if(this.back == 'sass'){
|
|
|
+ // this.goTo(
|
|
|
+ // "/sassPlatform?userid=" +
|
|
|
+ // this.userid +
|
|
|
+ // "&oid=" +
|
|
|
+ // this.oid +
|
|
|
+ // "&org=" +
|
|
|
+ // this.org +
|
|
|
+ // "&role=" +
|
|
|
+ // this.role
|
|
|
+ // );
|
|
|
+ // }
|
|
|
});
|
|
|
},
|
|
|
goTo(path) {
|