Commit bd587d0d authored by 黄奎's avatar 黄奎

页面修改

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