Browse Source

项目与计划详情修改

duy 1 năm trước cách đây
mục cha
commit
7358df5ca8

+ 8 - 0
src/api/modules/project/project.js

@@ -10,6 +10,14 @@ export default {
             data: form,
         }, false)
     },
+        //项目与计划详情
+        async detail(id) {
+            return HcApi({
+                url: '/api/blade-attach/project/project-and-plan-detail',
+                method: 'get',
+                params: { id },
+            }, false)
+        },
 
 
 }

+ 10 - 9
src/views/project/modules/project-list.vue

@@ -23,31 +23,31 @@
                 <hc-info-table>
                     <tr>
                         <hc-info-table-td is-title width="30px" center>项目阶段</hc-info-table-td>
-                        <hc-info-table-td center>开工项目</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.projectStageName }}</hc-info-table-td>
                         <hc-info-table-td is-title width="30px" center>项目类型</hc-info-table-td>
-                        <hc-info-table-td center>高速公路</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.projectTypeName }}</hc-info-table-td>
                     </tr>
                     <tr>
                         <hc-info-table-td is-title width="30px" center>项目名称</hc-info-table-td>
-                        <hc-info-table-td center>成渝高速</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.name }}</hc-info-table-td>
                         <hc-info-table-td is-title width="30px" center>建设规模</hc-info-table-td>
-                        <hc-info-table-td center>你猜</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.buildScale + rowDetail?.buildScaleUnit || '' }}</hc-info-table-td>
                     </tr>
                     <tr>
                         <hc-info-table-td is-title width="30px" center>开 工 年</hc-info-table-td>
-                        <hc-info-table-td center>2023</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.startYear }}</hc-info-table-td>
                         <hc-info-table-td is-title width="30px" center>完 工 年</hc-info-table-td>
-                        <hc-info-table-td center>2024</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.endYear }}</hc-info-table-td>
                     </tr>
                     <tr>
                         <hc-info-table-td is-title width="30px" center>牵头单位</hc-info-table-td>
-                        <hc-info-table-td center>重庆建设集团</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.leaderUnit }}</hc-info-table-td>
                         <hc-info-table-td is-title width="30px" center rowspan="2">配合单位</hc-info-table-td>
-                        <hc-info-table-td center rowspan="2">你猜</hc-info-table-td>
+                        <hc-info-table-td center rowspan="2">{{ rowDetail?.assistUnit }}</hc-info-table-td>
                     </tr>
                     <tr>
                         <hc-info-table-td is-title width="30px" center>责任单位</hc-info-table-td>
-                        <hc-info-table-td center>你猜啊</hc-info-table-td>
+                        <hc-info-table-td center>{{ rowDetail?.dutyUnit }}</hc-info-table-td>
                     </tr>
                 </hc-info-table>
                 <div class="hc-project-list-drawer-year">
@@ -306,6 +306,7 @@ const completion = (row) => {
 }
 
 //查看
+const rowDetail = ref({})
 const isDrawer = ref(false)
 const examine = (row) => {
     isDrawer.value = true