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

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"
]),
goBack() { //
if (this.isDetail) {
this.$router.back();
if (this.isDetail || this.item == 0) {
this.$router.push(`/project/list?founder=${this.founder}`);
} else {
this.$confirm("确定返回?未更新的信息将不会保存。", "提示", {
type: "warning"

@ -236,7 +236,7 @@ export default {
if(this.queryDataStatus.platformId) {
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
}else{
this.queryData.founder = 2
@ -287,7 +287,7 @@ export default {
},
add() { //
this.setSystemId(this.systemId);
this.$router.push("/project/add");
this.$router.push(`/project/add?founder=${this.queryData.founder}`);
},
edit(row,item) { //
this.setSystemId(row.systemId);

Loading…
Cancel
Save