@@ -2005,15 +2005,6 @@ export const constantRoutes = [ | |||
}, | |||
component: (resolve) => require(['@/views/yinnong/personalPicture'], resolve) | |||
}, | |||
{ | |||
path: '/yinnong/done', | |||
name: 'yinnongDone', | |||
meta: { | |||
title: '我的已办', | |||
hidden: true, | |||
}, | |||
component: (resolve) => require(['@/views/yinnong/done'], resolve) | |||
}, | |||
{ | |||
path: '/yinnong/doneCompleted/doneNew', | |||
name: 'yinnongDoneCompletedDoneNew', | |||
@@ -2023,15 +2014,6 @@ export const constantRoutes = [ | |||
}, | |||
component: (resolve) => require(['@/views/yinnong/doneCompleted/doneNew'], resolve) | |||
}, | |||
{ | |||
path: '/yinnong/doneCompleted/completed', | |||
name: 'yinnongDoneCompletedCompleted', | |||
meta: { | |||
title: '我的待办', | |||
hidden: true, | |||
}, | |||
component: (resolve) => require(['@/views/yinnong/doneCompleted/completed'], resolve) | |||
}, | |||
{ | |||
path: '/yinnong/doneCompleted/completedNew', | |||
name: 'yinnongDoneCompletedCompletedNew', | |||
@@ -82,13 +82,43 @@ | |||
<div class="main_box" style="padding: 5px 0 0 0;"> | |||
<van-cell value="收据" /> | |||
<van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList1.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList1.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="发票" /> | |||
<van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList2.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList2.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="其他" /> | |||
<van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList3.length" style="margin-left:8px;" ></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList3.length" style="margin-left:8px;" > | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
</div> | |||
</div> | |||
</template> | |||
@@ -388,7 +418,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2= { | |||
@@ -400,7 +432,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3= { | |||
@@ -412,7 +446,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -72,13 +72,43 @@ | |||
<div class="main_box" style="padding: 5px 0 0 0;"> | |||
<van-cell value="收据" /> | |||
<van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList1.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList1.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="发票" /> | |||
<van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList2.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList2.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="其他" /> | |||
<van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList3.length" style="margin-left:8px;" ></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" :deletable="false" @click-preview="previewPreview" :max-count="fileList3.length" style="margin-left:8px;" > | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
</div> | |||
</div> | |||
</template> | |||
@@ -377,7 +407,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2= { | |||
@@ -389,7 +421,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3= { | |||
@@ -401,7 +435,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -1342,7 +1342,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2= { | |||
@@ -1354,7 +1356,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3= { | |||
@@ -1366,7 +1370,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -2022,7 +2022,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2= { | |||
@@ -2034,7 +2036,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3= { | |||
@@ -2046,7 +2050,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{})}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -93,17 +93,47 @@ | |||
<van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled | |||
:upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" @click-preview="previewPreview" | |||
:deletable="false" :max-count="fileList1.length" style="margin-left:8px;"></van-uploader> | |||
:deletable="false" :max-count="fileList1.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="发票"/> | |||
<van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled | |||
:upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" @click-preview="previewPreview" | |||
:deletable="false" :max-count="fileList2.length" style="margin-left:8px;"></van-uploader> | |||
:deletable="false" :max-count="fileList2.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="其他"/> | |||
<van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled | |||
:upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" @click-preview="previewPreview" | |||
:deletable="false" :max-count="fileList3.length" style="margin-left:8px;"></van-uploader> | |||
:deletable="false" :max-count="fileList3.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
</div> | |||
</div> | |||
</template> | |||
@@ -413,7 +443,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2 = { | |||
@@ -425,7 +457,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3 = { | |||
@@ -437,7 +471,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol + "//" + location.host + request.defaults.baseURL | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -72,13 +72,43 @@ | |||
<div class="main_box" style="padding: 5px 0 0 0;"> | |||
<van-cell value="收据" /> | |||
<van-uploader v-model="fileList1" v-if="fileList1==null||fileList1.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList1.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList1" v-if="fileList1!=null&&fileList1.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList1.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="发票" /> | |||
<van-uploader v-model="fileList2" v-if="fileList2==null||fileList2.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList2.length" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList2" v-if="fileList2!=null&&fileList2.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList2.length" style="margin-left:8px;"> | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
<van-cell value="其他" /> | |||
<van-uploader v-model="fileList3" v-if="fileList3==null||fileList3.length==0" :deletable="false" disabled :upload-text="'未上传附件'" style="margin-left:8px;"></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList3.length" style="margin-left:8px;" ></van-uploader> | |||
<van-uploader v-model="fileList3" v-if="fileList3!=null&&fileList3.length>0" @click-preview="previewPreview" :deletable="false" :max-count="fileList3.length" style="margin-left:8px;" > | |||
<template #preview-cover="file"> | |||
<div class="preview-cover"> | |||
<img src="../../../../assets/images/sunVillage_info/WORD.png" width="75" v-if="file.type == 'docx' || file.type == 'doc'"/> | |||
<img src="../../../../assets/images/sunVillage_info/ECEL.png" width="75" v-if="file.type == 'xlsx' || file.type == 'xls'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PDF.png" width="75" v-if="file.type == 'pdf'" /> | |||
<img src="../../../../assets/images/sunVillage_info/PPT.png" width="75" v-if="file.type == 'ppt'" /> | |||
<img src="../../../../assets/images/sunVillage_info/RAR.png" width="75" v-if="file.type == 'zip' || file.type == 'rar'" /> | |||
</div> | |||
</template> | |||
</van-uploader> | |||
</div> | |||
</div> | |||
</template> | |||
@@ -377,7 +407,9 @@ | |||
attachmentList(oData1).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList1.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList1.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData2= { | |||
@@ -389,7 +421,9 @@ | |||
attachmentList(oData2).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList2.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList2.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
let oData3= { | |||
@@ -401,7 +435,9 @@ | |||
attachmentList(oData3).then(res => { | |||
res.rows.map(r => { | |||
let baseUrl = location.protocol+"//"+location.host+request.defaults.baseURL | |||
this.fileList3.push({"url":baseUrl + r.fileUrl,"file":new File([],r.fileName,{}),"id":r.id}) | |||
let subIndex = r.fileName.lastIndexOf("."); | |||
let ext = r.fileName.substring(subIndex + 1, r.fileName.length); | |||
this.fileList3.push({"url": baseUrl + r.fileUrl, "file": new File([], r.fileName, {}), "id": r.id,"type":ext}) | |||
}) | |||
}) | |||
}, | |||
@@ -20,12 +20,12 @@ | |||
<van-row style=""> | |||
<van-col span="23" :offset="1"> | |||
<h3 style="display: inline-block;line-height: 30px;margin-left: 6px;width: 100%;overflow: hidden;"> | |||
<p style="display: inline-block;line-height: 30px;margin-left: 6px;width: 100%;overflow: hidden;"> | |||
<van-image | |||
height="20" | |||
width="20" | |||
style="vertical-align: middle;margin-right: 10px" | |||
src="../../../../static/images/onlineHome/done.png"></van-image>{{item.auditName}}</h3> | |||
src="../../../../static/images/onlineHome/done.png"></van-image>{{item.auditName}}</p> | |||
</van-col> | |||
</van-row> | |||
</template> | |||