优化导入错误提醒

This commit is contained in:
龙运模 2024-07-18 23:41:33 +08:00
parent 7f1673a5d9
commit 74e18fb6a1
2 changed files with 8 additions and 5 deletions

View File

@ -48,7 +48,9 @@
<div class="errText" v-if="errorShow">
<div class="deleteErr" @click="errorClick"><el-icon class="icon"><el-icon-Close/></el-icon></div>
<el-scrollbar max-height="120px">
<p v-for="item in errorList" :key="item">{{item.msg}}</p>
<div v-for="em in errorList" :key="em">
<div class="name" v-html="em.msg"></div>
</div>
</el-scrollbar>
</div>
</template>
@ -111,7 +113,8 @@ export default {
this.progressShow = true;
if(res.data.status == 0){
this.errorShow = true;
this.errorList.push(res.data);
let text = res.data;
this.errorList.push(text);
}
if(res.data.rate == 100){
this.progressShow = false;
@ -243,7 +246,7 @@ export default {
border-radius: 6px;
background: var(--el-color-danger-light-9);
position: relative;
p{
.name{
color: var(--el-color-danger);
font-size: 12px;
padding: 3px 0;

View File

@ -28,8 +28,8 @@ export default {
},
params: {},
searchList:[
{name:'机房代码',type:'text',code:'created_at', placeholder:"请输入机房代码",show:true},
{name:'机房城市',type:'text',code:'type', placeholder:"请输入机房城市",show: true},
{name:'机房代码',type:'text',code:'code', placeholder:"请输入机房代码",show:true},
{name:'机房城市',type:'text',code:'city', placeholder:"请输入机房城市",show: true},
],
}
},