| | |
| | | item.getCallMethod(scope.row[item.prop], scope.row) |
| | | }}</span> |
| | | </div> |
| | | <span |
| | | v-else-if="item.isClass" |
| | | :class=" |
| | | item.isClass |
| | | ? item.getClassName(scope.row[item.prop], scope.row) |
| | | : '' |
| | | " |
| | | >{{ |
| | | scope.row[item.prop] |
| | | ? scope.row[item.prop] |
| | | : scope.row[item.prop] === 0 |
| | | ? scope.row[item.prop] |
| | | : "--" |
| | | }}</span |
| | | > |
| | | <span v-else>{{ scope.row[item.prop] ? scope.row[item.prop] : "--" }}</span> |
| | | </template> |
| | | </el-table-column> |
| | |
| | | </el-table> |
| | | |
| | | <div class="overSpread1" v-show="iscolopen" @click="onMaskClick"></div> |
| | | <div class="styleBtn"> |
| | | <i @click="checkCol()" class="label">...</i> |
| | | <div class="styleBtn" > |
| | | <i @click="checkCol()" v-if='colOpenShow' 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> |
| | |
| | | selectBox: { |
| | | type: Boolean, |
| | | default: false |
| | | }, |
| | | // 是否可以配置列表 表头 |
| | | colOpenShow: { |
| | | type: Boolean, |
| | | default: true, |
| | | }, |
| | | tableList: { |
| | | type: Object, |
| | |
| | | this.$emit("tableRowClassName", row) |
| | | }, |
| | | selectable(row) { |
| | | console.log(row, this.selectBoxList, "888899") |
| | | let list = this.selectBoxList.map((item) => item.number) |
| | | console.log( |
| | | list, |
| | | list.findIndex((v) => v == row.number) |
| | | ) |
| | | if (list.findIndex((v) => v == row.number) == -1) { |
| | | console.log("33") |
| | | return true |
| | | } else { |
| | | console.log("44") |
| | | return false |
| | | } |
| | | |
| | | // if (this.selectBoxList.length == 1 && this.selectBoxList[0].number.length == 0) { |
| | | // return true |
| | | // } else { |
| | | // let list = this.selectBoxList.map((item) => item.number) |
| | | // console.log( |
| | | // list, |
| | | // list.findIndex((v) => v === row.number), |
| | | // "5555" |
| | | // ) |
| | | // if (list.findIndex((v) => v === row.number)) { |
| | | // return true |
| | | // } else { |
| | | |
| | | // } |
| | | // } |
| | | } |
| | | } |
| | | } |
| | |
| | | font-weight: bold; |
| | | } |
| | | } |
| | | .el-table__body-wrapper{ |
| | | height:calc(100% - 50px)!important; |
| | | } |
| | | } |
| | | |
| | | ::v-deep .el-table .cell { |