From fdc750fc7144ae675b92406451913e65c42c5f85 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 22 十二月 2023 09:59:35 +0800
Subject: [PATCH] 互联网

---
 src/views/index.vue |   28 +++++++++++++++-------------
 1 files changed, 15 insertions(+), 13 deletions(-)

diff --git a/src/views/index.vue b/src/views/index.vue
index 396b78f..357958b 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -66,7 +66,7 @@
     <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>
@@ -98,15 +98,15 @@
     <el-dialog
     v-model="dialogVisible"
     title=""
-    width="30%"
+    width="37%"
     :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" />
-    </span>
+
+    <el-progress type="dashboard" :percentage="percentage2" style="display: flex;justify-content: center" :color="colors" />
+
     </el-dialog>
   </div>
 </template>
@@ -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;
   }
 })
 const { proxy } = getCurrentInstance() as ComponentInternalInstance;
@@ -321,6 +321,7 @@
 /** 浠诲姟鏃ュ織鍒楄〃鏌ヨ */
 /** 鏂囦欢鎸夐挳鎿嶄綔 */
 const handleFile = () => {
+  percentage2.value = 0;
   reset();
   type.value = 0;
   dialog.visible = true;
@@ -348,8 +349,9 @@
 const lookPawsd = async (row:any) => {
   console.log(row);
   // row.msg = ':/"123456'
+
    clearInterval(state.mytime);
-    state.mytime = null;
+    state.mytime = 0;
   if(row == '123123'){
     dialogVisible.value = true;
     state.mytime = setInterval(() => {
@@ -359,9 +361,9 @@
   else{
     dialogVisible.value = false;
     clearInterval(state.mytime);
-    state.mytime = null;
-    testtxt.value = row.password;
-      testtxt.value = row.msg.slice(2);
+    state.mytime = 0;
+    testtxt.value = row.msg;
+      // testtxt.value = row.msg.slice(2);
       titleDownload.value = '鏌ョ湅鎻愬彇鐮�'
       pasTxt.value = ''
       visibleCode.value = true

--
Gitblit v1.8.0