|
|
@@ -9,14 +9,17 @@
|
|
|
<el-row>
|
|
|
<el-col :span="12">
|
|
|
<el-form-item label="角色名称">
|
|
|
- <el-input v-model="form.name" autocomplete="off" />
|
|
|
+ <el-input v-model="form.name" autocomplete="off"/>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
</el-row>
|
|
|
<el-form-item label="备注说明">
|
|
|
- <el-input v-model="form.remark" type="textarea" autocomplete="off" />
|
|
|
+ <el-input v-model="form.remark" type="textarea" autocomplete="off"/>
|
|
|
</el-form-item>
|
|
|
<el-form-item v-for="authority in listAllAuthorities" :key="authority.id" :label="authority.remark">
|
|
|
+ <el-checkbox :key="authority.id" :label="authority.id" @change="checkAll">
|
|
|
+ 全选
|
|
|
+ </el-checkbox>
|
|
|
<el-checkbox-group v-model="form.listAuthorities">
|
|
|
<el-checkbox
|
|
|
v-for="children in authority.children"
|
|
|
@@ -65,6 +68,9 @@ export default {
|
|
|
this.isLoading = false
|
|
|
})
|
|
|
},
|
|
|
+ checkAll(v) {
|
|
|
+ console.log(v)
|
|
|
+ },
|
|
|
handleSubmit() {
|
|
|
console.log(this.form)
|
|
|
this.isLoading = true
|