添加项目时候返回列表默认上次选择创建人

dev_2022-05-11
e 3 years ago
parent ccc20e0acd
commit 8b01ffc71c
  1. 4
      src/pages/project/add/index.vue
  2. 4
      src/pages/project/list/index.vue

@ -293,8 +293,8 @@ export default {
"setSystemId", "setProject" "setSystemId", "setProject"
]), ]),
goBack() { // goBack() { //
if (this.isDetail) { if (this.isDetail || this.item == 0) {
this.$router.back(); this.$router.push(`/project/list?founder=${this.founder}`);
} else { } else {
this.$confirm("确定返回?未更新的信息将不会保存。", "提示", { this.$confirm("确定返回?未更新的信息将不会保存。", "提示", {
type: "warning" type: "warning"

@ -236,7 +236,7 @@ export default {
if(this.queryDataStatus.platformId) { if(this.queryDataStatus.platformId) {
this.queryData = this.queryDataStatus this.queryData = this.queryDataStatus
} }
if(this.$route.query.founder){ if(this.$route.query.founder && this.$route.query.founder != 'undefined'){
this.queryData.founder = +this.$route.query.founder this.queryData.founder = +this.$route.query.founder
}else{ }else{
this.queryData.founder = 2 this.queryData.founder = 2
@ -287,7 +287,7 @@ export default {
}, },
add() { // add() { //
this.setSystemId(this.systemId); this.setSystemId(this.systemId);
this.$router.push("/project/add"); this.$router.push(`/project/add?founder=${this.queryData.founder}`);
}, },
edit(row,item) { // edit(row,item) { //
this.setSystemId(row.systemId); this.setSystemId(row.systemId);

Loading…
Cancel
Save