移植体育活动组队报名
This commit is contained in:
@@ -870,5 +870,14 @@ public class ActivityApplyController {
|
|||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@At
|
||||||
|
@ViReturn
|
||||||
|
@RequiresPermissions("activity.apply")
|
||||||
|
@Ok("json:{ignoreNull:true}")
|
||||||
|
public Object getUnits() {
|
||||||
|
List<Sys_unit> sysUnits = simpleService.dao().query(Sys_unit.class, Cnd.where("unitlevel", "=", 2).asc("unitcode"));
|
||||||
|
return sysUnits;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -599,6 +599,11 @@ layout("/layouts/platform.html"){
|
|||||||
v-if="substituteNum>0">
|
v-if="substituteNum>0">
|
||||||
设置替补
|
设置替补
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button @click="setAthletes" icon="el-icon-check"
|
||||||
|
plain
|
||||||
|
size="small" type="primary">
|
||||||
|
设置运动员
|
||||||
|
</el-button>
|
||||||
<!-- <el-button icon="el-icon-check" size="small"
|
<!-- <el-button icon="el-icon-check" size="small"
|
||||||
plain type="primary"
|
plain type="primary"
|
||||||
@click="changeTeam" v-if="projectType==2&&teams.length>1">
|
@click="changeTeam" v-if="projectType==2&&teams.length>1">
|
||||||
@@ -1180,7 +1185,6 @@ layout("/layouts/platform.html"){
|
|||||||
this.selection.forEach(v => {
|
this.selection.forEach(v => {
|
||||||
v.identity.unshift('3')
|
v.identity.unshift('3')
|
||||||
})
|
})
|
||||||
|
|
||||||
this.$refs.multipleTable.clearSelection();
|
this.$refs.multipleTable.clearSelection();
|
||||||
this.leader = 3
|
this.leader = 3
|
||||||
},
|
},
|
||||||
@@ -1228,6 +1232,25 @@ layout("/layouts/platform.html"){
|
|||||||
|
|
||||||
this.$refs.multipleTable.clearSelection();
|
this.$refs.multipleTable.clearSelection();
|
||||||
},
|
},
|
||||||
|
setAthletes() {
|
||||||
|
if (!this.selection.length) {
|
||||||
|
this.$notify({
|
||||||
|
title: '警告',
|
||||||
|
message: '请先勾选需要设置的用户!',
|
||||||
|
type: 'warning'
|
||||||
|
})
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
this.selection.forEach(v => {
|
||||||
|
if (!v.identity.includes('1')) {
|
||||||
|
v.identity = []
|
||||||
|
v.identity.push('1')
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
this.$refs.multipleTable.clearSelection()
|
||||||
|
},
|
||||||
setSubstitute() {
|
setSubstitute() {
|
||||||
if (!this.selection.length) {
|
if (!this.selection.length) {
|
||||||
this.$notify({
|
this.$notify({
|
||||||
@@ -2312,6 +2335,14 @@ layout("/layouts/platform.html"){
|
|||||||
}
|
}
|
||||||
}, "json");
|
}, "json");
|
||||||
},
|
},
|
||||||
|
async getUnits() {
|
||||||
|
const resp = await $.post(loc() + "/getUnits")
|
||||||
|
if (resp.code === 0) {
|
||||||
|
this.unitOptions = resp.data
|
||||||
|
} else {
|
||||||
|
this.notifyWarning(resp.msg)
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
async created() {
|
async created() {
|
||||||
await this.activityInfoData()
|
await this.activityInfoData()
|
||||||
@@ -2320,7 +2351,7 @@ layout("/layouts/platform.html"){
|
|||||||
await this.userLeaderCoach()
|
await this.userLeaderCoach()
|
||||||
await this.changeActivit()
|
await this.changeActivit()
|
||||||
this.planList = await activity.getSchoolActivityPlan()
|
this.planList = await activity.getSchoolActivityPlan()
|
||||||
this.unitOptions = await getUnits(null)
|
this.getUnits()
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user