Browse Source

项目资料收集

ZaiZai 11 months ago
parent
commit
f8834f7ccd
4 changed files with 59 additions and 18 deletions
  1. 1 1
      package.json
  2. 1 1
      src/views/project/admin/list.vue
  3. 53 12
      src/views/project/modules/project-list.vue
  4. 4 4
      yarn.lock

+ 1 - 1
package.json

@@ -19,7 +19,7 @@
         "dayjs": "^1.11.10",
         "echarts": "^5.5.0",
         "element-plus": "2.6.2",
-        "hc-vue3-ui": "^3.7.5",
+        "hc-vue3-ui": "^3.7.6",
         "js-base64": "^3.7.7",
         "js-fast-way": "^0.4.7",
         "js-md5": "^0.8.3",

+ 1 - 1
src/views/project/admin/list.vue

@@ -29,7 +29,7 @@
             <el-button type="warning" class="ml-2">导入</el-button>
             <el-button v-yes-com:[deriveTableItem] type="primary" class="ml-2" :disabled="tableCheckKeys.length <= 0">批量导出</el-button>
         </template>
-        <HcTableList ref="tableRef" is-admin @tap="rowNameClick" @check="tableCheck" @completion="completionClick" />
+        <HcTableList ref="tableRef" is-admin @tap="rowNameClick" @check="tableCheck" />
         <template #action>
             <div>建设规模:共计 xx 公里</div>
             <hc-pages :pages="searchForm" @change="pageChange" />

+ 53 - 12
src/views/project/modules/project-list.vue

@@ -123,7 +123,7 @@
                         <hc-info-table-td center>高速公路</hc-info-table-td>
                     </tr>
                 </hc-info-table>
-                <div class="hc-project-list-drawer-year">
+                <div class="hc-project-list-drawer-year detail">
                     <el-scrollbar>
                         <div class="relative p-2">
                             <hc-card-item class="year-detail">
@@ -144,52 +144,74 @@
                                     </el-table-column>
                                     <el-table-column prop="key1" label="计划完成投资额(亿元)" width="100" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key1" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key1" disabled />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key2" label="投资完成额(亿元)" width="100" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key2" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key2" />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key3" label="累计投资完成额(亿元)" width="100" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key3" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key3" disabled />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key5" label="工作计划" width="100" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key5" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key5" type="textarea" disabled />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key6" label="工作计划进展情况" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key6" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key6" type="textarea" />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key7" label="累计进展情况" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key7" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key7" type="textarea" />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                     <el-table-column prop="key8" label="形象进度百分比(%)" width="100" align="center">
                                         <template #default="{ row }">
-                                            <hc-table-input v-model="row.key8" />
+                                            <hc-body>
+                                                <hc-table-input v-model="row.key8" />
+                                            </hc-body>
                                         </template>
                                     </el-table-column>
                                 </el-table>
                                 <hc-info-table class="mt-[-1px]">
                                     <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>
+                                            <el-input v-model="testValue" type="textarea" />
+                                        </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>
+                                            <el-input v-model="testValue" type="textarea" />
+                                        </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>
+                                            <el-input v-model="testValue" />
+                                        </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>
+                                            <el-input v-model="testValue" />
+                                        </hc-info-table-td>
                                     </tr>
                                 </hc-info-table>
                             </hc-card-item>
@@ -521,6 +543,8 @@ const tableYearMethod1 = ({ rowIndex, columnIndex }) => {
     return setSpanMethod(columnIndex, rowIndex, false)
 }
 
+const testValue = ref('')
+
 const setSpanMethod = (column, row, isAllYear = true) => {
     if (column === 0) { //第一列
         const rows = [0, 3, 6, 9], irows = [1, 2, 4, 5, 7, 8, 10, 11]
@@ -612,6 +636,9 @@ defineExpose({
     border: 1px solid #dddddd;
     border-top: 0;
     height: calc(100% - 170px);
+    &.detail {
+        height: calc(100% - 34px);
+    }
     .year-detail {
         padding: 14px;
         background: #f7f7f7;
@@ -664,6 +691,20 @@ defineExpose({
                 }
             }
         }
+        .el-table .el-table__cell .cell {
+            .hc-new-main-body_content {
+                padding: 4px !important;
+                .el-input, .el-textarea {
+                    height: 100%;
+                    .el-input__inner {
+                        text-align: center;
+                    }
+                    .el-textarea__inner {
+                        height: 100%;
+                    }
+                }
+            }
+        }
     }
 }
 </style>

+ 4 - 4
yarn.lock

@@ -2000,10 +2000,10 @@ has-flag@^4.0.0:
   resolved "http://39.108.216.210:9000/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b"
   integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==
 
-hc-vue3-ui@^3.7.5:
-  version "3.7.5"
-  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.7.5.tgz#16d6fb4149954b345f41fef022ceef0bcdb073c4"
-  integrity sha512-SZ0E5JCOS1MKTEjCoQB5SGXzgytpF7smcW/0MK40WztHoCJrkBME0vmOONJnNXA4dPhlcGyua+20RN2ge39vKw==
+hc-vue3-ui@^3.7.6:
+  version "3.7.6"
+  resolved "http://39.108.216.210:9000/hc-vue3-ui/-/hc-vue3-ui-3.7.6.tgz#9fa5c4fad2ece73a0797082db097f05b0dff6e91"
+  integrity sha512-v+NcRiwGfoqF0tXB+5LcW3hBT32kcB6vo9GvKlJjlSv6gFv8oj4sePpmnd0YVvQcNoGmm7zl3Nmk8aYdgZ4zIQ==
   dependencies:
     axios "^1.6.8"
     dayjs "^1.11.10"