From d3242462c31ac2b01a237b01d2fca4b3cbdbcd70 Mon Sep 17 00:00:00 2001
From: odc.xiaohui <xiaohui@Q1>
Date: 星期五, 22 十二月 2023 11:11:11 +0800
Subject: [PATCH] 互联网
---
src/views/index.vue | 32 +++++++++++++++++++-------------
1 files changed, 19 insertions(+), 13 deletions(-)
diff --git a/src/views/index.vue b/src/views/index.vue
index 07c0b53..3c5d99b 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,14 +98,14 @@
<el-dialog
v-model="dialogVisible"
title=""
- width="30%"
+ width="37%"
:close-on-click-modal = "false"
:close-on-press-escape = "false"
:show-close = "false"
>
- <el-progress type="dashboard" :percentage="percentage2" :color="colors" />
+ <el-progress type="dashboard" :percentage="percentage2" style="display: flex;justify-content: center" :color="colors" />
</el-dialog>
</div>
@@ -321,6 +321,7 @@
/** 浠诲姟鏃ュ織鍒楄〃鏌ヨ */
/** 鏂囦欢鎸夐挳鎿嶄綔 */
const handleFile = () => {
+ percentage2.value = 0;
reset();
type.value = 0;
dialog.visible = true;
@@ -343,29 +344,34 @@
const submitForm = async () => {
await childFile.value.handleCilck()
- dialog.visible = false;
+ dialog.visible = false;
+ dialogVisible.value = true;
+ state.mytime = setInterval(() => {
+ percentage2.value = (percentage2.value % 100) + 5
+ }, 500)
}
const lookPawsd = async (row:any) => {
console.log(row);
// row.msg = ':/"123456'
+
clearInterval(state.mytime);
state.mytime = 0;
- if(row == '123123'){
- dialogVisible.value = true;
- state.mytime = setInterval(() => {
- percentage2.value = (percentage2.value % 100) + 5
- }, 500)
- }
- else{
+ // 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;
+ testtxt.value = row.msg;
// testtxt.value = row.msg.slice(2);
titleDownload.value = '鏌ョ湅鎻愬彇鐮�'
pasTxt.value = ''
visibleCode.value = true
- }
+ // }
}
const handleCode = async (row: OssVO) => {
console.log(row, row.ossId);
--
Gitblit v1.8.0