Commit 7bd1554a authored by 黄奎's avatar 黄奎

也没修过

parent bf397e60
......@@ -27,7 +27,7 @@
width: 100%;
height: 30px;
line-height: 30px;
padding:0;
padding: 0;
}
.sche_Fenye {
......@@ -186,26 +186,30 @@
right: 0px;
bottom: -10px;
}
.SchImg_List{
width:120px;
height:120px;
border:1px solid #d1d1d1;
.SchImg_List {
width: 120px;
height: 120px;
border: 1px solid #d1d1d1;
position: relative;
margin-right:5px;
margin-right: 5px;
display: inline-block;
}
.SchImg_List img{
width:100%;
height:100%;
.SchImg_List img {
width: 100%;
height: 100%;
}
.sch_del{
.sch_del {
position: absolute;
right:-4px;
top:-8px;
color:red;
right: -4px;
top: -8px;
color: red;
cursor: pointer;
font-size:20px;
font-size: 20px;
}
</style>
<template>
<div>
......@@ -216,7 +220,7 @@
<span class="word_sche">工作清单</span>
<div class="sche_hengLine"></div>
<span class="word_scheNumber" v-if="saveObj&&WorkList"
:class="{'schNoneNum':WorkList.length==0}">{{this.WorkList.length}}</span>
:class="{'schNoneNum': (WorkList&&WorkList.length==0)}">{{this.WorkList.length}}</span>
</div>
<div style="min-height:135px;">
<div class="scheList_Bottom">
......@@ -235,9 +239,14 @@
<div>
<template v-if="WorkObj.ItemType==2">
<div style="margin:10px 20px;">
<span v-if="!isShowSure" @click="isShowSure=true">{{WorkObj.WorkContent}}</span>
<el-input v-else v-model="WorkObj.WorkContent" @focus="isShowSure=true" placeholder="完成情况怎么样">
</el-input>
<template v-if="workAuthObj.isShowEditAndDelete">
<span v-if="!isShowSure" @click="isShowSure=true">{{WorkObj.WorkContent}}</span>
<el-input v-else v-model="WorkObj.WorkContent" @focus="isShowSure=true" placeholder="完成情况怎么样">
</el-input>
</template>
<template v-else>
<span>{{WorkObj.WorkContent}}</span>
</template>
</div>
</template>
</div>
......@@ -245,19 +254,19 @@
<div class="tufa_btm">
<div>
<div class="tufa_xiugai">
<template v-if="WorkObj.ItemType==1">
<template v-if="WorkObj.ItemType==1 && workAuthObj.isShowEditAndDelete">
<q-btn color="accent" v-if="WorkObj.IsChecked==0" style="margin-left:10px;" slot="reference"
@click="WorkObj.IsChecked=1,saveOrder()" size="sm" label="确认完成" />
<q-btn v-if="WorkObj.IsChecked==1" flat @click="WorkObj.IsChecked=0,saveOrder()" style="margin-left:10px;"
class="schedu_red" label="取消完成" />
<q-btn v-if="WorkObj.IsChecked==1" flat @click="WorkObj.IsChecked=0,saveOrder()"
style="margin-left:10px;" class="schedu_red" label="取消完成" />
</template>
<template v-if="WorkObj.ItemType==2">
<template v-if="WorkObj.ItemType==2 && workAuthObj.isShowEditAndDelete">
<q-btn color="accent" style="margin-left:10px;" v-if="isShowSure" slot="reference" @click="saveOrder()"
size="sm" label="确认完成" />
</template>
</div>
</div>
<div class=" sche_Fenye" v-if="saveObj&&WorkList.length>0">
<div class=" sche_Fenye" v-if="saveObj&&WorkList&&WorkList.length>0">
<div class="sche_left">
<i class="iconfont icon-arrow-left" :class="{'canClick_Color':WorkIndex!=0}" @click="WorkMove(1)"></i>
</div>
......@@ -275,7 +284,7 @@
<img src="../../assets/images/tufa.png" />
<span class="word_sche">突发事件</span>
<span class="word_scheNumber" style="" v-if="saveObj&&EmergenciesList"
:class="{'schNoneNum':EmergenciesList.length==0}">{{this.EmergenciesList.length}}</span>
:class="{'schNoneNum':(EmergenciesList&&EmergenciesList.length==0)}">{{this.EmergenciesList.length}}</span>
<div class="sche_hengLine" ref="hengLine"></div>
<el-popover placement="bottom" popper-class="tufaPop" width="410" trigger="click">
<div>
......@@ -284,8 +293,8 @@
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="handleRemoveAdd(index)"></i>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card" :show-file-list="false"
:http-request="UploadAttachment">
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card"
:show-file-list="false" :http-request="UploadAttachment">
<i class="el-icon-plus"></i>
</el-upload>
</div>
......@@ -309,35 +318,37 @@
</div>
</div>
</div>
<div class="tufa_btm"
v-if="EmergenciesObj&&saveObj&&EmergenciesList&&EmergenciesList.length>0&&workAuthObj.isShowEditAndDelete">
<div class="tufa_btm">
<div>
<div class="tufa_xiugai">
<el-popover placement="bottom" popper-class="tufaPop" width="410" trigger="click">
<div>
<template
v-if="EmergenciesObj&&saveObj&&EmergenciesList&&EmergenciesList.length>0&&workAuthObj.isShowEditAndDelete">
<el-popover placement="bottom" popper-class="tufaPop" width="410" trigger="click">
<div>
<div class="SchImg_List" v-for="(item,index) in addMsg2.FileList">
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="handleRemoveAdd(index)"></i>
<div>
<div class="SchImg_List" v-for="(item,index) in addMsg2.FileList">
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="handleRemoveAdd(index)"></i>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card"
:show-file-list="false" :http-request="UploadEdit">
<i class="el-icon-plus"></i>
</el-upload>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card" :show-file-list="false"
:http-request="UploadEdit">
<i class="el-icon-plus"></i>
</el-upload>
<el-input type="textarea" style="margin-top:20px;" v-model="addMsg2.OtherContent" :rows="4" />
<q-btn color="accent" size="sm" style="float:right;margin-top:10px;"
@click="saveEdit(EmergenciesObj)" label="保存" />
</div>
<el-input type="textarea" style="margin-top:20px;" v-model="addMsg2.OtherContent" :rows="4" />
<q-btn color="accent" size="sm" style="float:right;margin-top:10px;" @click="saveEdit(EmergenciesObj)"
label="保存" />
</div>
<q-btn v-if="EmergenciesObj" slot="reference" flat @click="EditTufa(EmergenciesObj)" color="gray-10"
label="修改" />
</el-popover>
|
<q-btn v-if="EmergenciesObj" slot="reference" flat @click="delTufa()" style="margin-left:5px;"
class="schedu_red" label="删除" />
<q-btn v-if="EmergenciesObj" slot="reference" flat @click="EditTufa(EmergenciesObj)" color="gray-10"
label="修改" />
</el-popover>
|
<q-btn v-if="EmergenciesObj" slot="reference" flat @click="delTufa()" style="margin-left:5px;"
class="schedu_red" label="删除" />
</template>
</div>
</div>
<div class=" sche_Fenye" v-if="saveObj&&EmergenciesList.length>0">
<div class=" sche_Fenye" v-if="saveObj&&EmergenciesList&&EmergenciesList.length>0">
<div class="sche_left">
<i class="iconfont icon-arrow-left" :class="{'canClick_Color':EmergenciesIndex!=0}"
@click="EmergenciesMove(1)"></i>
......@@ -356,16 +367,16 @@
<span class="word_sche">交接工作说明</span>
<div class="sche_hengLine"></div>
<span class="word_scheNumber" style="left:174px;" v-if="saveObj&&HandoverList"
:class="{'schNoneNum':HandoverList.length==0}">{{this.HandoverList.length}}</span>
:class="{'schNoneNum':(HandoverList&&HandoverList.length==0)}">{{this.HandoverList.length}}</span>
<el-popover placement="bottom" popper-class="tufaPop" width="400" trigger="click">
<div>
<div>
<div>
<div class="SchImg_List" v-for="(item,index) in addMsg3.FileList">
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="jiaojieRemoveAdd(index)"></i>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card" :show-file-list="false"
:http-request="UploadJiaojie">
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card"
:show-file-list="false" :http-request="UploadJiaojie">
<i class="el-icon-plus"></i>
</el-upload>
</div>
......@@ -389,35 +400,37 @@
</div>
</div>
</div>
<div class="tufa_btm"
v-if="HandoverObj&&saveObj&&HandoverList&&HandoverList.length>0 && workAuthObj.isShowEditAndDelete">
<div class="tufa_btm">
<div>
<div class="tufa_xiugai">
<el-popover placement="bottom" popper-class="tufaPop" width="410" trigger="click">
<div>
<template
v-if="HandoverObj&&saveObj&&HandoverList&&HandoverList.length>0 && workAuthObj.isShowEditAndDelete">
<el-popover placement="bottom" popper-class="tufaPop" width="410" trigger="click">
<div>
<div class="SchImg_List" v-for="(item,index) in addMsg3.FileList">
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="jiaojieRemoveAdd(index)"></i>
<div>
<div class="SchImg_List" v-for="(item,index) in addMsg3.FileList">
<img :src="item" alt="">
<i class="iconfont icon-yiquxiao sch_del" @click="jiaojieRemoveAdd(index)"></i>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card"
:show-file-list="false" :http-request="jiaojieEdit">
<i class="el-icon-plus"></i>
</el-upload>
</div>
<el-upload class="schedul_Upload" style="display:inline;" action="" list-type="picture-card" :show-file-list="false"
:http-request="jiaojieEdit">
<i class="el-icon-plus"></i>
</el-upload>
<el-input type="textarea" style="margin-top:20px;" v-model="addMsg3.OtherContent" :rows="4" />
<q-btn color="accent" size="sm" style="float:right;margin-top:10px;"
@click="saveJJEdit(HandoverObj)" label="保存" />
</div>
<el-input type="textarea" style="margin-top:20px;" v-model="addMsg3.OtherContent" :rows="4" />
<q-btn color="accent" size="sm" style="float:right;margin-top:10px;" @click="saveJJEdit(HandoverObj)"
label="保存" />
</div>
<q-btn v-if="HandoverObj" slot="reference" flat @click="EditJiaojie(HandoverObj)" color="gray-10"
label="修改" />
</el-popover>
|
<q-btn v-if="HandoverObj" slot="reference" flat @click="delJiaojie()" style="margin-left:5px;"
class="schedu_red" label="删除" />
<q-btn v-if="HandoverObj" slot="reference" flat @click="EditJiaojie(HandoverObj)" color="gray-10"
label="修改" />
</el-popover>
|
<q-btn v-if="HandoverObj" slot="reference" flat @click="delJiaojie()" style="margin-left:5px;"
class="schedu_red" label="删除" />
</template>
</div>
</div>
<div class=" sche_Fenye" v-if="saveObj&&HandoverList.length>0">
<div class=" sche_Fenye" v-if="saveObj&&HandoverList&&HandoverList.length>0">
<div class="sche_left" :class="{'canClick_Color':HandoverIndex!=0}">
<i class="iconfont icon-arrow-left" @click="HandoverMove(1)"></i>
</div>
......@@ -534,14 +547,14 @@
WorkMove(type) {
//上一条
if (type == 1) {
if (this.WorkIndex > 0) {
if (this.WorkIndex > 0 && this.WorkList) {
this.WorkIndex = this.WorkIndex - 1;
this.WorkObj = this.WorkList[this.WorkIndex];
}
}
//下一条
else {
if (this.WorkIndex < this.WorkList.length - 1) {
if (this.WorkList && this.WorkIndex < this.WorkList.length - 1) {
this.WorkIndex = this.WorkIndex + 1;
this.WorkObj = this.WorkList[this.WorkIndex];
}
......
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