mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 优化装修 上传视频失败问题 修复
This commit is contained in:
parent
60586e7941
commit
4afadb73e7
@ -81,7 +81,7 @@ export function uploadImage(data) {
|
||||
export function uploadVedio(data, config) {
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/uploadVedio',
|
||||
url: '/callComponent/upload/uploadVedio/upload',
|
||||
method: 'post',
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data'
|
||||
|
||||
@ -27,8 +27,8 @@
|
||||
<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">
|
||||
<template slot-scope="scope">
|
||||
{{ $dayjs(scope.row.startTime).format('YYYY-MM-DD') }}~<br />
|
||||
{{ $dayjs(scope.row.endTime).format('YYYY-MM-DD') }}
|
||||
{{ dateFormat(scope.row.startTime) }}~<br />
|
||||
{{ dateFormat(scope.row.endTime) }}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="amount" :label="$t('contractDetailReceipt.totalAmount')" align="center">
|
||||
@ -57,6 +57,7 @@
|
||||
<script>
|
||||
import { queryFeeReceipt, listFeePrintPage } from '@/api/contract/contractDetailReceiptApi'
|
||||
import { getCommunityId } from '@/api/community/communityApi'
|
||||
import {dateFormat} from '@/utils/dateUtil'
|
||||
|
||||
export default {
|
||||
name: 'ContractDetailReceipt',
|
||||
@ -91,6 +92,7 @@ export default {
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
dateFormat,
|
||||
open(data) {
|
||||
this.contractDetailReceiptInfo.payObjId = data.ownerId
|
||||
this._listContractDetailReceipt(this.currentPage, this.pageSize)
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<script>
|
||||
import { addApplyRoomDiscountRecord } from '@/api/fee/listApplyRoomDiscountRecordApi'
|
||||
import UploadImageUrl from '@/components/upload/UploadImageUrl'
|
||||
import UploadVedio from './uploadVedio'
|
||||
import UploadVedio from '@/components/upload/uploadVedio'
|
||||
import { getCommunityId } from '@/api/community/communityApi'
|
||||
|
||||
export default {
|
||||
|
||||
@ -4,23 +4,12 @@
|
||||
<el-progress :percentage="progress" :stroke-width="2"></el-progress>
|
||||
<div class="file-name">{{ fileName }}</div>
|
||||
</div>
|
||||
|
||||
<el-button
|
||||
type="primary"
|
||||
size="small"
|
||||
@click="triggerUpload"
|
||||
:disabled="uploading"
|
||||
>
|
||||
|
||||
<el-button type="primary" size="small" @click="triggerUpload" :disabled="uploading">
|
||||
<i class="el-icon-upload"></i>
|
||||
{{ $t('uploadVedio.uploadButton') }}
|
||||
</el-button>
|
||||
<input
|
||||
type="file"
|
||||
ref="fileInput"
|
||||
accept="video/*"
|
||||
style="display: none"
|
||||
@change="handleFileChange"
|
||||
/>
|
||||
<input type="file" ref="fileInput" accept="video/*" style="display: none" @change="handleFileChange" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -66,9 +55,9 @@ export default {
|
||||
}
|
||||
})
|
||||
|
||||
if (res.code === 0) {
|
||||
if (res.realFileName) {
|
||||
this.progress = 100
|
||||
this.realFileName = res.data.realFileName
|
||||
this.realFileName = res.realFileName
|
||||
this.$message.success(this.$t('common.operationSuccess'))
|
||||
}
|
||||
} catch (error) {
|
||||
@ -95,7 +84,7 @@ export default {
|
||||
.upload-vedio-container {
|
||||
.progress-container {
|
||||
margin-bottom: 10px;
|
||||
|
||||
|
||||
.file-name {
|
||||
font-size: 12px;
|
||||
color: #606266;
|
||||
@ -148,7 +148,7 @@ export default {
|
||||
payType: 'common',
|
||||
authCode: '',
|
||||
orderId: '',
|
||||
printUrl: '/#/pages/fee/printPayFee',
|
||||
printUrl: '/#/pages/property/printPayFee',
|
||||
detailIds: '',
|
||||
paymentPoolId: ''
|
||||
},
|
||||
|
||||
Loading…
Reference in New Issue
Block a user