jazz
2022-08-24 b413394a0a4bdbb2b3af67f3faf86b3b7351655a
src/pages/demo/index.vue
@@ -8,7 +8,7 @@
      <el-form-item label="角色名称">
        <el-input
          v-model="keyWord"
          placeholder="请输入角色名称"
          placeholder="搜索角色名称"
          clearable
          size="small"
          style="width: 240px"
@@ -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">
          <!-- 权限判断 v-if="getAuthValueFN('xxx_edit')" -->
          <!-- 权限判断 :disabled="!getAuthValueFN('xxx_edit')" -->
          <el-switch
            v-model="scope.row.isUp"
            :active-value="1"
@@ -248,7 +254,8 @@
        this.postFN({
          url: 'xxx',
          params: {
            id: item.id
            id: item.id,
            isUp: item.isUp
          },
          mockData: {
            code: 100,