mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
赛会数据修改
This commit is contained in:
@@ -225,6 +225,7 @@
|
||||
v-hasPermi="['system:competitionOfTeam:edit']"
|
||||
>比赛记录</el-button>
|
||||
<el-button
|
||||
v-if="new Date(scope.row.competitionDate).getTime() > new Date().getTime()"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-edit"
|
||||
@@ -232,11 +233,12 @@
|
||||
v-hasPermi="['system:competitionTeamVsTeam:edit']"
|
||||
>编辑赛程</el-button>
|
||||
<el-button
|
||||
v-if="new Date(scope.row.competitionDate).getTime() > new Date().getTime()"
|
||||
size="mini"
|
||||
type="text"
|
||||
icon="el-icon-delete"
|
||||
@click="handleTeamUser(scope.row)"
|
||||
v-hasPermi="['system:competitionOfTeam:edit']"
|
||||
@click="handleTeamVsTeamDel(scope.row)"
|
||||
v-hasPermi="['system:competitionOfTeam:del']"
|
||||
>删除赛程</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
@@ -785,6 +787,17 @@ export default {
|
||||
this.vsOpen=true;
|
||||
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() {
|
||||
this.$refs["vsform"].validate(valid => {
|
||||
|
||||
Reference in New Issue
Block a user