Issues related to draggable drag and drop and click clicks

there is a requirement that after clicking a tag on one side, the tag will be added to the array on the other side and disappear in this array, as shown in figure

clickclick

vue


js


Mar.04,2021

probably the idea is to get the dragged content in put, then save it as a field, determine whether the field exists in the boxes on both sides, and display a dotted frame where the content is the field you saved, and then clear the field in the end function. Notice to set .sortable-chosen the display of this class to none


template code has not changed, the click event has been modified, and the idea is the same as what the master on the first floor said: first add elements to the array push on the opposite side, and then delete elements by splice. (the addition and deletion of the vue array are in my notes.) all this work is done by indexing index

 /*  */
            joinHasContents: function(index){
                //this.dom = event.currentTarget;
                this.follow_nohas_contents.push({name: this.follow_has_contents[index].name}); // 
                this.follow_has_contents.splice(index,1);
            },
            joinNoHasContents: function(index){
                //this.dom = event.currentTarget;
                this.follow_has_contents.push({name: this.follow_nohas_contents[index].name}); // 
                this.follow_nohas_contents.splice(index,1);
            }
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1eb23b1-23bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1eb23b1-23bc.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?