itemTag added priority
This commit is contained in:
parent
4e5cbef155
commit
e048402223
|
@ -18,6 +18,7 @@
|
|||
label = "Tag">
|
||||
</vn-autocomplete>
|
||||
<vn-textfield vn-three label="Value" model="itemTag.value"></vn-textfield>
|
||||
<vn-textfield vn-one type="number" label="Priority" model="itemTag.priority"></vn-textfield>
|
||||
<vn-one pad-medium-top>
|
||||
<vn-icon
|
||||
pointer
|
||||
|
|
|
@ -47,7 +47,7 @@ class ItemTags {
|
|||
}
|
||||
|
||||
addItemTag() {
|
||||
this.itemTags.push({value: null, itemFk: this.itemId, tagFk: null, showAddIcon: true});
|
||||
this.itemTags.push({value: null, itemFk: this.itemId, tagFk: null, priority: null, showAddIcon: true});
|
||||
this._setIconAdd();
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ class ItemTags {
|
|||
}
|
||||
|
||||
_equalItemTags(tagOld, tagNew) {
|
||||
return tagOld.tagFk === tagNew.tagFk && tagOld.value === tagNew.value;
|
||||
return tagOld.tagFk === tagNew.tagFk && tagOld.value === tagNew.value && tagOld.priority === tagNew.priority;
|
||||
}
|
||||
|
||||
submit() {
|
||||
|
|
Loading…
Reference in New Issue