The elementUI event passes custom parameters while retaining the original parameters

I want to get three values at the same time in @ selection-change :

  • dynaRef (scope.row) , subset el-table reference for checkbox Simulation radio one line must be selected
  • scope.row , the data of the expanded row in the parent table, which is used to save the default selected item
  • selection , subset el-table selected
  • also modify the data in this (current vm instance) according to selection
  • .
find the custom parameter passing method through search (p)=>fn(p, "1permission, 2)
but this method has a drawback. This pointing is no longer the original vm instance. How to solve this problem?
<el-table :data="grid.data" :border="true" :stripe="true" @expand-change="expandChange">
    <el-table-column fixed type="expand" width="50">
        <template slot-scope="scope">
            <el-table :data="scope.row.quotations" :border="true" :stripe="true"
                      @selection-change="(p)=>handler(p,scope.row,dynaRef(scope.row))"
                      :ref="dynamicRef(scope.row)">
                <el-table-column type="selection" width="50"></el-table-column>
            </el-table>
        </template>
    </el-table-column>
</el-table>
< hr >

@ zollero

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