long
2021-10-26 e9f8083097a8d4b247e41c629e4822400136e803
src/pages/demo/index.vue
@@ -38,12 +38,18 @@
    </el-row>
    <!-- 操作区 ↑↑↑↑↑↑↑↑↑↑ -->
    <!--
      table参数设置:
      stripe 是否为斑马纹
      border 是否带有纵向边框
      max-height 最大高度
    -->
    <el-table :data="list" stripe>
      <el-table-column type="index" label="序号" align="center" width="60" />
      <el-table-column label="角色名称" prop="name" align="center" min-width="120" />
      <el-table-column label="是否上架" prop="isUp" align="center" min-width="100">
        <template slot-scope="scope">
          <!-- 权限判断 :disable="!getAuthValueFN('xxx_edit')" -->
          <!-- 权限判断 :disabled="!getAuthValueFN('xxx_edit')" -->
          <el-switch
            v-model="scope.row.isUp"
            :active-value="1"