| | |
| | | <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> |
| | |
| | | :close-on-click-modal = "false" |
| | | :close-on-press-escape = "false" |
| | | :show-close = "false" |
| | | :before-close="handleClose" |
| | | |
| | | > |
| | | <span @closePopup1="lookPawsd1()"> |
| | | <el-progress type="dashboard" :percentage="percentage2" :color="colors" /> |
| | |
| | | const dialogVisible = ref(false) |
| | | |
| | | const state = reactive({ |
| | | mytime:null,//定义定时器 |
| | | mytime:0,//定义定时器 |
| | | }) |
| | | const percentage = ref(10) |
| | | const percentage2 = ref(0) |
| | |
| | | } |
| | | } |
| | | onMounted(() => { |
| | | |
| | | |
| | | |
| | | }) |
| | | watch(percentage2, (new1,new2) => { |
| | | console.log(new1,new2) |
| | | if(new1 == 95){ |
| | | clearInterval(state.mytime); |
| | | state.mytime = null; |
| | | state.mytime = 0; |
| | | } |
| | | }) |
| | | |
| | |
| | | /** 任务日志列表查询 */ |
| | | /** 文件按钮操作 */ |
| | | 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) => { |
| | | console.log(row, row.ossId); |
| | | percentage2.value = 0; |
| | | clearInterval(state.mytime); |
| | | state.mytime = null; |
| | | state.mytime = 0; |
| | | if(row == '123123'){ |
| | | dialogVisible.value = true; |
| | | state.mytime = setInterval(() => { |
| | |
| | | else{ |
| | | dialogVisible.value = false; |
| | | clearInterval(state.mytime); |
| | | state.mytime = null; |
| | | testtxt.value = row.password; |
| | | state.mytime = 0; |
| | | testtxt.value = row.data.password; |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | visibleCode.value = true |
| | | } |
| | | |
| | | |
| | | } |
| | | const lookPawsd1 = async () => { |
| | | dialogVisible.value = true; |
| | |
| | | await examineIds(row.ossId).then(res => { |
| | | console.log(res); |
| | | if (res.code == 200) { |
| | | testtxt.value = res.msg; |
| | | testtxt.value = row.data.password; |
| | | titleDownload.value = '查看提取码' |
| | | pasTxt.value = '' |
| | | // inputSty.value ={ |