BUG 31147
This commit is contained in:
@@ -145,7 +145,12 @@ export default {
|
||||
this.$refs.SettingForm.validate(v => {
|
||||
if (v) {
|
||||
const {id: organizationId, name: organizationName} = this.org
|
||||
const action = `/app/${this.isMakeUp ? 'apporganizationgeneralelection' : 'apporganizationchangeconfig'}/${!!this.form.id ? 'update' : 'add'}`
|
||||
let action
|
||||
if (this.isMakeUp) {//补录
|
||||
action = `/app/apporganizationgeneralelection/${!!this.form.id ? 'update' : 'add'}`
|
||||
} else {//换届设置
|
||||
action = `/app/${!!this.form.id ? "apporganizationgeneralelection/updateAll" : 'apporganizationchangeconfig/add'}`
|
||||
}
|
||||
const addOrMakeup = !this.isMakeUp
|
||||
this.instance.post(action, {
|
||||
organizationId, organizationName,
|
||||
|
||||
Reference in New Issue
Block a user