Commit a5e5be02 authored by zhengke's avatar zhengke

修改

parent e669e61e
......@@ -117,6 +117,9 @@
</div>
<q-btn v-if="subIndex==0" style="margin-left:10px;position:absolute;right:-10px;top:15px;"
@click="addStep()" size="10px" round color="primary" icon="iconfont icon-img_haha" />
<q-btn v-if="subIndex>0" style="margin-left:10px;position:absolute;right:-10px;top:15px;"
@click="delStep(subIndex)" size="10px" round color="red" icon="iconfont icon-guanbi" />
</div>
</template>
<q-card-actions align="right" class="bg-white">
......@@ -324,7 +327,16 @@
addNew(){
this.isShowMenu=true;
this.addMsg.ClassPlanId=0;
console.log(this.addMsg,'addMsg');
this.addMsg.PlanTimeList = [{
ClassTimeId: 0,
StartTime: "",
EndTime: "",
}]
},
//删除
delStep(index){
this.isShowMenu=true;
this.addMsg.PlanTimeList.splice(index,1);
},
//点击新增
addStep() {
......@@ -342,11 +354,7 @@
this.isShowMenu = false;
this.isShowEdit=false;
this.getClassPlan();
this.addMsg.PlanTimeList = [{
ClassTimeId: 0,
StartTime: "",
EndTime: "",
}]
}
})
},
......
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