Commit 856a03ac authored by 李苏's avatar 李苏 💬

当违章记录为空时新增提示

parent b3c093b0
This diff is collapsed.
<template> <template>
<div class="min_full homePage" style="margin: 0;border: 0;"> <div class="min_full homePage " style="margin: 0;border: 0; ">
<!-- 数据展示--> <!-- 数据展示-->
<div class="lbt"> <div class="lbt" v-if="showList.length>0" >
<el-carousel height='calc(100vh - 84px)' > <el-carousel height='calc(100vh - 84px)' >
<el-carousel-item v-for="(item,index) in showList" :key="item.id+index"> <el-carousel-item v-for="(item,index) in showList" :key="item.id+index">
<!-- 轮播图all--> <!-- 轮播图all-->
...@@ -23,12 +23,18 @@ ...@@ -23,12 +23,18 @@
</el-carousel-item> </el-carousel-item>
</el-carousel> </el-carousel>
</div> </div>
<div style="height: calc(100vh - 84px);display: flex;align-items: center;justify-content: center" class="lbt" v-else >
<span style="position: absolute;bottom: 50px;line-height: 40px;font-size: 18px;font-weight: 800;color:#787878" >本月暂无违规记录。</span>
<img style="height: 350px;width: 350px;" :src="aqpng" alt="" srcset="">
</div>
<!-- 轮播图--> <!-- 轮播图-->
</div> </div>
</template> </template>
<script> <script>
const baseurl=process.env.VUE_APP_BASE_API const baseurl=process.env.VUE_APP_BASE_API
import aqpng from '@/assets/images/aq.png'
console.log(aqpng,'png')
import { import {
queryBglxFile queryBglxFile
} from '@/api/threeViolations/enterTV.js'; } from '@/api/threeViolations/enterTV.js';
...@@ -39,10 +45,12 @@ ...@@ -39,10 +45,12 @@
// }) // })
queryBglxFile({}).then(res=>{ queryBglxFile({}).then(res=>{
this.showList=res.data.records||[] this.showList=res.data.records||[]
// this.showList=[]
}) })
}, },
data(){ data(){
return{ return{
aqpng:aqpng,
baseurl:baseurl, baseurl:baseurl,
showList:[] showList:[]
} }
...@@ -56,6 +64,9 @@ ...@@ -56,6 +64,9 @@
<style lang="scss" scope> <style lang="scss" scope>
.homePage{ .homePage{
}
.nodata{
background-image: url('/src/assets/image/aq.svg');
} }
.lbt{ .lbt{
position: relative; position: relative;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment