<template> <!-- 工单评价 --> <div id="WorkEvaluation"> <div id="WorkETitle">工单处理评价</div> <div id="WorkList"> <div class="ListDiv" v-for="(item, index) in WorkListData"> <div class="ListLeft_icon"> <div class="iconBox"></div> </div> <div class="ListRight_Font"> <div class="ListRight_FontTitle">{{ item.title }}</div> <div class="ListRight_FontValue" v-if="item.type == 0"> {{ item.value }} </div> <div class="ListRight_FontValue" v-else> <n-rate readonly :default-value="item.value" /> </div> </div> </div> </div> <div id="WorkEare"> <n-input v-model:value="WorkEare" type="textarea" placeholder="维修描述:" rows="5" /> </div> <div id="siteInformation"> <div class="siteInformation1"> <div class="siteTitle">工单流程信息</div> <div class="siteContent"> <img src="./../../../assets/Imgs/lingshi/jietu3.png" style="width: 384px; height: 100%; margin-left: 75px" alt="" /> </div> </div> <div class="siteInformation2"> <div class="siteTitle">维修前现场照片</div> <div class="siteContent"> <n-carousel effect="custom" :transition-props="{ name: 'creative' }" show-arrow > <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel1.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel2.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel3.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel4.jpeg" /> </n-carousel> </div> </div> <div class="siteInformation2"> <div class="siteTitle">维修后现场照片</div> <div class="siteContent"> <n-carousel effect="custom" :transition-props="{ name: 'creative' }" show-arrow > <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel1.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel2.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel3.jpeg" /> <img class="carousel-img" src="https://naive-ui.oss-cn-beijing.aliyuncs.com/carousel-img/carousel4.jpeg" /> </n-carousel> </div> </div> </div> </div> </template> <script> import { ref, reactive, toRefs, onMounted } from "vue"; export default { name: "WorkEvaluation", setup() { let WorkListData = reactive([ { icon: "", title: "工单发起时间", type: 0, value: "2021年6月1日", }, { icon: "", title: "工单结束时间", type: 0, value: "2021年6月4日", }, { icon: "", title: "耗时", type: 0, value: "3天12小时", }, { icon: "", title: "维修类型", type: 0, value: "小修", }, { icon: "", title: "维修方式", type: 0, value: "外部维修", }, { icon: "", title: "工单及时性评分", type: 1, value: "4", }, { icon: "", title: "维修公司", type: 0, value: "第三方维修公司", }, { icon: "", title: "维修费用", type: 0, value: "1000 ¥ ", }, { icon: "", title: "轴承清理", type: 0, value: "清洗一次并更换机油耗时1小时", }, { icon: "", title: "维修质量评分", type: 1, value: "4", }, ]); let WorkEare = ref(null); onMounted(() => {}); return { WorkListData, WorkEare, }; }, computed: {}, methods: {}, }; </script> <style lang="less" scoped> #WorkEvaluation { width: 100%; height: 100%; } #WorkETitle { height: 50px; line-height: 50px; background: linear-gradient(0deg, #16407e, #3e78d5); font-size: 18px; font-family: Microsoft YaHei; font-weight: 400; color: #ffffff; box-sizing: border-box; padding-left: 30px; } #WorkList { width: 100%; height: auto; min-height: 140px; // background: burlywood; .ListDiv { height: 42px; width: auto; min-width: 200px; float: left; padding: 0 17px; margin: 21px 30px 0px 30px; box-sizing: border-box; background: #fcfdfe; box-shadow: 0px 4px 9px 4px rgb(22 64 83 / 15%); border-radius: 4px; .ListLeft_icon { width: 50px; height: 42px; line-height: 42px; float: left; .iconBox { width: 38px; height: 38px; background: #4cb8e9; border-radius: 50%; margin-top: 2px; } } .ListRight_Font { width: auto; height: 42px; float: left; .ListRight_FontTitle { font-weight: 400; color: #30373f; height: 20px; font-size: 12px; line-height: 20px; } .ListRight_FontValue { font-size: 15px; font-family: DIN; font-weight: bold; color: #4cb8e9; height: 22px; line-height: 22px; } } } } #WorkEare { width: 100%; min-height: 130px; height: auto; max-height: 200px; overflow: auto; box-sizing: border-box; padding: 0 20px; } #siteInformation { height: 440px; // background: #5982a8; margin-top: 30px; .siteInformation1 { width: 550px; height: 440px; background: #fbfcfd; float: left; box-shadow: 0px 9px 46px 5px rgba(89, 130, 168, 0.35); margin-left: 10px; box-sizing: border-box; padding: 10px 0; } .siteInformation2 { width: calc(50% - 300px); height: 440px; background: #fbfcfd; margin: 0 10px; float: left; box-shadow: 0px 9px 46px 5px rgba(89, 130, 168, 0.35); box-sizing: border-box; padding: 10px 0; } .siteTitle { background: url("./../../../assets/Imgs/weixiufenxi_title.png") no-repeat left bottom; height: 36px; width: 100%; font-size: 18px; font-family: Alibaba PuHuiTi; font-weight: bold; color: #6b84a0; box-sizing: border-box; padding-left: 50px; } .siteContent { width: 100%; height: calc(100% - 36px); } } .carousel-img { width: 100%; height: 100%; object-fit: cover; } :deep(.creative-enter-from), :deep(.creative-leave-to) { opacity: 0; transform: scale(0.9); } :deep(.creative-enter-active), :deep(.creative-leave-active) { transition: all 0.3s ease; } </style>