| | |
| | | :min-width="item.min" |
| | | show-overflow-tooltip |
| | | :sortable="item.sortable" |
| | | v-if="item.isShowColumn" |
| | | v-if="(item.isShowColumn&&colOpenShow)||item.isShowColumn==undefined" |
| | | > |
| | | <!-- 所有的表格修改为可配置表头的之后 v-if修改为v-if="item.isShowColumn" --> |
| | | <!-- 表头样式 --> |
| | | <template slot="header"> |
| | | <span v-if="item.isRequird" style="color: #f56c6c">*</span> |
| | |
| | | </el-table-column> |
| | | <el-table-column label="操作" width="70" v-if="!detailEnter" align="center" fixed='right'> |
| | | <template slot-scope="scope"> |
| | | |
| | | <el-button type="text" size="small" :disabled="!isOperate" @click="deleteClick(scope)">删除</el-button> |
| | | </template> |
| | | </el-table-column> |
| | | <slot name="tableButton" /> |
| | | </el-table> |
| | | <div class="styleBtn"> |
| | | <i @click="checkCol()" class="label">...</i> |
| | | <div class="styleBtn" v-if="colOpenShow"> |
| | | <i @click="checkCol()" class="label">...</i> |
| | | <el-checkbox-group v-model="showcol" v-show="iscolopen" class="checkbox-group" @change="selectCheckBoxList"> |
| | | <el-checkbox v-for="item in tableList.allcol" :label="item" :key="item">{{ item }} </el-checkbox> |
| | | </el-checkbox-group> |
| | |
| | | detailEnter: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | // 是否可以配置列表 表头 |
| | | colOpenShow: { |
| | | type: Boolean, |
| | | default: false, |
| | | }, |
| | | selectBox: { |
| | | type: Boolean, |
| | |
| | | watch:{ |
| | | "productTableList": { |
| | | handler() { |
| | | this.showcol = this.productTableList.showcol |
| | | this.getTableInfo() |
| | | }, |
| | | immediate: true |