forked from osredm_test/osredm-comp-custom
报名模块除上传报名表完成
This commit is contained in:
parent
3cbcf7ae37
commit
a0604a6834
|
@ -60,9 +60,7 @@
|
|||
placeholder="请选择参赛赛区"
|
||||
class="apply-form-select"
|
||||
>
|
||||
<el-option label="区域一" value="shanghai"></el-option>
|
||||
<el-option label="区域二" value="shanghai"></el-option>
|
||||
<el-option label="区域三" value="shanghai"></el-option>
|
||||
<el-option v-for="item in divisionList" :label="item.divisionName" :value="item.divisionId" :key="item.divisionName"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
@ -72,8 +70,8 @@
|
|||
v-model="applyForm.applySort"
|
||||
class="apply-form-select"
|
||||
>
|
||||
<el-option label="战略方向" value="shanghai"></el-option>
|
||||
<el-option label="前沿技术" value="shanghai"></el-option>
|
||||
<el-option v-for="item in kindList" :label="item.kindName" :value="item.kindId" :key="item.kindName"></el-option>
|
||||
<!-- <el-option label="前沿技术" value="shanghai"></el-option>-->
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
||||
|
@ -186,6 +184,9 @@ export default {
|
|||
|
||||
data() {
|
||||
return {
|
||||
divisionList : [],
|
||||
kindList : [],
|
||||
|
||||
applyTime:[],
|
||||
submitTime:[],
|
||||
isReady : false,
|
||||
|
@ -356,9 +357,9 @@ export default {
|
|||
//memberPhone: "",
|
||||
//memberEmail: "",
|
||||
|
||||
memberCompany: "", //memberUnit
|
||||
memberUnit: "", //memberUnit
|
||||
memberDuty: "",
|
||||
memberArmyRank: "",
|
||||
armyRank: "",
|
||||
});
|
||||
},
|
||||
|
||||
|
@ -369,13 +370,18 @@ export default {
|
|||
console.log(index);
|
||||
}else {
|
||||
var memberInfo = this.applyForm.memberList[index]
|
||||
this.$api.delMemberByMemNum(memberInfo).then((res) => {
|
||||
if (res.status == 0) {
|
||||
this.applyForm.memberList.splice(index, 1);
|
||||
}else {
|
||||
Message.error("删除失败")
|
||||
}
|
||||
})
|
||||
if (memberInfo.memberNum != undefined) {
|
||||
this.$api.delMemberByMemNum(memberInfo).then((res) => {
|
||||
if (res.status == 0) {
|
||||
this.applyForm.memberList.splice(index, 1);
|
||||
}else {
|
||||
Message.error("删除失败")
|
||||
}
|
||||
})
|
||||
}else {
|
||||
this.applyForm.memberList.splice(index, 1);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
|
@ -623,7 +629,16 @@ export default {
|
|||
}
|
||||
})
|
||||
//3. 获取当前比赛赛区赛项配置
|
||||
|
||||
var compId = this.$route.params.compId;
|
||||
var compInfo ={
|
||||
compId,
|
||||
}
|
||||
this.$api.getDivisionAndKind(compInfo).then((res) =>{
|
||||
if (res.status == 0) {
|
||||
this.divisionList = res.divisionList;
|
||||
this.kindList = res.kindList;
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
},
|
||||
|
|
|
@ -236,6 +236,16 @@ export const updateApplyInfo = (data) => {
|
|||
})
|
||||
};
|
||||
|
||||
|
||||
export const getDivisionAndKind = (data) => {
|
||||
return axios({
|
||||
|
||||
url: '/comp/getDivisionAndKind',
|
||||
method: 'post',
|
||||
data
|
||||
})
|
||||
};
|
||||
|
||||
// 默认全部倒出
|
||||
// 根据需要进行
|
||||
export default {
|
||||
|
@ -260,5 +270,6 @@ export default {
|
|||
addApply,
|
||||
getApplyForPerson,
|
||||
delMemberByMemNum,
|
||||
updateApplyInfo
|
||||
updateApplyInfo,
|
||||
getDivisionAndKind
|
||||
}
|
Loading…
Reference in New Issue