+
-
![]()
+
党组织申请已提交成功!
@@ -228,7 +228,29 @@ export default {
},
text: ["1 填写基本信息", "2 填写党组织信息", "3 提交审核"],
sub: 0,
- index_num: 0
+ index_num: 0,
+ types: [],
+ type: '',
+ supervisor: '',
+ reg_manage: '',
+ work_person: '',
+ flow_party_person: '',
+ party_person: '',
+ is_reg_party: '',
+ is_reg_fun_party: '',
+ party_name: '',
+ party_pname: '',
+ sec_name: '',
+ sec_sex: '',
+ sec_job: '',
+ sec_age: '',
+ sec_study: '',
+ near_party_person: '',
+ major_party_person: '',
+ is_reg_group: '',
+ is_choice_instructor: '',
+ year_money: '',
+ active_year: ''
};
},
computed: {},
@@ -238,16 +260,89 @@ export default {
let s = this.sub;
s = n;
this.sub = s;
+ if (this.sub == 2) {
+ let sid = localStorage.token
+ let _this = this
+ // console.log(_this.type,
+ // _this.reg_manage, _this.supervisor, _this.work_person, _this.flow_party_person,
+ // _this.party_person, _this.is_reg_party, _this.is_reg_fun_party,
+ // _this.party_name, _this.party_pname, _this.sec_name,
+ // _this.sec_sex, _this.sec_job, _this.sec_age,
+ // _this.sec_study, _this.near_party_person,
+ // _this.major_party_person, _this.is_reg_group,
+ // _this.is_choice_instructor, _this.year_money, _this.active_year
+ // )
+ this.$http({
+ method: 'post',
+ url: 'v1/user/apply',
+ data: {
+ sid: sid,
+ type: _this.type,
+ supervisor: _this.supervisor,
+ reg_manage: _this.reg_manage,
+ work_person: _this.work_person,
+ flow_party_person: _this.flow_party_person,
+ party_person: _this.party_person,
+ is_reg_party: _this.is_reg_party,
+ is_reg_fun_party: _this.is_reg_fun_party,
+ party_name: _this.party_name,
+ party_pname: _this.party_pname,
+ sec_name: _this.sec_name,
+ sec_sex: _this.sec_sex,
+ sec_job: _this.sec_job,
+ sec_age: _this.sec_age,
+ sec_study: _this.sec_study,
+ near_party_person: _this.near_party_person,
+ major_party_person: _this.major_party_person,
+ is_reg_group: _this.is_reg_group,
+ is_choice_instructor: _this.is_choice_instructor,
+ year_money: _this.year_money,
+ active_year: _this.active_year
+ }
+ }).then(res => {
+ console.log(res);
+
+ // if (res.code === 200) {
+ // console.log(res.data)
+ // } else {
+ // _this.$message.error('请求数据有问题!')
+ // }
+ })
+ // eslint-disable-next-line handle-callback-err
+ .catch(err => {
+ console.log(err)
+ })
+ }
+ },
+ getData() {
+ let _this = this
+ this.$http({
+ method: 'post',
+ url: 'v1/user/get-society-type',
+ data: {}
+ }).then(res => {
+ if (res.data.code === 200) {
+ _this.types = res.data.data
+ } else {
+ _this.$message.error('请求数据有问题!')
+ }
+ })
+ // eslint-disable-next-line handle-callback-err
+ .catch(err => {
+ console.log(err)
+ })
}
},
- created() {},
- mounted() {}
+ created() {
+ this.getData()
+ },
+ mounted() { }
};