Преглед на файлове

表格最大高度限制

duy преди 2 години
родител
ревизия
e10079f50b

+ 6 - 1
src/global/components/hc-table/index.vue

@@ -11,6 +11,7 @@
                   @cell-dblclick="tableCellDblClick"
                   @cell-contextmenu="tableCellContextmenu"
                   style="width: 100%;"
+                  :max-height="maXheight"
                  :cell-style="{ textAlign: 'center' }"
                  :header-cell-style="{ 'text-align': 'center' }" >
             <el-table-column type="selection" width="50" v-if="isCheck"/>
@@ -61,6 +62,10 @@ const props = defineProps({
         type: Boolean,
         default: false
     },
+    maXheight:{
+        type:Number,
+        default:700
+    }
 })
 
 //初始变量
@@ -69,7 +74,7 @@ const columns = ref(props.column)
 const tableData = ref(props.datas)
 const isLoading = ref(props.loading)
 const isBorder = ref(props.border)
-
+const maXheight= ref(props.maXheight)
 //监听
 watch(() => [
     props.datas,

+ 2 - 2
src/views/data-fill/wbs.vue

@@ -16,7 +16,7 @@
                 </HcTooltip>
                 <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')" v-if="isDrawer">
                     <HcIcon name="folder-user"/>
-                    <span>施工检</span>
+                    <span>施工检</span>
                 </el-button>
                 <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')" v-if="isDrawer">
                     <HcIcon name="folder-shield"/>
@@ -137,7 +137,7 @@
                         </HcTooltip>
                         <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
                             <HcIcon name="folder-user"/>
-                            <span>施工检</span>
+                            <span>施工检</span>
                         </el-button>
                         <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
                             <HcIcon name="folder-shield"/>

+ 1 - 1
src/views/ledger/components/weather.vue

@@ -16,7 +16,7 @@
                 </el-button>
             </HcTooltip>
         </template>
-        <HcTable :column="tableWeatherColumn" :datas="tableWeatherData" :loading="tableWeatherLoading">
+        <HcTable :column="tableWeatherColumn" :datas="tableWeatherData" :loading="tableWeatherLoading" >
             <template #tempLow="{row}">{{row['tempLow']}} ~ {{row['tempHigh']}}</template>
             <template #action="{row}">
                 <HcTooltip keys="write_weather_edit">

+ 1 - 1
src/views/ledger/write.vue

@@ -19,7 +19,7 @@
             <div class="horizontal-drag-line" @mousedown="onmousedown"/>
         </div>
         <div class="hc-layout-content-box ledger-write-box">
-            <HcTabsSimple :datas="sbTableData" :cur="sbTableKey" @tabClick="sbTableClick">
+            <HcTabsSimple :datas="sbTableData" :cur="sbTableKey" @tabClick="sbTableClick" >
                 <template #tab-internal>
                     <HcInternal v-if="sbTableKey === 'internal'" :projectId="projectId" :contractId="contractId" :treeData="nodeDataInfo"/>
                 </template>

+ 1 - 1
src/views/tentative/detect/test-form.vue

@@ -4,7 +4,7 @@
             <template #header>
                 <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
                     <HcIcon name="folder-user"/>
-                    <span>施工检</span>
+                    <span>施工检</span>
                 </el-button>
                 <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
                     <HcIcon name="folder-shield"/>

+ 1 - 1
src/views/tentative/detect/test.vue

@@ -61,7 +61,7 @@
                 <template #extra>
                     <el-button :type="authBtnTabKey === '1'?'primary':''" hc-btn @click="authBtnTabClick('1')">
                         <HcIcon name="folder-user"/>
-                        <span>施工检</span>
+                        <span>施工检</span>
                     </el-button>
                     <el-button :type="authBtnTabKey === '2'?'primary':''" hc-btn @click="authBtnTabClick('2')">
                         <HcIcon name="folder-shield"/>