Problems of input selection and v-show in vue

one,

1vueinput
   "" input
   ""  v-show  v-show"" 
    input 
          

II,

III,

1, < template >

<div  class="del_button_div clearfix">
    <p v-show="AllChoiceYes" @click="take_All_SKID" class="AllChoice">

<p v-show="AllChoiceNo" @click="no_take_All_SKID" class="no_AllChoice">

<p @click="delshow" class="del_button">

</div>

2, < script >
data () {

return{
    AllChoiceYes:true,
      AllChoiceNo:false,
      selectArr: [],
}

},
methods: {

//
take_All_SKID(){
    $(".choice").prop("checked", true);
    var AllReadlistDel = "";
    //console.log(this.records.length)
    
    //$(".yesorno_svg").prop("checked", true);
    for (var i = 0; i < this.records.length; iPP) {
         //console.log(this.records[i].GoodsList[i].SKID)
        this.records[i].GoodsList.map(item => {
            //console.log(item.SKID)
            AllReadlistDel += item.SKID + ","; 
            //console.log(this.AllReadlistDel); 
        });
    };
    this.AllReadlistDel = AllReadlistDel.substr(0,AllReadlistDel.length - 1);
    this.AllChoiceYes = false;
    this.AllChoiceNo = true;
    console.log(this.AllReadlistDel)
},
//
no_take_All_SKID(){
    $(".choice").prop("checked", false);
    this.selectArr = [];
    this.AllChoiceNo = false;
    this.AllChoiceYes = true;
},

},

Dec.13,2021

No jq
$(".choice"). Prop ("checked", true);


$(".choice").prop("checked", true);

this operation is also coquettish. First you manually manipulate dom, with jquery, and then vue triggers re-rendering because of changes in AllChoiceYes and AllChoiceNo , and then re-renders an unselected input..

solution:
Please use data-driven ui. Do not directly manipulate dom.

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-1b35459-34349.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-1b35459-34349.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?