scorpioyq 2 years ago
parent
commit
6f52f0130b

+ 17 - 12
src/views/resource/component/row1.vue

@@ -1,8 +1,8 @@
 <template>
-  <div class="row full-width">
+  <div class="row full-width flex flex-justify-start">
     <div
       v-if="index === 0"
-      class="flex flex-align-center flex-justify-start full-height padding-left cell"
+      class="flex flex-align-center full-height cell full-width"
     >
       <!--      <el-checkbox-->
       <!--        v-if="showCheckBox"-->
@@ -17,17 +17,20 @@
           v-if="folderChecked === false && row.type === 2"
           size="18"
           color="grey"
-          ><Remove
-        /></el-icon>
+        >
+          <Remove />
+        </el-icon>
         <div v-else>
-          <el-icon v-if="info.checked" color="red" size="18px"
-            ><CircleCheckFilled
-          /></el-icon>
-          <el-icon v-else color="grey" size="18px"><CircleCheck /></el-icon>
+          <el-icon v-if="info.checked" color="#ab7630" size="18px">
+            <CircleCheckFilled />
+          </el-icon>
+          <el-icon v-else color="grey" size="18px">
+            <CircleCheck />
+          </el-icon>
         </div>
       </div>
 
-      <div v-else style="width: 24px" />
+      <div v-else />
       <div v-if="info.type === 2">
         <img
           v-if="info.isAccess === 1"
@@ -65,7 +68,7 @@
     </div>
     <div
       v-else
-      class="flex flex-align-center flex-center flex-justify-start ml-10 full-height flex-child-average"
+      class="flex flex-align-center flex-center ml-10 full-height flex-child-average"
     >
       {{ info[column.prop] }}
     </div>
@@ -122,13 +125,15 @@ export default {
 .row {
   height: 55px;
   border-bottom: #f7f8fa solid 1px;
+
   .cell {
-    width: 100%;
     word-break: break-word;
     text-align: left;
+    width: 400px;
   }
+
   img {
-    width: 40px;
+    width: 45px;
     height: auto;
     margin-right: 10px;
   }

+ 21 - 8
src/views/resource/component/xtable.vue

@@ -9,12 +9,12 @@
         <div
           v-if="header.label === '操作'"
           class="padding-top padding-bottom"
-          style="width: 315px"
+          style="width: 285px"
         >
           {{ header.label }}
         </div>
         <div
-          v-else
+          v-else-if="index === 0"
           class="menu flex flex-center flex-justify-start"
           :style="header.width ? `width:` + header.width + `px` : ''"
         >
@@ -28,6 +28,11 @@
             {{ header.label }}
           </div>
         </div>
+        <div v-else>
+          <div class="ml-10">
+            {{ header.label }}
+          </div>
+        </div>
       </div>
     </div>
     <div class="full-width">
@@ -84,7 +89,7 @@
               class="row full-width"
               :style="`min-width:` + prop.width + `px`"
             >
-              <div class="cell flex flex-center full-width">
+              <div class="cell flex full-width flex-center">
                 <row1
                   :row="row"
                   :column="prop"
@@ -100,12 +105,19 @@
         </div>
         <div class="full-width flex flex-center flex-justify-between">
           <div class="mt-10">
-            <div class="ml-20" v-if="topFolder === false">
-              共 {{ filesInfo.folderAmount }} 个文件夹,
-              {{ filesInfo.amount }} 个文件,文件总大小:{{
+            <div class="ml-20 bold" v-if="topFolder === false">
+              共
+              <span class="main-color font-15"
+                >{{ filesInfo.folderAmount }}
+              </span>
+              个文件夹,
+              <span class="main-color font-15">{{ filesInfo.amount }}</span>
+              个文件,文件总大小:<span class="main-color font-15">{{
                 filesInfo.volume
-              }}
-              ,预估共计 {{ filesInfo.totalPage }}页
+              }}</span>
+              ,预估共计
+              <span class="font-15 main-color"> {{ filesInfo.totalPage }}</span>
+              页
             </div>
           </div>
           <el-pagination
@@ -133,6 +145,7 @@ import preview from '@/views/resource/component/preview.vue'
 import defile from '@/views/resource/component/defile.vue'
 import apply from '@/views/resource/component/apply.vue'
 import { bytesToSize } from '@/utils/tools.js'
+
 export default {
   components: {
     row1,

+ 1 - 1
src/views/resource/index.vue

@@ -161,7 +161,7 @@ export default {
             label: '名称',
             prop: 'title',
             display: false,
-            width: 270
+            width: 400
           },
           {
             label: '创建人',

+ 3 - 3
vite.config.js

@@ -1,4 +1,4 @@
-import { defineConfig } from 'vite'
+import {defineConfig} from 'vite'
 import vue from '@vitejs/plugin-vue'
 import Pages from 'vite-plugin-pages'
 import Layouts from 'vite-plugin-vue-layouts'
@@ -57,8 +57,8 @@ export default defineConfig({
     proxy: {
       '/api': {
         // 正式环境地址
-        target: 'https://dev.wutongresearch.club/api',
-        // target: 'https://prod.wutongshucloud.com/api',
+        // target: 'https://dev.wutongresearch.club/api',
+        target: 'https://prod.wutongshucloud.com/api',
         // target: 'http://192.168.31.181:8110',
         changeOrigin: true,
         rewrite: path => path.replace(/^\/api/, '')