Przeglądaj źródła

功能权限遍历

zhuliu 3 lat temu
rodzic
commit
5cac3b4f9a
1 zmienionych plików z 3 dodań i 2 usunięć
  1. 3 2
      src/views/role/index.vue

+ 3 - 2
src/views/role/index.vue

@@ -18,10 +18,10 @@
     >
     >
       <el-table-column prop="name" label="角色名称" align="" show-overflow-tooltip></el-table-column>
       <el-table-column prop="name" label="角色名称" align="" show-overflow-tooltip></el-table-column>
       <el-table-column label="功能权限" align="center" show-overflow-tooltip>
       <el-table-column label="功能权限" align="center" show-overflow-tooltip>
-        <!-- <template slot-scope="scope">
+        <template slot-scope="scope">
           <span v-for="item in scope.row.functionList">{{item.name}}
           <span v-for="item in scope.row.functionList">{{item.name}}
           </span>
           </span>
-        </template> -->
+        </template>
       </el-table-column>
       </el-table-column>
       <el-table-column label="数据权限" align="center" show-overflow-tooltip>
       <el-table-column label="数据权限" align="center" show-overflow-tooltip>
          <template slot-scope="scope">
          <template slot-scope="scope">
@@ -195,6 +195,7 @@ export default {
     handleAdd() {
     handleAdd() {
       this.title = '新增角色'
       this.title = '新增角色'
       this.visible = true
       this.visible = true
+      this.checkList=[]
       this.ruleForm={
       this.ruleForm={
         function:[]
         function:[]
       }
       }