File tree 1 file changed +17
-15
lines changed
ui/src/views/template/component
1 file changed +17
-15
lines changed Original file line number Diff line number Diff line change 29
29
</div >
30
30
<!-- progress -->
31
31
<div class =" progress-mask" v-if =" currentModel.status === 'DOWNLOAD'" >
32
- <el-progress type =" dashboard" :percentage =" progress" class =" percentage" >
32
+ <el-progress
33
+ type =" circle"
34
+ :width =" 56"
35
+ color =" #3370ff"
36
+ :percentage =" progress"
37
+ class =" percentage"
38
+ >
33
39
<template #default =" { percentage } " >
34
40
<span class =" percentage-value" >{{ percentage }}%</span >
35
- <span class =" percentage-label" >正在下载 <span class =" dotting" ></span ></span >
36
41
</template >
37
42
</el-progress >
43
+ <span class =" percentage-label" >正在下载 <span class =" dotting" ></span ></span >
38
44
</div >
39
45
40
46
<template #mouseEnter >
@@ -144,10 +150,7 @@ const initInterval = () => {
144
150
downModel .value = ok .data
145
151
})
146
152
} else {
147
- if (downModel .value ) {
148
- props .updateModelById (props .model .id , downModel .value )
149
- downModel .value = undefined
150
- }
153
+ downModel .value = undefined
151
154
}
152
155
}, 6000 )
153
156
}
@@ -185,28 +188,27 @@ onBeforeUnmount(() => {
185
188
position : absolute ;
186
189
top : 0 ;
187
190
left : 0 ;
188
- background-color : rgba (122 , 122 , 122 , 0.8 );
191
+ background-color : rgba (255 , 255 , 255 , 0.9 );
189
192
width : 100% ;
190
193
height : 100% ;
191
- z-index : 111 ;
194
+ z-index : 99 ;
192
195
text-align : center ;
193
196
.percentage {
194
197
top : 50% ;
195
- transform : translateY (-50% );
196
- margin-top : 5px ;
198
+ transform : translateY (-65% );
197
199
}
198
200
199
201
.percentage-value {
200
202
display : block ;
201
- margin-top : 10px ;
202
- font-size : 28px ;
203
- color : #ffffff ;
203
+ font-size : 12px ;
204
+ color : var (--el-color-primary );
204
205
}
205
206
.percentage-label {
206
207
display : block ;
207
- margin-top : 10px ;
208
+ margin-top : 45px ;
209
+ margin-left : 10px ;
208
210
font-size : 12px ;
209
- color : #ffffff ;
211
+ color : var ( --el-color-primary ) ;
210
212
}
211
213
}
212
214
}
You can’t perform that action at this time.
0 commit comments