Ver código fonte

功能权限遍历

zhuliu 3 anos atrás
pai
commit
5cac3b4f9a
1 arquivos alterados com 3 adições e 2 exclusões
  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 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>
-        </template> -->
+        </template>
       </el-table-column>
       <el-table-column label="数据权限" align="center" show-overflow-tooltip>
          <template slot-scope="scope">
@@ -195,6 +195,7 @@ export default {
     handleAdd() {
       this.title = '新增角色'
       this.visible = true
+      this.checkList=[]
       this.ruleForm={
         function:[]
       }