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

@ -143,3 +143,4 @@ export function saveOwnerRepair(data) {
}) })
}) })
} }

View File

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

View File

@ -104,6 +104,8 @@ export default {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
total: 0, total: 0,
roomId: '',
ownerId: '',
simplifyNotepadManageInfo: { simplifyNotepadManageInfo: {
notepads: [], notepads: [],
conditions: { conditions: {
@ -120,6 +122,10 @@ export default {
}, },
created() { created() {
this.communityId = getCommunityId() 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.simplifyNotepadManageInfo.conditions.communityId = this.communityId
this._listNotepads(this.currentPage, this.pageSize) this._listNotepads(this.currentPage, this.pageSize)
}, },

View File

@ -153,19 +153,19 @@ export default {
this.listPropertyRightRegistrationDetailInfo.propertyRightRegistrationDetails = data.map(item => { this.listPropertyRightRegistrationDetailInfo.propertyRightRegistrationDetails = data.map(item => {
if (item.securities === '001' && item.idCardUrl) { if (item.securities === '001' && item.idCardUrl) {
item.idCardUrl = item.idCardUrl.split(',') 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) { if (item.securities === '002' && item.housePurchaseUrl) {
item.housePurchaseUrl = item.housePurchaseUrl.split(',') 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) { if (item.securities === '003' && item.repairUrl) {
item.repairUrl = item.repairUrl.split(',') 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) { if (item.securities === '004' && item.deedTaxUrl) {
item.deedTaxUrl = item.deedTaxUrl.split(',') 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 return item
}) })