From 43e1199ca0c75787fb6b52bef7d595abd115ceab Mon Sep 17 00:00:00 2001 From: feige <791364011@qq.com> Date: 星期四, 02 一月 2025 21:44:58 +0800 Subject: [PATCH] 修改bug --- ruoyi-ui/src/views/pet/petnote.vue | 24 ++++++++++++++---------- 1 files changed, 14 insertions(+), 10 deletions(-) diff --git a/ruoyi-ui/src/views/pet/petnote.vue b/ruoyi-ui/src/views/pet/petnote.vue index 9ecd134..2cc88d3 100644 --- a/ruoyi-ui/src/views/pet/petnote.vue +++ b/ruoyi-ui/src/views/pet/petnote.vue @@ -60,7 +60,7 @@ </el-upload> </el-col> </el-row> - <el-table v-loading="loading" :data="PetNoteList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;width: 100%;"> + <el-table v-loading="loading" border :data="PetNoteList" @selection-change="handleSelectionChange" :row-class-name="tableRowClassName" style="background: #FFEFF2; border-radius: 14px 14px 14px 14px;width: 100%;"> <el-table-column type="selection" width="55" align="center" /> <el-table-column label="搴忓彿" sortable type="index" :index="(queryParams.pageNum-1)*queryParams.pageSize+1" width="80px"/> <el-table-column label="鏃ユ湡" prop="happenTime" sortable width="200px" align="center"> @@ -341,7 +341,7 @@ // 鏁版嵁鑼冨洿閫夐」 // 鏁版嵁鑼冨洿閫夐」 fot:['.bmp','.jpg','.jpeg','.png','.tif','.gif','.pcx','.tga','.exif','.fpx', - '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng'], + '.svg','.psd','.cdr','.pcd','.dxf','.ufo','.eps','.ai','.aw','.WMF','.webp','.apng','.M4A'], fileList:[ ], @@ -749,6 +749,7 @@ ...this.queryParams }; + if (Object.keys(queryParams).length === 1 && 'pid' in queryParams) { this.download('/family/zfPetNote/export', queryParams, `zfPetNote_${new Date().getTime()}.xlsx`); } else { @@ -773,10 +774,11 @@ var formData = new FormData(); formData.append('excelImport', file); formData.append('pid', pid); // 娣诲姞瀵煎叆鍒板摢涓� ID 鐨勪俊鎭� - console.log(this.pid); + // console.log(formData,'formDataformDataformData') + // alert(this.pid); let _this = this; - enload(formData) + enload(this.pid,formData) .then(response => { _this.getList(); Message({ message: "瀵煎叆鎴愬姛", type: 'warning' }); @@ -784,15 +786,17 @@ .catch(error => { Message({ message: "瀵煎叆澶辫触", type: 'error' }); }); - } + }, + // 寮圭獥 + handleShow(scope){ + + this.openDataScope = true + this.getList() + }, + }, - // 寮圭獥 - handleShow(scope){ - this.openDataScope = true - this.getList() - } }; </script> -- Gitblit v1.9.1