Commit bd587d0d authored by 黄奎's avatar 黄奎

页面修改

parent 28f954bc
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
-webkit-line-clamp: 2; -webkit-line-clamp: 2;
-webkit-box-orient: vertical; -webkit-box-orient: vertical;
overflow: hidden; overflow: hidden;
width:100%; width: 100%;
} }
.sche_List_in { .sche_List_in {
...@@ -212,11 +212,13 @@ ...@@ -212,11 +212,13 @@
.WorkObj_ImgList { .WorkObj_ImgList {
margin: 10px 20px 0 20px; margin: 10px 20px 0 20px;
} }
.sche_midList .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view{
.sche_midList .el-scrollbar .el-scrollbar__wrap .el-scrollbar__view {
white-space: nowrap; white-space: nowrap;
overflow-x: auto; overflow-x: auto;
padding-bottom:5px; padding-bottom: 5px;
} }
.sche_midList .el-scrollbar__view::-webkit-scrollbar { .sche_midList .el-scrollbar__view::-webkit-scrollbar {
width: 3px; width: 3px;
height: 3px; height: 3px;
...@@ -236,6 +238,7 @@ ...@@ -236,6 +238,7 @@
-webkit-box-shadow: -webkit-gradient(linear, 0 0, 0 100%, color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.5, transparent), to(transparent)); -webkit-box-shadow: -webkit-gradient(linear, 0 0, 0 100%, color-stop(.5, rgba(255, 255, 255, .2)), color-stop(.5, transparent), to(transparent));
background-color: #0ae; background-color: #0ae;
} }
</style> </style>
<template> <template>
<div> <div>
...@@ -243,7 +246,6 @@ ...@@ -243,7 +246,6 @@
<div class="sche_midList"> <div class="sche_midList">
<div class="scheList_TOP"> <div class="scheList_TOP">
<template v-if="WorkObj&&WorkObj.ItemImgList&&WorkObj.ItemImgList.length>0"> <template v-if="WorkObj&&WorkObj.ItemImgList&&WorkObj.ItemImgList.length>0">
<!-- <img :src="WorkObj.ItemImgList[0]" /> -->
<el-carousel :interval="5000" height="107px"> <el-carousel :interval="5000" height="107px">
<el-carousel-item v-for="item in WorkObj.ItemImgList" :key="item"> <el-carousel-item v-for="item in WorkObj.ItemImgList" :key="item">
<img :src="item" /> <img :src="item" />
...@@ -278,17 +280,20 @@ ...@@ -278,17 +280,20 @@
<div class="WorkObj_ImgList"> <div class="WorkObj_ImgList">
<el-scrollbar> <el-scrollbar>
<template v-if="WorkObj.FileList&&WorkObj.FileList.length>0"> <template v-if="WorkObj.FileList&&WorkObj.FileList.length>0">
<div class="SchImg_List" style="width:50px;height:50px;border:0;" v-for="(item,index) in WorkObj.FileList"> <div class="SchImg_List" style="width:50px;height:50px;border:0;"
<!-- <img :src="item" alt=""> --> v-for="(item,index) in WorkObj.FileList">
<el-image :src="item" style="width:100%;height:100%;" :preview-src-list="WorkObj.FileList"> <el-image :src="item" style="width:100%;height:100%;" :preview-src-list="WorkObj.FileList">
</el-image> </el-image>
<i class="iconfont icon-yiquxiao sch_del" style="font-size:17px;top:-4px;" @click="workRemoveAdd(index)"></i> <i class="iconfont icon-yiquxiao sch_del" style="font-size:17px;top:-4px;"
@click="workRemoveAdd(index)"></i>
</div> </div>
</template> </template>
<el-upload class="schedul_Upload MyUpload" style="display:inline;" action="" list-type="picture-card" <template v-if="workAuthObj.isShowEditAndDelete">
:show-file-list="false" :http-request="UploadWorkFile"> <el-upload class="schedul_Upload MyUpload" style="display:inline;" action="" list-type="picture-card"
<i class="el-icon-plus"></i> :show-file-list="false" :http-request="UploadWorkFile">
</el-upload> <i class="el-icon-plus"></i>
</el-upload>
</template>
</el-scrollbar> </el-scrollbar>
</div> </div>
<div> <div>
...@@ -616,7 +621,7 @@ ...@@ -616,7 +621,7 @@
this.HandoverList = res.Data.HandoverList; this.HandoverList = res.Data.HandoverList;
this.EmergenciesList = res.Data.EmergenciesList; this.EmergenciesList = res.Data.EmergenciesList;
this.WorkList = res.Data.WorkList; this.WorkList = res.Data.WorkList;
console.log(this.WorkList,'WorkList'); console.log(this.WorkList, 'WorkList');
if (this.EmergenciesList && this.EmergenciesList.length > 0) { if (this.EmergenciesList && this.EmergenciesList.length > 0) {
this.EmergenciesObj = this.EmergenciesList[this.EmergenciesIndex]; this.EmergenciesObj = this.EmergenciesList[this.EmergenciesIndex];
} }
...@@ -693,7 +698,7 @@ ...@@ -693,7 +698,7 @@
//工作清单上传图片 //工作清单上传图片
UploadWorkFile(files) { UploadWorkFile(files) {
UploadSelfFile('Attachment', files.file, res => { UploadSelfFile('Attachment', files.file, res => {
if(this.WorkObj.FileList==null){ if (this.WorkObj.FileList == null) {
this.WorkObj.FileList = []; this.WorkObj.FileList = [];
} }
if (res.Code == 1) { if (res.Code == 1) {
......
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