| | |
| | | <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>--> |
| | | <!-- <el-button link type="primary" v-show="titleDownload=='请输入提取码'" icon="Delete" @click="delFile()" >删除</el-button>--> |
| | | <template #footer> |
| | | <div class="dialog-footer"> |
| | | <el-button link type="primary" v-show="titleDownload=='输入提取码'" icon="Download" @click="handleDownloadFile()" v-if="isContains(useUserStore().permissions, 'system:oss:download')">下载</el-button> |
| | | <el-button link type="primary" v-show="titleDownload=='请输入提取码'" icon="Delete" @click="delFile()" >删除</el-button> |
| | | <!-- <el-button type="primary" @click="visibleCode = false">确 定</el-button>--> |
| | | <el-button @click="visibleCode = false">取 消</el-button> |
| | | <el-button type="primary" v-show="titleDownload=='输入提取码'" @click="handleDownloadFile()" v-if="isContains(useUserStore().permissions, 'system:oss:download')">下 载</el-button> |
| | | <el-button type="primary" v-show="titleDownload=='请输入提取码'" @click="delFile()" >删 除</el-button> |
| | | <el-button type="primary" v-if="titleDownload!='输入提取码'&&titleDownload!='请输入提取码'" @click="visibleCode = false">确 定</el-button> |
| | | </div> |
| | | </template> |
| | | </el-dialog> |
| | | |
| | | <!-- 进度条 --> |
| | | <el-dialog |
| | | v-model="dialogVisible" |
| | | title="" |
| | | width="37%" |
| | | :close-on-click-modal = "false" |
| | | :close-on-press-escape = "false" |
| | | :show-close = "false" |
| | | |
| | | > |
| | | <span @closePopup1="lookPawsd1()"> |
| | | <el-progress type="dashboard" :percentage="percentage2" style="display: flex;justify-content: center" :color="colors" /> |
| | | </span> |
| | | </el-dialog> |
| | | </div> |
| | | </template> |
| | |
| | | import usePermissionStore from "@/store/modules/permission"; |
| | | import { isHttp } from "@/utils/validate"; |
| | | import router from '@/router'; |
| | | import { onMounted, ref } from 'vue'; |
| | | import { Minus, Plus } from '@element-plus/icons-vue'; |
| | | import { ElMessageBox } from 'element-plus'; |
| | | |
| | | const dialogVisible = ref(false) |
| | | |
| | | const state = reactive({ |
| | | mytime:0,//定义定时器 |
| | | }) |
| | | const percentage = ref(10) |
| | | const percentage2 = ref(0) |
| | | |
| | | const colors = [ |
| | | { color: '#f56c6c', percentage: 20 }, |
| | | { color: '#e6a23c', percentage: 40 }, |
| | | { color: '#5cb87a', percentage: 60 }, |
| | | { color: '#1989fa', percentage: 80 }, |
| | | { color: '#6f7ad3', percentage: 100 }, |
| | | ] |
| | | |
| | | const increase = () => { |
| | | percentage.value += 10 |
| | | if (percentage.value > 100) { |
| | | percentage.value = 100 |
| | | } |
| | | } |
| | | const decrease = () => { |
| | | percentage.value -= 10 |
| | | if (percentage.value < 0) { |
| | | percentage.value = 0 |
| | | } |
| | | } |
| | | onMounted(() => { |
| | | |
| | | |
| | | }) |
| | | watch(percentage2, (new1,new2) => { |
| | | console.log(new1,new2) |
| | | if(new1 == 95){ |
| | | clearInterval(state.mytime); |
| | | state.mytime = 0; |
| | | } |
| | | }) |
| | | |
| | | |
| | | |
| | | const { proxy } = getCurrentInstance() as ComponentInternalInstance; |
| | | |
| | | const ossList = ref<OssVO[]>([]); |
| | |
| | | const childFile = ref<any>() |
| | | const figType = ref<any>() |
| | | // 默认排序 |
| | | const defaultSort = ref({ prop: 'createTime', order: 'ascending' }); |
| | | const defaultSort = ref({ prop: 'createTime', order: 'descending' }); |
| | | |
| | | const ossFormRef = ref<ElFormInstance>(); |
| | | const queryFormRef = ref<ElFormInstance>(); |
| | |
| | | /** 任务日志列表查询 */ |
| | | /** 文件按钮操作 */ |
| | | const handleFile = () => { |
| | | percentage2.value = 0; |
| | | reset(); |
| | | type.value = 0; |
| | | dialog.visible = true; |
| | |
| | | await childFile.value.handleCilck() |
| | | dialog.visible = false; |
| | | } |
| | | const lookPawsd = async (row: OssVO) => { |
| | | const lookPawsd = async (row: any) => { |
| | | console.log(row, row.ossId); |
| | | testtxt.value = row.password; |
| | | |
| | | clearInterval(state.mytime); |
| | | state.mytime = 0; |
| | | if(row == '123123'){ |
| | | dialogVisible.value = true; |
| | | state.mytime = setInterval(() => { |
| | | percentage2.value = (percentage2.value % 100) + 5 |
| | | }, 500) |
| | | } |
| | | else{ |
| | | dialogVisible.value = false; |
| | | clearInterval(state.mytime); |
| | | state.mytime = 0; |
| | | testtxt.value = row.password; |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | visibleCode.value = true |
| | | } |
| | | |
| | | } |
| | | const lookPawsd1 = async () => { |
| | | dialogVisible.value = true; |
| | | } |
| | | const handleCode = async (row: OssVO) => { |
| | | console.log(row, row.ossId); |
| | |
| | | await examineIds(row.ossId).then(res => { |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | testtxt.value = res.msg; |
| | | testtxt.value = res.data.password; |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | // inputSty.value ={ |