zs 2 年之前
父节点
当前提交
1cff20655e
共有 5 个文件被更改,包括 20 次插入14 次删除
  1. 2 2
      src/layout/site.ts
  2. 11 5
      src/router/index.ts
  3. 1 1
      src/views/team/examine/detail.vue
  4. 4 4
      src/views/team/examine/index.vue
  5. 2 2
      src/views/team/team/index.vue

+ 2 - 2
src/layout/site.ts

@@ -31,8 +31,8 @@ export const menuInfo = {
       index: '3',
       type: '0',
       children: [
-        { icon: 'iconshouye', _id: 'admin_3_1', path: '/team/examine', name: '信息审批' },
-        { icon: 'iconshouye', _id: 'admin_3_2', path: '/team/team', name: '信息列表' }
+        { icon: 'iconshouye', _id: 'admin_3_1', path: '/team/examine', name: '团队信息审批' },
+        { icon: 'iconshouye', _id: 'admin_3_2', path: '/team/team', name: '团队信息列表' }
       ]
     },
     {

+ 11 - 5
src/router/index.ts

@@ -46,18 +46,23 @@ const router = createRouter({
         },
         {
           path: '/team/examine',
-          meta: { title: '信息审批' },
+          meta: { title: '团队信息审批' },
           component: () => import('@/views/team/examine/index.vue')
         },
         {
           path: '/team/examine/detail',
-          meta: { title: '信息审批查看' },
+          meta: { title: '团队审批信息管理' },
           component: () => import('@/views/team/examine/detail.vue')
         },
         {
           path: '/team/team',
-          meta: { title: '信息列表' },
-          component: () => import('@/views/team/examine/index.vue')
+          meta: { title: '团队信息列表' },
+          component: () => import('@/views/team/team/index.vue')
+        },
+        {
+          path: '/team/team/detail',
+          meta: { title: '团队信息查看' },
+          component: () => import('@/views/team/team/detail.vue')
         },
         {
           path: '/match/index',
@@ -98,7 +103,8 @@ const router = createRouter({
           path: '/system/dictData',
           meta: { title: '字典数据管理' },
           component: () => import('@/views/system/dictData/index.vue')
-        },{
+        },
+        {
           path: '/system/config',
           meta: { title: '基础设置' },
           component: () => import('@/views/system/config/index.vue')

+ 1 - 1
src/views/team/examine/detail.vue

@@ -11,7 +11,7 @@
               <el-option v-for="i in userList" :key="i._id" :label="i.name" :value="i._id"></el-option>
             </template>
             <template #logo>
-              <cUpload :model="`${'logo'}`" :limit="1" url="/files/ball/team/upload" :list="form.logo" @change="onUpload"></cUpload>
+              <cUpload :model="`${'logo'}`" listType="picture" :limit="1" url="/files/ball/team/upload" :list="form.logo" @change="onUpload"></cUpload>
             </template>
             <template #member>
               <cTable :fields="memberfields" :opera="opera" :list="form.member" :usePage="false" @del="toDel"> </cTable>

+ 4 - 4
src/views/team/examine/index.vue

@@ -6,7 +6,7 @@
           <cSearch :is_title="false" :is_search="true" :fields="fields" @search="toSearch"> </cSearch>
         </el-col>
         <el-col :span="24" class="two">
-          <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @view="toView" @exam="toExam" @del="toDel"> </cTable>
+          <cTable :fields="fields" :opera="opera" :list="list" @query="search" :total="total" @edit="toEdit" @exam="toExam" @del="toDel"> </cTable>
         </el-col>
       </el-col>
     </el-row>
@@ -58,7 +58,7 @@ let fields: Ref<any[]> = ref([
 ]);
 // 操作
 let opera: Ref<any[]> = ref([
-  { label: '查看', method: 'view', tpye: 'Info' },
+  { label: '修改', method: 'edit' },
   { label: '审核', method: 'exam', type: 'warning' },
   { label: '删除', method: 'del', confirm: true, type: 'danger' }
 ]);
@@ -104,7 +104,7 @@ const getDict = (e, model) => {
   }
 };
 // 查看
-const toView = (data) => {
+const toEdit = (data) => {
   router.push({ path: '/team/examine/detail', query: { id: data._id } });
 };
 // 审核
@@ -151,7 +151,7 @@ const searchOther = async () => {
   res = await dictAxios.query({ type: 'type' });
   if (res.errcode == '0') typeList.value = res.data;
   // 状态
-  res = await dictAxios.query({ type: 'ststus' });
+  res = await dictAxios.query({ type: 'status' });
   if (res.errcode == '0') statusList.value = res.data;
   // 管理员
   res = await userAxios.query({ status: '1' });

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

@@ -85,7 +85,7 @@ const getDict = (e, model) => {
 };
 // 查看
 const toView = (data) => {
-  router.push({ path: '/team/examine/detail', query: { id: data._id } });
+  router.push({ path: '/team/team/detail', query: { id: data._id } });
 };
 
 // 查询其他信息
@@ -98,7 +98,7 @@ const searchOther = async () => {
   res = await dictAxios.query({ type: 'type' });
   if (res.errcode == '0') typeList.value = res.data;
   // 状态
-  res = await dictAxios.query({ type: 'ststus' });
+  res = await dictAxios.query({ type: 'status' });
   if (res.errcode == '0') statusList.value = res.data;
   // 管理员
   res = await userAxios.query({ status: '1' });