工作票修正key

main
weitingdong 11 months ago
parent 649d4b10ed
commit 0afd65f44a
  1. 12
      src/views/smart/workpermitDetail.vue

@ -34,6 +34,12 @@
@row-del="attachment_rowDel" @row-del="attachment_rowDel"
@row-update="attachment_rowUpdate" @row-update="attachment_rowUpdate"
@row-save="attachment_rowSave"> @row-save="attachment_rowSave">
<template slot="menuRight">
<el-button type="primary"
size="small"
plain
@click="addrow()">新增</el-button>
</template>
</avue-crud> </avue-crud>
</div> </div>
</span> </span>
@ -505,7 +511,7 @@
...mapGetters(["permission"]), ...mapGetters(["permission"]),
permissionList() { permissionList() {
return { return {
addBtn: true, addBtn: false,
viewBtn: false, viewBtn: false,
delBtn: true, delBtn: true,
editBtn: true editBtn: true
@ -634,6 +640,10 @@
this.readonlyForm=false; this.readonlyForm=false;
this.frame_class = null; this.frame_class = null;
}, },
addrow(){
this.attachment_form.ticketCode = this.tab1_form.workTicketNo;
this.$refs.crud.rowAdd()
},
updateToSearch () { updateToSearch () {
this.readonlyForm=true; this.readonlyForm=true;
this.shouldShowButton=true; this.shouldShowButton=true;

Loading…
Cancel
Save