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

也没修过

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