|
@@ -169,7 +169,9 @@
|
|
oieufr:'',
|
|
oieufr:'',
|
|
cielsshow:false,
|
|
cielsshow:false,
|
|
foremTtae:'',
|
|
foremTtae:'',
|
|
- foremTtaid:-1
|
|
|
|
|
|
+ foremTtaid:-1,
|
|
|
|
+ ojeuduj:0,
|
|
|
|
+ idtg:0
|
|
};
|
|
};
|
|
},
|
|
},
|
|
filters:{
|
|
filters:{
|
|
@@ -193,7 +195,12 @@
|
|
return '导出';
|
|
return '导出';
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- },
|
|
|
|
|
|
+ },
|
|
|
|
+ watch: {
|
|
|
|
+ $route() {
|
|
|
|
+ this.idtg= this.$route.query.id; //获取传来的参数
|
|
|
|
+ }
|
|
|
|
+ },
|
|
mounted() {
|
|
mounted() {
|
|
this.formeanti.table = this.$route.query.tables
|
|
this.formeanti.table = this.$route.query.tables
|
|
this.forme.table = this.$route.query.tables
|
|
this.forme.table = this.$route.query.tables
|
|
@@ -203,6 +210,7 @@
|
|
this.tableZbietabg.table = this.$route.query.tables
|
|
this.tableZbietabg.table = this.$route.query.tables
|
|
this.objParams.table = this.$route.query.tables
|
|
this.objParams.table = this.$route.query.tables
|
|
this.objParams.fixedData.id = this.$route.query.id
|
|
this.objParams.fixedData.id = this.$route.query.id
|
|
|
|
+ this.ojeuduj = this.$route.query.id
|
|
this.deledlid.table = this.$route.query.tables
|
|
this.deledlid.table = this.$route.query.tables
|
|
this.deledlid.idList.push(this.$route.query.id)
|
|
this.deledlid.idList.push(this.$route.query.id)
|
|
this.queryParamslist.table = this.$route.query.tables
|
|
this.queryParamslist.table = this.$route.query.tables
|
|
@@ -210,10 +218,12 @@
|
|
console.log(this.$route.query.id)
|
|
console.log(this.$route.query.id)
|
|
this.foremTtae = this.$route.query.tables+'_id'
|
|
this.foremTtae = this.$route.query.tables+'_id'
|
|
this.queryParamslist.fixedData.condition[this.foremTtae] = this.$route.query.id
|
|
this.queryParamslist.fixedData.condition[this.foremTtae] = this.$route.query.id
|
|
|
|
+ this.cielsshow = true
|
|
}else{
|
|
}else{
|
|
let begad = this.$route.query.tables+'_id'
|
|
let begad = this.$route.query.tables+'_id'
|
|
this.queryParamslist.fixedData.condition[begad] = this.$route.query.id
|
|
this.queryParamslist.fixedData.condition[begad] = this.$route.query.id
|
|
this.foremTtae = this.$route.query.tables+'_id'
|
|
this.foremTtae = this.$route.query.tables+'_id'
|
|
|
|
+ this.cielsshow = false
|
|
}
|
|
}
|
|
// this.objParamstue.fixedData.id = this.$route.query.id
|
|
// this.objParamstue.fixedData.id = this.$route.query.id
|
|
this.init()
|
|
this.init()
|
|
@@ -283,6 +293,7 @@
|
|
this.queryData.table_column = null
|
|
this.queryData.table_column = null
|
|
}
|
|
}
|
|
routerst.tableColumnuy = this.queryData.table_column
|
|
routerst.tableColumnuy = this.queryData.table_column
|
|
|
|
+ routerst.tableid = this.ojeuduj
|
|
})
|
|
})
|
|
if(route.cssClass !== null){
|
|
if(route.cssClass !== null){
|
|
this.imgShoew = route.cssClass
|
|
this.imgShoew = route.cssClass
|
|
@@ -400,12 +411,9 @@
|
|
handleQuery(index) {
|
|
handleQuery(index) {
|
|
if(index == 'fh'){
|
|
if(index == 'fh'){
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
- if(this.cielsshow == true){
|
|
|
|
- this.$router.go(-2)
|
|
|
|
- }else{
|
|
|
|
- this.$router.go(-1)
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
|
|
+ console.log(this.idtg)
|
|
|
|
+ this.$router.replace({ path: "/business/" + this.objParams.table });
|
|
|
|
+ console.log()
|
|
return
|
|
return
|
|
}else if(index == 'sx'){
|
|
}else if(index == 'sx'){
|
|
this.xidugje = 'sx'
|
|
this.xidugje = 'sx'
|
|
@@ -500,17 +508,14 @@
|
|
this.deledlid.idList.push(response.data)
|
|
this.deledlid.idList.push(response.data)
|
|
this.formy.id = response.data
|
|
this.formy.id = response.data
|
|
this.oieufr = response.data
|
|
this.oieufr = response.data
|
|
|
|
+ this.ojeuduj = response.data
|
|
this.objParams.fixedData.id = response.data
|
|
this.objParams.fixedData.id = response.data
|
|
this.init()
|
|
this.init()
|
|
this.foremliseju()
|
|
this.foremliseju()
|
|
- // this.reload()
|
|
|
|
|
|
+ this.reload()
|
|
}else{
|
|
}else{
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
- if(this.cielsshow == true){
|
|
|
|
- this.$router.go(-2)
|
|
|
|
- }else{
|
|
|
|
- this.$router.go(-1)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.replace({ path: "/business/" + this.objParams.table });
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -525,11 +530,7 @@
|
|
tableSubimt(this.formeanti).then(response => {
|
|
tableSubimt(this.formeanti).then(response => {
|
|
this.msgSuccess("提交成功");
|
|
this.msgSuccess("提交成功");
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
- if(this.cielsshow == true){
|
|
|
|
- this.$router.go(-2)
|
|
|
|
- }else{
|
|
|
|
- this.$router.go(-1)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.replace({ path: "/business/" + this.objParams.table });
|
|
|
|
|
|
// this.getList();
|
|
// this.getList();
|
|
});
|
|
});
|
|
@@ -538,11 +539,7 @@
|
|
tableSubimtanit(this.formeanti).then(response => {
|
|
tableSubimtanit(this.formeanti).then(response => {
|
|
this.msgSuccess("反提交成功");
|
|
this.msgSuccess("反提交成功");
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
- if(this.cielsshow == true){
|
|
|
|
- this.$router.go(-2)
|
|
|
|
- }else{
|
|
|
|
- this.$router.go(-1)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.replace({ path: "/business/" + this.objParams.table });
|
|
// this.getList();
|
|
// this.getList();
|
|
});
|
|
});
|
|
}
|
|
}
|
|
@@ -561,11 +558,7 @@
|
|
// this.getList();
|
|
// this.getList();
|
|
this.msgSuccess("删除成功");
|
|
this.msgSuccess("删除成功");
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
this.$store.dispatch("tagsView/delView", this.$route);
|
|
- if(this.cielsshow == true){
|
|
|
|
- this.$router.go(-2)
|
|
|
|
- }else{
|
|
|
|
- this.$router.go(-1)
|
|
|
|
- }
|
|
|
|
|
|
+ this.$router.replace({ path: "/business/" + this.objParams.table });
|
|
})
|
|
})
|
|
},
|
|
},
|
|
// 列表删除
|
|
// 列表删除
|