优化导入错误提醒
This commit is contained in:
parent
7f1673a5d9
commit
74e18fb6a1
@ -48,7 +48,9 @@
|
|||||||
<div class="errText" v-if="errorShow">
|
<div class="errText" v-if="errorShow">
|
||||||
<div class="deleteErr" @click="errorClick"><el-icon class="icon"><el-icon-Close/></el-icon></div>
|
<div class="deleteErr" @click="errorClick"><el-icon class="icon"><el-icon-Close/></el-icon></div>
|
||||||
<el-scrollbar max-height="120px">
|
<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>
|
</el-scrollbar>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -111,7 +113,8 @@ export default {
|
|||||||
this.progressShow = true;
|
this.progressShow = true;
|
||||||
if(res.data.status == 0){
|
if(res.data.status == 0){
|
||||||
this.errorShow = true;
|
this.errorShow = true;
|
||||||
this.errorList.push(res.data);
|
let text = res.data;
|
||||||
|
this.errorList.push(text);
|
||||||
}
|
}
|
||||||
if(res.data.rate == 100){
|
if(res.data.rate == 100){
|
||||||
this.progressShow = false;
|
this.progressShow = false;
|
||||||
@ -243,7 +246,7 @@ export default {
|
|||||||
border-radius: 6px;
|
border-radius: 6px;
|
||||||
background: var(--el-color-danger-light-9);
|
background: var(--el-color-danger-light-9);
|
||||||
position: relative;
|
position: relative;
|
||||||
p{
|
.name{
|
||||||
color: var(--el-color-danger);
|
color: var(--el-color-danger);
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding: 3px 0;
|
padding: 3px 0;
|
||||||
|
|||||||
@ -28,8 +28,8 @@ export default {
|
|||||||
},
|
},
|
||||||
params: {},
|
params: {},
|
||||||
searchList:[
|
searchList:[
|
||||||
{name:'机房代码',type:'text',code:'created_at', placeholder:"请输入机房代码",show:true},
|
{name:'机房代码',type:'text',code:'code', placeholder:"请输入机房代码",show:true},
|
||||||
{name:'机房城市',type:'text',code:'type', placeholder:"请输入机房城市",show: true},
|
{name:'机房城市',type:'text',code:'city', placeholder:"请输入机房城市",show: true},
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user