赛会数据修改

pull/371/head
wuyibo 3 years ago
parent afd62cb850
commit 0206ffc298

@ -225,6 +225,7 @@
v-hasPermi="['system:competitionOfTeam:edit']" v-hasPermi="['system:competitionOfTeam:edit']"
>比赛记录</el-button> >比赛记录</el-button>
<el-button <el-button
v-if="new Date(scope.row.competitionDate).getTime() > new Date().getTime()"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-edit" icon="el-icon-edit"
@ -232,11 +233,12 @@
v-hasPermi="['system:competitionTeamVsTeam:edit']" v-hasPermi="['system:competitionTeamVsTeam:edit']"
>编辑赛程</el-button> >编辑赛程</el-button>
<el-button <el-button
v-if="new Date(scope.row.competitionDate).getTime() > new Date().getTime()"
size="mini" size="mini"
type="text" type="text"
icon="el-icon-delete" icon="el-icon-delete"
@click="handleTeamUser(scope.row)" @click="handleTeamVsTeamDel(scope.row)"
v-hasPermi="['system:competitionOfTeam:edit']" v-hasPermi="['system:competitionOfTeam:del']"
>删除赛程</el-button> >删除赛程</el-button>
</template> </template>
</el-table-column> </el-table-column>
@ -785,6 +787,17 @@ export default {
this.vsOpen=true; this.vsOpen=true;
this.vsTitle = "编辑赛程" this.vsTitle = "编辑赛程"
}, },
handleTeamVsTeamDel(row){
const ids = row.id || this.ids;
this.$modal.confirm('是否确认删除赛会中的赛程数据?').then(function() {
return delCompetitionTeamVsTeam(ids);
}).then(() => {
listCompetitionTeamVsTeam({"orderByColumn":"competition_time","pageNum": 1, "pageSize": 1000,"competitionId":this.competitionObj.id}).then(response => {
this.competitionTeamVsTeamList = response.rows;
});
this.$modal.msgSuccess("删除赛程成功");
}).catch(() => {});
},
/** 提交按钮 */ /** 提交按钮 */
submitTeamVsTeamForm() { submitTeamVsTeamForm() {
this.$refs["vsform"].validate(valid => { this.$refs["vsform"].validate(valid => {

Loading…
Cancel
Save