Commit acb8e040 authored by renjintao's avatar renjintao

tasktime edit

parent 4855c257
......@@ -51,21 +51,25 @@
<p class="gs_p">
<span class="b_size">100</span>
</p>-->
<p class="gs_footer" v-if="topInfoShow.subWorkHourStatus==0">
<p class="gs_footer" v-if="topInfoShow.subWorkHourStatus!=1">
<a class="gs_edit" @click="editItem(item, index)">
<Icon type="md-create" />
编辑
{{item.showInputWorkHour?'保存':'编辑'}}
</a>
<a class="gs_del" style="position: absolute; right: 0px; width: 50%" @click="delItem(item.id)">
<a class="gs_del" style="position: absolute; right: 0px; width: 50%" @click="cancelItem(item,index)" v-if="item.showInputWorkHour">
<Icon type="ios-undo" />取消
</a>
<a class="gs_del" style="position: absolute; right: 0px; width: 50%" @click="delItem(item.id)" v-else>
<Icon type="ios-trash-outline" />删除
</a>
</p>
</Card>
<a class="gs_card gs_add" @click="addItem" v-show="this.waitHours != 0">
<Icon type="ios-add" style="vertical-align: middle" />
</a>
</div>
<div style="text-align: center;height: 50px;width: 100%; position: absolute;bottom: 25px;" v-if="topInfoShow.subWorkHourStatus==0">
<div style="text-align: center;height: 50px;width: 100%; position: absolute;bottom: 25px;" v-if="topInfoShow.subWorkHourStatus!=1">
<Button type="primary" v-noClick @click="submitWorkHour" style="height: 50px; width: 100px">
提交
</Button>
......@@ -256,6 +260,11 @@ export default {
item.showInputWorkHour = !item.showInputWorkHour;
this.$set(this.cardMan, index, item);
},
cancelItem(item, index) {
// 取消
item.showInputWorkHour = false;
this.$set(this.cardMan, index, item);
},
// 删除工时
delItem(itmid) {
this.$Modal.confirm({
......
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