zs 1 year ago
parent
commit
e684e78fe0

BIN
src/assets/bglogin.jpg


+ 9 - 4
src/router/index.ts

@@ -56,19 +56,24 @@ const router = createRouter({
         },
         },
         {
         {
           path: '/match/match',
           path: '/match/match',
-          meta: { title: '信息列表' },
+          meta: { title: '比赛管理' },
           component: () => import('@/views/match/match/index.vue')
           component: () => import('@/views/match/match/index.vue')
         },
         },
         {
         {
           path: '/match/enroll',
           path: '/match/enroll',
-          meta: { title: '信息列表' },
+          meta: { title: '团队报名' },
           component: () => import('@/views/match/enroll/index.vue')
           component: () => import('@/views/match/enroll/index.vue')
         },
         },
         {
         {
           path: '/match/course',
           path: '/match/course',
-          meta: { title: '信息列表' },
+          meta: { title: '赛程安排' },
           component: () => import('@/views/match/course/index.vue')
           component: () => import('@/views/match/course/index.vue')
         },
         },
+        {
+          path: '/match/ranking',
+          meta: { title: '团队排名' },
+          component: () => import('@/views/match/ranking/index.vue')
+        },
         {
         {
           path: '/acccount/updatepd',
           path: '/acccount/updatepd',
           meta: { title: '修改密码' },
           meta: { title: '修改密码' },
@@ -87,7 +92,7 @@ const router = createRouter({
       ]
       ]
     }
     }
   ]
   ]
-})
+});
 router.beforeEach(async (to, from, next) => {
 router.beforeEach(async (to, from, next) => {
   document.title = `${to.meta.title} `
   document.title = `${to.meta.title} `
   const token = localStorage.getItem('token')
   const token = localStorage.getItem('token')

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

@@ -111,21 +111,21 @@ const search = async (e: { skip: number; limit: number }) => {
     total.value = res.total;
     total.value = res.total;
   }
   }
 };
 };
-const toSearch = (query) => {
+const toSearch = (query: any) => {
   searchForm.value = query;
   searchForm.value = query;
   search({ skip, limit });
   search({ skip, limit });
 };
 };
-const getDict = (value, model) => {
+const getDict = (value: any, model: any) => {
   console.log(value);
   console.log(value);
   if (model == 'is_use') {
   if (model == 'is_use') {
     if (value) {
     if (value) {
-      let data = is_useList.value.find((i) => i.value == value);
+      let data = is_useList.value.find((i: any) => i.value == value);
       if (data) return data.label;
       if (data) return data.label;
       else return '暂无';
       else return '暂无';
     }
     }
   }
   }
 };
 };
-const getProps = (data, prop) => {
+const getProps = (data: any, prop: any) => {
   return _.get(data, prop);
   return _.get(data, prop);
 };
 };
 // 新增
 // 新增
@@ -133,7 +133,7 @@ const toAdd = () => {
   dialog.value = { title: '信息管理', show: true, type: '1' };
   dialog.value = { title: '信息管理', show: true, type: '1' };
 };
 };
 // 修改
 // 修改
-const toEdit = async (data) => {
+const toEdit = async (data: any) => {
   let res: IQueryResult = await dictType.fetch(data._id);
   let res: IQueryResult = await dictType.fetch(data._id);
   if (res.errcode == 0) {
   if (res.errcode == 0) {
     form.value = res.data as {};
     form.value = res.data as {};
@@ -141,7 +141,7 @@ const toEdit = async (data) => {
   }
   }
 };
 };
 // 提交
 // 提交
-const onSubmit = async (data) => {
+const onSubmit = async (data: any) => {
   let res: IQueryResult;
   let res: IQueryResult;
   if (data._id) res = await dictType.update(data);
   if (data._id) res = await dictType.update(data);
   else res = await dictType.create(data);
   else res = await dictType.create(data);
@@ -151,7 +151,7 @@ const onSubmit = async (data) => {
   }
   }
 };
 };
 // 删除
 // 删除
-const toDel = async (data) => {
+const toDel = async (data: any) => {
   let res: IQueryResult = await dictType.del(data._id);
   let res: IQueryResult = await dictType.del(data._id);
   if (res.errcode == 0) {
   if (res.errcode == 0) {
     ElMessage({ type: `success`, message: `刪除信息成功` });
     ElMessage({ type: `success`, message: `刪除信息成功` });
@@ -166,7 +166,7 @@ const toClose = () => {
   search({ skip, limit });
   search({ skip, limit });
 };
 };
 // 字典类型跳转
 // 字典类型跳转
-const toType = (data) => {
+const toType = (data: any) => {
   router.push({ path: '/system/dictData', query: { id: data._id, type: data.type } });
   router.push({ path: '/system/dictData', query: { id: data._id, type: data.type } });
 };
 };
 // 查询其他信息
 // 查询其他信息

+ 6 - 6
src/views/system/dictData/index.vue

@@ -112,14 +112,14 @@ const search = async (e: { skip: number; limit: number }) => {
     total.value = res.total;
     total.value = res.total;
   }
   }
 };
 };
-const toSearch = (query) => {
+const toSearch = (query: any) => {
   searchForm.value = query;
   searchForm.value = query;
   search({ skip, limit });
   search({ skip, limit });
 };
 };
-const getDict = (value, model) => {
+const getDict = (value: any, model: any) => {
   if (model == 'is_use') {
   if (model == 'is_use') {
     if (value) {
     if (value) {
-      let data = is_useList.value.find((i) => i.value == value);
+      let data = is_useList.value.find((i: any) => i.value == value);
       if (data) return data.label;
       if (data) return data.label;
       else return '暂无';
       else return '暂无';
     }
     }
@@ -132,12 +132,12 @@ const toAdd = () => {
   dialog.value = { title: '信息管理', show: true, type: '1' };
   dialog.value = { title: '信息管理', show: true, type: '1' };
 };
 };
 // 修改
 // 修改
-const toEdit = async (data) => {
+const toEdit = async (data: any) => {
   form.value = data;
   form.value = data;
   dialog.value = { title: '信息管理', show: true, type: '1' };
   dialog.value = { title: '信息管理', show: true, type: '1' };
 };
 };
 // 提交保存
 // 提交保存
-const toSave = async (data) => {
+const toSave = async (data: any) => {
   let res: IQueryResult;
   let res: IQueryResult;
   if (data._id) res = await dictData.update(data);
   if (data._id) res = await dictData.update(data);
   else res = await dictData.create(data);
   else res = await dictData.create(data);
@@ -147,7 +147,7 @@ const toSave = async (data) => {
   }
   }
 };
 };
 // 删除
 // 删除
-const toDel = async (data) => {
+const toDel = async (data: any) => {
   let res: IQueryResult = await dictData.del(data._id);
   let res: IQueryResult = await dictData.del(data._id);
   if (res.errcode == 0) {
   if (res.errcode == 0) {
     ElMessage({ type: `success`, message: `刪除信息成功` });
     ElMessage({ type: `success`, message: `刪除信息成功` });

+ 2 - 2
src/views/updatepd/index.vue

@@ -38,7 +38,7 @@ const rules: Ref<any> = ref({
     { required: true, message: '请输入确认新密码' },
     { required: true, message: '请输入确认新密码' },
     {
     {
       trigger: 'blur',
       trigger: 'blur',
-      validator: (rule, value, callback) => {
+      validator: (rule: any, value: any, callback: any) => {
         if (form.value.password !== value) {
         if (form.value.password !== value) {
           callback(new Error('两次输入的密码不一致'));
           callback(new Error('两次输入的密码不一致'));
         } else {
         } else {
@@ -54,7 +54,7 @@ onMounted(async () => {
   loading.value = false;
   loading.value = false;
 });
 });
 // 提交保存
 // 提交保存
-const toSave = async (data) => {
+const toSave = async (data: any) => {
   let user = store.state.user;
   let user = store.state.user;
   let res: IQueryResult = await adminAxios.rp({ _id: user._id, password: data.password });
   let res: IQueryResult = await adminAxios.rp({ _id: user._id, password: data.password });
   if (res.errcode == '0') {
   if (res.errcode == '0') {