Commit 1a77f473 authored by “yiyousong”'s avatar “yiyousong”

perf:修改提示图片

parent 23cc60fa
<template> <template>
<div class="enabled" v-show="!enabled"> <div class="enabled" v-show="!enabled">
<div class="enabled_box"> <div class="enabled_box">
<img class="enabled_img" src="../assets/img/tingyong.png" /> <img class="enabled_img" src="@/assets/img/no_network@2x.png" />
<span class="text">设备已停用,请联系管理员~</span>
</div> </div>
</div> </div>
</template> </template>
...@@ -22,7 +23,7 @@ export default { ...@@ -22,7 +23,7 @@ export default {
.enabled { .enabled {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.7);
position: fixed; position: fixed;
top: 0px; top: 0px;
left: 0px; left: 0px;
...@@ -33,11 +34,17 @@ export default { ...@@ -33,11 +34,17 @@ export default {
.enabled_box { .enabled_box {
width: 400px; width: 400px;
height: 400px; height: 400px;
background-color: #fff;
border-radius: 4px; border-radius: 4px;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #fff;
font-size: 24px;
.enabled_img { .enabled_img {
width: 100%; width: 100%;
height: 100%; margin-bottom: 20px;
} }
} }
} }
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
.header { .header {
width: 100%; width: 100%;
height: 100px; height: 100px;
flex-shrink: 0;
// padding: 0px 40px; // padding: 0px 40px;
margin-bottom: 10px; margin-bottom: 10px;
// background: var(--main-theme-color); // background: var(--main-theme-color);
......
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
></div> ></div>
</div> </div>
<!-- <el-empty class="empty" :image-size="200" v-else></el-empty> --> <!-- <el-empty class="empty" :image-size="200" v-else></el-empty> -->
<YEmpty v-else width="400"></YEmpty> <YEmpty v-else width="200" text="暂无数据"></YEmpty>
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
......
<template> <template>
<div class="network_error" v-show="isShowError"> <div class="network_error" v-show="isShowError">
<div class="network_error_box"> <div class="network_error_box">
<img class="network_error_img" src="../assets/img/网络出错@3x.png" /> <img class="network_error_img" src="@/assets/img/no_network@2x.png" />
<span>哎呀,网络出错了~</span>
</div> </div>
</div> </div>
</template> </template>
...@@ -22,7 +23,7 @@ export default { ...@@ -22,7 +23,7 @@ export default {
.network_error { .network_error {
width: 100%; width: 100%;
height: 100%; height: 100%;
background-color: rgba(0, 0, 0, 0.2); background-color: rgba(0, 0, 0, 0.7);
position: fixed; position: fixed;
top: 0px; top: 0px;
left: 0px; left: 0px;
...@@ -33,11 +34,16 @@ export default { ...@@ -33,11 +34,16 @@ export default {
.network_error_box { .network_error_box {
width: 400px; width: 400px;
height: 400px; height: 400px;
background-color: #fff;
border-radius: 4px; border-radius: 4px;
color: #333;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
background-color: #fff;
font-size: 24px;
.network_error_img { .network_error_img {
width: 100%; width: 100%;
height: 100%;
} }
} }
} }
......
<template> <template>
<div class="empty"> <div class="empty">
<div :style="{ width: width.includes('px') ? width : width + 'px' }"> <div
class="content"
:style="{ width: width.includes('px') ? width : width + 'px' }"
>
<img v-if="img" :src="img" /> <img v-if="img" :src="img" />
<span v-if="text">{{ text }}</span> <span v-if="text">
{{ text }}
</span>
</div> </div>
</div> </div>
</template> </template>
...@@ -16,7 +21,7 @@ export default { ...@@ -16,7 +21,7 @@ export default {
}, },
img: { img: {
type: String, type: String,
default: require("../assets/img/暂无信息/暂无列表@3x.png"), default: require("@/assets/img/no_data@2x.png"),
}, },
text: { text: {
type: String, type: String,
...@@ -35,5 +40,11 @@ export default { ...@@ -35,5 +40,11 @@ export default {
width: 100%; width: 100%;
height: 100%; height: 100%;
} }
.content {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
} }
</style> </style>
...@@ -74,7 +74,7 @@ ...@@ -74,7 +74,7 @@
:key="'list' + item" :key="'list' + item"
></div> ></div>
</div> </div>
<YEmpty v-else width="400"></YEmpty> <YEmpty v-else width="200" text="暂无数据"></YEmpty>
<!-- 分页 --> <!-- 分页 -->
<div class="tac"> <div class="tac">
<el-pagination <el-pagination
......
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
</div> </div>
</div> </div>
<!-- <el-empty class="empty" :image-size="200" v-else></el-empty> --> <!-- <el-empty class="empty" :image-size="200" v-else></el-empty> -->
<YEmpty v-else width="400"></YEmpty> <YEmpty v-else width="200" text="暂无数据"></YEmpty>
<!-- 分页 --> <!-- 分页 -->
<div class="tac"> <div class="tac">
<el-pagination <el-pagination
......
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