预接收

This commit is contained in:
@fawn-nine
2023-06-30 11:35:04 +08:00
parent b230e61de9
commit f6db714b46

View File

@@ -1,8 +1,8 @@
<template> <template>
<div class="container" > <div class="container" >
<el-row :gutter="20" > <el-row :gutter="20" >
<el-alert <el-alert v-if="alertShow"
:title="'Dear '+ user_name + ' Congratulations! '" :title="'Dear '+ user_name + ' Congratulations! , The information will be hidden after ' + hideSec + ' seconds'"
type="success" type="success"
show-icon> show-icon>
@@ -46,6 +46,9 @@
return { return {
user_name: localStorage.getItem('U_relname'), user_name: localStorage.getItem('U_relname'),
thisArtcleId: this.$route.query.id, thisArtcleId: this.$route.query.id,
alertShow:true,
dingshi:null,
hideSec:5,
// 引用表单数据 // 引用表单数据
ReferenceList:[], ReferenceList:[],
Ainfo:{ Ainfo:{
@@ -58,6 +61,7 @@
}, },
created() { created() {
this.getInfoStatu() this.getInfoStatu()
this.hideAlert()
}, },
methods:{ methods:{
// 跳转到引用编辑页面 // 跳转到引用编辑页面
@@ -70,6 +74,20 @@
}); });
}, },
// 隐藏alert
hideAlert(){
this.dingshi = setInterval(()=>{
this.hideSec -= 1
// console.log(this.hideSec)
if(this.hideSec == 0){
this.alertShow = false
clearInterval(this.dingshi)
}
},1000)
// setTimeout(()=>{
// },5000)
},
// 获取资料状态 // 获取资料状态
getInfoStatu(){ getInfoStatu(){
this.$api this.$api