From b5a8a482a5eede229ffea6b8de6ba2b8f06ac0c4 Mon Sep 17 00:00:00 2001 From: Tcsm <1377977403@qq.com> Date: 星期日, 30 七月 2023 18:12:04 +0800 Subject: [PATCH] 除健康外,点击详情页可以获取对应数据 --- ruoyi-ui/src/views/wish/wishInfo.vue | 35 +++++++---------------------------- 1 files changed, 7 insertions(+), 28 deletions(-) diff --git a/ruoyi-ui/src/views/wish/wishInfo.vue b/ruoyi-ui/src/views/wish/wishInfo.vue index 6daf558..9d4bc4f 100644 --- a/ruoyi-ui/src/views/wish/wishInfo.vue +++ b/ruoyi-ui/src/views/wish/wishInfo.vue @@ -117,26 +117,6 @@ </div> </el-upload> - <!--<h4 class="form-header">鍏朵粬闄勪欢 </h4> - <el-upload - action="" - :file-list="fileListOther" - class="upload-demo" - multiple - :on-preview="handlePreview" - - :on-remove="handleRemove" - :http-request="requestUpload" - :show-file-list="true" - > - <el-button v-if="isShow" type="primary" >鐐瑰嚮涓婁紶</el-button> - <template #tip> - <div class="el-upload__tip"> - </div> - </template> - - - </el-upload>--> <h4 class="form-header">鍏朵粬闄勪欢 </h4> <el-upload action="" @@ -145,7 +125,7 @@ multiple list-type="picture-card" :on-preview="handleFileCardPreview" - :on-remove="handleRemove" + :on-remove="handleRemoveFile" :http-request="requestUpload" :show-file-list="true" > @@ -168,12 +148,11 @@ </span> <span v-if="isShow" - @click="handleRemove(file)" class="el-upload-list__item-delete" - + @click="handleDownload(file.url)" > - <i class="el-icon-download"></i> - </span> + <i class="el-icon-download"></i> + </span> <span v-if="isShow" class="el-upload-list__item-delete" @@ -215,8 +194,8 @@ props: [], data() { return { - cdi:"鏀惰棌涓庤崳瑾夎缁嗕俊鎭�", - udi:"鏀惰棌涓庤崳瑾変俊鎭鎯�", + cdi:"鐧惧勾蹇冩効璇︾粏淇℃伅", + udi:"鐧惧勾蹇冩効淇℃伅璇︽儏", fot:[".jpg",".jif"], fileList:[ ], @@ -315,7 +294,7 @@ let _this = this if (id) { this.loading = true; - getWish(id).then((response) => { + getWish({id}).then((response) => { this.formData = response.data; let paths = response.data.url.split(","); for(let i = 0; i < paths.length; i++) -- Gitblit v1.9.1