This commit is contained in:
xd 2024-04-21 10:15:29 +08:00
parent fe880b6d9a
commit ad9b83de4e
2 changed files with 12 additions and 14 deletions

View File

@ -88,24 +88,22 @@
<el-row :gutter="8"> <el-row :gutter="8">
<el-col :span="24"> <el-col :span="24">
<el-table class="down" :data="quotHjFileList" border stripe style="width: 100%;" height="150px"> <el-table class="down" :data="quotHjFileList" border stripe style="width: 100%;" height="150px">
<el-table-column prop="fileName" label="文件名称" width="450px"></el-table-column> <el-table-column prop="fileName" label="文件名称"></el-table-column>
<el-table-column prop="fileSize" label="文件大小" width="100px"> <el-table-column prop="fileSize" label="文件大小" width="150px">
<template slot-scope="scope"> <template slot-scope="scope">
<span v-if="scope.row.fileSize / 1024 / 1024 < 1">{{(scope.row.fileSize / 1024).toFixed(2) + 'KB'}}</span> <span v-if="scope.row.fileSize / 1024 / 1024 < 1">{{(scope.row.fileSize / 1024).toFixed(2) + 'KB'}}</span>
<span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span> <span v-else>{{(scope.row.fileSize / 1024 / 1024).toFixed(2) + 'MB'}}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="fileTime" label="上传时间"></el-table-column> <el-table-column prop="fileTime" label="上传时间" width="200px"></el-table-column>
<el-table-column width="150px" label="操作"> <el-table-column width="150px" label="操作">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button :key="Math.random()" size="small" type="text"> <el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a> <a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button> </el-button>
<div v-if="isSelfProp"> <el-button :key="Math.random()" size="small" type="text" v-if="isSelfProp&&form.quotHjApprovalStatus == '1'">
<el-button :key="Math.random()" size="small" type="text" v-if="form.quotHjApprovalStatus == '1'"> <a @click="deleteFile(scope.row.fileId)">删除</a>
<a @click="deleteFile(scope.row.fileId)">删除</a> </el-button>
</el-button>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>

View File

@ -649,11 +649,9 @@
<el-button :key="Math.random()" size="small" type="text"> <el-button :key="Math.random()" size="small" type="text">
<a @click="downloadFile(scope.row.fileUrl)">下载</a> <a @click="downloadFile(scope.row.fileUrl)">下载</a>
</el-button> </el-button>
<div v-if="isSelfProp"> <el-button :key="Math.random()" size="small" type="text" v-if="isSelfProp&&uploadDis">
<el-button :key="Math.random()" size="small" type="text" v-if="uploadDis"> <a @click="deleteFile(scope.row.fileId)">删除</a>
<a @click="deleteFile(scope.row.fileId)">删除</a> </el-button>
</el-button>
</div>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -875,7 +873,9 @@
commitQuot() { commitQuot() {
// //
commitQuot(this.form).then(response => { commitQuot(this.form).then(response => {
this.$emit('fMethod'); this.open = false;
this.$modal.msgSuccess("提交成功");
this.$emit('refreshList');
}) })
}, },