This commit is contained in:
@@ -423,38 +423,6 @@ export default {
|
||||
this.editItemIndex = -1;
|
||||
this.formState.dirty = true;
|
||||
},
|
||||
// editItem: function() {},
|
||||
// addItem: function() {
|
||||
// let vm = this;
|
||||
// let selected = vm.$refs.partId.getFullSelectionValue();
|
||||
// if (selected == null || selected.id == null) {
|
||||
// return;
|
||||
// }
|
||||
// let index = vm.obj.items.findIndex(z => z.partId == selected.id);
|
||||
// if (index != -1) {
|
||||
// //already in the list
|
||||
// return;
|
||||
// }
|
||||
|
||||
// vm.obj.items.push({
|
||||
// partAssemblyId: vm.obj.id,
|
||||
// partId: selected.id,
|
||||
// partViz: selected.name,
|
||||
// quantity: 1
|
||||
// });
|
||||
|
||||
// vm.formState.dirty = true;
|
||||
// },
|
||||
// removeItem: function(item) {
|
||||
// let vm = this;
|
||||
// let index = vm.obj.items.findIndex(z => z.partId == item.partId);
|
||||
// if (index == -1) {
|
||||
// return;
|
||||
// }
|
||||
// vm.obj.items.splice(index, 1);
|
||||
// vm.formState.dirty = true;
|
||||
// },
|
||||
|
||||
openItem: function(item) {
|
||||
window.$gz.eventBus.$emit("openobject", {
|
||||
type: window.$gz.type.Part,
|
||||
|
||||
Reference in New Issue
Block a user