From 55373c6b400d879ba4a4cdae752fe5140c7b11f6 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期一, 28 四月 2025 17:29:15 +0800 Subject: [PATCH] fix:修改上传图片地址 --- src/views/facility/monitorList/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/views/facility/monitorList/index.vue b/src/views/facility/monitorList/index.vue index b414fe0..5363288 100644 --- a/src/views/facility/monitorList/index.vue +++ b/src/views/facility/monitorList/index.vue @@ -20,7 +20,7 @@ */ /** 搜索按钮操作 */ function handleQuery() { - getList({keywords: searchParams.value.keywords}) + getList(searchParams.value) } /** 重置按钮操作 */ @@ -55,7 +55,7 @@ async function getList(val) { loading.value = true; let postParam = setPostParams(val) - await pointApi().search({...postParam, ...searchParams.value}).then((res) => { + await pointApi().search(postParam).then((res) => { tableData.value = res.data.list pageParam.value.total = res.data.total pageParam.value.limit = res.data.limit @@ -152,7 +152,7 @@ //上传文件,添加图片地址信息 const uploadData = (data) => { - form.value.imageUrl = imgBaseUrl + data.toString(); + form.value.imageUrl = data.toString(); } /** 提交按钮 */ @@ -211,7 +211,7 @@ <template> <div class="app-container"> <el-form :model="searchParams" ref="queryRef" :inline="true"> - <el-form-item label="" prop=""> + <el-form-item label="" prop="keywords"> <el-input v-model="searchParams.keywords" placeholder="请输入搜索信息" -- Gitblit v1.9.3