Parcourir la source

调整选择学习资料 弹框表格样式

zhulu il y a 2 ans
Parent
commit
7152111e1c

+ 7 - 2
src/components/table/gx.search.table.vue

@@ -30,7 +30,8 @@
               @sort-change="onSort"
               v-if="$slots['columns']"
               :data="dataList"
-              :max-height="tableHeight"
+              :max-height="tableMaxHeight"
+              :height="tableHeight"
               border
               stripe
               :row-key="rowKey"
@@ -110,9 +111,13 @@ export default {
         return []
       },
     },
-    tableHeight:{
+    tableMaxHeight:{
       type:Number,
       default:400
+    },
+    tableHeight:{
+      type:Number,
+      default:250
     }
   },
   model: {

+ 2 - 3
src/views/core/drill/plan/dialog.select.file.vue

@@ -36,12 +36,11 @@
           <el-table-column
             prop="orgName"
             label="资料上传机构"
-           min-width="40%"
+           width="250"
           ></el-table-column>
-          <el-table-column label="资料标题" prop="title" min-width="40%"> </el-table-column>
+          <el-table-column label="资料标题" prop="title" width="300"> </el-table-column>
           <el-table-column
             label="资料附件"
-            min-width="20%"
           >
           <template slot-scope="scope">
             <template v-if="scope.row.fileList">

+ 3 - 4
src/views/core/edu/plan/dialog.select.file.vue

@@ -8,7 +8,7 @@
     top="10vh"
     append-to-body
   >
-    <div class="el-dialog-div">
+    <div class="el-dialog-div" style="margin-bottom:20px">
       <g-search-table
         ref="st"
         url="/core/materials/fileList"
@@ -35,12 +35,11 @@
           <el-table-column
             prop="orgName"
             label="资料上传机构"
-           min-width="40%"
+            width="250"
           ></el-table-column>
-          <el-table-column label="资料标题" prop="title" min-width="40%"> </el-table-column>
+          <el-table-column label="资料标题" prop="title" width="300"> </el-table-column>
           <el-table-column
             label="资料附件"
-            min-width="20%"
           >
           <template slot-scope="scope">
             <template v-if="scope.row.fileList">