v1.9 优化装修 上传视频失败问题 修复

This commit is contained in:
wuxw 2025-11-21 16:28:23 +08:00
parent 60586e7941
commit 4afadb73e7
5 changed files with 13 additions and 22 deletions

View File

@ -81,7 +81,7 @@ export function uploadImage(data) {
export function uploadVedio(data, config) { export function uploadVedio(data, config) {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {
request({ request({
url: '/uploadVedio', url: '/callComponent/upload/uploadVedio/upload',
method: 'post', method: 'post',
headers: { headers: {
'Content-Type': 'multipart/form-data' 'Content-Type': 'multipart/form-data'

View File

@ -27,8 +27,8 @@
<el-table-column prop="feeName" :label="$t('contractDetailReceipt.feeItem')" align="center"></el-table-column> <el-table-column prop="feeName" :label="$t('contractDetailReceipt.feeItem')" align="center"></el-table-column>
<el-table-column :label="$t('contractDetailReceipt.feePeriod')" align="center" width="200"> <el-table-column :label="$t('contractDetailReceipt.feePeriod')" align="center" width="200">
<template slot-scope="scope"> <template slot-scope="scope">
{{ $dayjs(scope.row.startTime).format('YYYY-MM-DD') }}~<br /> {{ dateFormat(scope.row.startTime) }}~<br />
{{ $dayjs(scope.row.endTime).format('YYYY-MM-DD') }} {{ dateFormat(scope.row.endTime) }}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="amount" :label="$t('contractDetailReceipt.totalAmount')" align="center"> <el-table-column prop="amount" :label="$t('contractDetailReceipt.totalAmount')" align="center">
@ -57,6 +57,7 @@
<script> <script>
import { queryFeeReceipt, listFeePrintPage } from '@/api/contract/contractDetailReceiptApi' import { queryFeeReceipt, listFeePrintPage } from '@/api/contract/contractDetailReceiptApi'
import { getCommunityId } from '@/api/community/communityApi' import { getCommunityId } from '@/api/community/communityApi'
import {dateFormat} from '@/utils/dateUtil'
export default { export default {
name: 'ContractDetailReceipt', name: 'ContractDetailReceipt',
@ -91,6 +92,7 @@ export default {
} }
}, },
methods: { methods: {
dateFormat,
open(data) { open(data) {
this.contractDetailReceiptInfo.payObjId = data.ownerId this.contractDetailReceiptInfo.payObjId = data.ownerId
this._listContractDetailReceipt(this.currentPage, this.pageSize) this._listContractDetailReceipt(this.currentPage, this.pageSize)

View File

@ -36,7 +36,7 @@
<script> <script>
import { addApplyRoomDiscountRecord } from '@/api/fee/listApplyRoomDiscountRecordApi' import { addApplyRoomDiscountRecord } from '@/api/fee/listApplyRoomDiscountRecordApi'
import UploadImageUrl from '@/components/upload/UploadImageUrl' import UploadImageUrl from '@/components/upload/UploadImageUrl'
import UploadVedio from './uploadVedio' import UploadVedio from '@/components/upload/uploadVedio'
import { getCommunityId } from '@/api/community/communityApi' import { getCommunityId } from '@/api/community/communityApi'
export default { export default {

View File

@ -4,23 +4,12 @@
<el-progress :percentage="progress" :stroke-width="2"></el-progress> <el-progress :percentage="progress" :stroke-width="2"></el-progress>
<div class="file-name">{{ fileName }}</div> <div class="file-name">{{ fileName }}</div>
</div> </div>
<el-button <el-button type="primary" size="small" @click="triggerUpload" :disabled="uploading">
type="primary"
size="small"
@click="triggerUpload"
:disabled="uploading"
>
<i class="el-icon-upload"></i> <i class="el-icon-upload"></i>
{{ $t('uploadVedio.uploadButton') }} {{ $t('uploadVedio.uploadButton') }}
</el-button> </el-button>
<input <input type="file" ref="fileInput" accept="video/*" style="display: none" @change="handleFileChange" />
type="file"
ref="fileInput"
accept="video/*"
style="display: none"
@change="handleFileChange"
/>
</div> </div>
</template> </template>
@ -66,9 +55,9 @@ export default {
} }
}) })
if (res.code === 0) { if (res.realFileName) {
this.progress = 100 this.progress = 100
this.realFileName = res.data.realFileName this.realFileName = res.realFileName
this.$message.success(this.$t('common.operationSuccess')) this.$message.success(this.$t('common.operationSuccess'))
} }
} catch (error) { } catch (error) {
@ -95,7 +84,7 @@ export default {
.upload-vedio-container { .upload-vedio-container {
.progress-container { .progress-container {
margin-bottom: 10px; margin-bottom: 10px;
.file-name { .file-name {
font-size: 12px; font-size: 12px;
color: #606266; color: #606266;

View File

@ -148,7 +148,7 @@ export default {
payType: 'common', payType: 'common',
authCode: '', authCode: '',
orderId: '', orderId: '',
printUrl: '/#/pages/fee/printPayFee', printUrl: '/#/pages/property/printPayFee',
detailIds: '', detailIds: '',
paymentPoolId: '' paymentPoolId: ''
}, },