diff --git a/project/pingchang/apps/AppOrganizationChange/components/organizationSetting.vue b/project/pingchang/apps/AppOrganizationChange/components/organizationSetting.vue index d88ced29..107662e0 100644 --- a/project/pingchang/apps/AppOrganizationChange/components/organizationSetting.vue +++ b/project/pingchang/apps/AppOrganizationChange/components/organizationSetting.vue @@ -29,17 +29,17 @@ @@ -96,7 +96,7 @@ export default { }, created() { this.org = new this.MODEL.PartyOrg(this.$route.query.oid) - !!this.$route.query.id ? this.getSession() : this.getDetail() + !!this.isMakeUp ? this.getSession() : this.getDetail() }, methods: { cancel() { @@ -109,7 +109,7 @@ export default { getSession() { //根据id获取对应届次信息 const {id} = this.$route.query - this.instance.post(`/app/apporganizationgeneralelection/queryDetailById`, null, { + id && this.instance.post(`/app/apporganizationgeneralelection/queryDetailById`, null, { pureBack: true, params: {id} }).then((res) => { @@ -126,10 +126,7 @@ export default { params: {organizationId} }).then((res) => { if (res?.data) { - if (this.isMakeUp) { - const {type} = res.data - this.form = {type} - } else this.form = res.data + this.form = res.data } }) }, @@ -171,6 +168,10 @@ export default { width: 100% !important; } + .w50 { + width: 50%; + } + .tips { width: 100%; border: 1px solid #f82;