|
@@ -471,19 +471,26 @@
|
|
|
if (valid) {
|
|
|
addbjectSave(this.forme).then(response => {
|
|
|
this.msgSuccess("保存成功");
|
|
|
- if(response.code == 200){
|
|
|
- this.cielsshow = true;
|
|
|
+ if(this.formy.id == -1){
|
|
|
+ if(response.code == 200){
|
|
|
+ this.cielsshow = true;
|
|
|
+ }else{
|
|
|
+ this.cielsshow = false;
|
|
|
+ }
|
|
|
+ let query = Object.assign({'id':response.data,'tables': this.forme.table},{} )
|
|
|
+ this.$router.push({ query})
|
|
|
+ this.queryParamslist.fixedData.condition[this.foremTtae] = response.data
|
|
|
+ this.oieufr = response.data
|
|
|
+ this.objParams.fixedData.id = response.data
|
|
|
+ this.init()
|
|
|
+ this.foremliseju()
|
|
|
}else{
|
|
|
- this.cielsshow = false;
|
|
|
+ this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
+ this.$router.go(-1)
|
|
|
}
|
|
|
+
|
|
|
// this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
- let query = Object.assign({'id':response.data,'tables': this.forme.table},{} )
|
|
|
- this.$router.push({ query})
|
|
|
- this.queryParamslist.fixedData.condition[this.foremTtae] = response.data
|
|
|
- this.oieufr = response.data
|
|
|
- this.objParams.fixedData.id = response.data
|
|
|
- this.init()
|
|
|
- this.foremliseju()
|
|
|
+
|
|
|
// this.$store.dispatch("tagsView/delView", this.$route);
|
|
|
// this.$router.go(-1)
|
|
|
// this.getList();
|