zs hace 2 años
padre
commit
d9bc6f7f22

+ 0 - 4
src/views/login/index.vue

@@ -51,10 +51,8 @@ import { useRouter } from 'vue-router';
 import { AdminStore } from '@/stores/users/admin';
 import type { IQueryResult } from '@/util/types.util';
 const adminAxios = AdminStore();
-
 // 路由
 const router = useRouter();
-
 // 表单
 const formRef = ref<FormInstance>();
 const form: Ref<any> = ref({});
@@ -62,10 +60,8 @@ const rules = reactive<FormRules>({
   account: [{ required: true, message: '请输入登录账号', trigger: 'blur' }],
   password: [{ required: true, message: '请输入账号密码', trigger: 'blur' }]
 });
-
 // 请求
 onMounted(async () => {});
-
 // 提交登录
 const toSave = async (formEl: any) => {
   if (!formEl) return;

+ 6 - 0
src/views/match/course/detail.vue

@@ -13,6 +13,9 @@
             <template #blue_team_id>
               <el-option v-for="i in applicationList" :key="i.team_id" :label="i.team_name" :value="i.team_id"></el-option>
             </template>
+            <template #winner>
+              <el-option v-for="i in applicationList" :key="i.team_id" :label="i.team_name" :value="i.team_id"></el-option>
+            </template>
             <template #status>
               <el-option v-for="i in statusList" :key="i.value" :label="i.label" :value="i.value"></el-option>
             </template>
@@ -54,7 +57,10 @@ const rules = reactive<FormRules>({
 let fields: Ref<any[]> = ref([
   { label: '比赛名称', model: 'match_name', options: { disabled: true } },
   { label: '红方团队名称', model: 'red_team_id', type: 'select' },
+  { label: '红方分数', model: 'red_score' },
   { label: '蓝方团队名称', model: 'blue_team_id', type: 'select' },
+  { label: '蓝方分数', model: 'blue_score' },
+  { label: '胜者', model: 'winner', type: 'select' },
   { label: '比赛时间', model: 'match_time', type: 'datetime' },
   { label: '状态', model: 'status', type: 'select' }
 ]);

+ 0 - 5
src/views/match/enroll/detail.vue

@@ -43,7 +43,6 @@ let fields: Ref<any[]> = ref([
 ]);
 // 字典表
 const genderList: Ref<any> = ref([]);
-
 const memberfields: Ref<any> = ref([
   { label: '姓名', model: 'name' },
   { label: '性别', model: 'gender', format: (i: any) => getDict(i, 'gender') },
@@ -81,10 +80,6 @@ const searchOther = async () => {
   res = await dictAxios.query({ type: 'gender' });
   if (res.errcode == '0') genderList.value = res.data;
 };
-// 图片预览
-const imgView = (url: any) => {
-  window.open(url);
-};
 // 返回上一页
 const toBack = () => {
   window.history.go(-1);

+ 0 - 1
src/views/match/enroll/index.vue

@@ -48,7 +48,6 @@ let total: Ref<number> = ref(0);
 let skip = 0;
 let limit: number = proxy.$limit;
 let fields: Ref<any[]> = ref([
-  { label: '比赛名称', model: 'match_name' },
   { label: '团队名称', model: 'team_name', isSearch: true },
   { label: '参赛人数', model: 'num' },
   { label: '报名时间', model: 'apply_time' },

+ 3 - 3
src/views/match/index.vue

@@ -117,15 +117,15 @@ const toDel = async (data: any) => {
 };
 // 报名情况
 const toEnroll = async (data: any) => {
-   router.push({ path: '/match/enroll', query: { id: data._id } });
+  router.push({ path: '/match/enroll', query: { id: data._id } });
 };
 // 赛程
 const toCourse = async (data: any) => {
-   router.push({ path: '/match/course', query: { id: data._id } });
+  router.push({ path: '/match/course', query: { id: data._id } });
 };
 // 排名
 const toRank = async (data: any) => {
-   router.push({ path: '/match/ranking', query: { id: data._id } });
+  router.push({ path: '/match/ranking', query: { id: data._id } });
 };
 // 查询其他信息
 const searchOther = async () => {

+ 0 - 3
src/views/system/config/index.vue

@@ -54,10 +54,8 @@ import type { FormRules } from 'element-plus';
 import { ConfigStore } from '@/stores/config';
 import type { IQueryResult } from '@/util/types.util';
 const configAxios = ConfigStore();
-
 // 加载中
 const loading: Ref<any> = ref(false);
-
 // 表单
 let form: Ref<any> = ref({});
 let fields: Ref<any[]> = ref([
@@ -66,7 +64,6 @@ let fields: Ref<any[]> = ref([
   { label: '管理员二维码', model: 'admin_url', custom: true }
 ]);
 const rules = reactive<FormRules>({});
-
 // 请求
 onMounted(async () => {
   loading.value = true;

+ 0 - 8
src/views/system/dict/index.vue

@@ -47,15 +47,11 @@ import { DictTypeStore } from '@/stores/dict/dictType'; //
 import type { IQueryResult } from '@/util/types.util';
 const dictType = DictTypeStore();
 const dictData = DictDataStore();
-
 // 路由
 const router = useRouter();
-
 const { proxy } = getCurrentInstance() as any;
-
 // 加载中
 const loading = ref(false);
-
 // 列表数据
 let list: Ref<any> = ref([]);
 let total: Ref<number> = ref(0);
@@ -72,7 +68,6 @@ let opera: Ref<any[]> = ref([
   { label: '修改', method: 'edit' },
   { label: '删除', method: 'del', confirm: true, type: 'danger' }
 ]);
-
 // 弹框
 const dialog: Ref<{ type: string; show: boolean; title: string }> = ref({ type: '1', show: false, title: '信息管理' });
 let form: Ref<{}> = ref({});
@@ -87,13 +82,10 @@ const rules = reactive<FormRules>({
   name: [{ required: true, message: '字典名称', trigger: 'blur' }],
   type: [{ required: true, message: '字典类型', trigger: 'blur' }]
 });
-
 // 查询数据
 let searchForm: Ref<any> = ref({});
-
 // 字典表
 let is_useList: Ref<any> = ref([]);
-
 onMounted(async () => {
   loading.value = true;
   await searchOther();

+ 0 - 9
src/views/system/dictData/index.vue

@@ -39,21 +39,16 @@ import type { Ref } from 'vue';
 import { ref, onMounted, getCurrentInstance, reactive } from 'vue';
 import { ElMessage } from 'element-plus';
 import { useRoute, useRouter } from 'vue-router';
-
 // 接口
 import { DictDataStore } from '@/stores/dict/dictData';
 import type { IQueryResult } from '@/util/types.util';
 const dictData = DictDataStore();
-
 // 路由
 const route = useRoute();
 const router = useRouter();
-
 const { proxy } = getCurrentInstance() as any;
-
 // 加载中
 const loading: Ref<any> = ref(false);
-
 // 列表数据
 let list: Ref<any> = ref([]);
 let total: Ref<number> = ref(0);
@@ -71,7 +66,6 @@ let opera: Ref<any[]> = ref([
   { label: '修改', method: 'edit' },
   { label: '删除', method: 'del', confirm: true, type: 'danger' }
 ]);
-
 // 弹框
 const dialog: Ref<{ type: string; show: boolean; title: string }> = ref({ type: '1', show: false, title: '信息管理' });
 let form: Ref<{}> = ref({});
@@ -87,13 +81,10 @@ const rules = reactive<FormRules>({
   label: [{ required: true, message: '标签', trigger: 'blur' }],
   value: [{ required: true, message: '键值', trigger: 'blur' }]
 });
-
 // 查询数据
 let searchForm: Ref<any> = ref({});
-
 // 字典表
 let is_useList: Ref<any> = ref([]);
-
 // 请求
 onMounted(async () => {
   loading.value = true;

+ 0 - 1
src/views/team/examine/index.vue

@@ -133,7 +133,6 @@ const toDel = async (data: any) => {
     search({ skip, limit });
   }
 };
-
 // 关闭弹框
 const toClose = () => {
   form.value = {};

+ 0 - 1
src/views/updatepd/index.vue

@@ -20,7 +20,6 @@ import { useRouter } from 'vue-router';
 // 接口
 import { AdminStore } from '@/stores/users/admin'; // 管理员
 import type { IQueryResult } from '@/util/types.util';
-
 const adminAxios = AdminStore();
 // 加载中
 const loading: Ref<any> = ref(false);

+ 0 - 1
src/views/users/match/detail.vue

@@ -58,7 +58,6 @@ const rules = reactive<FormRules>({});
 // 字典表
 const genderList: Ref<any> = ref([]);
 const typeList: Ref<any> = ref([]);
-
 // 请求
 onMounted(async () => {
   loading.value = true;

+ 0 - 1
src/views/users/team/index.vue

@@ -139,7 +139,6 @@ const toClose = () => {
   dialog.value = { show: false };
   search({ skip, limit });
 };
-
 // 查询其他信息
 const searchOther = async () => {
   let res: IQueryResult;