diff --git a/src/views/basic/survey/index.vue b/src/views/basic/survey/index.vue index f171e0a..923b548 100644 --- a/src/views/basic/survey/index.vue +++ b/src/views/basic/survey/index.vue @@ -80,9 +80,9 @@ icon="el-icon-edit" @click="handleUpdate(scope.row)" v-hasPermi="['basic:survey:edit']" - > + > 详情 - + - + 删除 + --> @@ -170,7 +170,6 @@ :on-success="handleSuccess" :file-list="form.fileList" :headers="headers" - action="/dev-api/common/uploadFile" > @@ -333,13 +332,13 @@ export default { const fileList = response.data.surveyAttach.split(',') this.form.fileList = fileList.map((item, index) => ({ name: '附件' + (index + 1), - url: item, + url: process.env.VUE_APP_BASE_API + item + '?token=' + getToken(), })) const { rows: res } = await getModelListApi({ page: 1, pageSize: 999, projectId: this.form.proId }) this.modelOptions = res.filter((item) => item.nodelevel == item.nodeCount) this.open = true - this.title = '修改勘查日志' + this.title = '查询勘查日志' }) }, /** 提交按钮 */ @@ -403,7 +402,7 @@ export default { }, handlePreviewFile(item) { - window.open(item, '_blank') + window.open(process.env.VUE_APP_BASE_API + item + '?token=' + getToken(), '_blank') }, handlePreview(file) {