charles
2024-07-18 1a0e437bd073d428e276a804c6846e409d92a99e
src/components/makepager/CommonFormTableView.vue
@@ -26,8 +26,9 @@
          :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>
@@ -205,13 +206,14 @@
        </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>
@@ -259,6 +261,11 @@
    detailEnter: {
      type: Boolean,
      default: false
    },
    // 是否可以配置列表 表头
    colOpenShow: {
      type: Boolean,
      default: false,
    },
    selectBox: {
      type: Boolean,
@@ -343,6 +350,7 @@
  watch:{
    "productTableList": {
      handler() {
        this.showcol = this.productTableList.showcol
        this.getTableInfo()
      },
      immediate: true