Browse Source

no message

xiaoxin 3 years ago
parent
commit
8b8ece4ed5
1 changed files with 41 additions and 5 deletions
  1. 41 5
      src/views/project-management/index.vue

+ 41 - 5
src/views/project-management/index.vue

@@ -177,6 +177,19 @@
           prop="content"
           prop="content"
           label="项目基本情况"
           label="项目基本情况"
         />
         />
+        <el-table-column width="250" align="center" label="附件材料">
+          <template #default="{ row }">
+            <el-image
+              style="height: 60px; width: 60px; margin: 0 5px"
+              v-for="(item, index) in row.file"
+              :key="index"
+              :src="item"
+              :preview-src-list="[item]"
+              hide-on-click-modal
+              preview-teleported
+            />
+          </template>
+        </el-table-column>
         <el-table-column
         <el-table-column
           width="200"
           width="200"
           align="center"
           align="center"
@@ -213,7 +226,7 @@
         <el-pagination
         <el-pagination
           v-model:current-page="currentPage"
           v-model:current-page="currentPage"
           v-model:page-size="pageSize"
           v-model:page-size="pageSize"
-          :page-sizes="[8, 20, 50, 100]"
+          :page-sizes="[6, 20, 50, 100]"
           layout="total, sizes, prev, pager, next, jumper"
           layout="total, sizes, prev, pager, next, jumper"
           :total="total"
           :total="total"
           @size-change="handleSizeChange"
           @size-change="handleSizeChange"
@@ -284,6 +297,21 @@
             {{ dialogInfo.content }}
             {{ dialogInfo.content }}
           </div>
           </div>
         </div>
         </div>
+        <div class="dialog_item">
+          <span>附加材料:</span>
+          <div>
+            <el-image
+              style="width: 50px; margin: 0 5px"
+              fit="fill"
+              v-for="(item, index) in dialogInfo.file"
+              :key="index"
+              :src="item"
+              :preview-src-list="[item]"
+              hide-on-click-modal
+              preview-teleported
+            />
+          </div>
+        </div>
       </div>
       </div>
     </el-dialog>
     </el-dialog>
   </div>
   </div>
@@ -339,6 +367,11 @@ const getData = async () => {
     pageSize: pageSize.value
     pageSize: pageSize.value
   })
   })
   // console.log(res)
   // console.log(res)
+  res.list.forEach((item) => {
+    if (item.file) {
+      item.file = item.file.split(',')
+    }
+  })
   tableData.value = res.list
   tableData.value = res.list
   total.value = res.totalCount
   total.value = res.totalCount
   currentPage.value = res.currPage
   currentPage.value = res.currPage
@@ -365,7 +398,7 @@ const total = ref(0)
 // 分页器当前页
 // 分页器当前页
 const currentPage = ref(1)
 const currentPage = ref(1)
 // 每页条数
 // 每页条数
-const pageSize = ref(8)
+const pageSize = ref(6)
 // 表格数据
 // 表格数据
 const tableData = ref([])
 const tableData = ref([])
 
 
@@ -387,7 +420,7 @@ const hanleExportForm = () => {
     type: 'warning'
     type: 'warning'
   })
   })
     .then(() => {
     .then(() => {
-      window.location.href = `/reporting/informationReporting/download?name=${searchName.value}&trade=${searchIndustry.value}&company=${searchAddress.value}&reportingTime=${searchTime.value}&status=${searchType.value}&ids=${id}`
+      window.location.href = `/gradiate-school/reporting//informationReporting/download?name=${searchName.value}&trade=${searchIndustry.value}&company=${searchAddress.value}&reportingTime=${searchTime.value}&status=${searchType.value}&ids=${id}`
       multipleTable.value.clearSelection()
       multipleTable.value.clearSelection()
     })
     })
     .catch(() => {
     .catch(() => {
@@ -398,6 +431,7 @@ const hanleExportForm = () => {
 }
 }
 // 点击详情按钮回调
 // 点击详情按钮回调
 const handleCheckDetail = (row) => {
 const handleCheckDetail = (row) => {
+  // console.log(row)
   dialogInfo.value = {}
   dialogInfo.value = {}
   dialogVisible.value = true
   dialogVisible.value = true
   dialogInfo.value = row
   dialogInfo.value = row
@@ -509,11 +543,13 @@ const handleReset = () => {
 
 
 .dialog_box {
 .dialog_box {
   height: 630px;
   height: 630px;
+  overflow-y: auto;
   .dialog_item {
   .dialog_item {
     margin-bottom: 10px;
     margin-bottom: 10px;
-    height: 35px;
+    line-height: 20px;
     color: #4d4d4d;
     color: #4d4d4d;
     font-size: 15px;
     font-size: 15px;
+
     .blue {
     .blue {
       color: #1e7dfb;
       color: #1e7dfb;
     }
     }
@@ -526,7 +562,7 @@ const handleReset = () => {
     }
     }
 
 
     div {
     div {
-      height: 160px;
+      max-height: 160px;
       margin-top: 10px;
       margin-top: 10px;
       overflow-y: auto;
       overflow-y: auto;
     }
     }