|
|
@@ -92,6 +92,9 @@
|
|
|
edit(ownerMaterial,i){
|
|
|
this.materialErrors = {};
|
|
|
this.editOwnerMaterial = JSON.parse(JSON.stringify(ownerMaterial));
|
|
|
+ this.filterMaterials = JSON.parse(JSON.stringify(this.materials));
|
|
|
+ this.filterOwners = JSON.parse(JSON.stringify(this.owners));
|
|
|
+ $('#editOwnerName').val('');
|
|
|
this.index = i;
|
|
|
$('#edit-ownerMaterial').modal('show');
|
|
|
},
|
|
|
@@ -121,6 +124,9 @@
|
|
|
store(){
|
|
|
this.addOwnerMaterial = {};
|
|
|
this.materialErrors = {};
|
|
|
+ $('#filterOwnerName').val('');
|
|
|
+ this.filterMaterials = JSON.parse(JSON.stringify(this.materials));
|
|
|
+ this.filterOwners = JSON.parse(JSON.stringify(this.owners));
|
|
|
$('#add-ownerMaterial').modal('show');
|
|
|
},
|
|
|
create(params){
|
|
|
@@ -147,6 +153,8 @@
|
|
|
},
|
|
|
uploadModal(ownerMaterial,i){
|
|
|
this.editOwnerMaterial = JSON.parse(JSON.stringify(ownerMaterial));
|
|
|
+ this.filterMaterials = JSON.parse(JSON.stringify(this.materials));
|
|
|
+ this.filterOwners = JSON.parse(JSON.stringify(this.owners));
|
|
|
this.index = i;
|
|
|
$('#uploadFile').modal('show');
|
|
|
},
|