|
|
@@ -93,7 +93,7 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
}; |
|
|
|
}, |
|
|
|
created() { |
|
|
|
this.queryParams.otherType = this.$route.query.type || ''; |
|
|
|
this.queryParams.otherType = this.$route.query.otherType || ''; |
|
|
|
this.getDicts('other_gk_type').then((resp) => { |
|
|
|
let arr = []; |
|
|
|
arr.push({ |
|
|
@@ -135,28 +135,28 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
intent: 'view', |
|
|
|
}; |
|
|
|
if(this.queryParams.otherType) |
|
|
|
parms.type = this.queryParams.otherType; |
|
|
|
parms.otherType = this.queryParams.otherType; |
|
|
|
this.$router.push({ |
|
|
|
name: 'otherOpenDetail', |
|
|
|
query: parms, |
|
|
|
}).catch(() => {}); |
|
|
|
}, |
|
|
|
viewItem(id){ |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) ); |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoViewItem(id), () => this.gotoViewItem(id) ); |
|
|
|
}, |
|
|
|
gotoAdd() { |
|
|
|
let parms = { |
|
|
|
intent: 'add', |
|
|
|
}; |
|
|
|
if(this.queryParams.otherType) |
|
|
|
parms.type = this.queryParams.otherType; |
|
|
|
parms.otherType = this.queryParams.otherType; |
|
|
|
this.$router.push({ |
|
|
|
name: 'otherOpenEdit', |
|
|
|
query: parms, |
|
|
|
}).catch(() => {}); |
|
|
|
}, |
|
|
|
add() { |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoAdd(), () => this.gotoAdd() ); |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoAdd(), () => this.gotoAdd() ); |
|
|
|
}, |
|
|
|
gotoEdit(id) { |
|
|
|
let parms = { |
|
|
@@ -164,14 +164,14 @@ import {getLoginBook} from "@/api/sunVillage_info/fixedAssets"; |
|
|
|
intent: 'edit', |
|
|
|
}; |
|
|
|
if(this.queryParams.otherType) |
|
|
|
parms.type = this.queryParams.otherType; |
|
|
|
parms.otherType = this.queryParams.otherType; |
|
|
|
this.$router.push({ |
|
|
|
name: 'otherOpenEdit', |
|
|
|
query: parms, |
|
|
|
}).catch(() => {}); |
|
|
|
}, |
|
|
|
edit(id) { |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?type=${this.queryParams.otherType || ''}`, () => this.gotoEdit(id), () => this.gotoEdit(id) ); |
|
|
|
this.$router.replace(`/sunVillage_info/otherOpenIndex?otherType=${this.queryParams.otherType || ''}`, () => this.gotoEdit(id), () => this.gotoEdit(id) ); |
|
|
|
}, |
|
|
|
remove(id) { |
|
|
|
Dialog.confirm({ |
|
|
|