回显问题修复

This commit is contained in:
liang.chao 2025-09-24 18:29:45 +08:00
parent dcb66fd973
commit 954246923a
1 changed files with 422 additions and 421 deletions

View File

@ -332,7 +332,7 @@ export default {
const fileList = response.data.surveyAttach.split(',') const fileList = response.data.surveyAttach.split(',')
this.form.fileList = fileList.map((item, index) => ({ this.form.fileList = fileList.map((item, index) => ({
name: '附件' + (index + 1), name: '附件' + (index + 1),
url: process.env.VUE_APP_BASE_API + item + '?token=' + getToken(), url: process.env.VUE_APP_BASE_API + "/profile" + item + '?token=' + getToken(),
})) }))
const {rows: res} = await getModelListApi({page: 1, pageSize: 999, projectId: this.form.proId}) const {rows: res} = await getModelListApi({page: 1, pageSize: 999, projectId: this.form.proId})
@ -398,11 +398,12 @@ export default {
this.getList() this.getList()
this.$modal.msgSuccess('删除成功') this.$modal.msgSuccess('删除成功')
}) })
.catch(() => {}) .catch(() => {
})
}, },
handlePreviewFile(item) { handlePreviewFile(item) {
window.open(process.env.VUE_APP_BASE_API + item + '?token=' + getToken(), '_blank') window.open(process.env.VUE_APP_BASE_API + "/profile" + item + '?token=' + getToken(), '_blank')
}, },
handlePreview(file) { handlePreview(file) {