Commit 997a0fe8 by luyt

feat:设置table勾选栏添加外部函数传入判断

1 parent 5bccbaea
......@@ -7,7 +7,7 @@
<span :scope="scope"></span>
</template>
</el-table-column>
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" class-name="select-column" type="selection" width="48" :selectable="checkSelectable" :reserve-selection="true"></el-table-column>
<el-table-column v-if="tableParams.mutiSelectUniqueKey && tableParams.mutiSelectName" class-name="select-column" type="selection" width="48" :selectable="tableParams.checkSelectable || checkSelectable" :reserve-selection="true"></el-table-column>
<el-table-column v-if="hasNum" align="left" width="74" label="序号" class-name="select-index" type="index" :index="index => index + (page[this.pageConf.pageNum] - 1) * page[this.pageConf.pageSize] + 1"></el-table-column>
<el-table-column v-for="(item, index) in tableColumns" :key="index" :label="item.label" :prop="item.prop" :width="item.width" :min-width="item.minWidth" :fixed="item.fixed" :align="item.align || 'left'" :sortable="item.sortable" :render-header="item.renderHeader" v-bind="item.columnattrs ? item.columnattrs : {}" v-on="item.columnlisteners ? item.columnlisteners : {}">
<template slot-scope="scope">
......@@ -216,6 +216,8 @@ export default {
type: Array,
default: () => []
},
// 设置禁止选中的函数
checkSelectable:Function,
// 后端返回列表参数名
listName: {
type: String,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!