BUG 31150
This commit is contained in:
@@ -87,7 +87,8 @@ export default {
|
|||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
isMakeUp: v => v.$route.hash == "#makeup",
|
isMakeUp: v => v.$route.hash == "#makeup",
|
||||||
pageTitle: v => v.isMakeUp ? "补录换届" : "换届设置"
|
pageTitle: v => v.isMakeUp ? "补录换届" : "换届设置",
|
||||||
|
oid: v => v.$route.query.oid
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'form.type'() {
|
'form.type'() {
|
||||||
@@ -95,7 +96,9 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
this.org = new this.MODEL.PartyOrg(this.$route.query.oid)
|
if (!!this.oid) {
|
||||||
|
this.org = new this.MODEL.PartyOrg(this.oid)
|
||||||
|
}
|
||||||
!!this.isMakeUp ? this.getSession() : this.getDetail()
|
!!this.isMakeUp ? this.getSession() : this.getDetail()
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -146,7 +149,8 @@ export default {
|
|||||||
const action = `/app/${this.isMakeUp ? 'apporganizationgeneralelection' : 'apporganizationchangeconfig'}/${!!this.form.id ? 'update' : 'add'}`
|
const action = `/app/${this.isMakeUp ? 'apporganizationgeneralelection' : 'apporganizationchangeconfig'}/${!!this.form.id ? 'update' : 'add'}`
|
||||||
const addOrMakeup = !this.isMakeUp
|
const addOrMakeup = !this.isMakeUp
|
||||||
this.instance.post(action, {
|
this.instance.post(action, {
|
||||||
...this.form, organizationId, organizationName, addOrMakeup
|
organizationId, organizationName,
|
||||||
|
...this.form, addOrMakeup
|
||||||
}).then(res => {
|
}).then(res => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
this.$message.success('提交成功')
|
this.$message.success('提交成功')
|
||||||
|
|||||||
Reference in New Issue
Block a user