The table setting in element dialong is checked by default

1. Click the button to pop up a dialog and request the data to be displayed by table. There is a table and paging function in dialog. When dialog is opened, the check box in table is selected by default.
I did this, but there was no response.

/ buttons on the page

<el-button type="primary" **@click="addCcObject"**></el-button>
addCcObject(){
        this.CCdialog = true;//
        this.doCcData()//table
      },
//
<el-dialog title="" :visible.sync="CCdialog" **@open="showCcDialog"**>
        <div style="margin:15px 0">
          <el-input v-model="CCinputValue" placeholder="" style="width: 200px" clearable></el-input>
          <el-button type="primary" @click="ccsearchBtn"></el-button>
        </div>
        <el-table :data="ccData"  ref="ccData" @selection-change="handleSelectionChange" border>
          <el-table-column type="selection" width="55">
          </el-table-column>
          <el-table-column property="caption" label=""></el-table-column>
        </el-table>

        <div style="margin:15px 0">
          <el-pagination
            background
            layout="prev, pager, next"
            :page-size="pageSize"
            :current-page.sync="currentPage"
            @current-change="currentChange"
            :total="count">
          </el-pagination>
        </div>

        <div slot="footer" class="dialog-footer">
          <el-button @click="CCdialog = false"> </el-button>
          <el-button type="primary" @click="ccOk"> </el-button>
        </div>
      </el-dialog>
      
            
      //
      showCcDialog(){
        this.$nextTick(() => {
          let selected = this.data_cc//
          selected.forEach(i => {
             this.$refs.ccData.toggleRowSelection(this.ccData.find(d => d.id === i.id), true)  // 
          })
        })
      },
showCcDialog(){
        this.$nextTick(() => {
          let selected = this.data_cc//
          selected.forEach(i => {
            //this.$refs.ccData.toggleRowSelection(this.ccData[2], true)  // 
            //this.$refs.ccData.toggleRowSelection(this.ccData.find(d => d.id === i.id), true)  // 
            this.$refs.ccData.toggleRowSelection(this.ccData.find(d => d.id === i.id), true)  // 
          })
        })
      },

the selected event should not be placed in the callback function of the pop-up box, but in the callback completed by the table data request


I have also encountered this. I want to reset the checked data by changing the data. It is changed by printing the data, but the checked state of the table remains unchanged, this.$refs.multipleTable.toggleRowSelection (row,true). When I remove the parameter true checked in this setting, It can be selected and inverted normally, but after I remove the true, I can't remove some from the previous check. I suspect that the reuse dom, of the frame does not update the state, so I first this.$refs.multipleTable.clearSelection () to remove the check state, and then this.$refs.multipleTable.toggleRowSelection (row,true).

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