|
|
@@ -624,12 +624,15 @@ export default {
|
|
|
startTime: [{required: true, message: "开始时间不能为空", trigger: "submit"}],
|
|
|
tempId: [{required: true, message: "模板不能为空", trigger: "submit"}],
|
|
|
openCommentStatus:[{ required: true, message: '开启评论/弹幕不能为空', trigger: 'change' }]
|
|
|
- }
|
|
|
+ },
|
|
|
+ //1 总 2 我的 3 部门
|
|
|
+ formType: null,
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
|
|
|
this.form.corpId = this.$route.params && this.$route.params.corpId;
|
|
|
+ this.formType = this.$route.params && this.$route.params.type;
|
|
|
|
|
|
this.queryTagParams.corpId = this.$route.params && this.$route.params.corpId;
|
|
|
|
|
|
@@ -1069,7 +1072,14 @@ export default {
|
|
|
this.msgSuccess("修改成功");
|
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
// this.$router.replace('/qw/conversion/sop')
|
|
|
- window.location.replace('/qw/conversion/sop')
|
|
|
+ if (this.formType==1){
|
|
|
+ window.location.replace('/qw/conversion/sop')
|
|
|
+ }else if (this.formType==2){
|
|
|
+ window.location.replace('/qw/conversion/mySop')
|
|
|
+ }else if (this.formType==3){
|
|
|
+ window.location.replace('/qw/conversion/deptSop')
|
|
|
+ }
|
|
|
+
|
|
|
this.reset();
|
|
|
});
|
|
|
} else {
|
|
|
@@ -1077,7 +1087,13 @@ export default {
|
|
|
this.msgSuccess("新增成功");
|
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
// this.$router.replace('/qw/conversion/sop')
|
|
|
- window.location.replace('/qw/conversion/sop')
|
|
|
+ if (this.formType==1){
|
|
|
+ window.location.replace('/qw/conversion/sop')
|
|
|
+ }else if (this.formType==2){
|
|
|
+ window.location.replace('/qw/conversion/mySop')
|
|
|
+ }else if (this.formType==3){
|
|
|
+ window.location.replace('/qw/conversion/deptSop')
|
|
|
+ }
|
|
|
this.reset();
|
|
|
});
|
|
|
}
|