Commit e8a9a459 authored by YIyiyi's avatar YIyiyi

pref:修改空状态显示

parent 77a04892
...@@ -118,10 +118,14 @@ export default { ...@@ -118,10 +118,14 @@ export default {
<style lang="less"> <style lang="less">
.app { .app {
width: 100%; width: 100%;
min-height: 100%; height: 100%;
background-color: #f5f5f5; background-color: #f5f5f5;
font-family: Source Han Sans CN; font-family: Source Han Sans CN;
display: flex; // display: flex;
// overflow: auto;
// &::-webkit-scrollbar {
// display: none;
// }
} }
:root { :root {
// 标题颜色 // 标题颜色
......
...@@ -40,13 +40,15 @@ ...@@ -40,13 +40,15 @@
:key="'list' + item" :key="'list' + item"
></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>
</el-drawer> </el-drawer>
</div> </div>
</template> </template>
<script> <script>
import local from "@/utils/local"; import local from "@/utils/local";
import YEmpty from "@/components/YEmpty.vue";
export default { export default {
props: { props: {
visible: { visible: {
...@@ -62,11 +64,12 @@ export default { ...@@ -62,11 +64,12 @@ export default {
}, },
}, },
}, },
components: {
YEmpty,
},
data() { data() {
return { return {
api: local.getLocal("baseUrl") api: local.getLocal("baseUrl") + "/",
? local.getLocal("baseUrl") + "/"
: "http://192.168.0.98:11078/",
row: 4, row: 4,
}; };
}, },
......
<template>
<div class="empty">
<div :style="{ width: width.includes('px') ? width : width + 'px' }">
<img v-if="img" :src="img" />
<span v-if="text">{{ text }}</span>
</div>
</div>
</template>
<script>
export default {
props: {
width: {
type: [String, Number],
default: "200",
},
img: {
type: String,
default: require("../assets/img/暂无信息/暂无列表@3x.png"),
},
text: {
type: String,
default: "",
},
},
};
</script>
<style lang="less" scoped>
.empty {
display: flex;
align-items: center;
justify-content: center;
img {
width: 100%;
height: 100%;
}
}
</style>
...@@ -540,22 +540,22 @@ export default { ...@@ -540,22 +540,22 @@ export default {
box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1); box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
position: relative; position: relative;
overflow: hidden; overflow: hidden;
&::before { // &::before {
content: ""; // content: "";
position: absolute; // position: absolute;
width: 200px; // width: 200px;
height: 300%; // height: 300%;
left: -200px; // left: -200px;
transform: rotateZ(-45deg); // transform: rotateZ(-45deg);
background: linear-gradient( // background: linear-gradient(
to right, // to right,
transparent 1%, // transparent 1%,
rgba(255, 255, 255, 0.2) 30%, // rgba(255, 255, 255, 0.2) 30%,
rgba(255, 255, 255, 0.5) 60%, // rgba(255, 255, 255, 0.5) 60%,
transparent 100% // transparent 100%
); // );
animation: shadow 6s infinite; // animation: shadow 6s infinite;
} // }
// .fill-btn-text1 { // .fill-btn-text1 {
// animation: ring 6s 20ms infinite; // animation: ring 6s 20ms infinite;
......
...@@ -48,6 +48,6 @@ export default { ...@@ -48,6 +48,6 @@ export default {
<style lang="less"> <style lang="less">
.layouts { .layouts {
width: 100%; width: 100%;
height: auto; height: 100%;
} }
</style> </style>
...@@ -48,7 +48,8 @@ ...@@ -48,7 +48,8 @@
</div> </div>
</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>
<!-- 分页 --> <!-- 分页 -->
<div class="tac"> <div class="tac">
<el-pagination <el-pagination
...@@ -80,6 +81,7 @@ import LeftMenus from "./components/LeftMenus.vue"; ...@@ -80,6 +81,7 @@ import LeftMenus from "./components/LeftMenus.vue";
import PageTop from "@/components/PageTop.vue"; import PageTop from "@/components/PageTop.vue";
import SearchBox from "@/components/SearchBox.vue"; import SearchBox from "@/components/SearchBox.vue";
import MateralsList from "../../components/MateralsList.vue"; import MateralsList from "../../components/MateralsList.vue";
import YEmpty from "@/components/YEmpty.vue";
import { getWriteMatterList } from "@/api"; import { getWriteMatterList } from "@/api";
export default { export default {
...@@ -89,6 +91,7 @@ export default { ...@@ -89,6 +91,7 @@ export default {
PageTop, PageTop,
SearchBox, SearchBox,
MateralsList, MateralsList,
YEmpty,
}, },
data() { data() {
return { return {
...@@ -172,7 +175,10 @@ export default { ...@@ -172,7 +175,10 @@ export default {
height: 100%; height: 100%;
padding: 0px 40px; padding: 0px 40px;
padding-bottom: 20px; padding-bottom: 20px;
overflow-y: auto;
&::-webkit-scrollbar {
display: none;
}
.data-count { .data-count {
color: var(--main-assist-color3); color: var(--main-assist-color3);
} }
......
<template> <template>
<div class="left-menus"> <div class="left-menus scroll3">
<div class="dept-list scroll3"> <div class="dept-list">
<div <div
class="dept-item" class="dept-item"
:class="{ active: isActive === i }" :class="{ active: isActive === i }"
...@@ -57,13 +57,14 @@ export default { ...@@ -57,13 +57,14 @@ export default {
.left-menus { .left-menus {
width: 300px; width: 300px;
height: 100%; height: 100%;
padding-bottom: 15px;
background: #ffffff; background: #ffffff;
box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.07); box-shadow: 0px 5px 15px 3px rgba(0, 0, 0, 0.07);
} }
.dept-list { .dept-list {
width: 100%; width: 100%;
height: calc(100vh - 110px); // height: calc(100vh - 110px);
padding-bottom: 15px; // padding-bottom: 15px;
} }
.dept-item { .dept-item {
text-align: center; text-align: center;
......
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