2021-11-15 10:29:05 +08:00
|
|
|
<template>
|
2021-11-23 17:16:13 +08:00
|
|
|
<div class="emptyWrap">
|
2022-01-28 09:46:46 +08:00
|
|
|
<img class="emptyImg" :src="emptyImg" :class="noPermit ? 'small-img' : ''">
|
2022-01-27 15:17:53 +08:00
|
|
|
<div class="emptyText" v-html="description"></div>
|
2021-11-23 17:16:13 +08:00
|
|
|
</div>
|
2021-11-15 10:29:05 +08:00
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
2021-11-23 17:16:13 +08:00
|
|
|
export default {
|
|
|
|
|
name: "AiEmpty",
|
|
|
|
|
props: {
|
2022-02-10 18:35:05 +08:00
|
|
|
img: {default: "https://cdn.cunwuyun.cn/dvcp/h5/no-admin.png"},
|
2022-01-27 15:16:26 +08:00
|
|
|
noPermit: Boolean,
|
2021-11-23 17:16:13 +08:00
|
|
|
description: {
|
|
|
|
|
default: '暂无相关信息',
|
|
|
|
|
type: String
|
2021-11-15 10:29:05 +08:00
|
|
|
}
|
2022-01-27 15:16:26 +08:00
|
|
|
},
|
|
|
|
|
computed: {
|
|
|
|
|
emptyImg() {
|
|
|
|
|
return this.noPermit ? "https://cdn.cunwuyun.cn/dvcp/h5/no-admin.png" : this.img
|
|
|
|
|
}
|
2021-11-15 10:29:05 +08:00
|
|
|
}
|
2021-11-23 17:16:13 +08:00
|
|
|
}
|
2021-11-15 10:29:05 +08:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2021-11-23 17:16:13 +08:00
|
|
|
.emptyWrap {
|
2022-01-27 15:43:06 +08:00
|
|
|
width: 100vw;
|
2021-11-23 17:16:13 +08:00
|
|
|
display: flex;
|
|
|
|
|
flex-direction: column;
|
|
|
|
|
align-items: center;
|
|
|
|
|
justify-content: center;
|
2022-01-19 19:52:27 +08:00
|
|
|
// margin-top: 100px;
|
2022-01-07 14:51:39 +08:00
|
|
|
margin-bottom: 20px;
|
2021-11-23 17:16:13 +08:00
|
|
|
|
|
|
|
|
.emptyImg {
|
2022-01-27 15:43:06 +08:00
|
|
|
width: initial;
|
|
|
|
|
height: initial;
|
2021-11-23 17:16:13 +08:00
|
|
|
}
|
|
|
|
|
|
2022-01-28 09:46:46 +08:00
|
|
|
.small-img{
|
|
|
|
|
width: 282px;
|
|
|
|
|
height: 306px;
|
|
|
|
|
}
|
|
|
|
|
|
2021-11-23 17:16:13 +08:00
|
|
|
.emptyText {
|
2021-12-15 14:37:20 +08:00
|
|
|
font-size: 29px;
|
2021-11-23 17:16:13 +08:00
|
|
|
font-family: PingFangSC-Regular, PingFang SC;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|
color: rgba(183, 183, 183, 1);
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-15 10:29:05 +08:00
|
|
|
</style>
|