|
@@ -86,6 +86,7 @@ let searchForm: Ref<any> = ref({});
|
|
|
// 字典表
|
|
|
const statusList: Ref<any> = ref([]);
|
|
|
const winnerList: Ref<any> = ref([]);
|
|
|
+const teamList: Ref<any> = ref([]);
|
|
|
// 弹框
|
|
|
const dialog: Ref<any> = ref({ title: '赛程状态', show: false, type: '1' });
|
|
|
const form: Ref<any> = ref({ file: [] });
|
|
@@ -131,7 +132,7 @@ const getDict = (e, model) => {
|
|
|
if (data) return data.label;
|
|
|
else return '暂无';
|
|
|
} else if (model == 'winner') {
|
|
|
- let data: any = winnerList.value.find((i: any) => i._id == e);
|
|
|
+ let data: any = teamList.value.find((i: any) => i._id == e);
|
|
|
if (data) return data.name;
|
|
|
else return '暂无';
|
|
|
}
|
|
@@ -187,6 +188,9 @@ const searchOther = async () => {
|
|
|
// 状态
|
|
|
res = await dictAxios.query({ type: 'course_status' });
|
|
|
if (res.errcode == '0') statusList.value = res.data;
|
|
|
+ // 团队
|
|
|
+ res = await teamAxios.query({ status: '1' });
|
|
|
+ if (res.errcode == '0') teamList.value = res.data;
|
|
|
};
|
|
|
// 提交保存
|
|
|
const toSave = async (data) => {
|