mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
显示空骨架
This commit is contained in:
@@ -41,6 +41,14 @@ export function batchUpdateCompetitionResult(list) {
|
|||||||
data: list
|
data: list
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
export function editDataCompetitionResult(data) {
|
||||||
|
return request({
|
||||||
|
url: '/system/competitionResult/editData',
|
||||||
|
method: 'put',
|
||||||
|
data: data
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
// 删除赛会中-赛程结果记录
|
// 删除赛会中-赛程结果记录
|
||||||
export function delCompetitionResult(id) {
|
export function delCompetitionResult(id) {
|
||||||
return request({
|
return request({
|
||||||
|
|||||||
@@ -423,6 +423,8 @@
|
|||||||
|
|
||||||
<!--赛程比赛数据记录-->
|
<!--赛程比赛数据记录-->
|
||||||
<el-dialog :title="vsRecordTitle" :visible.sync="vsRecordOpen" width="850px" append-to-body>
|
<el-dialog :title="vsRecordTitle" :visible.sync="vsRecordOpen" width="850px" append-to-body>
|
||||||
|
<el-skeleton :loading="skeletonLoading" animated :count="3">
|
||||||
|
<el-form>
|
||||||
<el-row>
|
<el-row>
|
||||||
<el-col :span="16" style="font-size: large;font-weight: bold"><i class="el-icon-time">比赛时间:</i>{{ competitionRecord.teamVsTeamVo.competitionTime }} {{ competitionRecord.teamVsTeamVo.weekDayName }}</el-col>
|
<el-col :span="16" style="font-size: large;font-weight: bold"><i class="el-icon-time">比赛时间:</i>{{ competitionRecord.teamVsTeamVo.competitionTime }} {{ competitionRecord.teamVsTeamVo.weekDayName }}</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
@@ -441,7 +443,6 @@
|
|||||||
<span style="position: absolute;margin-left: 10px;margin-top: 8px">{{competitionRecord.teamVsTeamVo.guestTeamName}}</span>
|
<span style="position: absolute;margin-left: 10px;margin-top: 8px">{{competitionRecord.teamVsTeamVo.guestTeamName}}</span>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
<el-form>
|
|
||||||
<el-container>
|
<el-container>
|
||||||
<el-aside style="width: 50%;margin-top:10px">
|
<el-aside style="width: 50%;margin-top:10px">
|
||||||
<el-form-item label="第一节">
|
<el-form-item label="第一节">
|
||||||
@@ -497,8 +498,9 @@
|
|||||||
@click="vsRecordOpen=false"
|
@click="vsRecordOpen=false"
|
||||||
>取消</el-button>
|
>取消</el-button>
|
||||||
</el-row>
|
</el-row>
|
||||||
</el-form>
|
|
||||||
</div>
|
</div>
|
||||||
|
</el-form>
|
||||||
|
</el-skeleton>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -510,7 +512,7 @@ import { listCompetitionMembers, getCompetitionMembers, delCompetitionMembers, a
|
|||||||
import { listCompetitionTeamGroup, arrangeTeamGroupSchedule, delCompetitionTeamGroup, addCompetitionTeamGroup, updateCompetitionTeamGroup } from "@/api/system/competitionTeamGroup";
|
import { listCompetitionTeamGroup, arrangeTeamGroupSchedule, delCompetitionTeamGroup, addCompetitionTeamGroup, updateCompetitionTeamGroup } from "@/api/system/competitionTeamGroup";
|
||||||
import { listCompetitionTeamVsTeam,getCompetitionVsRecordById, delCompetitionTeamVsTeam, addCompetitionTeamVsTeam, updateCompetitionTeamVsTeam } from "@/api/system/competitionTeamVsTeam";
|
import { listCompetitionTeamVsTeam,getCompetitionVsRecordById, delCompetitionTeamVsTeam, addCompetitionTeamVsTeam, updateCompetitionTeamVsTeam } from "@/api/system/competitionTeamVsTeam";
|
||||||
import { listWxBuilding, getWxBuilding, delWxBuilding, addWxBuilding, updateWxBuilding } from "@/api/system/WxBuilding";
|
import { listWxBuilding, getWxBuilding, delWxBuilding, addWxBuilding, updateWxBuilding } from "@/api/system/WxBuilding";
|
||||||
import { listCompetitionResult, getCompetitionResult, delCompetitionResult, batchUpdateCompetitionResult, updateCompetitionResult } from "@/api/system/competitionResult";
|
import { listCompetitionResult, getCompetitionResult, editDataCompetitionResult, batchUpdateCompetitionResult, updateCompetitionResult } from "@/api/system/competitionResult";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: "CompetitionSet",
|
name: "CompetitionSet",
|
||||||
@@ -562,6 +564,7 @@ export default {
|
|||||||
{ required: true, message: "比赛类型不能为空", trigger: "blur" }
|
{ required: true, message: "比赛类型不能为空", trigger: "blur" }
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
skeletonLoading:false,
|
||||||
vsOpen:false,
|
vsOpen:false,
|
||||||
buildingList: [],
|
buildingList: [],
|
||||||
buildLoading:false,
|
buildLoading:false,
|
||||||
@@ -912,11 +915,13 @@ export default {
|
|||||||
this.vsTitle = "编辑赛程"
|
this.vsTitle = "编辑赛程"
|
||||||
},
|
},
|
||||||
handleTeamVsTeamRecord(row){
|
handleTeamVsTeamRecord(row){
|
||||||
|
this.skeletonLoading = true;
|
||||||
this.vsRecordOpen=true;
|
this.vsRecordOpen=true;
|
||||||
this.vsRecordTitle = "比赛数据记录";
|
this.vsRecordTitle = "比赛数据记录";
|
||||||
//获取比赛数据
|
//获取比赛数据
|
||||||
getCompetitionVsRecordById(row.id).then(response=>{
|
getCompetitionVsRecordById(row.id).then(response=>{
|
||||||
this.competitionRecord = response.data
|
this.competitionRecord = response.data;
|
||||||
|
this.skeletonLoading = false
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
handleTeamVsTeamDel(row){
|
handleTeamVsTeamDel(row){
|
||||||
@@ -931,14 +936,13 @@ export default {
|
|||||||
}).catch(() => {});
|
}).catch(() => {});
|
||||||
},
|
},
|
||||||
handleTeamVsTeamRecordSave(){
|
handleTeamVsTeamRecordSave(){
|
||||||
let list2 = [];
|
editDataCompetitionResult(this.competitionRecord).then(response => {
|
||||||
list2.push(this.competitionRecord.mainTeam);
|
|
||||||
list2.push(this.competitionRecord.guestTeam);
|
|
||||||
batchUpdateCompetitionResult(list2).then(response => {
|
|
||||||
this.$modal.msgSuccess("比赛结果记录成功");
|
this.$modal.msgSuccess("比赛结果记录成功");
|
||||||
this.vsRecordOpen = false;
|
this.vsRecordOpen = false;
|
||||||
|
listCompetitionTeamVsTeam({"orderByColumn":"competition_time","pageNum": 1, "pageSize": 1000,"competitionId":this.competitionObj.id}).then(response => {
|
||||||
|
this.competitionTeamVsTeamList = response.rows;
|
||||||
|
});
|
||||||
});
|
});
|
||||||
console.info(list2)
|
|
||||||
},
|
},
|
||||||
/** 提交按钮 */
|
/** 提交按钮 */
|
||||||
submitTeamVsTeamForm() {
|
submitTeamVsTeamForm() {
|
||||||
|
|||||||
Reference in New Issue
Block a user