element ui el-table表格复选框,弹框关闭取消打勾选择

javascript 复制代码
  //弹框表格复选框清空 
   this.$nextTick(()=>{
     this.$refs.table.clearSelection();
   })
html 复制代码
 <el-table ref="table" v-loading="crud.loading" :header-cell-style="{ color: '#FFF', background: '#333' }"
      :cell-style="{ color: '#FFF', background: '#333' }" :data="crud.data" style="width: 100%" :row-key="getRowKey"
      :default-sort="{ prop: 'barcode', order: 'descending' }" @selection-change="crud.selectionChangeHandler"
      @sort-change="sortChange">
      <template slot="empty">
        <span style="color: #969799">{{ $t("NeoLight.empty") }}</span>
      </template>
      <el-table-column type="selection" width="50" :reserve-selection="true" fixed="left" />

      <el-table-column prop="labelName" :sortable="true" :label="$t('labelOuput.labelGroup')" />
      <el-table-column prop="barcode.barcode" :sortable="true" :label="$t('NeoLight.barcodeNo')" />
      <el-table-column prop="barcode.partNumber" :sortable="true" :label="$t('NeoLight.stockNo')" />
      <el-table-column prop="barcode.posName" :sortable="true" :label="$t('NeoLight.storageNo')" />
      <el-table-column prop="barcode.lockName" :sortable="true" :label="$t('workOrder.workNo')" />
      <el-table-column prop="barcode.amount" :sortable="true" :label="$t('NeoLight.amount')" />
      <el-table-column prop="barcode.putInDate" :sortable="true" :label="$t('NeoLight.putInDate')" />
    </el-table>
相关推荐
萌萌哒草头将军2 小时前
⚡⚡⚡尤雨溪宣布开发 Vite Devtools,这两个很哇塞 🚀 Vite 的插件,你一定要知道!
前端·vue.js·vite
小彭努力中2 小时前
7.Three.js 中 CubeCamera详解与实战示例
开发语言·前端·javascript·vue.js·ecmascript
浪裡遊3 小时前
跨域问题(Cross-Origin Problem)
linux·前端·vue.js·后端·https·sprint
滿3 小时前
Vue3 Element Plus el-tabs数据刷新方法
javascript·vue.js·elementui
敲厉害的燕宝3 小时前
Pinia——Vue的Store状态管理库
前端·javascript·vue.js
麦麦大数据4 小时前
vue+neo4j+flask 音乐知识图谱推荐系统
vue.js·mysql·flask·知识图谱·neo4j·推荐算法·音乐推荐
GUIQU.6 小时前
【Vue】单元测试(Jest/Vue Test Utils)
前端·vue.js
前端张三6 小时前
vue3中ref在js中为什么需要.value才能获取/修改值?
前端·javascript·vue.js
会飞的鱼先生7 小时前
vue3 内置组件KeepAlive的使用
前端·javascript·vue.js
苹果酱05678 小时前
【Azure Redis 缓存】在Azure Redis中,如何限制只允许Azure App Service访问?
java·vue.js·spring boot·mysql·课程设计