178 lines
3.8 KiB
Vue
178 lines
3.8 KiB
Vue
<template>
|
|
<Card title="质量亮点">
|
|
<div class="list">
|
|
<vue-scroll style="width: 100%; height: 550px">
|
|
<div class="list-item" v-for="(item, index) in showList" :key="index">
|
|
|
|
<p>{{ item.title }}</p>
|
|
|
|
<img
|
|
:preview="item.imageUrl[0] ? item.imageUrl[0].url : []"
|
|
:src="item.imageUrl[0] ? item.imageUrl[0].url : []"
|
|
alt=""
|
|
width="50px"
|
|
/>
|
|
<!-- <img :src="$store.state.FILEURL + item.imageUrl" alt="" /> -->
|
|
</div>
|
|
</vue-scroll>
|
|
</div>
|
|
<div class="tbody" v-if="showList == 0">
|
|
<div class="dataImg">
|
|
<img src="@/assets/images/noData3.png" alt srcset />
|
|
<p>{{ $t("message.dataBoard.nodata") }}</p>
|
|
</div>
|
|
</div>
|
|
</Card>
|
|
</template>
|
|
|
|
<script>
|
|
import Card from "../components/Card.vue";
|
|
import {
|
|
getLimitOrderBySurveyingDateApi,
|
|
windowDisplayApi,
|
|
} from "@/assets/js/api/zhongjianFourth";
|
|
|
|
export default {
|
|
data() {
|
|
return {
|
|
time1: "",
|
|
|
|
sn: "",
|
|
time1: "",
|
|
typeId: 1,
|
|
showList: [],
|
|
};
|
|
},
|
|
created() {
|
|
this.sn = this.$store.state.projectSn;
|
|
this.getImgList();
|
|
this.projectSn = localStorage.getItem("sn");
|
|
},
|
|
methods: {
|
|
//查询质量亮点数据
|
|
getImgList() {
|
|
windowDisplayApi({
|
|
projectSn: this.sn,
|
|
typeId: this.typeId,
|
|
}).then((res) => {
|
|
if (res.code == 200) {
|
|
console.log("数据", res);
|
|
this.showList = res.result;
|
|
res.result.map((item) => {
|
|
if (item.imageUrl.includes("[")) {
|
|
item.imageUrl = JSON.parse(item.imageUrl);
|
|
console.log("亮点展示 ====");
|
|
if (
|
|
item.imageUrl.length !== 0 &&
|
|
!item.imageUrl[0].url.includes(this.$store.state.FILEURL)
|
|
) {
|
|
item.imageUrl[0].url =
|
|
this.$store.state.FILEURL + item.imageUrl[0].url;
|
|
}
|
|
} else {
|
|
let url = item.imageUrl;
|
|
|
|
if (
|
|
url.length !== 0 &&
|
|
!url.includes(this.$store.state.FILEURL)
|
|
) {
|
|
item.imageUrl = [{}];
|
|
item.imageUrl[0].url = this.$store.state.FILEURL + url;
|
|
}
|
|
}
|
|
});
|
|
}
|
|
});
|
|
},
|
|
},
|
|
components: {
|
|
Card,
|
|
},
|
|
};
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.list {
|
|
// width: 1000px;
|
|
height: 525px;
|
|
// flex-wrap: wrap;
|
|
// margin-left: -290%;
|
|
margin-top: 10px;
|
|
// display: flex !important;
|
|
// flex-wrap: wrap;
|
|
.list-item {
|
|
width: 450px;
|
|
height: 250px;
|
|
margin: 10px 0 15px 13px;
|
|
position: relative;
|
|
float: left;
|
|
img {
|
|
width: 450px;
|
|
height: 250px;
|
|
}
|
|
p {
|
|
width: 100%;
|
|
height: 50px;
|
|
line-height: 25px;
|
|
position: absolute;
|
|
background-color: rgba(0, 0, 0, 0.55);
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
}
|
|
}
|
|
}
|
|
|
|
.dataImg {
|
|
width: 100%;
|
|
height: 100%;
|
|
margin: -150% 0px 0px -120%;
|
|
p {
|
|
margin: 6px 0 0 13px;
|
|
}
|
|
}
|
|
::v-deep .el-date-editor--daterange.el-input__inner {
|
|
cursor: pointer;
|
|
width: 235px;
|
|
height: 30px;
|
|
border: 1px solid #66d3d8;
|
|
background: transparent;
|
|
}
|
|
::v-deep .el-range-input {
|
|
cursor: pointer;
|
|
background: transparent;
|
|
color: #6ee4f0;
|
|
}
|
|
::v-deep .el-date-editor {
|
|
cursor: pointer;
|
|
.el-range__icon {
|
|
line-height: 23px;
|
|
color: #6ee4f0;
|
|
}
|
|
.el-range-separator {
|
|
line-height: 23px;
|
|
color: #757d88;
|
|
}
|
|
.el-range__close-icon {
|
|
color: #757d88;
|
|
line-height: 23px;
|
|
}
|
|
}
|
|
#trendContainer {
|
|
width: 100%;
|
|
height: 100%;
|
|
left: 0;
|
|
margin-top: -0px;
|
|
}
|
|
::v-deep .el-progress-bar {
|
|
width: 100%;
|
|
::v-deep .el-progress-bar__outer {
|
|
height: 10px !important;
|
|
}
|
|
}
|
|
::v-deep .el-progress__text {
|
|
color: #fff;
|
|
}
|
|
::v-deep .el-progress-bar__inner {
|
|
background-color: #5ce2f6;
|
|
}
|
|
</style> |