Explorar o código

项目资源管理

natasha hai 1 semana
pai
achega
d4c886b9ec

+ 9 - 0
src/router/modules/project.js

@@ -80,6 +80,15 @@ const personalWorkPage = {
       },
       component: () => import('@/views/personal_workbench/project/ProjectInfoManage.vue'),
     },
+    // 我的项目 -> 项目资源管理
+    {
+      path: `/personal_workbench/production_resource/:id`,
+      name: 'ProjectResource',
+      meta: {
+        title: '项目资源管理',
+      },
+      component: () => import('@/views/personal_workbench/project/ProductionResourceManage.vue'),
+    },
   ],
 };
 

+ 30 - 0
src/views/personal_workbench/project/ProductionResourceManage.vue

@@ -0,0 +1,30 @@
+<template>
+  <div class="production-resource">
+    <MenuPage cur-key="project" />
+  </div>
+</template>
+
+<script>
+import {} from '@/api/book';
+
+export default {
+  name: 'ProjectResourceManager',
+  components: {},
+  data() {
+    return {
+      book_id: this.$route.params.id,
+    };
+  },
+  created() {},
+
+  methods: {},
+};
+</script>
+
+<style lang="scss" scoped>
+@use '@/styles/mixin.scss' as *;
+
+.production-resource {
+  @include page-content(true);
+}
+</style>

+ 9 - 1
src/views/personal_workbench/project/index.vue

@@ -15,9 +15,10 @@
         <el-table-column prop="leader_name_desc" label="项目组长" width="260" header-align="center" />
         <el-table-column prop="member_name_desc" label="项目成员" header-align="center" />
 
-        <el-table-column label="操作" fixed="right" width="260" header-align="center">
+        <el-table-column label="操作" fixed="right" width="340" header-align="center">
           <template slot-scope="{ row }">
             <span class="link" @click="projectInfoManage(row.id, true)">项目信息管理</span>
+            <span class="link" @click="productionResourceManage(row.id)">项目资源管理</span>
             <span class="link" @click="productionEditorialManage(row.id)">制作与审校管理</span>
             <span class="link danger">删除</span>
           </template>
@@ -71,6 +72,13 @@ export default {
     productionEditorialManage(id) {
       this.$router.push({ path: `/personal_workbench/production_editorial/${id}` });
     },
+    /**
+     * 项目资源管理
+     * @param {string} id - 项目ID
+     */
+    productionResourceManage(id) {
+      this.$router.push({ path: `/personal_workbench/production_resource/${id}` });
+    },
   },
 };
 </script>