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>
相关推荐
Cshaosun21 分钟前
阿里云宝塔面板部署vue+nodejs项目并实现https访问操作流程
vue.js·阿里云·https·node.js·宝塔·文件下载
哟哟耶耶40 分钟前
component-编辑数据页面(操作按钮-编辑,保存,取消) Object.assign浅拷贝复制
前端·javascript·vue.js
佳瑞Jarrett42 分钟前
我用 Vue + SpringBoot + Redis 写了个「文件快取柜」
vue.js·spring boot·redis
光影少年11 小时前
Vue2 Diff和Vue 3 Diff实现及底层原理
前端·javascript·vue.js
傻啦嘿哟11 小时前
隧道代理“请求监控”实战:动态调整采集策略的完整指南
前端·javascript·vue.js
JIngJaneIL11 小时前
基于java + vue个人博客系统(源码+数据库+文档)
java·开发语言·前端·数据库·vue.js·spring boot
C_心欲无痕11 小时前
vue3 - readonly创建只读的响应式对象
前端·javascript·vue.js
离&染13 小时前
vue.js2.x + elementui2.15.6实现el-select滚动条加载数据
前端·javascript·vue.js·el-select滚动加载
kirinlau13 小时前
pinia状态管理在vue3项目中的用法详解
前端·javascript·vue.js