修复详情数据缺失
This commit is contained in:
@@ -109,7 +109,7 @@ export default {
|
|||||||
getSession() {
|
getSession() {
|
||||||
//根据id获取对应届次信息
|
//根据id获取对应届次信息
|
||||||
const {id} = this.$route.query
|
const {id} = this.$route.query
|
||||||
this.instance.post(`/app/apporganizationchangeconfig/queryDetailById`, null, {
|
this.instance.post(`/app/apporganizationgeneralelection/queryDetailById`, null, {
|
||||||
pureBack: true,
|
pureBack: true,
|
||||||
params: {id}
|
params: {id}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
@@ -121,7 +121,7 @@ export default {
|
|||||||
getDetail() {
|
getDetail() {
|
||||||
//获取到当前届次信息
|
//获取到当前届次信息
|
||||||
const {oid: organizationId} = this.$route.query
|
const {oid: organizationId} = this.$route.query
|
||||||
this.instance.post(`/app/apporganizationchangeconfig/queryDetailByOrganizationId`, null, {
|
this.instance.post(`/app/apporganizationgeneralelection/queryDetailByOrganizationId`, null, {
|
||||||
pureBack: true,
|
pureBack: true,
|
||||||
params: {organizationId}
|
params: {organizationId}
|
||||||
}).then((res) => {
|
}).then((res) => {
|
||||||
@@ -144,7 +144,7 @@ export default {
|
|||||||
if (this.isMakeUp && !this.$route.query.id) {
|
if (this.isMakeUp && !this.$route.query.id) {
|
||||||
delete this.form.id
|
delete this.form.id
|
||||||
}
|
}
|
||||||
const action = `/app/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
|
...this.form, organizationId, organizationName, addOrMakeup
|
||||||
|
|||||||
Reference in New Issue
Block a user