| | |
| | | <template #header> |
| | | <el-row :gutter="10" class="mb8"> |
| | | <el-col :span="1.5"> |
| | | <el-button type="primary" plain icon="Upload" @click="handleFile" v-if="isContains(useUserStore().permissions, 'system:oss:upload')">上传文件</el-button> |
| | | <!-- <el-button type="primary" plain icon="Upload" @click="handleFile" v-if="isContains(useUserStore().permissions, 'system:oss:upload')">上传文件</el-button>--> |
| | | </el-col> |
| | | |
| | | <!-- <el-col :span="1.5">--> |
| | |
| | | <el-dialog :title="dialog.title" v-model="dialog.visible" width="500px" append-to-body> |
| | | <el-form ref="ossFormRef" :model="form" :rules="rules" label-width="80px"> |
| | | <el-form-item label="文件名"> |
| | | <fileUpload ref="childFile" @closePopup="getList();lookPawsd($event)" v-model="form.file" v-if="type === 0" /> |
| | | <fileUpload ref="childFile" @closePopup="getList();lookPawsd($event)" @openPopup="lookPawsd($event)" v-model="form.file" v-if="type === 0" /> |
| | | <imageUpload v-model="form.file" v-if="type === 1" /> |
| | | <video-upload v-model="form.file" v-if="type === 2" /> |
| | | </el-form-item> |
| | |
| | | </template> |
| | | </el-dialog> |
| | | <el-dialog :title="titleDownload" v-model="visibleCode" width="500px" append-to-body> |
| | | <p style="color: red">提取码将会在24小时后失效请尽快下载!</p> |
| | | <span v-show="titleDownload=='查看提取码'">{{testtxt}}</span> |
| | | <div style="width: 100%;text-align: center"> |
| | | <p style="color: red; font-size: 20px">提取码将会在24小时后失效请尽快下载!</p> |
| | | <span v-show="titleDownload=='查看提取码'" style="font-size: 80px;">{{testtxt}}</span> |
| | | </div> |
| | | <el-input style="margin: 10px 0" ref="inputRef" :style="inputSty" v-show="titleDownload=='输入提取码'" v-model="pasTxt" v-if="isContains(useUserStore().permissions, 'system:oss:download')" placeholder="请输入文件提取码"></el-input> |
| | | <el-input style="margin: 10px 0" ref="inputRef" :style="inputSty" v-show="titleDownload=='请输入提取码'" v-model="pasTxt" placeholder="请输入文件提取码"></el-input> |
| | | <!-- <el-button link type="primary" v-show="titleDownload=='输入提取码'" icon="Download" @click="handleDownloadFile()" v-if="isContains(useUserStore().permissions, 'system:oss:download')">下载</el-button>--> |
| | |
| | | /** 任务日志列表查询 */ |
| | | /** 文件按钮操作 */ |
| | | const handleFile = () => { |
| | | |
| | | reset(); |
| | | type.value = 0; |
| | | dialog.visible = true; |
| | |
| | | await childFile.value.handleCilck() |
| | | dialog.visible = false; |
| | | } |
| | | const lookPawsd = async (row: OssVO) => { |
| | | const lookPawsd = async (row: any) => { |
| | | // percentage2.value = 0; |
| | | console.log(row, row.ossId); |
| | | testtxt.value = row.password; |
| | | testtxt.value = row.msg; |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | visibleCode.value = true |