v1.9 产权登记看不到图片bug

This commit is contained in:
wuxw 2025-08-04 19:55:00 +08:00
parent 1e992649e5
commit f143e79f50
4 changed files with 32 additions and 29 deletions

View File

@ -142,4 +142,5 @@ export function saveOwnerRepair(data) {
reject(error)
})
})
}
}

View File

@ -1,10 +1,5 @@
<template>
<el-dialog
:title="$t('addNotepad.title')"
:visible.sync="visible"
width="70%"
@close="handleClose"
>
<el-dialog :title="$t('addNotepad.title')" :visible.sync="visible" width="70%" @close="handleClose">
<el-form :model="addNotepadInfo" ref="form" :rules="rules" label-width="120px">
<el-form-item :label="$t('addNotepad.room')" prop="roomName">
<el-input v-model="addNotepadInfo.roomName" disabled></el-input>
@ -16,26 +11,14 @@
<el-input v-model="addNotepadInfo.link" disabled></el-input>
</el-form-item>
<el-form-item :label="$t('addNotepad.type')" prop="noteType">
<el-select
v-model="addNotepadInfo.noteType"
style="width:100%"
:placeholder="$t('addNotepad.typePlaceholder')"
>
<el-option
v-for="item in addNotepadInfo.noteTypes"
:key="item.statusCd"
:label="item.name"
:value="item.statusCd"
/>
<el-select v-model="addNotepadInfo.noteType" style="width:100%" :placeholder="$t('addNotepad.typePlaceholder')">
<el-option v-for="item in addNotepadInfo.noteTypes" :key="item.statusCd" :label="item.name"
:value="item.statusCd" />
</el-select>
</el-form-item>
<el-form-item :label="$t('addNotepad.content')" prop="title">
<el-input
type="textarea"
:rows="5"
v-model="addNotepadInfo.title"
:placeholder="$t('addNotepad.contentPlaceholder')"
/>
<el-input type="textarea" :rows="5" v-model="addNotepadInfo.title"
:placeholder="$t('addNotepad.contentPlaceholder')" />
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
@ -49,6 +32,7 @@
import { getCommunityId } from '@/api/community/communityApi'
import { getDict } from '@/api/community/communityApi'
import { saveNotepad } from '@/api/oa/simplifyNotepadManageApi'
import {queryRooms} from '@/api/room/roomApi'
export default {
name: 'AddNotepad',
@ -98,6 +82,7 @@ export default {
communityId: getCommunityId()
}
this.getNoteTypes()
this.listNotepadRoom()
},
async getNoteTypes() {
try {
@ -107,10 +92,21 @@ export default {
console.error('Failed to get note types:', error)
}
},
async listNotepadRoom() {
const { rooms } = await queryRooms({
communityId: this.addNotepadInfo.communityId,
page:1,
row:1,
roomId:this.addNotepadInfo.roomId
})
Object.assign(this.addNotepadInfo,rooms[0])
this.addNotepadInfo.objId = rooms[0].ownerId
this.addNotepadInfo.objName = rooms[0].ownerName
},
async saveNotepadInfo() {
this.$refs.form.validate(async valid => {
if (!valid) return
try {
await saveNotepad(this.addNotepadInfo)
this.$emit('success')

View File

@ -104,6 +104,8 @@ export default {
currentPage: 1,
pageSize: 10,
total: 0,
roomId: '',
ownerId: '',
simplifyNotepadManageInfo: {
notepads: [],
conditions: {
@ -120,6 +122,10 @@ export default {
},
created() {
this.communityId = getCommunityId()
const {roomId,ownerId} = this.$route.query
this.simplifyNotepadManageInfo.roomId = roomId;
this.simplifyNotepadManageInfo.ownerId = ownerId;
this.simplifyNotepadManageInfo.conditions.objId = ownerId;
this.simplifyNotepadManageInfo.conditions.communityId = this.communityId
this._listNotepads(this.currentPage, this.pageSize)
},

View File

@ -153,19 +153,19 @@ export default {
this.listPropertyRightRegistrationDetailInfo.propertyRightRegistrationDetails = data.map(item => {
if (item.securities === '001' && item.idCardUrl) {
item.idCardUrl = item.idCardUrl.split(',')
item.idCardUrlShow = item.idCardUrl.map(url => `/callComponent/download/getFile/file?fileId=${url}&communityId=-1&time=${new Date()}`)
item.idCardUrlShow = item.idCardUrl
}
if (item.securities === '002' && item.housePurchaseUrl) {
item.housePurchaseUrl = item.housePurchaseUrl.split(',')
item.housePurchaseUrlShow = item.housePurchaseUrl.map(url => `/callComponent/download/getFile/file?fileId=${url}&communityId=-1&time=${new Date()}`)
item.housePurchaseUrlShow = item.housePurchaseUrl
}
if (item.securities === '003' && item.repairUrl) {
item.repairUrl = item.repairUrl.split(',')
item.repairUrlShow = item.repairUrl.map(url => `/callComponent/download/getFile/file?fileId=${url}&communityId=-1&time=${new Date()}`)
item.repairUrlShow = item.repairUrl
}
if (item.securities === '004' && item.deedTaxUrl) {
item.deedTaxUrl = item.deedTaxUrl.split(',')
item.deedTaxUrlShow = item.deedTaxUrl.map(url => `/callComponent/download/getFile/file?fileId=${url}&communityId=-1&time=${new Date()}`)
item.deedTaxUrlShow = item.deedTaxUrl
}
return item
})