Merge pull request 'fix : 修复文件列表表格高度' (#271) from dj into master

Reviewed-on: http://git.feashow.cn/clay/mosr-web/pulls/271
This commit is contained in:
2024-06-02 08:31:53 +00:00
8 changed files with 25 additions and 21 deletions

View File

@@ -18,7 +18,7 @@
<el-form-item label="其他文件"> <el-form-item label="其他文件">
<el-card style="width: 100%"> <el-card style="width: 100%">
<file-upload @getFile="getOtherFile"/> <file-upload @getFile="getOtherFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="allFileList" :isSettingCol="false" :pagination="false"> :data="allFileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -207,5 +207,7 @@ defineExpose({
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -57,7 +57,7 @@
v-model:value="formData.collectExplain" /> v-model:value="formData.collectExplain" />
<baseTitle title="申请文件"></baseTitle> <baseTitle title="申请文件"></baseTitle>
<file-upload v-if="checkFormPrem('fileList')" @getFile="getFile"/> <file-upload v-if="checkFormPrem('fileList')" @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 600px;height: 600px" v-if="showTable" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable"
:tableConfig="tableConfig" :data="formData.fileList" :tableConfig="tableConfig" :data="formData.fileList"
:isSettingCol="false" :pagination="false"> :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
@@ -74,7 +74,6 @@
<div class="oper-page-btn"> <div class="oper-page-btn">
<el-button color="#DED0B2" v-if="routerName==='Requirement/add'" @click="handleSubmit(demandForm)">提交</el-button> <el-button color="#DED0B2" v-if="routerName==='Requirement/add'" @click="handleSubmit(demandForm)">提交</el-button>
<el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button> <el-button color="#DED0B2" v-else @click="handleResubmit">重新提交</el-button>
<el-button @click="handleBack">返回</el-button>
</div> </div>
</div> </div>
</template> </template>
@@ -367,7 +366,7 @@ onMounted(async () => {
margin-top: 0; margin-top: 0;
} }
:deep(.el-table--fit ){ :deep(.el-table--fit ){
height: 600px; height: 300px!important;
} }
.add-block { .add-block {
//display: flex; //display: flex;

View File

@@ -40,7 +40,7 @@
<baseTitle title="附件列表"></baseTitle> <baseTitle title="附件列表"></baseTitle>
<el-col :span="24" v-if="checkFormPrem('collectExplain')"> <el-col :span="24" v-if="checkFormPrem('collectExplain')">
<el-form-item> <el-form-item>
<fvTable style="width: 100%;max-height: 600px;height: 600px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="formData.fileList" :isSettingCol="false" :pagination="false"> :data="formData.fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -74,7 +74,7 @@
</el-row> </el-row>
</el-form> </el-form>
<div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId"> <div class="oper-page-btn" v-if="processInstanceData.state === '1' && processInstanceData.taskId">
<el-button @click="handleReject(demandForm)">驳回</el-button> <el-button type="danger" @click="handleReject(demandForm)">驳回</el-button>
<el-button color="#DED0B2" @click="handleSubmit">同意</el-button> <el-button color="#DED0B2" @click="handleSubmit">同意</el-button>
</div> </div>
</div> </div>
@@ -273,7 +273,7 @@ onMounted(async () => {
margin-top: 0; margin-top: 0;
} }
:deep(.el-table--fit ){ :deep(.el-table--fit ){
height: 600px; height: 300px!important;
} }
.detail-block { .detail-block {
overflow: hidden; overflow: hidden;

View File

@@ -530,9 +530,4 @@ const staging = async () => {
overflow: hidden; overflow: hidden;
padding-bottom: 30px; padding-bottom: 30px;
} }
:deep(.el-table--fit) {
height: auto !important;
}
</style> </style>

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -128,5 +128,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile" /> <file-upload @getFile="getFile" />
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -127,5 +127,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -17,7 +17,7 @@
<baseTitle title="其他文件"></baseTitle> <baseTitle title="其他文件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/> <file-upload @getFile="getFile" :disabled="!formData.tagName" :title="!formData.tagName?'请先选择/输入标签!':''"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -182,5 +182,7 @@ getTagsOption()
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>

View File

@@ -8,7 +8,7 @@
<baseTitle title="上传附件"></baseTitle> <baseTitle title="上传附件"></baseTitle>
<el-card style="width: 100%;margin: 15px 0"> <el-card style="width: 100%;margin: 15px 0">
<file-upload @getFile="getFile"/> <file-upload @getFile="getFile"/>
<fvTable style="width: 100%;max-height: 250px;height: 250px" v-if="showTable" :tableConfig="tableConfig" <fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
:data="fileList" :isSettingCol="false" :pagination="false"> :data="fileList" :isSettingCol="false" :pagination="false">
<template #empty> <template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/> <el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -127,5 +127,7 @@ const handleSubmit = async () => {
</script> </script>
<style scoped> <style scoped>
:deep(.el-table--fit ){
height: 300px!important;
}
</style> </style>