odc.xiaohui
2023-12-19 5bcde3b761933fe21214f2539c59a7c750138c41
src/views/system/oss/index.vue
@@ -102,7 +102,7 @@
    :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" />
@@ -127,7 +127,7 @@
const dialogVisible = ref(false)
const state = reactive({
      mytime:null,//定义定时器
      mytime:0,//定义定时器
    })
const percentage = ref(10)
const percentage2 = ref(0)
@@ -153,14 +153,14 @@
  }
}
onMounted(() => {
})
watch(percentage2, (new1,new2) => {
  console.log(new1,new2)
  if(new1 == 95){
    clearInterval(state.mytime);
    state.mytime = null;
    state.mytime = 0;
  }
})
@@ -324,7 +324,7 @@
/** 任务日志列表查询 */
/** 文件按钮操作 */
const handleFile = () => {
  reset();
  type.value = 0;
  dialog.visible = true;
@@ -349,10 +349,10 @@
  await childFile.value.handleCilck()
  dialog.visible = false;
}
const lookPawsd = async (row: OssVO) => {
const lookPawsd = async (row: any) => {
  console.log(row, row.ossId);
  clearInterval(state.mytime);
    state.mytime = null;
    state.mytime = 0;
  if(row == '123123'){
    dialogVisible.value = true;
    state.mytime = setInterval(() => {
@@ -362,13 +362,13 @@
  else{
    dialogVisible.value = false;
    clearInterval(state.mytime);
    state.mytime = null;
    state.mytime = 0;
    testtxt.value = row.password;
  titleDownload.value = '查看提取码'
  pasTxt.value = ''
  visibleCode.value = true
  }
}
const lookPawsd1 = async () => {
  dialogVisible.value = true;