导入未成功时加遮罩
This commit is contained in:
@@ -840,4 +840,5 @@ module.exports = {
|
|||||||
descriptionDeliverables:'Description of deliverables',
|
descriptionDeliverables:'Description of deliverables',
|
||||||
startMonth:'Start Month',
|
startMonth:'Start Month',
|
||||||
endMonth:'End Month',
|
endMonth:'End Month',
|
||||||
|
Importing:'Importing',
|
||||||
}
|
}
|
||||||
@@ -845,4 +845,5 @@ module.exports = {
|
|||||||
descriptionDeliverables:'交付物说明',
|
descriptionDeliverables:'交付物说明',
|
||||||
startMonth:'开始日期',
|
startMonth:'开始日期',
|
||||||
endMonth:'结束日期',
|
endMonth:'结束日期',
|
||||||
|
Importing:'导入中',
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,14 @@
|
|||||||
<a-icon type="import" :rotate="270"/>
|
<a-icon type="import" :rotate="270"/>
|
||||||
{{$t('import')}}
|
{{$t('import')}}
|
||||||
</a-upload>
|
</a-upload>
|
||||||
|
<div class="loading-box" v-if="spinning">
|
||||||
|
<div class="loading-content">
|
||||||
|
<a-icon class="loading" type="loading" />
|
||||||
|
<div class="loading-tips">
|
||||||
|
{{this.$t('Importing')}}...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -53,6 +61,7 @@
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
tokenHeader: { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) },
|
tokenHeader: { 'X-Access-Token': Vue.ls.get(ACCESS_TOKEN) },
|
||||||
|
spinning: false,
|
||||||
cut: ''
|
cut: ''
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -174,4 +183,36 @@
|
|||||||
font-weight: 400 !important;
|
font-weight: 400 !important;
|
||||||
color: #040B29 !important;
|
color: #040B29 !important;
|
||||||
}
|
}
|
||||||
|
</style>
|
||||||
|
<style scoped lang="less">
|
||||||
|
.loading-box{
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
z-index: 9999900;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
background-color: rgba(255, 255, 255, 0.9);
|
||||||
|
border-radius: 8px;
|
||||||
|
user-select: none;
|
||||||
|
.loading-content{
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
left: 50%;
|
||||||
|
color: #21c9cc;
|
||||||
|
transform: translate(-50%, -50%);
|
||||||
|
text-align: center;
|
||||||
|
.loading{
|
||||||
|
font-size:28px ;
|
||||||
|
}
|
||||||
|
.spin-loading{
|
||||||
|
animation: rotating 2s linear infinite;
|
||||||
|
}
|
||||||
|
.loading-tips{
|
||||||
|
margin-top: 5px;
|
||||||
|
font-size: 16px;
|
||||||
|
color: #21c9cc;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -83,8 +83,15 @@
|
|||||||
let query = {
|
let query = {
|
||||||
actiProcInstId: this.$route.query.actiProcInstId
|
actiProcInstId: this.$route.query.actiProcInstId
|
||||||
}
|
}
|
||||||
|
this.loading = true
|
||||||
getAction('/wkflow/processHistoryEO/list', query).then((res) => {
|
getAction('/wkflow/processHistoryEO/list', query).then((res) => {
|
||||||
this.dataSource = res
|
if (res.success) {
|
||||||
|
this.dataSource = res.result || []
|
||||||
|
this.loading = false
|
||||||
|
} else {
|
||||||
|
this.dataSource = []
|
||||||
|
this.loading = false
|
||||||
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user